/* =========================================================
   PEWJAY OFFICIAL
   TIMELINE.CSS
   CINEMATIC JOURNEY — FULL BACKGROUND
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.timeline-page {

    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        #020914;

    color:
        #ffffff;

}


/* =========================================================
   BACKGROUND
   ========================================================= */

.timeline-background {

    position: absolute;

    inset: 0;

    z-index: 0;

    background-image:
        url("../images/timeline/2016-smurf.jpg");

    background-size:
        cover;

    background-position:
        center;

    background-repeat:
        no-repeat;

    transform:
        scale(1.05);

    transition:
        opacity 0.45s ease,
        transform 1s cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );

}


/* =========================================================
   BACKGROUND ACTIVE TRANSITION
   ========================================================= */

.timeline-background.change {

    opacity: 0;

    transform:
        scale(1.10)
        translateX(-25px);

}


/* =========================================================
   OVERLAY
   ========================================================= */

.timeline-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        linear-gradient(
            90deg,
            rgba(1, 8, 17, 0.92) 0%,
            rgba(2, 12, 23, 0.70) 42%,
            rgba(2, 10, 20, 0.42) 72%,
            rgba(1, 6, 13, 0.72) 100%
        );

}


/* =========================================================
   BOTTOM DARK FADE
   ========================================================= */

.timeline-overlay::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            180deg,
            rgba(0, 5, 12, 0.25),
            transparent 40%,
            rgba(0, 4, 10, 0.80) 100%
        );

}


/* =========================================================
   AMBIENT LIGHT
   ========================================================= */

.timeline-light {

    position: absolute;

    z-index: 2;

    width: 650px;

    height: 650px;

    left: -300px;

    bottom: -300px;

    border-radius: 50%;

    pointer-events: none;

    background:

        radial-gradient(
            circle,
            rgba(40, 175, 255, 0.18),
            transparent 70%
        );

    filter:
        blur(30px);

    animation:
        timelineLight
        9s
        ease-in-out
        infinite
        alternate;

}


/* =========================================================
   HEADER
   ========================================================= */

.timeline-header {

    position: absolute;

    z-index: 10;

    top: 0;

    left: 0;

    width: 100%;

    padding:
        28px 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


/* =========================================================
   LOGO
   ========================================================= */

.timeline-logo {

    display: flex;

    align-items: center;

}


.timeline-logo img {

    width:
        clamp(
            105px,
            12vw,
            155px
        );

    height: auto;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 20px
            rgba(0, 0, 0, 0.45)
        );

}


/* =========================================================
   HOME BUTTON
   ========================================================= */

.timeline-home {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding:
        10px 16px;

    border:
        1px solid
        rgba(100, 210, 255, 0.22);

    color:
        rgba(210, 240, 250, 0.70);

    background:
        rgba(3, 15, 27, 0.25);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 2px;

    text-decoration: none;

    transition:
        all 0.3s ease;

}


.timeline-home i {

    font-size: 8px;

}


.timeline-home:hover {

    color:
        #ffffff;

    border-color:
        rgba(100, 210, 255, 0.60);

    background:
        rgba(40, 150, 200, 0.10);

    transform:
        translateX(-3px);

}


/* =========================================================
   CONTENT
   ========================================================= */

.timeline-content {

    position: relative;

    z-index: 5;

    width:
        min(850px, 90%);

    margin-left:
        7vw;

    padding:
        120px 0
        150px;

}


/* =========================================================
   LABEL
   ========================================================= */

.timeline-label {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    color:
        rgba(100, 210, 255, 0.78);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 4px;

}


.timeline-label::before {

    content: "";

    width: 35px;

    height: 1px;

    background:
        rgba(90, 205, 255, 0.55);

    box-shadow:
        0 0 10px
        rgba(70, 200, 255, 0.35);

}


/* =========================================================
   MAIN TITLE
   ========================================================= */

.timeline-content h1 {

    margin-top: 20px;

    color:
        #ffffff;

    font-size:
        clamp(
            60px,
            9vw,
            115px
        );

    font-weight:
        900;

    line-height:
        0.82;

    letter-spacing:
        -6px;

    text-transform:
        uppercase;

    text-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.60);

}


/* =========================================================
   INTRO
   ========================================================= */

.timeline-intro {

    width:
        min(500px, 100%);

    margin-top:
        24px;

    color:
        rgba(220, 240, 248, 0.58);

    font-size:
        10px;

    line-height:
        1.8;

}


/* =========================================================
   EVENT
   ========================================================= */

.timeline-event {

    position: relative;

    margin-top:
        60px;

    padding-left:
        25px;

    border-left:
        1px solid
        rgba(90, 205, 255, 0.30);

    transition:
        opacity 0.35s ease,
        transform 0.45s ease;

}


.timeline-event.change {

    opacity: 0;

    transform:
        translateY(25px);

}


/* =========================================================
   EVENT DATE
   ========================================================= */

.timeline-event-date {

    display: block;

    color:
        rgba(100, 210, 255, 0.72);

    font-size: 8px;

    font-weight: 900;

    letter-spacing:
        3px;

}


/* =========================================================
   EVENT TITLE
   ========================================================= */

.timeline-event h2 {

    margin-top:
        12px;

    color:
        #ffffff;

    font-size:
        clamp(
            32px,
            5vw,
            65px
        );

    font-weight:
        850;

    line-height:
        0.95;

    letter-spacing:
        -2px;

    text-transform:
        uppercase;

}


/* =========================================================
   EVENT DESCRIPTION
   ========================================================= */

.timeline-event p {

    max-width:
        480px;

    margin-top:
        14px;

    color:
        rgba(225, 242, 250, 0.62);

    font-size:
        10px;

    line-height:
        1.7;

    letter-spacing:
        0.3px;

}


/* =========================================================
   EVENT DOT
   ========================================================= */

.timeline-event::before {

    content: "";

    position: absolute;

    left:
        -4px;

    top:
        3px;

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        #64D4FF;

    box-shadow:
        0 0 15px
        rgba(80, 205, 255, 0.70);

}


/* =========================================================
   YEAR NAVIGATION
   ========================================================= */

.timeline-navigation {

    position: absolute;

    z-index: 7;

    right:
        5vw;

    top:
        50%;

    transform:
        translateY(-50%);

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-end;

    gap:
        12px;

}


/* =========================================================
   YEAR BUTTON
   ========================================================= */

.timeline-year {

    position: relative;

    min-width:
        70px;

    padding:
        8px 0;

    border:
        0;

    outline:
        none;

    cursor:
        pointer;

    background:
        transparent;

    color:
        rgba(180, 220, 235, 0.30);

    font-family:
        inherit;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        2px;

    text-align:
        right;

    transition:
        color 0.3s ease,
        transform 0.3s ease;

}


.timeline-year::before {

    content: "";

    position: absolute;

    right:
        0;

    top:
        50%;

    width:
        0;

    height:
        1px;

    transform:
        translateY(-50%);

    background:
        #65D4FF;

    transition:
        width 0.35s ease;

}


.timeline-year span {

    position:
        relative;

    z-index:
        2;

    transition:
        transform 0.3s ease;

}


.timeline-year:hover {

    color:
        rgba(220, 245, 255, 0.80);

    transform:
        translateX(-5px);

}


.timeline-year.active {

    color:
        #ffffff;

}


.timeline-year.active::before {

    width:
        30px;

}


.timeline-year.active span {

    transform:
        translateX(-40px);

}


/* =========================================================
   PROGRESS
   ========================================================= */

.timeline-progress {

    position: absolute;

    z-index: 8;

    left:
        7vw;

    bottom:
        55px;

    width:
        min(420px, 40vw);

    height:
        1px;

    background:
        rgba(120, 210, 240, 0.15);

}


.timeline-progress span {

    display:
        block;

    width:
        3.7%;

    height:
        100%;

    background:
        #65D4FF;

    box-shadow:
        0 0 10px
        rgba(70, 200, 255, 0.60);

    transition:
        width 0.5s ease;

}


/* =========================================================
   COUNTER
   ========================================================= */

.timeline-counter {

    position: absolute;

    z-index: 8;

    left:
        calc(7vw + min(420px, 40vw) + 15px);

    bottom:
        48px;

    display:
        flex;

    gap:
        5px;

    color:
        rgba(200, 235, 245, 0.45);

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        2px;

}


.timeline-counter #timeline-current {

    color:
        #65D4FF;

}


/* =========================================================
   BACKGROUND ANIMATION
   ========================================================= */

@keyframes timelineBackground {

    0% {

        transform:
            scale(1.05)
            translate3d(
                0,
                0,
                0
            );

    }

    100% {

        transform:
            scale(1.10)
            translate3d(
                -0.5%,
                -0.5%,
                0
            );

    }

}


.timeline-background {

    animation:
        timelineBackground
        18s
        ease-in-out
        infinite
        alternate;

}


/* =========================================================
   AMBIENT LIGHT ANIMATION
   ========================================================= */

@keyframes timelineLight {

    0% {

        opacity:
            0.35;

        transform:
            translate(
                0,
                0
            )
            scale(0.9);

    }

    100% {

        opacity:
            0.75;

        transform:
            translate(
                100px,
                -70px
            )
            scale(1.15);

    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .timeline-content {

        margin-left:
            5vw;

        width:
            72%;

    }


    .timeline-navigation {

        right:
            3vw;

    }


    .timeline-year {

        font-size:
            7px;

    }


    .timeline-progress {

        left:
            5vw;

    }


    .timeline-counter {

        left:
            calc(5vw + min(420px, 40vw) + 15px);

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .timeline-page {

        min-height:
            100svh;

        align-items:
            flex-start;

    }


    .timeline-background {

        background-position:
            center center;

    }


    .timeline-overlay {

        background:

            linear-gradient(
                180deg,
                rgba(1, 8, 17, 0.72),
                rgba(2, 12, 23, 0.60) 45%,
                rgba(1, 6, 13, 0.94)
            );

    }


    .timeline-header {

        padding:
            20px;

    }


    .timeline-logo img {

        width:
            105px;

    }


    .timeline-home {

        padding:
            8px 11px;

        font-size:
            6px;

    }


    .timeline-content {

        width:
            90%;

        margin:
            0 auto;

        padding:
            145px 0 170px;

    }


    .timeline-label {

        font-size:
            6px;

        letter-spacing:
            3px;

    }


    .timeline-label::before {

        width:
            20px;

    }


    .timeline-content h1 {

        margin-top:
            16px;

        font-size:
            clamp(
                45px,
                15vw,
                68px
            );

        letter-spacing:
            -3px;

    }


    .timeline-intro {

        margin-top:
            18px;

        font-size:
            9px;

        line-height:
            1.7;

    }


    .timeline-event {

        margin-top:
            42px;

        padding-left:
            18px;

    }


    .timeline-event-date {

        font-size:
            6px;

        letter-spacing:
            2px;

    }


    .timeline-event h2 {

        margin-top:
            10px;

        font-size:
            clamp(
                28px,
                9vw,
                42px
            );

    }


    .timeline-event p {

        margin-top:
            12px;

        font-size:
            9px;

    }


    /* YEAR NAVIGATION */

    .timeline-navigation {

        position:
            absolute;

        left:
            20px;

        right:
            20px;

        bottom:
            85px;

        top:
            auto;

        transform:
            none;

        flex-direction:
            row;

        align-items:
            center;

        gap:
            18px;

        overflow-x:
            auto;

        padding:
            5px 0 10px;

        scrollbar-width:
            none;

    }


    .timeline-navigation::-webkit-scrollbar {

        display:
            none;

    }


    .timeline-year {

        min-width:
            auto;

        padding:
            7px 0;

        font-size:
            6px;

        text-align:
            center;

        flex-shrink:
            0;

    }


    .timeline-year::before {

        right:
            50%;

        transform:
            translate(
                50%,
                -50%
            );

    }


    .timeline-year.active::before {

        width:
            22px;

    }


    .timeline-year.active span {

        transform:
            translateY(-8px);

    }


    /* PROGRESS */

    .timeline-progress {

        left:
            20px;

        right:
            20px;

        bottom:
            58px;

        width:
            auto;

    }


    /* COUNTER */

    .timeline-counter {

        left:
            auto;

        right:
            20px;

        bottom:
            34px;

        font-size:
            6px;

    }


    .timeline-light {

        width:
            400px;

        height:
            400px;

        left:
            -220px;

        bottom:
            -220px;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .timeline-content {

        padding-top:
            130px;

    }


    .timeline-content h1 {

        font-size:
            43px;

    }


    .timeline-intro {

        font-size:
            8px;

    }


    .timeline-navigation {

        gap:
            13px;

    }


    .timeline-year {

        font-size:
            5px;

    }

}

/* =========================================================
   MOBILE HERO ARROWS
   ========================================================= */

.timeline-mobile-arrows {

    display: none;

}


/* =========================================================
   MOBILE — HERO ONLY
   ========================================================= */

@media (max-width: 600px) {

    .timeline-page {

        position: relative;

    }


    .timeline-mobile-arrows {

        position: absolute;

        z-index: 10;

        left: 18px;
        right: 18px;

        bottom: 90px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        pointer-events: none;

    }


    .timeline-arrow {

        width: 42px;
        height: 42px;

        display: flex;

        align-items: center;
        justify-content: center;

        border:
            1px solid
            rgba(100, 210, 255, 0.28);

        border-radius: 50%;

        background:
            rgba(2, 15, 28, 0.55);

        color:
            rgba(190, 235, 255, 0.85);

        font-size: 12px;

        cursor: pointer;

        backdrop-filter:
            blur(8px);

        -webkit-backdrop-filter:
            blur(8px);

        transition:
            transform 0.25s ease,
            background 0.25s ease,
            border-color 0.25s ease;

        pointer-events: auto;

    }


    .timeline-arrow:active {

        transform:
            scale(0.88);

    }


    .timeline-arrow:hover {

        background:
            rgba(30, 140, 190, 0.18);

        border-color:
            rgba(100, 210, 255, 0.55);

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .timeline-mobile-arrows {

        left: 14px;
        right: 14px;

        bottom: 75px;

    }


    .timeline-arrow {

        width: 38px;
        height: 38px;

        font-size: 10px;

    }

}

/* =========================================================
   MOBILE — YEAR NAVIGATION CENTER
   ========================================================= */

@media (max-width: 600px) {

    .timeline-navigation {

        position: absolute;

        left: 50%;

        bottom: 135px;

        transform:
            translateX(-50%);

        width: calc(100% - 120px);

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 8px;

        overflow-x: auto;

        overflow-y: hidden;

        scrollbar-width: none;

        -ms-overflow-style: none;

        z-index: 11;

    }


    .timeline-navigation::-webkit-scrollbar {

        display: none;

    }


    .timeline-year {

        flex:
            0 0 auto;

        min-width: 48px;

        padding:
            7px 8px;

        text-align: center;

        white-space: nowrap;

    }

}

@media (max-width: 380px) {

    .timeline-navigation {

        bottom: 120px;

        width: calc(100% - 100px);

        gap: 5px;

    }


    .timeline-year {

        min-width: 42px;

        padding:
            6px 5px;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .timeline-background,
    .timeline-light {

        animation:
            none;

    }


    .timeline-background,
    .timeline-event {

        transition:
            none;

    }

}