/* =========================================================
   NIXGO9 — TIMELINE SCENE
   Premium Cinematic Brand Journey
   Version: 2.0.0
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.timeline-section {

    position: relative;

    padding: 150px 0 130px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 12% 35%,
            rgba(47,143,107,.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 68%,
            rgba(216,177,0,.10),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #FAF8F4 0%,
            #F5F2EA 100%
        );

}


/* =========================================================
   ATMOSPHERIC BACKGROUND
========================================================= */

.timeline-section::before {

    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    left: -340px;
    top: 15%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(47,143,107,.13),
            transparent 68%
        );

    pointer-events: none;

    animation:
        timelineAtmosphereGreen
        12s
        ease-in-out
        infinite;

}


.timeline-section::after {

    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    right: -300px;
    bottom: 0;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(216,177,0,.10),
            transparent 68%
        );

    pointer-events: none;

    animation:
        timelineAtmosphereGold
        15s
        ease-in-out
        infinite;

}


/* =========================================================
   HEADING
========================================================= */

.timeline-heading {

    position: relative;

    z-index: 2;

    max-width: 850px;

    margin: 0 auto 110px;

    text-align: center;

}


.timeline-heading .badge {

    margin-bottom: 22px;

}


.timeline-heading h2 {

    margin: 0 0 24px;

}


.timeline-heading h2 span {

    color:
        var(--color-primary, #2F8F6B);

}


.timeline-heading .lead {

    max-width: 720px;

    margin: 0 auto;

}


/* =========================================================
   EXPERIENCE
========================================================= */

.timeline-experience {

    position: relative;

    z-index: 2;

    max-width: 1100px;

    margin: 0 auto;

    padding: 20px 0;

}


/* =========================================================
   CENTRAL TRACK
========================================================= */

.timeline-track {

    position: absolute;

    left: 50%;

    top: 0;
    bottom: 0;

    width: 3px;

    transform:
        translateX(-50%);

    background:
        rgba(47,143,107,.09);

    overflow: hidden;

    border-radius:
        999px;

}


/* =========================================================
   TRACK GLOW
========================================================= */

.timeline-track::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(47,143,107,.35),
            transparent
        );

    animation:
        timelineTrackGlow
        3s
        ease-in-out
        infinite;

}


/* =========================================================
   PROGRESS
========================================================= */

.timeline-progress {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;

    height: 0%;

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #2F8F6B 0%,
            #D8B100 45%,
            #2F8F6B 100%
        );

    box-shadow:
        0 0 12px
        rgba(47,143,107,.35),
        0 0 30px
        rgba(47,143,107,.12);

    transition:
        height
        1s
        cubic-bezier(.22,1,.36,1);

}


/* Moving light inside progress */

.timeline-progress::after {

    content: "";

    position: absolute;

    left: 50%;

    top: -120px;

    width: 18px;
    height: 120px;

    transform:
        translateX(-50%);

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255,255,255,.95),
            transparent
        );

    filter:
        blur(3px);

    animation:
        timelineProgressShine
        2.8s
        ease-in-out
        infinite;

}


/* =========================================================
   ITEM
========================================================= */

.timeline-item {

    position: relative;

    display: grid;

    grid-template-columns:
        1fr
        70px
        1fr;

    align-items: center;

    min-height: 310px;

}


/* =========================================================
   MARKER
========================================================= */

.timeline-marker {

    position: relative;

    grid-column: 2;
    grid-row: 1;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    justify-self: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,.96);

    border:
        1px solid
        rgba(47,143,107,.20);

    box-shadow:
        0 0 0 7px
        rgba(47,143,107,.05),
        0 12px 30px
        rgba(0,0,0,.08);

    color:
        #2F8F6B;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .08em;

    z-index: 5;

    transition:
        transform .6s cubic-bezier(.22,1,.36,1),
        background .5s ease,
        color .5s ease,
        box-shadow .6s ease;

}


/* Marker outer pulse */

.timeline-marker::before {

    content: "";

    position: absolute;

    inset: -8px;

    border-radius: 50%;

    border:
        1px solid
        rgba(47,143,107,.12);

    opacity: 0;

}


/* Marker inner light */

.timeline-marker::after {

    content: "";

    position: absolute;

    inset: 8px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(47,143,107,.12),
            transparent 70%
        );

    opacity: 0;

    transition:
        opacity .5s ease;

}


/* =========================================================
   ACTIVE MARKER
========================================================= */

.timeline-item.timeline-active
.timeline-marker {

    background:
        linear-gradient(
            145deg,
            #2F8F6B,
            #3EA47E
        );

    color:
        #fff;

    border-color:
        #2F8F6B;

    transform:
        scale(1.12);

    box-shadow:
        0 0 0 8px
        rgba(47,143,107,.08),
        0 0 0 16px
        rgba(47,143,107,.025),
        0 0 35px
        rgba(47,143,107,.30);

}


.timeline-item.timeline-active
.timeline-marker::before {

    animation:
        timelineMarkerPulse
        2.2s
        ease-out
        infinite;

}


.timeline-item.timeline-active
.timeline-marker::after {

    opacity: 1;

}


/* =========================================================
   HOVER MARKER
========================================================= */

.timeline-item:hover
.timeline-marker {

    transform:
        scale(1.16);

}


/* =========================================================
   CARD
========================================================= */

.timeline-card {

    position: relative;

    max-width: 420px;

    padding: 34px;

    border-radius: 26px;

    background:
        rgba(255,255,255,.78);

    border:
        1px solid
        rgba(47,143,107,.09);

    box-shadow:
        0 20px 55px
        rgba(0,0,0,.055);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    opacity: .55;

    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.22,1,.36,1),
        box-shadow .7s ease,
        border-color .7s ease;

}


/* =========================================================
   CARD INITIAL POSITIONS
========================================================= */

.timeline-item:nth-child(odd)
.timeline-card {

    grid-column: 1;

    grid-row: 1;

    justify-self: end;

    margin-right: 48px;

    transform:
        translateX(-35px);

}


.timeline-item:nth-child(even)
.timeline-card {

    grid-column: 3;

    grid-row: 1;

    justify-self: start;

    margin-left: 48px;

    transform:
        translateX(35px);

}


/* =========================================================
   ACTIVE CARD
========================================================= */

.timeline-item.timeline-active
.timeline-card {

    opacity: 1;

    transform:
        translateX(0)
        translateY(-4px);

    border-color:
        rgba(47,143,107,.20);

    box-shadow:
        0 30px 70px
        rgba(0,0,0,.09),
        0 0 40px
        rgba(47,143,107,.055);

}


/* =========================================================
   CARD HOVER
========================================================= */

.timeline-card:hover {

    transform:
        translateY(-10px)
        scale(1.015);

    border-color:
        rgba(47,143,107,.22);

    box-shadow:
        0 35px 80px
        rgba(0,0,0,.10),
        0 0 45px
        rgba(47,143,107,.07);

}


/* =========================================================
   CARD ACCENT
========================================================= */

.timeline-card::before {

    content: "";

    position: absolute;

    top: 24px;
    bottom: 24px;

    width: 3px;

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #2F8F6B,
            #D8B100
        );

    transform:
        scaleY(.35);

    transform-origin:
        center;

    transition:
        transform .7s ease;

}


.timeline-item:nth-child(odd)
.timeline-card::before {

    right: 0;

}


.timeline-item:nth-child(even)
.timeline-card::before {

    left: 0;

}


.timeline-item.timeline-active
.timeline-card::before {

    transform:
        scaleY(1);

}


/* =========================================================
   FEATURED CARD
========================================================= */

.timeline-card-featured {

    background:
        linear-gradient(
            145deg,
            rgba(47,143,107,.09),
            rgba(255,255,255,.88)
        );

    border-color:
        rgba(47,143,107,.15);

}


/* =========================================================
   FINAL CARD
========================================================= */

.timeline-card-final {

    background:
        linear-gradient(
            145deg,
            rgba(216,177,0,.09),
            rgba(255,255,255,.88)
        );

    border-color:
        rgba(216,177,0,.16);

}


/* =========================================================
   CARD TYPOGRAPHY
========================================================= */

.timeline-year {

    display: block;

    margin-bottom: 7px;

    color:
        #2F8F6B;

    font-size: 30px;

    font-weight: 800;

    line-height: 1;

    letter-spacing:
        -.04em;

}


.timeline-label {

    display: block;

    margin-bottom: 18px;

    color:
        #B28A23;

    font-size: 9px;

    font-weight: 800;

    letter-spacing:
        .20em;

}


.timeline-card h3 {

    margin: 0 0 16px;

    color:
        #292824;

    font-size: 31px;

    line-height: 1.05;

    letter-spacing:
        -.04em;

}


.timeline-card h3 span {

    color:
        #2F8F6B;

}


.timeline-card p {

    margin: 0;

    color:
        #73736D;

    font-size: 14px;

    line-height: 1.75;

}


/* =========================================================
   TODAY STATUS
========================================================= */

.timeline-status {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 25px;

    padding: 9px 13px;

    border-radius: 999px;

    background:
        rgba(47,143,107,.07);

    color:
        #39755B;

    font-size: 8px;

    font-weight: 800;

    letter-spacing:
        .14em;

}


.timeline-status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #2F8F6B;

    box-shadow:
        0 0 0 4px
        rgba(47,143,107,.09),
        0 0 14px
        rgba(47,143,107,.45);

    animation:
        timelineStatusPulse
        2s
        ease-in-out
        infinite;

}


/* =========================================================
   FOOTER
========================================================= */

.timeline-footer {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    max-width: 800px;

    margin: 70px auto 0;

}


.timeline-footer-line {

    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(47,143,107,.18)
        );

}


.timeline-footer-line:last-child {

    background:
        linear-gradient(
            90deg,
            rgba(47,143,107,.18),
            transparent
        );

}


.timeline-footer p {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 0;

    white-space: nowrap;

    color:
        #777770;

    font-size: 10px;

    font-weight: 700;

    letter-spacing:
        .10em;

}


.timeline-footer strong {

    color:
        #2F8F6B;

}


/* =========================================================
   KEYFRAMES
========================================================= */


/* ---------------------------------------------------------
   Green atmospheric movement
--------------------------------------------------------- */

@keyframes timelineAtmosphereGreen {

    0%,
    100% {

        transform:
            translate3d(0,0,0)
            scale(1);

        opacity: .65;

    }

    50% {

        transform:
            translate3d(80px,35px,0)
            scale(1.15);

        opacity: 1;

    }

}


/* ---------------------------------------------------------
   Gold atmospheric movement
--------------------------------------------------------- */

@keyframes timelineAtmosphereGold {

    0%,
    100% {

        transform:
            translate3d(0,0,0)
            scale(1);

        opacity: .5;

    }

    50% {

        transform:
            translate3d(-70px,-40px,0)
            scale(1.18);

        opacity: .9;

    }

}


/* ---------------------------------------------------------
   Track glow
--------------------------------------------------------- */

@keyframes timelineTrackGlow {

    0% {

        transform:
            translateY(-100%);

        opacity: 0;

    }

    30% {

        opacity: 1;

    }

    70% {

        opacity: 1;

    }

    100% {

        transform:
            translateY(100%);

        opacity: 0;

    }

}


/* ---------------------------------------------------------
   Progress line shine
--------------------------------------------------------- */

@keyframes timelineProgressShine {

    0% {

        top: -120px;

        opacity: 0;

    }

    20% {

        opacity: 1;

    }

    80% {

        opacity: 1;

    }

    100% {

        top: 100%;

        opacity: 0;

    }

}


/* ---------------------------------------------------------
   Marker pulse
--------------------------------------------------------- */

@keyframes timelineMarkerPulse {

    0% {

        transform:
            scale(.8);

        opacity: .75;

    }

    70% {

        transform:
            scale(1.35);

        opacity: 0;

    }

    100% {

        transform:
            scale(1.35);

        opacity: 0;

    }

}


/* ---------------------------------------------------------
   Status pulse
--------------------------------------------------------- */

@keyframes timelineStatusPulse {

    0%,
    100% {

        opacity: .55;

        transform:
            scale(.85);

    }

    50% {

        opacity: 1;

        transform:
            scale(1.15);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .timeline-section {

        padding:
            110px 0;

    }


    .timeline-heading {

        margin-bottom:
            75px;

    }


    .timeline-experience {

        max-width:
            720px;

    }


    .timeline-item {

        grid-template-columns:
            60px
            1fr;

        min-height:
            270px;

    }


    .timeline-track {

        left:
            30px;

        transform:
            translateX(-50%);

    }


    .timeline-marker {

        grid-column:
            1;

        grid-row:
            1;

        width:
            50px;

        height:
            50px;

    }


    .timeline-item:nth-child(odd)
    .timeline-card,
    .timeline-item:nth-child(even)
    .timeline-card {

        grid-column:
            2;

        grid-row:
            1;

        justify-self:
            stretch;

        max-width:
            none;

        margin:
            0 0 0 28px;

    }


    .timeline-item:nth-child(odd)
    .timeline-card,
    .timeline-item:nth-child(even)
    .timeline-card {

        transform:
            translateX(25px);

    }


    .timeline-item.timeline-active
    .timeline-card {

        transform:
            translateX(0)
            translateY(-4px);

    }


    .timeline-card {

        padding:
            28px;

    }


    .timeline-item:nth-child(odd)
    .timeline-card::before,
    .timeline-item:nth-child(even)
    .timeline-card::before {

        left:
            0;

        right:
            auto;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .timeline-section {

        padding:
            85px 0 90px;

    }


    .timeline-heading {

        margin-bottom:
            55px;

    }


    .timeline-heading h2 {

        font-size:
            clamp(
                40px,
                11vw,
                58px
            );

    }


    .timeline-heading .lead {

        font-size:
            15px;

        line-height:
            1.7;

    }


    .timeline-experience {

        padding:
            10px 0;

    }


    .timeline-item {

        grid-template-columns:
            48px
            1fr;

        min-height:
            245px;

    }


    .timeline-track {

        left:
            24px;

        width:
            2px;

    }


    .timeline-marker {

        width:
            42px;

        height:
            42px;

        font-size:
            8px;

    }


    .timeline-item:nth-child(odd)
    .timeline-card,
    .timeline-item:nth-child(even)
    .timeline-card {

        margin-left:
            20px;

        transform:
            translateX(20px);

    }


    .timeline-item.timeline-active
    .timeline-card {

        transform:
            translateX(0)
            translateY(-3px);

    }


    .timeline-card {

        padding:
            24px 22px;

        border-radius:
            20px;

    }


    .timeline-card::before {

        top:
            18px;

        bottom:
            18px;

    }


    .timeline-year {

        font-size:
            25px;

    }


    .timeline-label {

        margin-bottom:
            14px;

        font-size:
            8px;

    }


    .timeline-card h3 {

        font-size:
            25px;

    }


    .timeline-card p {

        font-size:
            13px;

        line-height:
            1.65;

    }


    .timeline-footer {

        gap:
            15px;

        margin-top:
            50px;

    }


    .timeline-footer-line {

        display:
            none;

    }


    .timeline-footer p {

        justify-content:
            center;

        flex-wrap:
            wrap;

        white-space:
            normal;

        text-align:
            center;

        line-height:
            1.7;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .timeline-item {

        grid-template-columns:
            42px
            1fr;

    }


    .timeline-track {

        left:
            21px;

    }


    .timeline-marker {

        width:
            38px;

        height:
            38px;

    }


    .timeline-item:nth-child(odd)
    .timeline-card,
    .timeline-item:nth-child(even)
    .timeline-card {

        margin-left:
            16px;

        transform:
            translateX(16px);

    }


    .timeline-item.timeline-active
    .timeline-card {

        transform:
            translateX(0)
            translateY(-3px);

    }


    .timeline-card {

        padding:
            21px 18px;

    }


    .timeline-card h3 {

        font-size:
            23px;

    }


    .timeline-card p {

        font-size:
            12px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .timeline-section::before,
    .timeline-section::after,
    .timeline-track::before,
    .timeline-progress::after,
    .timeline-status-dot,
    .timeline-marker::before {

        animation:
            none !important;

    }


    .timeline-card,
    .timeline-marker {

        transition:
            none !important;

    }

}