/* ============================================
   CINEMATIC VIDEO HERO — IQRO ACADEMY
   ============================================ */

/* 1. Full-screen hero container */
.hero-video-bg {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background-color: #000;
}

/* 2. Video fills background */
.video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 3. Dark overlay for text readability — IMPROVED CONTRAST */
.video-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.58) 45%,
            rgba(0, 0, 0, 0.90) 100%);
    z-index: 2;
}

/* 4. Inner wrapper — flex column: content top/center, stats bottom */
.hero-inner-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    height: 100%;
    padding-top: 100px;
    /* offset for navbar */
    padding-bottom: 30px;
}

/* 5. Center block */
.hero-center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1300px;
    width: 100%;
}

/* Badge */
.hero-badge.dark-badge {
    display: inline-block;
    background: rgba(227, 28, 37, 0.12);
    color: #ff6b6b;
    border: 1px solid rgba(227, 28, 37, 0.35);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* Title */
.hero-main-title.dark-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 4.8vw, 4.5rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: 24px;
}

.neon-red {
    background: linear-gradient(90deg, #ff6b6b, #e31c25);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sub-text / description — IMPROVED READABILITY */
.hero-sub-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    font-weight: 450;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary-elite.neon-btn {
    background: #e31c25;
    color: #fff;
    padding: 16px 38px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(227, 28, 37, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary-elite.neon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(227, 28, 37, 0.55);
    background: #ff2e38;
}

/* Hero ichidagi btn-main — outline o'rniga yorqin glass stil */
.hero-actions .btn-main {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    padding: 16px 38px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    border: 2px solid rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
    letter-spacing: 0.3px;
}

.hero-actions .btn-main:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
    color: #fff !important;
}

.btn-glass-elite {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 16px 38px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glass-elite:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
}

/* 6. Stats strip at the bottom of the video */
.hero-stats-bottom {
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px 40px;
    margin-top: 20px;
}

.hstat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.hstat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.hstat-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hstat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ============================================
   TRANSPARENT NAVBAR OVER VIDEO
   ============================================ */
.navbar:not(.navbar-scrolled) {
    background: rgba(10, 10, 15, 0.35);
    border-color: rgba(227, 28, 37, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: none;
}

.navbar:not(.navbar-scrolled) .nav-item {
    color: rgba(255, 255, 255, 0.85);
}

.navbar:not(.navbar-scrolled) .nav-item:hover {
    color: #ffffff;
}

.navbar:not(.navbar-scrolled) .logo-text {
    color: #ffffff;
}

.navbar:not(.navbar-scrolled) .nav-mobile-toggle .bar {
    background: #ffffff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Hero kontainer — viewport balandligi, yon padding kamroq */
    .hero-video-bg {
        min-height: 100svh;
        height: auto;
    }

    /* Inner wrapper — content tepada navbar tagidan boshlanadi,
       stats pastda; space-between bilan balansda */
    .hero-inner-wrapper {
        padding: 130px 5% 32px;
        justify-content: space-between;
        gap: 28px;
    }

    /* Overlay yanada qora — navbar shaffof bo'lsa ham
       title navbar ostida ko'rinmasin */
    .video-overlay-dark {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.95) 0%,
                rgba(0, 0, 0, 0.55) 30%,
                rgba(0, 0, 0, 0.55) 70%,
                rgba(0, 0, 0, 0.95) 100%);
    }

    /* Markaziy content (badge + title + sub + buttons) */
    .hero-center-content {
        flex: 1 1 auto;
        justify-content: center;
        gap: 0;
    }

    /* Badge */
    .hero-badge.dark-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 14px;
        letter-spacing: 0.5px;
    }

    /* Title — chiroyli, kompakt o'lchamda */
    .hero-main-title.dark-title {
        font-size: clamp(1.75rem, 7.5vw, 2.3rem);
        letter-spacing: -0.8px;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    /* Sub-text */
    .hero-sub-text {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 26px;
        padding: 0 4px;
    }

    /* Tugmalar — vertical stack, max kenglik */
    .hero-actions {
        gap: 10px;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn-primary-elite.neon-btn,
    .hero-actions .btn-main {
        width: 100%;
        max-width: 320px;
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
        justify-content: center;
    }

    /* === STATS — 2×2 grid (oldin 3+1 wrap edi, endi tartibli) === */
    .hero-stats-bottom {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 24px;
        padding: 18px 22px;
        margin-top: 0;
        border-radius: 22px;
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
        max-width: 360px;
        background: rgba(15, 15, 20, 0.78);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hstat-item {
        min-width: auto;
        padding: 6px 4px;
    }

    .hstat-divider {
        display: none;
    }

    .hstat-num {
        font-size: 1.5rem;
        font-weight: 900;
        line-height: 1;
        margin-bottom: 4px;
    }

    .hstat-lbl {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
}

/* Juda kichik telefonlar (360px atrofi) */
@media (max-width: 380px) {
    .hero-inner-wrapper {
        padding: 120px 4% 28px;
        gap: 22px;
    }

    .hero-main-title.dark-title {
        font-size: 1.65rem;
        line-height: 1.22;
    }

    .hero-sub-text {
        font-size: 0.86rem;
        margin-bottom: 22px;
    }

    .hero-stats-bottom {
        gap: 12px 18px;
        padding: 14px 18px;
    }

    .hstat-num {
        font-size: 1.35rem;
    }

    .hstat-lbl {
        font-size: 0.6rem;
    }
}