/* =========================================================
   ULTRA-PREMIUM 3D GLASS ARCHIVE
   SCROLL-DRIVEN — CINEMATIC DEPTH & SMOOTH LIGHT REFLECTION
========================================================= */

:root {
    --accent: #ff3366;
    --accent-2: #0003aa;
    --bg: #040404;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-cinematic: cubic-bezier(.25, 1, .2, 1);
}


/* =========================================================
   BODY & ATMOSPHERE
========================================================= */

.immersive-filebox-body {
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(255, 51, 102, 0.05),
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 120%,
            rgba(0, 3, 170, 0.08),
            transparent 50%
        ),
        var(--bg);

    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}


/* =========================================================
   FILM GRAIN OVERLAY
========================================================= */

.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .03;
    mix-blend-mode: overlay;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 0.8s steps(4) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-1.5%, 1.5%); }
    50% { transform: translate(1.5%, -1.5%); }
    75% { transform: translate(-1%, -1%); }
    100% { transform: translate(0, 0); }
}


/* =========================================================
   AMBIENT GLOW BLOBS
========================================================= */

.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: .18;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.ambient-glow.one {
    background: var(--accent);
    top: -25%;
    left: -20%;
    animation: floatBlob 22s ease-in-out infinite;
}

.ambient-glow.two {
    background: var(--accent-2);
    right: -25%;
    bottom: -20%;
    animation: floatBlob 26s ease-in-out infinite reverse;
}

@keyframes floatBlob {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(8%, 10%, 0) scale(1.15);
    }
}


/* =========================================================
   SECTION & INTRO
========================================================= */

.filebox-section {
    position: relative;
    z-index: 1;
    width: min(90%, 900px);
    margin: 0 auto;
    padding: 160px 0 500px;
    isolation: isolate;
}

.section-intro {
    margin-bottom: 120px;
    text-align: center;
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    animation: introRise 1.2s var(--ease-out) .15s forwards;
}

@keyframes introRise {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.sub-title {
    display: block;
    margin-bottom: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent), #ff6699, var(--accent-2));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shineText 8s linear infinite;
}

@keyframes shineText {
    to { background-position: 200% center; }
}

.section-intro h2 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,.45));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-intro p {
    margin-top: 18px;
    color: rgba(255,255,255,.45);
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .3px;
}


/* =========================================================
   CARD CONTAINER & WRAPPER
========================================================= */

.filebox-container {
    display: flex;
    flex-direction: column;
    gap: 150px;
    position: relative;
    
}

.filebox-card {
    
    position: sticky;
    top: 130px;
    width: 100%;
    perspective: 2000px;
    perspective-origin: 50% 15%;
    transform-style: preserve-3d;
    pointer-events: none;
    
}


/* =========================================================
   GLASS CARD (FILEBOX INNER)
========================================================= */

.filebox-inner {
    padding: 11px 11px 11px 11px;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 32px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.02) 60%,
            rgba(255, 51, 102, 0.03)
        );

    border: 1px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);

    box-shadow:
        0 60px 120px rgba(0, 0, 0, 0.65),
        0 15px 45px rgba(0, 0, 0, 0.35),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);

    transform-origin: center top;
    transform-style: preserve-3d;
    will-change: transform, filter;
    pointer-events: auto;

    transition:
        border-color 0.8s var(--ease-out),
        box-shadow 0.8s var(--ease-out);
}


/* =========================================================
   GLASS BEVEL EDGE (SMOOTH LIGHT STROKE)
========================================================= */

.filebox-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 15;
    padding: 1px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.45),
            rgba(255, 255, 255, 0.05) 35%,
            transparent 60%,
            rgba(255, 51, 102, 0.25)
        );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .85;
}


/* =========================================================
   DYNAMIC GLASS REFLECTION & SHIMMER
========================================================= */

.filebox-inner::after {
    content: "";
    position: absolute;
    inset: -60%;
    pointer-events: none;
    z-index: 20;
    background:
        linear-gradient(
            120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.18) 48%,
            rgba(255, 255, 255, 0.04) 54%,
            transparent 70%
        );
    transform: translate3d(-70%, -20%, 100px) rotate(12deg);
    opacity: 0;
    transition: transform 1.6s var(--ease-cinematic), opacity 0.8s ease;
}

.filebox-card.is-active .filebox-inner::after {
    opacity: 1;
    transform: translate3d(70%, 20%, 100px) rotate(12deg);
}


/* =========================================================
   ACTIVE CARD STATE (NEON GLOW TINT)
========================================================= */

.filebox-card.is-active .filebox-inner {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow:
        0 70px 140px rgba(0, 0, 0, 0.75),
        0 25px 70px rgba(0, 0, 0, 0.45),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
        0 0 90px rgba(255, 51, 102, 0.08);
}



/* =========================================================
   PREVIEW IMAGE WITH GRADIENT OVERLAY
========================================================= */

.filebox-preview {
    border-radius: 32px 32px 0px 0px;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    transform-style: preserve-3d;
}

.filebox-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background:
        linear-gradient(
            180deg,
            transparent 40%,
            rgba(0,0,0,0.85) 100%
        ),
        radial-gradient(
            120% 100% at 50% 0%,
            transparent 40%,
            rgba(0,0,0,0.5) 100%
        );
}

.filebox-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.75) saturate(1.05);
    transform: scale(1.08);
    transition: transform 1.6s var(--ease-cinematic), filter 0.8s ease;
    will-change: transform, filter;
}

.filebox-card.is-active .filebox-preview img {
    filter: brightness(.98) saturate(1.12);
    transform: scale(1.02);
}


/* =========================================================
   CARD INDEX BADGE
========================================================= */

.filebox-index {
    
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 30;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 30px;
    box-shadow:
        0 10px 20px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}


/* =========================================================
   DETAILS FOOTER
========================================================= */

.filebox-details {
    border-radius: 0px 0px 32px 32px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 42px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        );
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.filebox-text-group h3 {
    margin: 0 0 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}


/* =========================================================
   TECH LOGO STACK
========================================================= */

.tech-stack-logos {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tech-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: transform .35s var(--ease-out), background .35s ease, border-color .35s ease;
}

.tech-logo-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-logo-item svg{
    padding: 2px;

}


/* =========================================================
   CLEAN & SUBTLE BUTTON HOVER
========================================================= */

.filebox-btn {
    position: relative;
    z-index: 50;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 28px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.04);
    color: #fff;

    font-family: 'Space Grotesk', sans-serif;
    font-size: .8rem;
    font-weight: 600;

    letter-spacing: 2px;

    text-decoration: none;
    text-transform: uppercase;

    overflow: hidden;
    white-space: nowrap;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Transisi halus tanpa efek lompatan berat */
    transition: 
        background 1.1s ease, 
        border-color 1.1s ease,
        color 1.1s ease;
        
}

/* Hapus pseudo-element gradient yang ramai */
.filebox-btn::before {
    display: none;
}

/* Hover tenang: Mengubah background menjadi putih bersih dan teks menjadi hitam */
.filebox-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0px 20px rgba(255, 255, 255, 0.25);
    
}

/* Animasi panah kecil bergerak tipis ke kanan atas saat di-hover */
.filebox-btn span {
    display: inline-block;
    transition: transform 0.3s var(--ease-out);
}

.filebox-btn:hover span {
    transform: translate(2px, -2px);
}

/* =========================================================
   WHAT I BUILD (CAPABILITIES)
========================================================= */

.what-i-build {
    position: relative;
    z-index: 2;
    width: min(90%, 900px);
    margin: 0 auto;
    padding: 120px 0;
}

.wib-header {
    margin-bottom: 60px;
}

.wib-kicker {
    display: block;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
}

.wib-header h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #fff;
}

/* List Items */
.wib-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wib-item {
    display: grid;
    grid-template-columns: 80px 1fr 1.8fr;
    align-items: baseline;
    padding: 36px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-out);
}

.wib-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.wib-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.wib-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.5px;
}

.wib-description {
    margin: 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}


/* =========================================================
   LET'S BUILD SOMETHING (CTA SECTION)
========================================================= */

.build-cta {
    position: relative;
    z-index: 2;
    width: min(90%, 900px);
    margin: 0 auto 160px;
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.cta-eyebrow {
    display: block;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
}

.cta-title {
    margin: 0 0 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #fff;
}

.cta-title span {
    display: block;
    color: rgba(255, 255, 255, 0.4);
}

/* CTA Action Button */
.cta-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 1.3s ease, border-color 1.3s ease, color 1.3s ease;
}

.cta-action:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0px 20px rgba(255, 255, 255, 0.25);
}

.cta-arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease-out);
}

.cta-action:hover .cta-arrow {
    transform: translate(3px, -3px);
}


/* =========================================================
   REVEAL ANIMATIONS (INTERSECTION OBSERVER)
========================================================= */

.reveal-wib,
.reveal-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-wib.is-visible,
.reveal-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE (MOBILE)
========================================================= */

@media (max-width: 768px) {
    .what-i-build {
        width: min(92%, 900px);
        padding: 80px 0;
    }

    .wib-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px;
    }

    .wib-number {
        font-size: .75rem;
    }

    .build-cta {
        width: min(92%, 900px);
        padding: 60px 24px;
        margin-bottom: 100px;
    }

    .cta-action {
        width: 100%;
    }
}


/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .filebox-section {
        width: min(92%, 900px);
        padding: 120px 0 300px;
    }

    .section-intro {
        margin-bottom: 80px;
    }

    .filebox-container {
        gap: 100px;
    }

    .filebox-card {
        top: 90px;
    }

    .filebox-inner {
        border-radius: 24px;
    }

    .filebox-details {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }

    .filebox-btn {
        width: 100%;
    }

    .filebox-index {
        top: 16px;
        left: 16px;
    }
}


/* =========================================================
   REDUCED MOTION SUPPORT
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .filebox-inner,
    .filebox-preview img,
    .ambient-glow,
    .grain-overlay,
    .sub-title {
        animation: none !important;
        transition: none !important;
    }
}