/*==========================================================
Nova EduSpace
HOME.CSS
PART 1A
HEADER • LOGO • NAVIGATION
Production Version
==========================================================*/

/*==========================================================
HEADER
==========================================================*/

/* ==========================================================
   HEADER — HERO ONLY
========================================================== */

.site-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

/* Hide header after leaving Hero */
.site-header.header-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    pointer-events: none;
}

/*==========================================================

.site-header.scrolled{

    height:74px;

    background:rgba(4,10,22,.92);

    border-bottom:1px solid rgba(34,215,255,.08);

    box-shadow:
        0 18px 45px rgba(0,0,0,.35);
}

/*==========================================================
CONTAINER
==========================================================*/

.site-header .container-custom{

    width:100%;
    height:100%;
}

.header-inner{

    width:100%;
    height:100%;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:48px;
}

/*==========================================================
LOGO
==========================================================*/

.site-logo{

    display:inline-flex;

    align-items:center;

    gap:16px;

    flex-shrink:0;

    text-decoration:none;

    user-select:none;
}

.site-logo img{

    display:block;

    width:auto;

    height:58px;

    transition:
        transform .35s ease,
        filter .35s ease;
}

.site-logo:hover img{

    transform:scale(1.04);

    filter:
        drop-shadow(0 0 14px rgba(34,215,255,.35));
}

.site-logo span{

    color:#ffffff;

    font-size:1.15rem;

    font-weight:700;

    letter-spacing:.02em;

    white-space:nowrap;

    transition:color .3s ease;
}

.site-logo:hover span{

    color:var(--primary);
}

/*==========================================================
NAVIGATION
==========================================================*/

.nav-menu{

    margin-left:auto;

    display:flex;

    align-items:center;
}

.nav-menu ul{

    display:flex;

    align-items:center;

    gap:34px;

    margin:0;

    padding:0;

    list-style:none;
}

.nav-menu li{

    position:relative;

    display:flex;

    align-items:center;
}

.nav-menu a{

    position:relative;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    height:86px;

    color:#ffffff;

    font-size:15px;

    font-weight:600;

    letter-spacing:.02em;

    text-decoration:none;

    transition:
        color .3s ease,
        opacity .3s ease;
}

.site-header.scrolled .nav-menu a{

    height:74px;
}

.nav-menu a:hover,
.nav-menu a.active{

    color:var(--primary);
}

/*==========================================================
PREMIUM UNDERLINE
==========================================================*/

.nav-menu a::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:20px;

    width:0;

    height:2px;

    transform:translateX(-50%);

    border-radius:999px;

    background:linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );

    transition:
        width .35s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after{

    width:100%;
}
/*==========================================================
HOME.CSS
PART 1B
DROPDOWN • HEADER ACTIONS • MOBILE TOGGLE
Production Version
==========================================================*/

/*==========================================================
DROPDOWN
==========================================================*/

.has-dropdown{
    position:relative;
}

.dropdown-toggle{
    display:inline-flex !important;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

.dropdown-toggle i{
    font-size:12px;
    transition:transform .35s ease;
}

.has-dropdown:hover .dropdown-toggle i{
    transform:rotate(180deg);
}

/*==========================================================
DROPDOWN MENU
==========================================================*/

.dropdown-menu{

    position:absolute;

    top:calc(100% - 8px);
    left:50%;

    transform:
        translateX(-50%)
        translateY(20px);

    min-width:270px;

    padding:14px 0;

    background:
        rgba(8,18,35,.94);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    box-shadow:
        0 25px 70px rgba(0,0,0,.45);

    opacity:0;
    visibility:hidden;

    pointer-events:none;

    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;

    z-index:1200;
}

.has-dropdown:hover>.dropdown-menu{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

    transform:
        translateX(-50%)
        translateY(12px);
}

/*==========================================================
DROPDOWN ITEMS
==========================================================*/

.dropdown-menu li{

    width:100%;

    display:block;
}

.dropdown-menu a{

    display:flex;

    align-items:center;

    width:100%;

    height:auto;

    padding:14px 22px;

    color:#ffffff;

    font-size:.95rem;

    font-weight:500;

    transition:
        background .30s ease,
        color .30s ease,
        padding-left .30s ease;
}

.dropdown-menu a::after{
    display:none;
}

.dropdown-menu a:hover{

    color:var(--primary);

    background:
        rgba(34,215,255,.08);

    padding-left:28px;
}

/*==========================================================
HEADER ACTIONS
==========================================================*/

.header-actions{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:18px;

    flex-shrink:0;
}

.header-actions .btn{

    min-width:170px;

    height:50px;

    display:inline-flex;

    align-items:center;

    justify-content:center;
}

/*==========================================================
MOBILE TOGGLE
==========================================================*/

.mobile-toggle{

    display:none;

    width:48px;
    height:48px;

    border:none;

    border-radius:14px;

    background:
        rgba(255,255,255,.08);

    backdrop-filter:blur(12px);

    cursor:pointer;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    gap:5px;

    transition:
        background .30s ease,
        transform .30s ease;
}

.mobile-toggle:hover{

    background:
        rgba(34,215,255,.12);
}

.mobile-toggle span{

    width:22px;

    height:2px;

    border-radius:10px;

    background:#ffffff;

    transition:
        transform .30s ease,
        opacity .30s ease;
}

.mobile-toggle.active span:nth-child(1){

    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-toggle.active span:nth-child(2){

    opacity:0;
}

.mobile-toggle.active span:nth-child(3){

    transform:
        translateY(-7px)
        rotate(-45deg);
}

/*==========================================================
HOME.CSS
PART 1C
MOBILE MENU • OVERLAY • RESPONSIVE HEADER
Production Version
==========================================================*/

/*==========================================================
MOBILE OVERLAY
==========================================================*/

.mobile-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:
        opacity .35s ease,
        visibility .35s ease;

    z-index:998;
}

.mobile-overlay.active{

    opacity:1;

    visibility:visible;

    pointer-events:auto;
}

/*==========================================================
MOBILE MENU
==========================================================*/

.mobile-menu{

    position:fixed;

    top:0;
    right:-380px;

    width:340px;
    max-width:90vw;

    height:100vh;

    padding:110px 32px 40px;

    background:
        linear-gradient(
            180deg,
            rgba(6,14,28,.98),
            rgba(8,18,35,.98)
        );

    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);

    border-left:1px solid rgba(255,255,255,.08);

    overflow-y:auto;

    transition:right .40s cubic-bezier(.22,.61,.36,1);

    z-index:999;
}

.mobile-menu.active{

    right:0;
}

/*==========================================================
MOBILE NAVIGATION
==========================================================*/

.mobile-menu ul{

    margin:0;
    padding:0;

    list-style:none;

    display:flex;
    flex-direction:column;
    gap:6px;
}

.mobile-menu li{

    margin:0;
}

.mobile-menu a{

    display:flex;

    align-items:center;

    width:100%;

    padding:16px 18px;

    color:#ffffff;

    text-decoration:none;

    font-size:1rem;

    font-weight:600;

    border-radius:14px;

    transition:
        background .30s ease,
        color .30s ease,
        transform .30s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active{

    color:var(--primary);

    background:rgba(34,215,255,.08);

    transform:translateX(8px);
}

/*==========================================================
CUSTOM SCROLLBAR
==========================================================*/

.mobile-menu::-webkit-scrollbar{

    width:6px;
}

.mobile-menu::-webkit-scrollbar-thumb{

    background:rgba(34,215,255,.35);

    border-radius:999px;
}

.mobile-menu::-webkit-scrollbar-track{

    background:transparent;
}

/*==========================================================
HEADER RESPONSIVE
==========================================================*/

@media (max-width:1200px){

    .nav-menu ul{

        gap:26px;
    }

    .header-actions .btn{

        min-width:150px;
    }
}

@media (max-width:992px){

    .nav-menu{

        display:none;
    }

    .header-actions .btn{

        display:none;
    }

    .mobile-toggle{

        display:flex;
    }

    .site-logo img{

        height:52px;
    }

    .site-logo span{

        font-size:1.05rem;
    }
}

@media (max-width:768px){

    .site-header{

        height:78px;
    }

    .site-header.scrolled{

        height:70px;
    }

    .site-logo img{

        height:46px;
    }

    .site-logo span{

        font-size:1rem;
    }

    .header-inner{

        gap:20px;
    }

    .mobile-menu{

        width:100%;
        max-width:100%;
        right:-100%;
    }

    .mobile-menu.active{

        right:0;
    }
}

@media (max-width:480px){

    .site-header{

        height:72px;
    }

    .site-header.scrolled{

        height:66px;
    }

    .site-logo img{

        height:42px;
    }

    .site-logo span{

        display:none;
    }

    .mobile-menu{

        padding:95px 24px 30px;
    }

    .mobile-menu a{

        font-size:.95rem;
        padding:15px 16px;
    }
}

/*==========================================================
/* ==========================================================
   NOVA EDUSPACE
   HERO SECTION
   HOME.CSS
   ==========================================================

   HERO ONLY
   ----------------------------------------------------------
   - Premium cinematic space composition
   - Responsive
   - Image fallback support
   - GPU-friendly transforms
   - No layout shift
   - Animation-ready for hero.js
   ========================================================== */


/* ==========================================================
   HERO ROOT
   ========================================================== */

.hero {
    --hero-bg: #020713;
    --hero-blue: #22d7ff;
    --hero-cyan: #00f0ff;
    --hero-white: #ffffff;

    position: relative;

    width: 100%;
    height: 100svh;
    min-height: 100svh;
  
    overflow: hidden;
    isolation: isolate; 
    background:
        radial-gradient(
            circle at 82% 48%,
            rgba(0, 110, 180, .12),
            transparent 34%
        ),
        radial-gradient(
            circle at 25% 45%,
            rgba(0, 40, 100, .16),
            transparent 42%
        ),
        #020713;

    color: var(--hero-white);
}


/* ==========================================================
   HERO BACKGROUND
   ========================================================== */

.hero-background {
    position: absolute;

    inset: 0;

    z-index: -10;

    overflow: hidden;

    pointer-events: none;
}


/* ----------------------------------------------------------
   BACKGROUND IMAGE
   ---------------------------------------------------------- */

.hero-space-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-image:
        url("../assets/images/hero/hero-space-bg.webp");

    background-size: cover;
    background-position: center center;

    background-repeat: no-repeat;

    opacity: .88;

    transform: scale(1.03);

    will-change: transform;

    filter:
        saturate(.95)
        contrast(1.04)
        brightness(.72);
}


/* ==========================================================
   BACKGROUND STARS
   ========================================================== */

.hero-stars {
    position: absolute;

    inset: -10%;

    pointer-events: none;

    background-repeat: repeat;

    will-change: transform;

    opacity: .7;
}


/* Far stars */

.hero-stars--far {
    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.75) 0 1px,
            transparent 1.5px
        );

    background-size: 145px 145px;

    opacity: .22;
}


/* Mid stars */

.hero-stars--mid {
    background-image:
        radial-gradient(
            circle,
            rgba(180,235,255,.8) 0 1px,
            transparent 1.7px
        );

    background-size: 220px 220px;

    background-position:
        40px 70px;

    opacity: .18;
}


/* Near stars */

.hero-stars--near {
    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.95) 0 1.2px,
            transparent 2px
        );

    background-size: 310px 310px;

    background-position:
        120px 40px;

    opacity: .13;
}


/* ==========================================================
   NEBULA LIGHT
   ========================================================== */

.hero-nebula {
    position: absolute;

    width: 80vw;
    height: 70vw;

    max-width: 1100px;
    max-height: 900px;

    right: -15%;
    top: 50%;

    transform:
        translateY(-50%)
        rotate(-15deg);

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 170, 255, .12),
            rgba(0, 90, 180, .055) 30%,
            transparent 70%
        );

    filter: blur(55px);

    opacity: .8;
}


/* ==========================================================
   VIGNETTE
   ========================================================== */

.hero-vignette {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2,7,19,.88) 0%,
            rgba(2,7,19,.54) 32%,
            rgba(2,7,19,.12) 62%,
            rgba(2,7,19,.25) 100%
        );

    pointer-events: none;
}


/* ==========================================================
   HERO CONTAINER
   ========================================================== */

.hero-container {
    position: relative;

    z-index: 10;

    width: min(
        1440px,
        calc(100% - 100px)
    );

    height: 100%;

    min-height: inherit;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* ==========================================================
   HERO CONTENT
   ========================================================== */

.hero-content {
    position: relative;

    z-index: 50;

    width: min(590px, 46vw);

    padding-top: 40px;

    transform: translateZ(0);
}

/* ==========================================================
   BADGE FLOAT
   ========================================================== */

@keyframes hero-badge-float {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(0);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(-6px);
    }
}

/* Badge icon */

.hero-badge-icon {
    color: var(--hero-cyan);

    font-size: 14px;

    line-height: 1;

    text-shadow:
        0 0 12px
        rgba(0,240,255,.8);
}


/* ==========================================================
   HERO TITLE
   ========================================================== */

.hero-title {
    margin: 28px 0 0;

    font-size:
        clamp(
            3.7rem,
            5.7vw,
            6.5rem
        );

    line-height: .91;

    letter-spacing: -.055em;

    font-weight: 700;

    max-width: 680px;
}


/* Individual title lines */

.hero-title-line {
    will-change: transform, opacity;
}

/* First line: Bring the + Universe */
.hero-title-line:nth-child(1),
.hero-title-line:nth-child(2) {
    display: inline;
}

/* Second line */
.hero-title-line:nth-child(3) {
    display: block;
}

/* Keep each intended line together */
.hero-title-line:nth-child(1),
.hero-title-line:nth-child(2) {
    white-space: nowrap;
}

.hero-title-line:nth-child(3) {
    white-space: nowrap;
}


/* White lines */

.hero-title-line--white {
    color: #ffffff;

    text-shadow:
        0 2px 30px
        rgba(0,0,0,.25);
}


/* Blue word */

.hero-title-line--blue {
    color: var(--hero-blue);

    text-shadow:
        0 0 16px
        rgba(34,215,255,.18),

        0 0 45px
        rgba(0,180,255,.12);
}


/* ==========================================================
   TITLE DECORATION
   ========================================================== */

.hero-title-line-decoration {
    width: 115px;

    height: 2px;

    margin-top: 24px;

    overflow: hidden;

    opacity: .85;
}


.hero-title-line-decoration span {
    display: block;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--hero-cyan),
            transparent
        );

    transform-origin: left center;
}


/* ==========================================================
   DESCRIPTION
   ========================================================== */

.hero-description {
    max-width: 520px;

    margin: 26px 0 0;

    color:
        rgba(226,238,248,.72);

    font-size:
        clamp(
            .98rem,
            1.1vw,
            1.08rem
        );

    line-height: 1.75;

    font-weight: 400;

    letter-spacing: .005em;
}


/* ==========================================================
   HERO ACTIONS
   ========================================================== */

.hero-actions {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 34px;

    flex-wrap: wrap;
}


/* ==========================================================
   HERO BUTTON BASE
   ========================================================== */

.hero-button {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    min-height: 54px;

    padding:
        0 22px;

    border-radius: 999px;

    text-decoration: none;

    overflow: hidden;

    isolation: isolate;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: .01em;

    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;

    will-change: transform;
}


/* ==========================================================
   PRIMARY BUTTON
   ========================================================== */

.hero-button--primary {
    color: #e9fbff;

    background:
        linear-gradient(
            135deg,
            rgba(34, 215, 255, .16),
            rgba(0, 150, 220, .10)
        );

    border:
        1px solid
        rgba(34, 215, 255, .42);

    box-shadow:
        0 8px 30px
        rgba(0, 180, 255, .10),

        inset 0 1px 0
        rgba(255,255,255,.10),

        inset 0 0 18px
        rgba(34,215,255,.05);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}

.hero-button--primary:hover {
    transform:
        translateY(-3px);

    color: #ffffff;

    border-color:
        rgba(34, 215, 255, .72);

    background:
        linear-gradient(
            135deg,
            rgba(34, 215, 255, .28),
            rgba(0, 170, 235, .16)
        );

    box-shadow:
        0 14px 40px
        rgba(0, 190, 255, .20),

        0 0 28px
        rgba(0, 220, 255, .10),

        inset 0 1px 0
        rgba(255,255,255,.16);
}


/* ==========================================================
   SECONDARY BUTTON
   ========================================================== */

.hero-button--secondary {
    color: #ffffff;

    background:
        rgba(255,255,255,.045);

    border:
        1px solid
        rgba(255,255,255,.15);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


.hero-button--secondary:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(34,215,255,.38);

    background:
        rgba(34,215,255,.075);

    box-shadow:
        0 12px 35px
        rgba(0,150,220,.12);
}


/* ==========================================================
   BUTTON ARROW
   ========================================================== */

.hero-button-arrow {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    transition:
        transform .35s
        cubic-bezier(.22,1,.36,1);
}


.hero-button:hover
.hero-button-arrow {
    transform:
        translateX(4px);
}


/* ==========================================================
   SOLAR SYSTEM — CROPPED ORBITAL COMPOSITION
   ========================================================== */

.hero-solar-system {
    position: absolute;

    width: 1100px;
    height: 900px;

    /*
     * Solar-system center is positioned
     * beyond the right side of the Hero.
     */
    left: 50%;
    right: auto;

    top: 50%;

    transform:
        translate(-50%, -50%);

    z-index: 20;

    pointer-events: none;

    overflow: visible;

    perspective: 1400px;

    transform-style: preserve-3d;
}
/* ==========================================================
   SUN — RIGHT / CENTER
   ========================================================== */

.hero-sun {
    position: absolute;

    left: 50%;
    top: 47%;

    width: 450px;
    height: 450px;

    transform:
        translate(-50%, -50%);

    z-index: 25;

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: none;

    transform-style: preserve-3d;

    overflow: visible;
}


/* ==========================================================
   ORBIT LAYER
   ========================================================== */

.hero-orbits {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 15;

    pointer-events: none;

    transform-style: preserve-3d;
}


/* ==========================================================
   ORBIT
   ========================================================== */

.hero-orbit {
    position: absolute;

    left: 50%;
    top: 50%;

    border-radius: 50%;

    border:
        1px solid
        rgba(65, 205, 255, .18);

    transform:
        translate(-50%, -50%)
        rotate(0deg);

    transform-origin:
        center center;

    box-shadow:
        0 0 20px
        rgba(0, 180, 255, .035);

    pointer-events: none;

    will-change: transform;
}


/* ==========================================================
   SIX REAL ORBIT SIZES
   ========================================================== */

.hero-orbit--1 {
    width: 72%;
    height: 48%;
}

.hero-orbit--2 {
    width: 88%;
    height: 58%;
}

.hero-orbit--3 {
    width: 104%;
    height: 68%;
}

.hero-orbit--4 {
    width: 120%;
    height: 78%;
}

.hero-orbit--5 {
    width: 136%;
    height: 88%;
}

.hero-orbit--6 {
    width: 152%;
    height: 98%;
}

.hero-orbit--7 {
    width: 168%;
    height: 108%;
}

.hero-orbit--8 {
    width: 184%;
    height: 118%;
}

/* ==========================================================
   PLANET POOL
   ========================================================== */

.hero-planet-pool {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 30;

    pointer-events: none;

    transform-style: preserve-3d;

    overflow: visible;
}


/* ==========================================================
   PLANET
   ========================================================== */

.hero-planet {
    --planet-size: 92px;

    position: absolute;

    left: 50%;
    top: 50%;

    width: var(--planet-size);
    height: var(--planet-size);

    margin: 0;

    opacity: 0;

    pointer-events: none;

    transform-origin:
        center center;

    transform-style: preserve-3d;

    will-change:
        transform,
        opacity;

    /*
     * Important:
     * The planet itself is NOT rotated independently
     * around the Hero. JS places it directly on its orbit.
     */
}


/* ==========================================================
   PLANET IMAGE
   ========================================================== */

.hero-planet-image {
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    z-index: 2;

    user-select: none;

    -webkit-user-drag: none;

    will-change:
        transform;
}


/* ==========================================================
   PLANET GLOW
   ========================================================== */

.hero-planet-glow {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 150%;
    height: 150%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(80,215,255,.24) 0%,
            rgba(34,215,255,.12) 28%,
            rgba(34,215,255,.04) 52%,
            transparent 72%
        );

    filter: blur(14px);

    opacity: .55;

    z-index: 1;

    pointer-events: none;

    will-change:
        transform,
        opacity;
}

/* ==========================================================
   SOLAR LIGHT
   ========================================================== */

.hero-solar-light {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 80%;
    height: 80%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(255,150,45,.055),
            transparent 65%
        );

    filter:
        blur(45px);

    z-index: 1;

    pointer-events: none;
}


/* ==========================================================
   DEPTH PARTICLES
   ========================================================== */

.hero-depth-particles {
    position: absolute;

    inset: 0;

    z-index: 10;

    pointer-events: none;
}


.hero-depth-particles span {
    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background:
        rgba(190,240,255,.8);

    box-shadow:
        0 0 10px
        rgba(80,220,255,.7);

    opacity: .45;

    will-change:
        transform,
        opacity;
}


/* Individual particle positions */

.hero-depth-particles span:nth-child(1) {
    left: 20%;
    top: 18%;
}

.hero-depth-particles span:nth-child(2) {
    left: 35%;
    top: 72%;
}

.hero-depth-particles span:nth-child(3) {
    left: 62%;
    top: 14%;
}

.hero-depth-particles span:nth-child(4) {
    left: 78%;
    top: 28%;
}

.hero-depth-particles span:nth-child(5) {
    left: 84%;
    top: 66%;
}

.hero-depth-particles span:nth-child(6) {
    left: 44%;
    top: 38%;
}

.hero-depth-particles span:nth-child(7) {
    left: 72%;
    top: 82%;
}

.hero-depth-particles span:nth-child(8) {
    left: 12%;
    top: 60%;
}

.hero-depth-particles span:nth-child(9) {
    left: 54%;
    top: 88%;
}

.hero-depth-particles span:nth-child(10) {
    left: 91%;
    top: 45%;
}

/* ==========================================================
   MOVING STAR FIELD
   ========================================================== */

.hero-motion-stars {
    position: absolute;
    inset: 0;

    z-index: 4;

    overflow: hidden;

    pointer-events: none;
}


.hero-motion-star {
    position: absolute;

    width: 2px;
    height: 2px;

    border-radius: 50%;

    background: rgba(220, 248, 255, .9);

    box-shadow:
        0 0 8px rgba(80, 220, 255, .75);

    opacity: .45;

    will-change:
        transform,
        opacity;

    animation:
        hero-star-drift
        var(--star-duration, 18s)
        ease-in-out
        var(--star-delay, 0s)
        infinite alternate;
}


/* Different star sizes */

.hero-motion-star--small {
    width: 1px;
    height: 1px;
}

.hero-motion-star--medium {
    width: 2px;
    height: 2px;
}

.hero-motion-star--large {
    width: 3px;
    height: 3px;

    box-shadow:
        0 0 12px rgba(80, 220, 255, .85);
}


/* ==========================================================
   STAR DRIFT
   ========================================================== */

@keyframes hero-star-drift {

    0% {
        transform:
            translate3d(
                var(--star-x1, 0px),
                var(--star-y1, 0px),
                0
            )
            scale(.85);

        opacity: .25;
    }

    50% {
        opacity: .65;
    }

    100% {
        transform:
            translate3d(
                var(--star-x2, 20px),
                var(--star-y2, -30px),
                0
            )
            scale(1.15);

        opacity: .8;
    }
}


/* ==========================================================
   SHOOTING STARS
   BOTTOM-LEFT → TOP-RIGHT
   Direction: /
   ========================================================== */

.hero-shooting-stars {
    position: absolute;

    inset: 0;

    z-index: 6;

    overflow: hidden;

    pointer-events: none;
}


.hero-shooting-star {
    position: absolute;

    left: var(--shoot-start-x);
    top: var(--shoot-start-y);

    width: 120px;
    height: 2px;

    margin-left: -60px;

    border-radius: 999px;

    opacity: 0;

    pointer-events: none;

    transform-origin: center center;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,.04) 12%,
            rgba(180,235,255,.50) 62%,
            rgba(255,255,255,.98) 100%
        );

    box-shadow:
        0 0 8px
        rgba(120,220,255,.42);

    will-change:
        transform,
        opacity;

    animation:
        diagonal-shooting-star
        var(--shoot-duration, 6.5s)
        linear
        var(--shoot-delay, 0s)
        infinite;
}


/* Bright head */

.hero-shooting-star::after {
    content: "";

    position: absolute;

    right: 0;
    top: 50%;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    transform:
        translateY(-50%);

    background: #ffffff;

    box-shadow:
        0 0 8px rgba(255,255,255,.95),
        0 0 18px rgba(100,220,255,.75);
}


/* ==========================================================
   BOTTOM-LEFT → TOP-RIGHT
   "/" DIRECTION
   ========================================================== */

@keyframes diagonal-shooting-star {

    0% {

        transform:
            translate3d(
                -80px,
                90px,
                0
            )
            rotate(-45deg)
            scaleX(.55);

        opacity: 0;
    }

    12% {
        opacity: .70;
    }

    25% {
        opacity: 1;
    }

    70% {
        opacity: .75;
    }

    100% {

        transform:
            translate3d(
                900px,
                -900px,
                0
            )
            rotate(-45deg)
            scaleX(1);

        opacity: 0;
    }
}
/* ==========================================================
   BOTTOM HERO FADE
   ========================================================== */

.hero-bottom-fade {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 150px;

    z-index: 100;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(2,7,19,.65)
        );
}


/* ==========================================================
   IMAGE LOADING SAFETY
   ========================================================== */

.hero img {
    max-width: 100%;
}


/* Prevent broken-image icon from destroying composition */

.hero img:not([src]),
.hero img[src=""] {
    visibility: hidden;
}


/* ==========================================================
   RESPONSIVE — LARGE DESKTOP
   ========================================================== */

@media (max-width: 1500px) {

    .hero-container {
        width:
            min(
                1360px,
                calc(100% - 60px)
            );
    }

    .hero-solar-system {
        width: 850px;
        height: 850px;

        left: 107%;
        right: auto;
    }

    .hero-sun {
        width: 450px;
        height: 450px;
    }

    .hero-title {
        font-size:
            clamp(
                3.5rem,
                5.4vw,
                5.7rem
            );
    }
}


/* ==========================================================
   RESPONSIVE — TABLET / SMALL DESKTOP
   ========================================================== */

@media (max-width: 1200px) {

    .hero-container {
        width:
            calc(100% - 50px);
    }

    .hero-content {
        width: 48%;
    }

    .hero-solar-system {
        width: 720px;
        height: 720px;

        left: 50%;
    right: auto;
    }

    .hero-sun {
        width: 450px;
        height: 450px;
    }

    .hero-planet {
        --planet-size: 76px;
    }

    .hero-title {
        font-size:
            clamp(
                3.1rem,
                5.5vw,
                4.8rem
            );
    }

    .hero-description {
        font-size: .96rem;
    }
}


/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 992px) {

    .hero {
        min-height: 900px;

        height: auto;

        padding-top: 110px;
    }

    .hero-container {
        min-height: 790px;

        height: auto;

        display: block;
    }

    .hero-content {
        width: min(650px, 100%);

        padding-top: 55px;

        margin: 0 auto;

        text-align: center;
    }

    .hero-badge {
        margin:
            0 auto;
    }

    .hero-title {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-solar-system {
        position: absolute;

        width: 720px;
        height: 720px;

        top: 67%;

        left: 50%;

        right: auto;

        transform:
            translate(-50%, -50%);

        opacity: .88;
    }

    .hero-sun {
        width: 450px;
        height: 450px;
    }

    .hero-vignette {
        background:
            linear-gradient(
                180deg,
                rgba(2,7,19,.75) 0%,
                rgba(2,7,19,.28) 45%,
                rgba(2,7,19,.5) 100%
            );
    }
}


/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .hero {
        min-height: 820px;

        padding-top: 90px;
    }

    .hero-container {
        width:
            calc(100% - 32px);

        min-height: 730px;
    }

    .hero-content {
        padding-top: 35px;
    }

    .hero-badge {
        font-size: 11px;

        padding:
            7px 13px;
    }

    .hero-title {
        margin-top: 22px;

        font-size:
            clamp(
                3rem,
                12vw,
                4rem
            );

        line-height: .94;

        letter-spacing: -.05em;
    }

    .hero-title-line-decoration {
        margin:
            20px auto 0;
    }

    .hero-description {
        margin-top: 20px;

        font-size: .9rem;

        line-height: 1.65;
    }

    .hero-actions {
        margin-top: 25px;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;
    }

    .hero-button {
        width: 100%;
    }

    .hero-solar-system {
        width: 600px;
        height: 600px;

        top: 72%;
    }

    .hero-sun {
        width: 300px;
        height: 300px;
    }

    .hero-planet {
        --planet-size: 62px;
    }

    .hero-orbit--1 {
        width: 30%;
    }

    .hero-orbit--2 {
        width: 44%;
    }

    .hero-orbit--3 {
        width: 58%;
    }

    .hero-orbit--4 {
        width: 72%;
    }

    .hero-orbit--5 {
        width: 86%;
    }

    .hero-orbit--6 {
        width: 100%;
    }

    .hero-bottom-fade {
        height: 110px;
    }
}


/* ==========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .hero {
        min-height: 790px;
    }

    .hero-container {
        width:
            calc(100% - 24px);
    }

    .hero-title {
        font-size:
            clamp(
                2.65rem,
                13vw,
                3.35rem
            );
    }

    .hero-description {
        padding:
            0 8px;
    }

    .hero-solar-system {
        width: 500px;
        height: 500px;

        top: 73%;
    }

    .hero-sun {
        width: 200px;
        height: 200px;
    }

    .hero-planet {
        --planet-size: 54px;
    }

    .hero-orbit {
        border-color:
            rgba(65,205,255,.09);
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-space-image,
    .hero-planet,
    .hero-planet-image,
    .hero-sun-image,
    .hero-depth-particles span {
        animation: none !important;

        transition: none !important;
    }
}
/* ==========================================================
   HERO BRAND BADGE
   ========================================================== */

.hero-brand-badge {
    position: absolute;
    left: 50%;
    top: 1%;

    width: min(430px, 32vw);

    transform: translateX(-50%);

    z-index: 115;
    pointer-events: none;

    filter:
        drop-shadow(
            0 0 12px
            rgba(34,215,255,.28)
        )
        drop-shadow(
            0 0 30px
            rgba(0,180,255,.16)
        );

    animation:
        hero-badge-float
        6s
        ease-in-out
        infinite;
}

.hero-brand-badge-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

@keyframes hero-badge-float {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(0);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(-6px);
    }
}


/* ==========================================================
   HERO SCROLL INDICATOR
   ========================================================== */

.hero-scroll-indicator {
    position: absolute;

    left: 50%;
    bottom: 8px;

    transform: translateX(-50%);

    z-index: 120;

    pointer-events: auto;
}

.hero-scroll-button {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 130px;

    padding: 8px 0;

    background: transparent;
    border: 0;

    color: rgba(255,255,255,.72);

    cursor: pointer;

    font-family: inherit;
}

.hero-scroll-label {
    font-size: 9px;
    font-weight: 600;

    letter-spacing: .18em;

    white-space: nowrap;

    color: rgba(215,240,250,.68);
}

.hero-scroll-line {
    position: relative;

    width: 1px;
    height: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            to bottom,
            rgba(34,215,255,.05),
            rgba(34,215,255,.75),
            rgba(34,215,255,.05)
        );
}

.hero-scroll-dot {
    position: absolute;

    left: 50%;
    top: -6px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    transform: translateX(-50%);

    background: #22d7ff;

    box-shadow:
        0 0 8px rgba(34,215,255,.9),
        0 0 16px rgba(34,215,255,.45);

    animation:
        hero-scroll-dot
        1.8s
        ease-in-out
        infinite;
}

.hero-scroll-arrow {
    font-size: 18px;

    line-height: 1;

    color: #22d7ff;

    text-shadow:
        0 0 10px rgba(34,215,255,.65);

    animation:
        hero-scroll-arrow
        1.8s
        ease-in-out
        infinite;
}

@keyframes hero-scroll-dot {

    0% {
        transform:
            translate(-50%, -6px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform:
            translate(-50%, 34px);
        opacity: 0;
    }
}

@keyframes hero-scroll-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .hero-brand-badge {
        width: min(330px, 72vw);
        top: 3%;
    }

    .hero-scroll-indicator {
        bottom: 16px;
    }

    .hero-scroll-label {
        font-size: 8px;
    }

}


/* ==========================================================
   NOVA EDUSPACE — DESKTOP HERO NORMALIZATION
   Keep the preferred composition at 100% browser zoom.
   ========================================================== */

@media (min-width: 1201px) {

    .hero-container {
        width: min(1560px, calc(100% - 70px));
    }

    .hero-content {
        width: min(660px, 48%);
        flex-shrink: 0;
        padding-top: 30px;
    }

    .hero-title {
        font-size: clamp(4rem, 5.2vw, 5.5rem);
        line-height: 0.94;
        max-width: 720px;
    }

    .hero-description {
        max-width: 560px;
        font-size: 1.05rem;
    }

    .hero-solar-system {
        width: min(850px, 58vw);
        height: min(850px, 58vw);
        left: auto;
        right: -7%;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-sun {
        width: clamp(360px, 28vw, 450px);
        height: clamp(360px, 28vw, 450px);
    }
}

/* Force the hero heading into the preferred three-line layout */
@media (min-width: 1201px) {
    .hero-title {
        max-width: 650px !important;
        font-size: clamp(4rem, 5.2vw, 5.5rem) !important;
        line-height: 0.94 !important;
    }

    .hero-title-line:nth-child(1),
    .hero-title-line:nth-child(2),
    .hero-title-line:nth-child(3) {
        display: block !important;
        white-space: nowrap !important;
    }
}

/* ==========================================
   HOME PAGE — HEADER ONLY OVER HERO SECTION
   ========================================== */

body > .site-header,
body .site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10002;
    background: transparent !important;
    box-shadow: none !important;
}

/* Hero is the first section below the header */
#hero {
    position: relative;
}

/* Do not keep the header fixed while scrolling */
body .site-header {
    position: absolute !important;
}

/* Mobile menu stays above the page */
.mobile-menu {
    z-index: 10001;
}

.mobile-overlay {
    z-index: 10000;
}
