/* ==========================================================
   NOVA EDUSPACE
   EXPERIENCE RIBBON
   Premium Animated Feature Ribbon
========================================================== */

.nova-experience-ribbon {
    position: relative;

    width: 100%;
    min-height: 80px;

    overflow: hidden;
    isolation: isolate;

    /* SAME SPACE THEME AS HERO */
    background-image:
        linear-gradient(
            180deg,
            rgba(3, 8, 24, 0.12),
            rgba(3, 8, 24, 0.22)
        ),
        url("../assets/images/hero/hero-space-bg.webp");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* subtle separation only */
    border-top: 1px solid rgba(34, 215, 255, 0.08);
    border-bottom: 1px solid rgba(34, 215, 255, 0.08);
}

/* ==========================================================
   SPACE PARTICLES
========================================================== */

.nova-ribbon-stars {
    position: absolute;

    inset: 0;

    z-index: -2;

    pointer-events: none;

    opacity: .35;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.8) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle,
            rgba(34,215,255,.8) 0 1px,
            transparent 1.5px
        );

    background-size:
        150px 150px,
        230px 230px;

    background-position:
        20px 20px,
        90px 80px;

    animation:
        ribbonStarsMove 35s linear infinite;
}


@keyframes ribbonStarsMove {

    from {
        background-position:
            20px 20px,
            90px 80px;
    }

    to {
        background-position:
            170px 170px,
            -140px -60px;
    }
}


/* ==========================================================
   TOP / BOTTOM ENERGY LINES
========================================================== */

.nova-ribbon-energy {

    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    pointer-events: none;

    overflow: hidden;

    opacity: .55;
}


.nova-ribbon-energy--top {
    top: 0;
}


.nova-ribbon-energy--bottom {
    bottom: 0;
}


.nova-ribbon-energy::after {

    content: "";

    position: absolute;

    top: 0;

    left: -20%;

    width: 20%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--ribbon-cyan),
            transparent
        );

    box-shadow:
        0 0 12px
        rgba(34,215,255,.8);

    animation:
        ribbonEnergyTravel 4.5s linear infinite;
}


.nova-ribbon-energy--bottom::after {
    animation-delay: 2.2s;
}


@keyframes ribbonEnergyTravel {

    0% {
        left: -20%;
    }

    100% {
        left: 120%;
    }
}


/* ==========================================================
   RIBBON GRID
========================================================== */

.nova-ribbon-grid {

    width: 100%;

    min-height: 128px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}


/* ==========================================================
   FEATURE ITEM
========================================================== */

.nova-ribbon-item {

    position: relative;

    min-width: 0;

    display: flex;

    align-items: center;

    padding: 18px 28px
        clamp(22px, 3vw, 46px);

    cursor: default;

    transition:
        background .4s ease;
         
}


/* ==========================================================
   VERTICAL DIVIDER
========================================================== */

.nova-ribbon-item:not(:last-child)::after {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 1px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(65,108,255,.18) 15%,
            rgba(65,108,255,.55) 50%,
            rgba(65,108,255,.18) 85%,
            transparent 100%
        );
}


/* Moving light on divider */

.nova-ribbon-item:not(:last-child)::before {

    content: "";

    position: absolute;

    top: -20%;

    right: -1px;

    width: 3px;

    height: 20%;

    border-radius: 50%;

    background:
        var(--ribbon-cyan);

    box-shadow:
        0 0 8px var(--ribbon-cyan),
        0 0 18px rgba(34,215,255,.8);

    opacity: .8;

    animation:
        ribbonDividerTravel 4s ease-in-out infinite;
}


.nova-ribbon-item:nth-child(2)::before {
    animation-delay: 1s;
}


.nova-ribbon-item:nth-child(3)::before {
    animation-delay: 2s;
}


@keyframes ribbonDividerTravel {

    0% {
        top: -20%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        top: 45%;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 105%;
        opacity: 0;
    }
}


/* ==========================================================
   ICON AREA
========================================================== */

.nova-ribbon-icon {

    position: relative;

    width: 92px;
    min-width: 92px;

    height: 125px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-right: 18px;
}


/* ==========================================================
   ICON HALO
========================================================== */

.nova-ribbon-icon::before {

    content: "";

    position: absolute;

    width: 82px;
    height: 82px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34,215,255,.13),
            rgba(40,104,255,.05) 45%,
            transparent 70%
        );

    filter: blur(2px);

    animation:
        ribbonIconHalo 3.5s ease-in-out infinite;
}


@keyframes ribbonIconHalo {

    0%,
    100% {
        transform: scale(.92);
        opacity: .55;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}


/* ==========================================================
   SVG ICON
========================================================== */

.nova-ribbon-svg {

    position: relative;

    width: 78px;
    height: 78px;

    overflow: visible;

    color: var(--ribbon-blue);

    filter:
        drop-shadow(
            0 0 5px
            rgba(40,104,255,.7)
        )
        drop-shadow(
            0 0 16px
            rgba(34,215,255,.18)
        );

    z-index: 2;
}


.nova-ribbon-svg path,
.nova-ribbon-svg circle,
.nova-ribbon-svg rect,
.nova-ribbon-svg line,
.nova-ribbon-svg polygon {

    fill: none;

    stroke: currentColor;

    stroke-width: 2.2;

    stroke-linecap: round;

    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}


/* ==========================================================
   ICON DRAW ANIMATION
========================================================== */

.nova-ribbon-draw {

    stroke-dasharray: 240;

    stroke-dashoffset: 240;

    animation:
        ribbonIconDraw 1.8s
        cubic-bezier(.65,0,.35,1)
        forwards;
}


@keyframes ribbonIconDraw {

    to {
        stroke-dashoffset: 0;
    }
}


/* ==========================================================
   ROCKET
========================================================== */

.ribbon-rocket {
    width: 64px;
    height: 64px;
    overflow: visible;

    animation:
        ribbonRocketFloat 3.5s ease-in-out infinite;
}

.rocket-flame-outer,
.rocket-flame-inner {
    transform-box: fill-box;
    transform-origin: center top;

    animation:
        rocketFlamePulse .45s ease-in-out infinite alternate;
}

.rocket-flame-inner {
    animation-delay: .08s;
}

@keyframes ribbonRocketFloat {
    0%,
    100% {
        transform:
            translateY(2px)
            rotate(-2deg);
    }

    50% {
        transform:
            translateY(-5px)
            rotate(2deg);
    }
}

@keyframes rocketFlamePulse {
    from {
        transform: scaleY(.75);
        opacity: .7;
    }

    to {
        transform: scaleY(1.15);
        opacity: 1;
    }
}

.ribbon-particle {

    animation:
        ribbonParticle 1.5s ease-out infinite;
}


.ribbon-particle:nth-child(2) {
    animation-delay: .3s;
}


.ribbon-particle:nth-child(3) {
    animation-delay: .6s;
}


@keyframes ribbonParticle {

    0% {
        opacity: 0;
        transform:
            translate(4px,-3px);
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translate(-12px,12px);
    }
}


/* ==========================================================
   GRADUATION CAP
========================================================== */

.ribbon-education {

    animation:
        ribbonEducationFloat
        3.8s
        ease-in-out
        infinite;
}


@keyframes ribbonEducationFloat {

    0%,
    100% {
        transform:
            translateY(3px);
    }

    50% {
        transform:
            translateY(-6px);
    }
}


.ribbon-orbit {

    position: absolute;

    width: 95px;
    height: 34px;

    border:
        1px solid
        rgba(34,215,255,.3);

    border-radius: 50%;

    transform:
        rotate(-8deg);

    animation:
        ribbonOrbitRotate
        6s
        linear
        infinite;
}


@keyframes ribbonOrbitRotate {

    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}


.ribbon-orbit-dot {

    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--ribbon-cyan);

    box-shadow:
        0 0 8px
        var(--ribbon-cyan);

    animation:
        ribbonDotPulse
        2s
        ease-in-out
        infinite;
}


.ribbon-orbit-dot--one {
    top: 22px;
    right: 5px;
}


.ribbon-orbit-dot--two {
    bottom: 22px;
    left: 3px;

    animation-delay: 1s;
}


@keyframes ribbonDotPulse {

    0%,
    100% {
        opacity: .35;
        transform: scale(.7);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}


/* ==========================================================
   PEOPLE / SAFETY
========================================================== */

.ribbon-people {

    animation:
        ribbonPeopleFloat
        4s
        ease-in-out
        infinite;
}


@keyframes ribbonPeopleFloat {

    0%,
    100% {
        transform:
            translateY(2px);
    }

    50% {
        transform:
            translateY(-5px);
    }
}


.ribbon-safety-ring {

    position: absolute;

    width: 92px;
    height: 92px;

    border:
        1px solid
        rgba(34,215,255,.22);

    border-radius: 50%;

    animation:
        ribbonSafetyPulse
        3.2s
        ease-out
        infinite;
}


.ribbon-safety-ring--two {

    animation-delay:
        1.6s;
}


@keyframes ribbonSafetyPulse {

    0% {
        transform:
            scale(.55);

        opacity: 0;
    }

    25% {
        opacity: .8;
    }

    100% {
        transform:
            scale(1.25);

        opacity: 0;
    }
}


/* ==========================================================
   CERTIFICATE
========================================================== */

.ribbon-certificate {

    animation:
        ribbonCertificateFloat
        4s
        ease-in-out
        infinite;
}


@keyframes ribbonCertificateFloat {

    0%,
    100% {
        transform:
            translateY(2px)
            rotate(-1deg);
    }

    50% {
        transform:
            translateY(-5px)
            rotate(1deg);
    }
}


.ribbon-badge {

    animation:
        ribbonBadgePulse
        2.5s
        ease-in-out
        infinite;
}


@keyframes ribbonBadgePulse {

    0%,
    100% {
        filter:
            drop-shadow(
                0 0 2px
                rgba(34,215,255,.15)
            );
    }

    50% {
        filter:
            drop-shadow(
                0 0 10px
                rgba(34,215,255,.9)
            );
    }
}


/* ==========================================================
   TEXT
========================================================== */

.nova-ribbon-content {

    position: relative;

    z-index: 3;

    min-width: 0;
}


.nova-ribbon-title {

    margin: 0;

    color:
        var(--ribbon-white);

    font-family:
        "Outfit",
        sans-serif;

    font-size:
        clamp(18px, 1.35vw, 23px);

    line-height: 1.15;

    font-weight: 700;

    letter-spacing:
        -.02em;

    transition:
        color .35s ease,
        transform .35s ease;
}


.nova-ribbon-accent {

    display: block;

    width: 43px;

    height: 2px;

    margin-top: 11px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            var(--ribbon-blue),
            var(--ribbon-cyan)
        );

    box-shadow:
        0 0 8px
        rgba(34,215,255,.5);

    transform-origin: left;

    transition:
        width .4s ease;
}


.nova-ribbon-description {

    margin:
        11px 0 0;

    color:
        var(--ribbon-muted);

    font-family:
        "Outfit",
        sans-serif;

    font-size:
        clamp(13px, 1vw, 16px);

    line-height: 1.5;

    font-weight: 400;

    transition:
        color .35s ease,
        transform .35s ease;
}


/* ==========================================================
   HOVER
========================================================== */

.nova-ribbon-item:hover {

    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(34,215,255,.07),
            transparent 60%
        );
}


.nova-ribbon-item:hover
.nova-ribbon-title {

    transform:
        translateX(4px);

    color:
        #ffffff;
}


.nova-ribbon-item:hover
.nova-ribbon-description {

    transform:
        translateX(4px);

    color:
        #d4ddf3;
}


.nova-ribbon-item:hover
.nova-ribbon-accent {

    width: 70px;

    box-shadow:
        0 0 10px
        rgba(34,215,255,.8);
}


.nova-ribbon-item:hover
.nova-ribbon-svg {

    color:
        var(--ribbon-cyan);

    filter:
        drop-shadow(
            0 0 8px
            rgba(34,215,255,.9)
        )
        drop-shadow(
            0 0 22px
            rgba(34,215,255,.35)
        );
}


/* ==========================================================
   ENTRANCE REVEAL
========================================================== */

.nova-ribbon-item {

    opacity: 0;

    transform:
        translateY(18px);

    animation:
        ribbonItemReveal
        .8s
        cubic-bezier(.22,1,.36,1)
        forwards;
}


.nova-ribbon-item:nth-child(1) {
    animation-delay: .1s;
}


.nova-ribbon-item:nth-child(2) {
    animation-delay: .22s;
}


.nova-ribbon-item:nth-child(3) {
    animation-delay: .34s;
}


.nova-ribbon-item:nth-child(4) {
    animation-delay: .46s;
}


@keyframes ribbonItemReveal {

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .nova-ribbon-item {

        padding:
            24px 22px;
    }

    .nova-ribbon-icon {

        width: 72px;
        min-width: 72px;

        margin-right: 12px;
    }

    .nova-ribbon-svg {

        width: 65px;
        height: 65px;
    }

    .nova-ribbon-title {

        font-size: 18px;
    }

    .nova-ribbon-description {

        font-size: 13px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .nova-experience-ribbon {

        min-height: auto;
    }

    .nova-ribbon-grid {

        grid-template-columns:
            repeat(2, 1fr);

        min-height: auto;
    }

    .nova-ribbon-item {

        min-height: 180px;

        padding:
            24px 18px;

        flex-direction: column;

        justify-content: center;

        text-align: center;
    }

    .nova-ribbon-item:nth-child(2)::after {

        display: none;
    }

    .nova-ribbon-item:nth-child(-n + 2) {

        border-bottom:
            1px solid
            rgba(65,108,255,.16);
    }

    .nova-ribbon-item::before {

        display: none;
    }

    .nova-ribbon-icon {

        width: 80px;
        min-width: 80px;

        height: 76px;

        margin:
            0 0 8px;
    }

    .nova-ribbon-title {

        font-size: 17px;
    }

    .nova-ribbon-description {

        font-size: 13px;
    }

    .nova-ribbon-accent {

        margin-left: auto;
        margin-right: auto;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .nova-ribbon-grid {

        grid-template-columns:
            1fr;
    }

    .nova-ribbon-item {

        min-height: 155px;

        border-bottom:
            1px solid
            rgba(65,108,255,.14);
    }

    .nova-ribbon-item:last-child {

        border-bottom: none;
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .nova-ribbon-stars,
    .nova-ribbon-energy::after,
    .nova-ribbon-item,
    .nova-ribbon-item::before,
    .nova-ribbon-icon::before,
    .ribbon-rocket,
    .ribbon-flame,
    .ribbon-particle,
    .ribbon-education,
    .ribbon-orbit,
    .ribbon-orbit-dot,
    .ribbon-people,
    .ribbon-safety-ring,
    .ribbon-certificate,
    .ribbon-badge {

        animation: none !important;
    }
}