@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --border-color: #E2E8F0;
    --accent-primary: #eab308;
    --accent-dark: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

[data-bn] { font-family: 'Hind Siliguri', 'Inter', sans-serif !important; }
.lang-bn-active body { font-family: 'Hind Siliguri', 'Inter', sans-serif; }

/* --- Navigation --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
}

.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-main); }
.logo-img { height: 40px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.825)); }
.ad-badge {
    font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
    color: #16a34a; border: 1px solid rgba(22, 163, 74, 0.3);
    padding: 3px 8px; border-radius: 4px; background: rgba(22, 163, 74, 0.1);
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: 15px; text-decoration: none; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-dark); }

/* Language Toggle */
.lang-toggle {
    display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-muted);
    margin-left: 16px; border-left: 1px solid var(--border-color); padding-left: 24px;
}
.lang-toggle input { display: none; }
.lang-toggle label {
    width: 48px; height: 24px; background: #E2E8F0; border-radius: 12px; position: relative; cursor: pointer; transition: 0.3s;
}
.lang-toggle label::after {
    content: ''; width: 18px; height: 18px; background: #fff; border-radius: 50%;
    position: absolute; top: 3px; left: 3px; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.lang-toggle input:checked + label { background: var(--accent-dark); }
.lang-toggle input:checked + label::after { left: 27px; }

/* --- Hero Section --- */
.hero {
    padding: 160px 32px 80px; text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.hero h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; color: var(--accent-dark); }
.hero h1 .highlight { color: var(--accent-primary); }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; font-weight: 500; }

/* --- Category Tabs --- */
.category-tabs {
    display: flex; justify-content: center; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; padding: 0 24px;
}
.tab-btn {
    padding: 14px 28px; background: #fff; border: 1px solid var(--border-color); border-radius: 12px;
    font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; gap: 10px; font-size: 15px; box-shadow: var(--shadow-sm);
}
.tab-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); transform: translateY(-2px); }
.tab-btn.active { background: var(--accent-primary); color: #000; border-color: var(--accent-primary); box-shadow: var(--shadow-md); }

/* --- Sponsorship Grid (Image Cards) --- */
.sponsorship-section { padding: 40px 32px 80px; max-width: 1400px; margin: 0 auto; }
.category-content { display: none; }
.category-content.active { display: block; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.sponsor-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 32px;
}

.image-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden;
    transition: all 0.3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.image-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }

.card-img-wrapper {
    aspect-ratio: 16 / 9; width: 100%; background: #f1f5f9; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* Custom abstract backgrounds for cards without direct photos */
.bg-football { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.bg-cricket { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.bg-basket { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }
.bg-esports { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }

.card-img-wrapper .abstract-icon {
    font-size: 6rem; color: rgba(255,255,255,0.2); position: absolute; right: -10px; bottom: -20px;
}

.card-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-badge {
    display: inline-block; padding: 4px 10px; background: #f1f5f9; color: var(--text-muted);
    border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}
.card-badge.premium { background: #fef9c3; color: #a16207; }

.card-content h3 { font-size: 1.3rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 12px; }
.card-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- Contact Section --- */
.contact-section {
    padding: 100px 32px; background: var(--bg-surface); text-align: center; border-top: 1px solid var(--border-color);
}
.contact-box {
    max-width: 700px; margin: 0 auto;
}
.contact-box h2 { font-size: 2.2rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 16px; }
.contact-box p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.contact-methods { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.contact-btn {
    display: flex; align-items: center; gap: 12px; padding: 16px 36px; border-radius: 12px;
    font-size: 16px; font-weight: 700; text-decoration: none; transition: all 0.3s;
}
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2); }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-email { background: #fff; color: var(--accent-dark); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.btn-email:hover { background: #f1f5f9; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* --- Mobile Sidebar Base Styles --- */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(4px); }
.mobile-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-sidebar { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--bg-main); z-index: 1000; transition: right 0.3s ease; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.mobile-sidebar.active { right: 0; }
.sidebar-header { padding: 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); }
.close-sidebar-btn { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.sidebar-links { padding: 24px 20px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-links a { font-size: 1.1rem; font-weight: 600; color: var(--text-main); text-decoration: none; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 120px 24px 60px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .contact-methods { flex-direction: column; }
    .contact-btn { width: 100%; justify-content: center; }

    /* Mobile 2-column grid for ad cards */
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-img-wrapper {
        aspect-ratio: 16 / 9;
    }
    .card-img-wrapper .abstract-icon {
        font-size: 4rem;
    }
    .card-content {
        padding: 12px;
    }
    .card-content h3 {
        font-size: 1rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    .card-content p {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card-badge {
        font-size: 9px;
        padding: 3px 6px;
        margin-bottom: 8px;
    }
    
    /* Responsive stats section */
    section[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 24px 16px !important;
    }
    section[style*="grid-template-columns"] div {
        padding: 12px !important;
    }
    section[style*="grid-template-columns"] i {
        font-size: 1.8rem !important;
    }
    section[style*="grid-template-columns"] h3 {
        font-size: 1.2rem !important;
    }
}
