/* FONT */
@font-face {
    font-family: "Accia Forte";
    src: url("./assets/fonts/AcciaForte-Light.woff2") format("woff2"),
         url("./assets/fonts/AcciaForte-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Celeb MF";
    src: url("./assets/fonts/CelebMF-Light.woff2") format("woff2"),
         url("./assets/fonts/CelebMF-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Celeb MF";
    src: url("./fonts/CelebMF-Light.woff2") format("woff2"),
         url("./fonts/CelebMF-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}



@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;500;800&display=swap');

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #111707;
    color: #c5f94f;
    overflow-x: hidden;
}

/* ===== SECTION 1 ===== */
.scroll-toggle { height: 300vh; }

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 80px;
    gap: 80px;
}

/* ===== TABS (TEXT + UNDERLINE STYLE) ===== */
.tabs-top-left {
    position: absolute;
    top: 60px;
    left: 80px;

    display: flex;
    gap: 32px;

    background: transparent;
    padding: 0;
    border: none;

    z-index: 100;
}

/* TAB TEXT */
.tab {
    background: transparent;
    border: none;
    padding: 0;

    font-family: "Celeb MF", sans-serif;
    font-size: 3.0rem;
    font-weight: 300;
    letter-spacing: 0.2px;
    text-transform: lowercase;

    color: rgba(255,255,255,0.4);
    cursor: pointer;

    transition: color 0.3s ease;
}

.tab:hover {
    color: rgba(255,255,255,0.7);
}

.tab.active {
    color: #c5f94f;
}

/* UNDERLINE INDICATOR */
.tab-indicator {
    position: absolute;
    bottom: -6px;

    height: 2px;
    width: 40px;

    background: #c5f94f;
    border-radius: 2px;

    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}


/* TEXT */

.left { width: 45%; height: 350px; position: relative; }

.step {
    position: absolute;
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
    filter: blur(15px);
    transition: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.active {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

.step h2 {
    font-family: "Accia Forte", sans-serif;
    font-size: 4rem;
    margin: 0 0 24px 5;
    line-height: 1;
    font-weight: 300;
    letter-spacing: -1px;
}

p {
    font-family: "Celeb MF", sans-serif;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.4px;
}


/* IMAGE */
.right { width: 50%; }

.image-container {
    position: relative;
    height: 75vh;
    overflow: hidden;
    border-radius: 50px;
}

.image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.4);
    transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image.active {
    opacity: 1;
    transform: scale(1);
}

/* LOGO IMAGE (CENTER IMAGE-CONTAINER) */
.logo-image {
    position: absolute;
    inset: 0;
    margin: auto;

    width: 180px;
    max-width: 40%;
    height: auto;

    z-index: 4;
    opacity: 0;
    transform: scale(0.7);

    transition: 
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-image.active {
    opacity: 1;
    transform: scale(1);
}

/* IMAGE COUNTER */
.image-counter {
    position: absolute;
    top: 20px;
    right: 28px;
    z-index: 5;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* PROGRESS */
.progress-container {
    position: absolute;
    right: 40px;
    top: 30%;
    height: 40%;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.progress-bar {
    width: 100%;
    height: 0%;
    background: #fff;
}

/* ===== TRANSISI ===== */
.spacer { height: 40vh; }

/* ===== SECTION 2 ===== */
.bg-toggle { height: 220vh; }

.bg-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.3);
    transition: 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-layer.active {
    opacity: 1;
    transform: scale(1);
}

/* BG CAPTION CENTER */
.bg-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.bg-counter {
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.bg-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Accia Forte", sans-serif;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.bg-content h2 {
    font-weight: 300;
    font-size: 6.0rem;
    letter-spacing: -1px;
}

.bg-content p {
    font-weight: 300;
    letter-spacing: 0.2px;
}


.bg-text {
    position: absolute;
    font-size: 4rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* BUTTON */
.bg-button {
    margin-top: 230px;
    padding: 14px 36px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #c5f94f;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    pointer-events: auto;
    transition: 0.2s ease;
}

.bg-button:hover { transform: translateY(-2px); }
.bg-button:active { transform: scale(0.96); }

/* ===== SECTION 3 : THANK YOU ===== */
.thankyou-section {
    height: 120vh;
    background: #08080a;
}

.thankyou-sticky {
    position: sticky;
    top: 0;
    height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.thankyou-text {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -3px;
    margin: 0;
}

.thankyou-subtext {
    margin-top: 16px;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 768px) {
    .thankyou-text {
        font-size: 3rem;
    }
    .thankyou-subtext {
        font-size: 1rem;
    }
}

/* =========================================================
   MOBILE OPTIMIZATION
   ========================================================= */
@media (max-width: 768px) {

    /* GLOBAL */
    body {
        font-size: 14px;
    }

    /* ===== SECTION 1 ===== */
    .scroll-toggle {
        height: 260vh;
    }

    .sticky-wrapper {
        flex-direction: column;
        justify-content: center;
        padding: 120px 20px 40px;
        gap: 40px;
    }

    /* ===== TABS ===== */
    .tabs-top-left {
        position: fixed;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
        z-index: 999;
    }

    .tab {
        font-size: 1.2rem;
        letter-spacing: 0.3px;
    }

    /* ===== TEXT LEFT ===== */
    .left {
        width: 100%;
        height: 220px;
    }

    .step h2 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    p {
        font-size: 0.95rem;
    }

    /* ===== IMAGE ===== */
    .right {
        width: 100%;
    }

    .image-container {
        height: 50vh;
        border-radius: 28px;
    }

    /* ===== LOGO ===== */
    .logo-image {
        width: 100px;
    }

    /* ===== IMAGE COUNTER ===== */
    .image-counter {
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* ===== PROGRESS BAR ===== */
    .progress-container {
        display: none;
    }

    /* ===== SECTION 2 ===== */
    .bg-toggle {
        height: 200vh;
    }

    .bg-content h2 {
        font-size: 2.8rem;
        text-align: center;
    }

    .bg-content p {
        font-size: 0.95rem;
        text-align: center;
        max-width: 90%;
    }

    .bg-counter {
        font-size: 0.75rem;
    }

    .bg-button {
        margin-top: 120px;
        padding: 12px 30px;
        font-size: 0.7rem;
    }

    /* ===== SECTION 3 ===== */
    .thankyou-section {
        height: 100vh;
    }

    .thankyou-text {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .thankyou-subtext {
        font-size: 0.9rem;
    }

    /* ===== PERFORMANCE ===== */
    .step {
        filter: none;
    }
}

@media (max-width: 768px) {
    .logo-image {
        width: 120px;
    }
}

/* =========================================================
   FIX TEXT OVERLAP ON MOBILE
   ========================================================= */
@media (max-width: 768px) {

    /* LEFT CONTAINER AUTO HEIGHT */
    .left {
        height: auto;
        min-height: auto;
    }

    /* STEP FLOW NORMAL */
    .step {
        position: relative;
        opacity: 1;
        transform: none;
        filter: none;
        margin-bottom: 32px;
    }

    .step:not(.active) {
        display: none;
    }

    /* TEXT SPACING */
    .step h2 {
        margin-bottom: 16px;
    }

    p {
        margin-bottom: 16px;
    }

    /* IMAGE SEPARATION */
    .right {
        margin-top: 24px;
    }
}
