/* ============================================================
   Hero Section — mero-enotes-theme
   70% text left | 30% animated SVG illustration right
   ============================================================ */

.hero {
    background: linear-gradient(150deg, #080f1e 0%, #0F1F3D 45%, #1a3a6b 100%);
    padding: 80px 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
}

/* Animated dot grid background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 26px 26px;
    animation: dotsMove 25s linear infinite;
    pointer-events: none;
}

@keyframes dotsMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 26px 26px;
    }
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 70fr 30fr;
    gap: 48px;
    align-items: center;
    flex: 1;
    padding-bottom: 64px;
    position: relative;
    z-index: 1;
}

/* ── LEFT TEXT ─────────────────────────────────────── */
.hero-content {
    animation: fadeUp .7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .9);
    padding: 7px 16px;
    border-radius: 40px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: bdot 2s infinite;
}

@keyframes bdot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.8);
    }
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    color: #fff;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    animation: fadeUp .7s .1s ease both;
}

.hero-title em {
    font-style: italic;
    color: #fb923c;
    display: block;
    position: relative;
}

.hero-title em::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #fb923c, transparent);
    border-radius: 2px;
}

.hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
    margin-bottom: 34px;
    max-width: 500px;
    animation: fadeUp .7s .2s ease both;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeUp .7s .3s ease both;
}

.hero-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: #E8311A;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 4px 22px rgba(232, 49, 26, .45);
    transition: transform .15s, box-shadow .15s;
}

.hero-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232, 49, 26, .6);
    color: #fff;
}

.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, .07);
    border: 1.5px solid rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background .15s;
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeUp .7s .4s ease both;
}

.hstat-val {
    font-family: 'Fraunces', serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.hstat-lbl {
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
    margin-top: 3px;
    font-weight: 500;
}

.hstat-div {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .12);
}

/* ── RIGHT ILLUSTRATION ─────────────────────────────── */
.hero-illustration {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp .8s .2s ease both;
}

.illus-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(59, 130, 246, .3) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: .6;
        transform: translate(-50%, -55%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -55%) scale(1.12);
    }
}

.student-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .35));
    position: relative;
    z-index: 2;
}

/* SVG character animations */
.svg-head {
    animation: headBob 3.5s ease-in-out infinite;
    transform-origin: 150px 110px;
}

.svg-cap {
    animation: headBob 3.5s ease-in-out infinite;
    transform-origin: 150px 65px;
}

@keyframes headBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.svg-pupil {
    animation: blink 5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes blink {

    0%,
    44%,
    56%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(.08);
    }
}

.svg-book {
    animation: bookGlow 4s ease-in-out infinite;
}

@keyframes bookGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .88;
    }
}

/* Floating stars */
.star {
    animation: starFloat 3s ease-in-out infinite;
}

.s1 {
    animation-delay: 0s;
}

.s2 {
    animation-delay: .7s;
}

.s3 {
    animation-delay: 1.4s;
}

.s4 {
    animation-delay: 2.1s;
}

@keyframes starFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
        opacity: .7;
    }

    50% {
        transform: translateY(-9px) rotate(20deg);
        opacity: 1;
    }
}

/* Floating math symbols */
.sym {
    animation: symDrift 5s ease-in-out infinite;
}

.sy1 {
    animation-delay: 0s;
}

.sy2 {
    animation-delay: 2s;
}

.sy3 {
    animation-delay: 3.5s;
}

@keyframes symDrift {

    0%,
    100% {
        transform: translateY(0);
        opacity: .18;
    }

    50% {
        transform: translateY(-12px);
        opacity: .38;
    }
}

/* Floating badges */
.f-badge {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 20px;
    white-space: nowrap;
}

.f-badge-1 {
    top: 5%;
    right: -5%;
    animation: floatY 3s ease-in-out infinite;
}

.f-badge-2 {
    bottom: 22%;
    left: -8%;
    animation: floatY 3s ease-in-out .5s infinite;
}

.f-badge-3 {
    top: 42%;
    left: -12%;
    animation: floatY 3s ease-in-out 1s infinite;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* Subject pills */
.illus-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px;
    position: relative;
    z-index: 2;
}

.illus-pill {
    padding: 5px 13px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .8);
    animation: floatY 3.2s ease-in-out infinite;
}

.illus-pill:nth-child(2) {
    animation-delay: .6s;
}

.illus-pill:nth-child(3) {
    animation-delay: 1.2s;
}

/* Bottom wave */
.hero-wave {
    display: block;
    width: 100%;
    height: 72px;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        padding: 56px 24px 0;
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .hero-title em {
        display: inline;
    }

    .hero-sub {
        margin: 0 auto 28px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-illustration {
        order: -1;
        max-width: 200px;
        margin: 0 auto;
    }

    .f-badge {
        display: none;
    }

    .student-svg {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 16px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-btn-main,
    .hero-btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .illus-pills {
        display: none;
    }

    .student-svg {
        max-width: 160px;
    }
}