/* =========================================
   Google Fonts (Noto Sans Bengali)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   CSS Variables (Premium Gaming Theme)
========================================= */
:root {
    --primary-color: #ff3333; /* গেমিং লাল */
    --primary-glow: rgba(255, 51, 51, 0.4);
    --secondary-color: #f1c40f; /* গোল্ডেন/হলুদ */
    --bg-dark: #0f1015; /* খুব গাঢ় ব্যাকগ্রাউন্ড */
    --bg-light: #1c1d24; /* হালকা গাঢ় কার্ড ব্যাকগ্রাউন্ড */
    --text-light: #ffffff;
    --text-muted: #a4b0be;
    --border-color: rgba(255, 255, 255, 0.08);
}

/* =========================================
   Global Reset & Typography
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Bengali', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Buttons Customization
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff3333, #d90000);
    color: #fff;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: linear-gradient(135deg, #ff4757, #e00000);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

/* =========================================
   Navbar (Header)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 16, 21, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #a4b0be);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(255, 51, 51, 0.15), var(--bg-dark) 40%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1.2;
}

.title-line {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.title-line.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.hero-description {
    margin: 25px 0 35px;
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   Hero Image & Phone Mockup (With Floating Icons)
========================================= */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #2f3542; /* মোবাইলের বর্ডার */
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px var(--primary-glow);
    z-index: 2;
}

/* মোবাইলের উপরের নচ (Notch) ডিজাইন */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #2f3542;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0a0a0a; /* স্ক্রিনের কালার */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-screenshot {
    width: 100%;
    height: auto;
    object-fit: contain; /* লোগোটি স্ক্রিনের ভেতরে সুন্দরভাবে ফিট হবে */
}

/* ফ্লোটিং আইকন অ্যানিমেশন */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    animation: floatIcon 3s ease-in-out infinite;
}

/* আইকনগুলোর পজিশন */
.icon-1 { top: 15%; left: 0px; animation-delay: 0s; }
.icon-2 { top: 35%; right: 0px; animation-delay: 0.5s; }
.icon-3 { bottom: 35%; left: -20px; animation-delay: 1s; }
.icon-4 { bottom: 15%; right: 10px; animation-delay: 1.5s; }

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   Section Headers
========================================= */
section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* =========================================
   Features Section
========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 51, 51, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* =========================================
   Tournaments Section
========================================= */
.tournaments {
    background: #14151c;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.tournament-card {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
}

.tournament-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.tournament-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    padding: 6px 40px;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.tournament-badge.upcoming { background: var(--secondary-color); color: #000; }
.tournament-badge.special { background: #9b59b6; }

.tournament-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tournament-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.tournament-prize {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.tournament-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.tournament-join {
    width: 100%;
}

/* =========================================
   Download Section
========================================= */
.download {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border-color);
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.download-text {
    flex: 1.2;
}

.app-logo-large {
    height: 90px;
    margin-bottom: 25px;
    border-radius: 20px;
}

.download-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.download-description {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 1.15rem;
}

.download-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.download-feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-info small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ডাউনলোড সেকশনের ইমেজের সাইজ ফিক্স */
.download-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-preview {
    max-width: 380px; 
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.5));
}

/* =========================================
   Footer
========================================= */
.footer {
    background: #08080b;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-logo-img {
    height: 40px;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.footer-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Responsive Design (মোবাইল ও ট্যাবলেট ভিউ)
========================================= */

@media (max-width: 991px) {
    .hero-content, .download-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-description, .download-description {
        margin: 25px auto;
    }
    .hero-buttons, .hero-stats {
        justify-content: center;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .download-features {
        max-width: 500px;
        margin: 0 auto 40px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    
    .title-line {
        font-size: 2.3rem;
    }
    .section-title, .download-title {
        font-size: 2rem;
    }

    /* মোবাইলের ফ্রেম সাইজ ঠিক করা */
    .phone-mockup {
        width: 240px;
        height: 500px;
        border-radius: 35px;
    }
    
    .app-preview {
        max-width: 250px;
        margin-top: 20px;
    }
    
    .app-logo-large {
        height: 70px;
        margin: 0 auto 20px;
    }
    
    .download-features {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-description {
        margin: 20px auto;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
}