/* ==========================================================================
   Infinity Classes - Hero Section Stylesheet (Pixel-Perfect Recreation)
   Calibrated for Reference Desktop Viewport 1535 × 747px
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 745px;
    background-color: #FFFFFF;
    overflow: hidden;
    display: flex;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-section {
        height: 745px;
    }
}

.hero-inner-container {
    position: relative;
    width: 100%;
    max-width: 1535px;
    height: 100%;
    min-height: 745px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1023px) {
    .hero-inner-container {
        height: auto;
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 20px;
    }
}

/* Left Content Column (occupies ~55% width) */
.hero-content-col {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
}

/* 1. Small Top Badge (x: 25px, y: 106px) */
.hero-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 29px;
    padding: 5px 15px;
    background-color: #FFF7F2;
    border: 1px solid #FFE4D6;
    border-radius: 30px;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    width: fit-content;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

/* 2. Massive Two-Line Heading */
.hero-main-heading {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.90;
    letter-spacing: -4px;
    text-align: left;
    user-select: none;
}

@media (min-width: 1280px) {
    .hero-main-heading {
        font-size: 130px;
        letter-spacing: -5px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-main-heading {
        font-size: 98px;
        letter-spacing: -3.5px;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .hero-main-heading {
        font-size: 72px;
        letter-spacing: -2.5px;
    }
}

@media (max-width: 639px) {
    .hero-main-heading {
        font-size: 52px;
        letter-spacing: -1.5px;
        line-height: 0.95;
    }
}

.hero-heading-line-1 {
    display: block;
    color: #FF4500;
}

.hero-heading-line-2 {
    display: block;
    color: #000000;
    margin-top: 2px;
}

/* 3. Hindi Description (y: 418px) */
.hero-description-text {
    font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #667085;
    line-height: 1.5;
    max-width: 690px;
    margin-top: 32px;
    margin-bottom: 38px;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-description-text {
        font-size: 15px;
        margin-top: 20px;
        margin-bottom: 24px;
    }
}

/* 4. Statistics Cards Row (y: 516px) */
.hero-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 750px;
}

.hero-stat-card {
    flex: 1 1 calc(25% - 15px);
    min-width: 160px;
    max-width: 174px;
    height: 128px;
    background-color: #FF4500;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12px 14px;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(255, 69, 0, 0.22);
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease;
    cursor: default;
}

@media (max-width: 768px) {
    .hero-stat-card {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
        height: 100px;
    }
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(255, 69, 0, 0.35);
}

.hero-stat-number {
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .hero-stat-number {
        font-size: 28px;
    }
}

.hero-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 6px;
    line-height: 1.2;
}

/* 5. Right-Side Teacher Portrait (Bottom: 0, Height: 720px) */
.hero-portrait-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 720px;
    width: 44%;
    max-width: 680px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

@media (max-width: 1023px) {
    .hero-portrait-wrapper {
        position: relative;
        width: 100%;
        max-width: 440px;
        height: 480px;
        margin: 30px auto 0 auto;
        justify-content: center;
    }
}

.hero-portrait-img {
    height: 100%;
    max-height: 720px;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* 6. Background Subject Typography with Slow Ambient Vertical Scroll (Underneath/Behind Teacher Portrait) */
.hero-bg-subjects {
    position: absolute;
    right: 25px;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    user-select: none;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent 100%);
}

@media (max-width: 1023px) {
    .hero-bg-subjects {
        top: auto;
        bottom: 0;
        height: 480px;
        right: 50%;
        transform: translateX(50%);
        width: 100%;
        max-width: 440px;
        align-items: center;
        opacity: 0.75;
    }

    .hero-bg-subjects-track {
        animation: none !important;
        transform: none !important;
        align-items: center;
    }

    .hero-bg-subject-word {
        font-size: 38px;
        text-align: center;
        letter-spacing: 1px;
    }
}

/* Continuous Infinite Slow Vertical Scroll Track (Bottom to Top) */
.hero-bg-subjects-track {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    animation: heroSubjectScrollUp 28s linear infinite;
    will-change: transform;
}

@keyframes heroSubjectScrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-subjects-track {
        animation: none;
        transform: none;
    }
}

.hero-bg-subject-word {
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    font-size: 74px;
    font-weight: 900;
    color: #F1F2F4;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
    transition: color 0.3s ease;
}

@media (max-width: 1280px) {
    .hero-bg-subject-word {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .hero-bg-subject-word {
        font-size: 42px;
    }
}

/* 7. Entrance Animations (Sequence: 0ms -> 150ms -> 300ms -> 450ms -> 600ms -> 250ms) */
.hero-anim-badge {
    opacity: 0;
    transform: translateY(16px);
    animation: heroFadeInUp 700ms cubic-bezier(0.22, 1, 0.36, 1) 0ms forwards;
}

.hero-anim-line-1 {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeInUp 750ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

.hero-anim-line-2 {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeInUp 750ms cubic-bezier(0.22, 1, 0.36, 1) 300ms forwards;
}

.hero-anim-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeInUp 750ms cubic-bezier(0.22, 1, 0.36, 1) 450ms forwards;
}

.hero-anim-stats {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeInUp 800ms cubic-bezier(0.22, 1, 0.36, 1) 600ms forwards;
}

.hero-anim-portrait {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeInUp 850ms cubic-bezier(0.22, 1, 0.36, 1) 250ms forwards;
}

@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-anim-badge,
    .hero-anim-line-1,
    .hero-anim-line-2,
    .hero-anim-desc,
    .hero-anim-stats,
    .hero-anim-portrait,
    .hero-stat-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
