/* Design System & Custom Variables */
:root {
    --bg-base: #0c0d10;
    --bg-surface: #14161b;
    --bg-surface-hover: #1d2027;
    --bg-glass: rgba(20, 22, 27, 0.95); 
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    
    --color-primary: #0066FF; 
    --color-primary-rgb: 0, 102, 255;
    --color-secondary: #F0F8FF; 
    --color-secondary-rgb: 240, 248, 255;
    --color-accent: #f43f5e; 
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --font-heading: "Plus Jakarta Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Plus Jakarta Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Pengaman mutlak sumbu X global */
    max-width: 100vw;
}

html {
    /* Gradasi radial statis mewah dengan pendaran kebiruan redup di tengah, diam terpasang (fixed) untuk kinerja GPU nol beban */
    background: #0c0d10 radial-gradient(circle at 50% 30%, #0e1322 0%, #08090d 65%, #050608 100%) no-repeat fixed;
    background-color: #0c0d10; /* Menyamakan warna dasar root dengan warna footer saat overscroll bawah */
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: url('../assets/custom-cursor.svg') 6 4, auto;
}

/* Pelindung kedipan hitam (blink/flash) saat scroll reset refresh */
body.pre-reset-scroll {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    cursor: url('../assets/custom-cursor.svg') 6 4, auto;
    transition: opacity 0.25s ease-out; /* Transisi fade-in lembut setelah reset */
}

a, button, .btn-primary, .btn-secondary, input[type="submit"], input[type="button"], input[type="range"], [role="button"], .carousel-card, .carousel-card *, .hero-carousel-container *, .trial-play-overlay, .card-overlay, .modal-close-btn, .custom-media-controls, .custom-media-controls * {
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
}

video::-webkit-media-controls, video::-webkit-media-controls-enclosure, video::-webkit-media-controls-panel, video::-webkit-media-controls-play-button, video::-webkit-media-controls-volume-slider, video::-webkit-media-controls-mute-button, video::-webkit-media-controls-timeline, video::-webkit-media-controls-current-time-display, video::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-fullscreen-button {
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
}

/* Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    z-index: -3;
    pointer-events: none;
    background-image: url('https://res.cloudinary.com/fngcyksk/image/upload/f_auto,q_auto,w_1200/v1787064815/BGFLOZ_exbr5q.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

section {
    padding: 120px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Typography Elements */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animasi Gradasi Berjalan & Jeda Berhenti Elegan untuk Teks "Storyteller" */
.storyteller-animate {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 50%, var(--color-primary) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: storyteller-gradient-loop 8s linear infinite;
}

@keyframes storyteller-gradient-loop {
    0%, 35% {
        background-position: 0% center; /* Jeda Diam Awal (Biru di Kiri, Putih di Kanan) */
    }
    65% {
        background-position: 200% center; /* Mengalir aktif 1 putaran penuh */
    }
    100% {
        background-position: 200% center; /* Jeda Diam Akhir (Biru di Kiri, Putih di Kanan) */
    }
}

.serif-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    padding-right: 0.15em; /* Mencegah ekor huruf italic terpotong oleh background-clip */
}

/* ====================================================
   KINETIC STRETCH-BOX REVEAL (SELECTED WORKS ANIMATION)
   ==================================================== */
.works-reveal-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    padding: 0; /* Dinolkan agar absolute tracking presisi */
}

/* Pseudo-element Kotak Putih Solid Melar */
.works-reveal-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7%; /* Digeser ke tengah secara vertikal agar simetris dengan baseline */
    height: 88%; /* Tinggi vertikal diperlebar agar bagian bawah tidak terlalu tipis dan teks presisi di tengah */
    width: 100%;
    background: #ffffff; /* Warna putih solid */
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1;
    border-radius: 4px; /* Radius border disesuaikan agar rapi proporsional */
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.25);
}

.works-text-base {
    position: relative;
    z-index: 0;
    display: inline-block;
    padding-left: 0.12em !important; /* Mencegah kaki kiri A terpotong */
    padding-right: 0.18em !important; /* Mencegah ekor s terpotong */
}

/* Layer Teks Biru/Ungu yang Ditumpuk Di Atas */
.works-text-overlay {
    position: absolute;
    left: 0; /* Harus 0 agar menempel tepat di atas works-text-base */
    top: 0;
    width: 100%;
    height: 100%;
    display: inline-block;
    padding-left: 0.12em !important; /* Harus sama persis agar teks tidak bergeser */
    padding-right: 0.18em !important; /* Harus sama persis agar teks tidak bergeser */
    color: var(--color-primary) !important; /* Mengubah teks overlay menjadi warna biru solid tema */
    -webkit-text-fill-color: var(--color-primary) !important;
    z-index: 2;
    pointer-events: none;
    clip-path: inset(0 100% 0 0); /* Terpotong habis dari sisi kanan */
    white-space: nowrap;
    box-sizing: border-box;
}

/* Picu Animasi Loop Kinetik ketika Section Works Aktif (Reveal on Scroll) - Diatur Seimbang 6.5s */
.reveal.active .works-reveal-wrapper::before {
    animation: works-box-kinetic-loop 6.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.reveal.active .works-text-overlay {
    animation: works-text-kinetic-loop 6.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* Keyframes Pergerakan Kotak: Penyesuaian Kecepatan Seimbang (12% ke 27% untuk masuk, 73% ke 88% untuk keluar) */
@keyframes works-box-kinetic-loop {
    0%, 100% {
        transform: scaleX(0);
        transform-origin: left;
    }
    12% {
        transform: scaleX(0);
        transform-origin: left;
    }
    27% {
        transform: scaleX(1);
        transform-origin: left;
    }
    27.01% {
        transform: scaleX(1);
        transform-origin: right; /* Pindah tumpuan tanpa merubah visual */
    }
    73% {
        transform: scaleX(1);
        transform-origin: right;
    }
    88% {
        transform: scaleX(0);
        transform-origin: right; /* Menyusut keluar ke arah kanan */
    }
}

/* Keyframes Pergerakan Teks Masking Putih: Mengikuti Pergeseran Kotak */
@keyframes works-text-kinetic-loop {
    0%, 100% {
        clip-path: inset(0 100% 0 0);
    }
    12% {
        clip-path: inset(0 100% 0 0);
    }
    27% {
        clip-path: inset(0 0 0 0);
    }
    73% {
        clip-path: inset(0 0 0 0);
    }
    88% {
        clip-path: inset(0 0 0 100%); /* Menutup seirama ke arah kanan */
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5.6vw, 57px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary) 30%, var(--color-primary) 80%, var(--color-primary) 100%);
    background-size: 250% 100%;
    background-position: left center;
    color: #001B44; 
    border: 1px solid transparent; 
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.2);
    text-shadow: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary svg {
    filter: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    color: var(--color-primary); 
    border-color: var(--color-primary); 
    transform: scale(1.1); 
    animation: btnVibrate 0.4s ease-in-out;
    box-shadow: 0 10px 35px rgba(var(--color-primary-rgb), 0.35); 
}

.btn-primary:hover svg {
    transform: scale(1.2); 
    color: var(--color-primary); 
}

@keyframes btnVibrate {
    0% { transform: scale(1.1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-3deg); }
    50% { transform: scale(1.1) rotate(3deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

.sparkle-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%230066FF" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"/></svg>'); 
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
    animation: btnSparklePop 1.5s ease-in-out forwards;
}

@keyframes btnSparklePop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1) rotate(90deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0) rotate(180deg); opacity: 0; }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Floating Navigation Bar (iOS-Style Glassmorphism Pill) */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: auto;
    min-width: 320px; /* Dipersempit secara fleksibel agar muat dalam kondisi menu mengembang */
    max-width: 95%;
    height: 58px;
    z-index: 1000;
    background: rgba(9, 10, 15, 0.88); /* Diubah menjadi transparan gelap solid agar super ringan di GPU */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(0, 102, 255, 0.1), /* Subtle laser neon border */
                0 4px 10px rgba(0, 0, 0, 0.15);
    will-change: transform; /* Beritahu browser untuk membuat layer komposit terpisah */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.nav-container {
    width: 100%;
    height: 100%;
    padding: 0 8px 0 24px; /* Loggar di kiri dekat logo, rapat di kanan dekat pills */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-style: italic;
    font-size: 21px; /* Dikecilkan sedikit agar fit di dalam tinggi navbar */
    font-weight: 800; 
    text-decoration: none;
    letter-spacing: -1px; 
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #ffffff; 
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    transition: color 0.3s ease, filter 0.3s ease;
}

.logo:hover span {
    color: #ffffff; 
    filter: drop-shadow(0 0 6px rgba(var(--color-primary-rgb), 0.5));
}

.logo-light {
    font-weight: 500; 
}

.logo-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.logo:hover .logo-svg {
    transform: rotate(15deg) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(var(--color-primary-rgb), 0.6));
}

.nav-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 99px;
    height: 44px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7); /* Dibuat sedikit lebih terang & tegas */
    text-decoration: none;
    font-weight: 600; /* Dibuat lebih bold */
    font-size: 14px;
    padding: 0 14px; /* Disesuaikan untuk pembungkus ikon melingkar */
    height: 100%;
    border-radius: 99px;
    z-index: 2; /* Berada di atas sliding background */
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 700; /* Dipertebal ke 700 saat aktif */
}

/* Navigasi Ikon Baru */
.nav-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5px; /* Stroke dipertebal agar senada bold */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1); /* Efek zoom mikro modern saat di-hover */
}

.nav-link.active .nav-icon {
    transform: scale(1.05);
}

/* Label Navigasi dengan Ekspansi Dinamis */
.nav-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-left: 0;
    transition: max-width 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.2s ease, 
                margin 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Pemicu Ekspansi saat Hover atau Aktif */
.nav-link:hover .nav-label,
.nav-link.active .nav-label {
    max-width: 70px; /* Lebar maksimum label kata terpanjang */
    opacity: 1;
    margin-left: 8px; /* Memberi sela jarak dari ikon */
}

/* Sliding Pill Background (Transparan dengan Outline Gradasi & Glow) */
.nav-sliding-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: 0;
    background: transparent; /* Transparan murni di bagian tengah */
    box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.25); /* Glow dynamic warna tema laser modern */
    border-radius: 99px;
    z-index: 1;
    pointer-events: none;
    will-change: left, width;
    transition: left 0.38s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.38s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.25s ease;
}

/* Pseudo-element untuk border gradien dengan background transparan */
.nav-sliding-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 99px;
    padding: 1.5px; /* Ketebalan border */
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Ikon Panah CTA Navbar (Hanya muncul saat hover) */
.cta-arrow {
    width: 0;
    height: 14px;
    margin-left: 0;
    opacity: 0;
    transform: scale(0) translateX(-6px);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                margin-left 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.25s ease, 
                transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    overflow: hidden;
}

/* Memunculkan panah & memicu animasi loop bolak-balik saat hover */
.nav-link.nav-link-purple:hover .cta-arrow,
.nav-link.nav-link-blue:hover .cta-arrow {
    width: 14px;
    margin-left: 8px;
    opacity: 1;
    transform: scale(1) translateX(0);
    animation: cta-arrow-loop 0.8s infinite alternate ease-in-out;
    animation-delay: 0.2s; /* Tunggu transisi masuk selesai sebelum mulai looping */
}

/* Keyframes Animasi Panah Loop (Kiri ke Kanan) */
@keyframes cta-arrow-loop {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1) translateX(5px);
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 100% !important; 
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url('https://res.cloudinary.com/fngcyksk/image/upload/v1784900334/bg_xfoswp.webp');
    background-size: cover;
    background-position: center top; 
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    will-change: background-position; 
}

.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 40px; 
    align-items: center;
    justify-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 140px 24px 120px 24px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%; 
}

.browser-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.browser-notice strong { color: var(--text-main); }
.notice-icon { font-size: 13px; }
.notice-close {
    background: none;
    border: none;
    color: #ff3333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    margin-left: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.notice-close:hover { 
    color: #ff0000;
    transform: scale(1.15);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--color-primary-rgb), 0.12);
    border: 1px solid rgba(var(--color-primary-rgb), 0.35);
    color: #818cf8;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.15), inset 0 0 8px rgba(var(--color-primary-rgb), 0.1);
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
    animation: pulse-opacity 2s infinite alternate; 
}

@keyframes pulse-opacity {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(35px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    width: 100%;
    white-space: normal;
}

#typewriter-text {
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    vertical-align: bottom;
    overflow: visible;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    min-height: 1.1em;
}

.word-wrapper {
    grid-area: 1 / 1;
    display: inline-flex;
    white-space: nowrap;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.45)); 
}

.word-wrapper .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    background-image: linear-gradient(135deg, var(--color-primary) -40%, #ffffff 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.15em 0.18em;
    margin: -0.15em -0.18em;
    vertical-align: bottom;
}

.word-wrapper.active .letter { opacity: 1; transform: translateY(0); }
.word-wrapper.out .letter {
    opacity: 0;
    transform: translateY(-12px);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
    display: flex;
    justify-content: center !important; 
    align-items: center;
    width: 100%;
    transform: none !important; 
}

.visual-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center !important;
    transition: var(--transition-smooth);
}

.hero-carousel-container {
    perspective: 1200px;
    transform-style: preserve-3d;
    position: relative;
    width: 280px;
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-card {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    will-change: transform, opacity, filter;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease, filter 0.65s ease;
    border: 1.5px solid transparent;
    background-image: linear-gradient(#0c0d10, #0c0d10), linear-gradient(135deg, var(--color-primary), #ffffff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: none !important; 
    cursor: pointer;
}

.carousel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto !important;
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
}

.carousel-card.pos-1, .carousel-card.pos-2, .carousel-card.pos-3, .carousel-card.exit-down, .carousel-card.enter-bottom {
    pointer-events: auto !important;
}

.carousel-card.pos-1 {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 3;
    filter: brightness(1);
}

.carousel-card.pos-2 {
    transform: translate3d(210px, 0, -80px) rotateY(-80deg) scale(0.85);
    opacity: 0.75;
    z-index: 2;
    filter: brightness(0.6);
}

.carousel-card.pos-3 {
    transform: translate3d(-210px, 0, -80px) rotateY(80deg) scale(0.85);
    opacity: 0.75;
    z-index: 2;
    filter: brightness(0.6);
}

.carousel-card.exit-down {
    transform: translate3d(-210px, 65%, -80px) rotateY(80deg) scale(0.75) !important;
    opacity: 0 !important;
    filter: brightness(0.2) !important;
    z-index: 4 !important;
    transition: transform 0.4s cubic-bezier(0.3, 0, 0.2, 1), opacity 0.3s ease, filter 0.3s ease !important;
}

.carousel-card.enter-bottom {
    transform: translate3d(210px, 65%, -80px) rotateY(-80deg) scale(0.75) !important;
    opacity: 0 !important;
    z-index: 0 !important;
    filter: brightness(0.2) !important;
    transition: none !important;
}

/* =========================================
   WORKS SECTION (GSAP SCROLLYTELLING DESKTOP)
   ========================================= */
.works-section {
    position: relative;
    width: 100%;
    /* Mengurangi 80px agar selaras dengan area layar di bawah navbar yang di-pin */
    height: calc(100vh - 80px);
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible !important; /* Memastikan cahaya di pojok tidak terpotong oleh batas section */
}



.works-section .section-header {
    position: relative;
    z-index: 10;
    /* Menghapus margin-top 70px agar Flexbox bisa melakukan center secara proporsional */
    margin-top: 0;
    margin-bottom: 30px;
}

.works-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.works-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    /* Titik manis (sweet spot) agar jarak judul dan video proporsional */
    height: 62vh; 
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-card-trial {
    position: absolute;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.card-media-wrapper {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1.5px transparent;
    border: 1.5px solid transparent;
    background-image: linear-gradient(#090a0f, #090a0f), linear-gradient(135deg, var(--color-primary) 0%, rgba(255, 255, 255, 0.5) 60%, var(--color-secondary) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    z-index: 2;
}

.portrait-media { width: 330px; aspect-ratio: 9/16; }
.landscape-media { width: 600px; aspect-ratio: 16/9; } /* Ukuran diatur seimbang ke 600px */

.trial-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trial-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.trial-play-overlay:hover { background: rgba(0, 0, 0, 0.1); }

.card-media-wrapper:hover .trial-play-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================
   Custom Minimalist Media Controls Overlay
   (Standalone Circular Buttons: Play/Pause & Volume)
   ========================================== */
.custom-media-controls {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    z-index: 10;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Controls fade in when hovered, playing, or tapped on mobile */
.card-media-wrapper:hover .custom-media-controls,
.card-media-wrapper.controls-active .custom-media-controls,
.custom-media-controls:hover,
.custom-media-controls.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Individual Circular Glassmorphic Button */
.media-ctrl-btn {
    width: 40px;
    height: 40px;
    background: rgba(9, 10, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 102, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.media-ctrl-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.media-ctrl-btn:hover {
    color: var(--color-primary, #0066ff);
    border-color: rgba(0, 102, 255, 0.5);
    background: rgba(14, 16, 26, 0.9);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 102, 255, 0.35);
    transform: scale(1.1);
}

.media-ctrl-btn:active {
    transform: scale(0.92);
}

.media-volume-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-volume-slider-wrapper {
    width: 0;
    overflow: hidden;
    opacity: 0;
    height: 40px;
    background: rgba(9, 10, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0;
    box-shadow: none;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.media-volume-group:hover .media-volume-slider-wrapper,
.media-volume-slider-wrapper:focus-within,
.media-volume-group.slider-open .media-volume-slider-wrapper {
    width: 82px;
    padding: 0 12px;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 102, 255, 0.15);
    opacity: 1;
}

.media-volume-slider {
    width: 58px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 99px;
    outline: none;
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
    accent-color: var(--color-primary, #0066ff);
    transition: background 0.2s ease;
}

.media-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.8);
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
    transition: transform 0.15s ease, background 0.15s ease;
}

.media-volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.25);
    background: var(--color-primary, #0066ff);
}

.media-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.8);
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
}

@media (max-width: 768px) {
    .custom-media-controls {
        bottom: 12px;
        left: 12px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        gap: 8px;
    }

    .media-ctrl-btn {
        width: 36px;
        height: 36px;
    }

    .media-ctrl-btn svg {
        width: 16px;
        height: 16px;
    }

    .media-volume-slider-wrapper {
        height: 36px;
        width: 68px;
        padding: 0 10px;
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
        opacity: 1;
    }

    .media-volume-slider {
        width: 48px;
    }
}

.play-btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    padding-left: 3px;
    box-shadow: 0 10px 25px rgba(0,102,255,0.4);
}

.card-info-wrapper {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%); 
    display: flex;
    flex-direction: column;
    opacity: 0; 
    z-index: 1;
}

.info-portrait { width: 42%; right: 8%; }
/* Reset container utama agar tidak terpengaruh translateY GSAP lama */
.info-landscape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0 !important; 
    left: 0 !important;
    transform: none !important; 
    display: block !important; 
    pointer-events: none; 
}

/* Kunci Teks di Sebelah Kanan Vertikal Tengah */
.landscape-text-group {
    position: absolute;
    top: 26%; /* Ini adalah posisi standby sebelum ditarik naik oleh GSAP */
    transform: none !important; /* Hapus center-alignment agar teks menggantung rata atas (Top-Aligned) */
    left: 64%; 
    width: 25%; 
    pointer-events: auto;
}
.landscape-text-group .modal-title { margin: 0 0 10px 0; text-align: left; }
.landscape-text-group .modal-desc { 
    text-align: justify; /* Diubah menjadi rata kiri-kanan */
    max-width: 100%; 
    margin: 0; 
}


/* Kunci Stats Melintang 3 Kolom di Bawah Tengah */
.project-specs-grid.landscape-specs {
    position: absolute;
    bottom: 16%; /* Naikkan sedikit ke atas (sebelumnya 12%) */
    /* Gap vertikal dengan video/teks sekarang lebih renggang karena video naik ke 38% */
    left: 50%;
    transform: translateX(-50%); 
    width: max-content;
    grid-template-columns: repeat(3, max-content) !important; 
    gap: 30px 60px !important; /* Jarak horizontal diperlebar dari 40px menjadi 60px agar stats lebih merenggang */
    pointer-events: auto;
    margin: 0;
}


/* =========================================
   INJECTED: MOBILE WORKS GRID BASE CSS
   ========================================= */
/* Default sembunyikan grid mobile di Desktop */
.works-mobile-grid { display: none; }

.filter-container { display: flex; justify-content: center; gap: 12px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px 20px; border-radius: 99px; font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition-fast); }
.filter-btn:hover, .filter-btn.active { color: var(--text-main); background: rgba(var(--color-primary-rgb), 0.15); border-color: rgba(var(--color-primary-rgb), 0.5); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }

.works-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; }

.work-card { position: relative; background: #0f1017; border-radius: 12px; overflow: visible; border: 1px solid rgba(255, 255, 255, 0.07); transition: var(--transition-smooth); display: flex; flex-direction: column; z-index: 1; }
.work-card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 100%); border-radius: 12px; z-index: 2; opacity: 0; will-change: opacity; transition: opacity 0.3s ease; pointer-events: none; padding: 1px; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) {
    .work-card:hover { background: #14161f; border-color: transparent; transform: translateY(-8px) scale(1.01); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }
    .work-card:hover::before { opacity: 1; }
}

.work-card.portrait { grid-column: span 2; }
.work-card.landscape { grid-column: span 3; }

.card-media { position: relative; width: 100%; overflow: hidden; background: #0d0e15; border-top-left-radius: 11px; border-top-right-radius: 11px; }

/* Image Shimmer Skeleton */
.card-media.skeleton::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%, rgba(255, 255, 255, 0) 100%); background-size: 200% 100%; animation: shimmerSlide 1.5s infinite linear; z-index: 2; }
@keyframes shimmerSlide { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.work-card.portrait .card-media { aspect-ratio: 9/16; }
.work-card.landscape .card-media { aspect-ratio: 16/9; }

.card-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card-img.loaded { opacity: 1; }
.work-card:hover .card-img { transform: scale(1.05); }

.card-overlay { position: absolute; inset: 0; background: rgba(6, 6, 8, 0.7); display: flex; justify-content: center; align-items: center; opacity: 0; transition: var(--transition-smooth); cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer; z-index: 3;}
.work-card:hover .card-overlay { opacity: 1; }

.play-icon-wrap { width: 54px; height: 54px; border-radius: 50%; background: var(--text-main); color: var(--bg-base); display: flex; justify-content: center; align-items: center; transform: translateY(20px); transition: var(--transition-smooth); }
.play-icon-wrap svg { width: 24px; height: 24px; }
.work-card:hover .play-icon-wrap { transform: translateY(0); }

.card-info { padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; }
.card-info-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin: 0; color: var(--text-main); line-height: 1.25; }
.card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.45; margin: 0; text-align: left; }
.card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

.btn-detail-trigger { position: relative; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text-muted); font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 6px; cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1; }
.btn-detail-trigger::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 100%); border-radius: 6px; z-index: 2; opacity: 0; will-change: opacity; transition: opacity 0.3s ease; pointer-events: none; padding: 1px; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.btn-detail-trigger svg { width: 13.5px; height: 13.5px; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-detail-trigger:hover { background: rgba(255, 255, 255, 0.08); border-color: transparent; color: var(--text-main); }
@media (hover: hover) { .btn-detail-trigger:hover::before { opacity: 1; } }
.btn-detail-trigger:hover svg { transform: translateX(3px); }

.card-software-suite { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }


/* =========================================
   MODAL & BADGE TYPOGRAPHY (GLOBAL USED BY GSAP & MODAL POPUP)
   ========================================= */
.modal-category-badge { display: inline-flex; align-items: center; padding: 6px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 50px; color: var(--text-main); background: rgba(13, 14, 21, 0.8); position: relative; z-index: 1; margin: 0; margin-bottom: 12px; align-self: flex-start; width: max-content; }
.modal-category-badge::before { content: ''; position: absolute; inset: 0; border-radius: 50px; padding: 1.2px; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: -1; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.modal-tag-badge { 
    font-size: 11.5px; /* Diperkecil agar lebih elegan */
    font-weight: 500; 
    color: var(--text-muted); 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.06); 
    padding: 3px 8px; /* Padding dipangkas menyesuaikan ukuran font */
    border-radius: 4px; 
    text-transform: lowercase; 
    letter-spacing: 0.5px; 
    transition: all 0.2s ease;
}
.modal-tag-badge:hover { color: var(--color-secondary); background: rgba(var(--color-primary-rgb), 0.1); border-color: rgba(var(--color-primary-rgb), 0.3); }

.modal-title { font-family: var(--font-heading); font-size: 30px; font-weight: 800; margin: 0 0 10px 0; color: var(--text-main); line-height: 1.15; letter-spacing: -0.8px; }
.modal-desc { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); margin: 0 0 8px 0; text-align: justify; }
.info-portrait .modal-desc { max-width: 400px; } /* Mencegah deskripsi portrait memanjang berlebih ke kanan */
.info-landscape .modal-desc { max-width: 580px; } /* Mengatur lebar proporsional landscape info */

/* Premium Minimalist Spec Grid (Tanpa Icon, Menggantikan Pipeline & Bottom Metas) */
/* Premium Minimalist Spec Grid dengan Aksen Zero-Impact */
.project-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 40px; 
    margin-top: 20px; 
    padding: 20px 26px; 
    width: fit-content;
    max-width: 100%;
    
    /* --- AKSEN VISUAL DIMULAI DI SINI --- */
    /* 1. Wash/Sheen tipis warna biru dari sudut kiri atas */
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    /* 2. Garis aksen biru tegas menyala hanya di tepi atas */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(0, 102, 255, 0.4); 
    
    border-radius: 14px;
    
    /* 3. Pendaran cahaya biru (glow) dari dalam atas, plus shadow dasar */
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 
                inset 0 24px 40px -20px rgba(0, 102, 255, 0.12), /* Inner top glow */
                0 6px 20px rgba(0, 0, 0, 0.2);
    /* --- AKSEN VISUAL SELESAI --- */

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Single Column Layout khusus untuk video Portrait (Desktop & Mobile Modal) */
.info-portrait .project-specs-grid,
.project-modal.portrait .project-specs-grid {
    grid-template-columns: 1fr;
    gap: 24px; /* Direnggangkan khusus portrait */
}

.spec-col {
    display: flex;
    flex-direction: column;
    gap: 3px; /* Diturunkan sedikit lagi agar pas */
}

.spec-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    order: 2; /* Memastikan label berada di bawah */
    margin-top: 0px; /* Dihapus untuk mendekatkan jarak */
    line-height: 1.2;
}

.spec-value {
    font-size: 15.5px; /* Font isinya lebih dibesarkan */
    color: var(--text-main);
    font-weight: 600; /* Font weight bold yang oke */
    display: flex;
    align-items: center;
    order: 1; /* Memastikan isi berada di atas */
    line-height: 1.3;
}

/* Adobe CC Application Badges (Logo Asli Versi CSS Tajam Premium) */
.adobe-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px; /* Memberikan kompensasi jarak khusus software stack */
}

.adobe-badge {
    width: 20px;
    height: 20px;
    border-radius: 3.5px;
    font-size: 9.5px;
    font-weight: 700;
    font-family: var(--font-heading), -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    line-height: 1;
    padding-bottom: 0.5px;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.4);
}

/* Figma Badge khusus specs grid */
.figma-badge {
    width: 20px;
    height: 20px;
    border-radius: 3.5px;
    background: #000000; /* Latar belakang hitam agar kontras */
    border: 0.8px solid rgba(255, 255, 255, 0.7); /* Outline putih tipis elegan */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.4);
    padding: 2.5px; /* Memberi padding agar logo figma tidak mentok tepi kotak */
    box-sizing: border-box;
}

.figma-badge-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.star-active { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; margin-right: 2px; }
.star-dim { color: rgba(255, 255, 255, 0.18); display: inline-block; margin-right: 2px; }


/* =========================================
   INJECTED: PROJECT DETAIL MODAL POPUP
   ========================================= */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 60px 24px;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto; 
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: fixed; 
    inset: 0;
    background: rgba(6, 7, 10, 0.95); 
    z-index: 1;
}

.modal-content-wrapper {
    position: relative;
    width: 100%;
    background: rgba(15, 16, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(var(--color-primary-rgb), 0.15);
    z-index: 2;
    overflow: hidden;
    margin: auto; 
    transform: scale(0.96) translateY(15px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.project-modal.portrait .modal-content-wrapper { max-width: 900px; }
.project-modal.landscape .modal-content-wrapper { max-width: 750px; }
.project-modal.show .modal-content-wrapper { transform: scale(1) translateY(0); }

.project-modal.portrait .modal-body { display: grid !important; grid-template-columns: auto 1fr; align-items: stretch; }
.project-modal.landscape .modal-body { display: flex !important; flex-direction: column; align-items: stretch; }

.project-modal.portrait .modal-media-col { background: #090a0f; display: flex; justify-content: center; align-items: center; position: relative; width: 350px; aspect-ratio: 9/16; border-right: 1px solid rgba(255, 255, 255, 0.05); border-bottom: none; }
.project-modal.landscape .modal-media-col { background: #090a0f; display: flex; justify-content: center; align-items: center; position: relative; width: 100%; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.modal-video-container { width: 100%; height: 100%; overflow: hidden; }
.project-modal.landscape .modal-video-container { aspect-ratio: 16/9; }
.modal-video-container video { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-modal.portrait .modal-details-col { padding: 48px; display: flex; flex-direction: column; justify-content: flex-start; position: relative; max-height: 100%; overflow-y: auto; }
.project-modal.landscape .modal-details-col { padding: 40px; display: flex; flex-direction: column; justify-content: flex-start; position: relative; }

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}
.modal-close-btn svg { width: 15px; height: 15px; }
.modal-close-btn:hover { background: rgba(255, 85, 85, 0.15); border-color: rgba(255, 85, 85, 0.4); color: #ff5555; transform: rotate(90deg); }

.modal-header { margin-bottom: 4px; }

/* CROSSING DIVIDER COMPONENT (v15) */
.divider-wrapper {
    position: relative;
    width: 100vw;
    height: 100px;
    margin-top: 10px; /* Diturunkan seimbang dari section works agar tidak sempit */
    margin-bottom: -110px; /* Kompensasi penarikan section di bawahnya */
    margin-left: 0;
    margin-right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden; /* Mencegah kebocoran lebar police-line 120vw */
}

.police-line {
    position: absolute;
    width: 120vw;
    left: -10vw;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: clip-path 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.police-line.line-1 {
    height: 28px;
    z-index: 2;
    background: linear-gradient(135deg, #0044EE 0%, #0066FF 38%, #4FA2FF 68%, #A5C9FF 88%, #FFFFFF 100%);
    transform-origin: 68% 50%;
    transform: rotate(-1.5deg);
}

.police-line.line-2 {
    height: 18px;
    z-index: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #A5C9FF 12%, #4FA2FF 32%, #0066FF 62%, #0044EE 100%);
    transform-origin: 68% 50%;
    transform: rotate(0.8deg);
    opacity: 0.95;
}



.marquee {
    display: flex;
    width: fit-content;
    white-space: nowrap;
    animation: scrollInfinite 25s linear infinite;
    will-change: transform;
}

.marquee span {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 2px;
    padding: 0;
    display: flex;
    align-items: center;
}

@keyframes scrollInfinite {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.police-line.from-right {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}
.police-line.from-right.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.police-line.from-left {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}
.police-line.from-left.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 768px) {
    .police-line.line-1 { height: 22px; }
    .police-line.line-1 .marquee span { font-size: 10px; }
    .police-line.line-2 { height: 14px; }
    .divider-wrapper { height: 80px; margin: -40px 0; }
}

/* About & Skills Section */
.about-section {
    padding-top: 230px; /* Kompensasi penambahan margin negatif divider agar jarak teks about tetap renggang & stabil */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.about-info {
    display: flex;
    flex-direction: column;
}

.about-info .section-title { text-align: left; margin-bottom: 24px; }
.about-text { font-size: 17px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; font-weight: 300; }

.about-profile-wrap { display: flex; align-items: flex-start; gap: 24px; margin-top: 8px; }
.profile-avatar-box {
    width: 145px; 
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid transparent;
    background-image: linear-gradient(#0c0d10, #0c0d10), linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.4), rgba(255, 255, 255, 0.6));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-avatar-box:hover { transform: translateY(-4px) scale(1.02); }
.profile-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-bio-text { display: flex; flex-direction: column; }
.profile-bio-text .about-text { margin-bottom: 14px; }
.profile-bio-text .about-text:last-child { margin-bottom: 0; }

.about-skills { display: flex; flex-direction: column; align-items: flex-end; }
.skills-title { font-family: var(--font-heading); font-size: 20px; margin-bottom: 24px; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 8px; }
.skills-title svg { color: var(--color-secondary); flex-shrink: 0; }
.about-skills .skills-title { width: 100%; max-width: 240px; text-align: center; }

.software-grid { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; max-width: 240px; }
.software-card {
    position: relative;
    background: #0f1017;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 14px; 
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px; 
    transition: var(--transition-smooth);
    z-index: 1;
}
.software-card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 100%); border-radius: 10px; z-index: 2; opacity: 0; will-change: opacity; transition: opacity 0.3s ease; pointer-events: none; padding: 1px; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) {
    .software-card:hover { background: #14161f; border-color: transparent; transform: translateY(-6px) scale(1.02); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); }
    .software-card:hover::before { opacity: 1; }
}

.soft-details { display: flex; flex-direction: column; justify-content: center; height: 34px; flex-grow: 1; }
.soft-name { font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.2; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.soft-tag { font-size: 11px; font-weight: 500; color: var(--text-dark); margin-left: 4px; vertical-align: middle; }
.soft-level { font-size: 12px; font-weight: 500; line-height: 1.2; opacity: 0; max-height: 0; margin-top: 0; overflow: hidden; transform: translateY(4px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; }

.level-indicator { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; height: 12px; vertical-align: middle; }
.level-indicator .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: all 0.3s ease; }

.level-beginner .dot-1 { background: currentColor; }
.level-intermediate .dot-1, .level-intermediate .dot-2 { background: currentColor; }
.level-advanced .dot-1, .level-advanced .dot-2, .level-advanced .dot-3 { background: currentColor; }
.level-expert .dot-1, .level-expert .dot-2, .level-expert .dot-3, .level-expert .dot-4 { background: currentColor; }

.soft-level.level-expert { color: #D946EF; }
.soft-level.level-advanced { color: var(--color-accent); }
.soft-level.level-intermediate { color: #FBBF24; }
.soft-level.level-beginner { color: #10B981; }

.software-card:hover .soft-level { opacity: 1; max-height: 16px; margin-top: 4px; transform: translateY(0); }

.soft-icon { width: 34px; height: 34px; border-radius: 6px; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 14px; filter: grayscale(100%); opacity: 0.55; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.software-card:hover .soft-icon { filter: grayscale(0%); opacity: 1; }

.ae-color { background: rgba(0, 0, 91, 0.6); color: #9999FF; border: 1px solid #9999FF; }
.ai-color { background: rgba(51, 0, 0, 0.6); color: #FF9A00; border: 1px solid #FF9A00; }
.ps-color { background: rgba(0, 30, 54, 0.6); color: #31A8FF; border: 1px solid #31A8FF; }
.pr-color { background: rgba(0, 0, 91, 0.6); color: #9999FF; border: 1px solid #9999FF; }

.figma-icon { background: transparent !important; border: none !important; }
.software-logo { width: 22px; height: 22px; object-fit: contain; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.software-card:hover .software-logo { transform: scale(1.15); }

/* =========================================
   FLOATING SHOWCASE (Graphic Design)
   ========================================= */
/* =========================================
   NEW GRAPHIC SLIDER SHOWCASE (PROJECT 1)
   ========================================= */
.graphic-slider-showcase {
    width: 100%;
    margin: 40px auto 60px;
    position: relative;
}

.graphic-slider-showcase.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-slider-showcase.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header Info (Tata Letak Vertikal 1 Kolom Modern) */
.slider-header-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 24px;
}

/* Modifier untuk tata letak rata kanan (Proyek Genap/Project 2) */
.slider-header-info.align-right-layout {
    align-items: flex-end;
}

.slider-header-info.align-right-layout .slider-title-row {
    justify-content: flex-end;
}

.slider-header-info.align-right-layout .slider-project-desc {
    text-align: justify;
    text-justify: inter-word;
}

.slider-header-info.align-right-layout .slider-project-tags {
    justify-content: flex-end;
}

.slider-title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.slider-title-row .modal-category-badge {
    margin-bottom: 0 !important; /* Hilangkan margin-bottom global agar sejajar vertikal tengah */
    align-self: center !important;
}

.slider-project-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
}

.slider-project-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
}

.slider-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Slider Track & Infinite Loop Animation */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Soft shading fade on the left & right borders of the slider */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.slider-wrapper.is-dragging {
    cursor: grabbing !important;
}

.slider-wrapper.is-dragging .slider-item {
    cursor: grabbing !important;
    pointer-events: none;
}

.slider-track {
    display: flex;
    width: max-content;
    /* Penstabil Transisi GPU Hardware Acceleration untuk Mencegah Flicker */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Helper untuk menjeda animasi saat elemen berada di luar viewport (untuk performa) */
.slider-track.animation-paused {
    animation-play-state: paused !important;
}

.slider-set {
    display: flex;
    gap: 14px;
    padding-right: 14px; /* Penyeimbang gap agar loop horizontal 100% mulus tanpa melompat */
}

/* Pause scroll animation on hover when not dragging */
.slider-wrapper:hover:not(.is-dragging) .slider-track {
    animation-play-state: paused;
}

/* Individual Slider Item (1080x1350 / 4:5 ratio) */
.slider-item {
    flex: 0 0 auto;
    width: 280px; /* Ukuran proporsional di layar desktop */
    aspect-ratio: 1080 / 1350; /* Aspek rasio 4:5 */
    border-radius: 6px; /* Dikurangi dari 16px menjadi 6px agar tidak terlalu rounded */
    overflow: hidden;
    position: relative;
    border: none; /* Dihapus agar gambar melayang murni */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Shadow tipis agar gambar terkesan melayang ringan */
    background: transparent; /* Hapus warna latar belakang hitam */
    cursor: url('../assets/custom-cursor-hover-purple.svg') 6 4, pointer !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Rasio Lanskap Khusus Project 3 (1351x954) */
.slider-item.ratio-landscape {
    width: 380px; /* Diperlebar karena lanskap */
    aspect-ratio: 1351 / 954;
}

.slider-item:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); /* Shadow sedikit lebih tegas saat di-hover */
}

.slider-img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    /* Optimalisasi Rendering Memori GPU & Mencegah Black screen flicker */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slider-item:hover img {
    transform: scale(1.04);
}



/* CSS Marquee Keyframes */
@keyframes marquee-slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Bergeser 50% lebar track (1 set penuh) untuk loop tak terbatas */
    }
}

.slider-track.reverse-direction {
    animation: marquee-slide-reverse 24s linear infinite;
}

/* Modifikasi durasi agar kecepatan linier piksel konsisten di semua proyek */
.slider-track.speed-project-2 {
    animation-duration: 48s; /* 12 gambar asli: dipercepat seimbang */
}

.slider-track.speed-project-3 {
    animation-duration: 48s; /* 9 gambar lanskap asli: dipercepat seimbang */
}

@keyframes marquee-slide-reverse {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Responsivitas Slider */
@media (max-width: 992px) {
    .slider-header-info {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    .slider-item {
        width: 240px; /* Ukuran sedikit lebih kecil di tablet */
    }
    .slider-item.ratio-landscape {
        width: 320px; /* Menyesuaikan proporsi lanskap di tablet */
    }
}

@media (max-width: 640px) {
    .slider-project-title {
        font-size: 28px;
    }
    .slider-item {
        width: 200px; /* Ukuran kompak di handphone */
    }
    .slider-item.ratio-landscape {
        width: 260px; /* Menyesuaikan proporsi lanskap di handphone */
    }
    .slider-set {
        gap: 10px;
        padding-right: 10px;
    }
}



/* Lightbox Modal */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.image-lightbox.show { opacity: 1; pointer-events: auto; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 7, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: url('../assets/custom-cursor-hover-purple.svg') 6 4, pointer !important;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(147, 51, 234, 0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.show .lightbox-content { transform: scale(1) translateY(0); }

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    pointer-events: none; /* Mencegah klik kanan simpan gambar di modal */
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close svg {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.3s ease;
}

.lightbox-close:hover { 
    background: rgba(255, 85, 85, 0.2); 
    color: #ff5555; 
    border-color: rgba(255, 85, 85, 0.5); 
}

.lightbox-close:hover svg {
    transform: rotate(90deg); /* Animasi rotasi hanya memutar ikon SVG di dalam, menjaga lingkaran tetap stabil */
}



/* Contact Section */
.contact-section {
    max-width: none;
    width: 100%;
    position: relative;
    background-image: url('https://res.cloudinary.com/fngcyksk/image/upload/v1785332116/BGDOWN1_pjvjtr.webp');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
    padding-bottom: 0 !important;
    overflow: hidden; /* Mencegah shapes melayang keluar layar memicu scrollbar */
}

/* Background Khusus Halaman Graphic Design */
.contact-section.graphic-contact {
    background-image: url('https://res.cloudinary.com/fngcyksk/image/upload/v1786332470/BGDOWN2_tmpost.webp');
}

/* Floating Cyber Shapes Background */
.contact-shapes-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.contact-shape {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate3d(-50%, -50%, 0) scale(0);
    opacity: 0;
    
    /* Gradasi seimbang: kilatan putih di ujung, disusul warna biru pekat di tengah */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(0, 102, 255, 0.45) 50%, rgba(0, 30, 120, 0.25) 100%);
    border: 1.5px solid rgba(165, 201, 255, 0.65); /* Border biru muda yang bersinar terang */
    box-shadow: 0 0 12px rgba(0, 102, 255, 0.4), 0 0 6px rgba(255, 255, 255, 0.25);
    
    will-change: transform, opacity;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                top 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                left 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Kategori Bentuk Geometris */
.shape-triangle {
    width: 0;
    height: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.shape-triangle::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(0, 102, 255, 0.45) 50%, rgba(0, 30, 120, 0.25) 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: 1.5px solid rgba(165, 201, 255, 0.65);
}

.shape-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.shape-square {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.shape-cross {
    width: 24px;
    height: 24px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.shape-cross::before,
.shape-cross::after {
    content: "";
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(0, 102, 255, 0.45) 100%);
    border-radius: 2px;
}
.shape-cross::before {
    top: 0;
    left: 10px;
    width: 4px;
    height: 24px;
}
.shape-cross::after {
    top: 10px;
    left: 0;
    width: 24px;
    height: 4px;
}

/* Mengatur Pemancaran Koordinat Akhir Menggunakan CSS Variables Dinamis (Diacak via JS) */
.reveal.active .sh-1,
.reveal.active .sh-3,
.reveal.active .sh-4,
.reveal.active .sh-6 {
    top: var(--target-top, 50%) !important;
    left: var(--target-left, 50%) !important;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.22; /* Opasitas target dikurangi ke 0.22 agar menyatu halus sebagai ornamen latar */
}

/* Animasi Melayang Hanya Aktif Setelah Pemancaran Selesai (Dicuat lewat JS class) */
.contact-shapes-bg.start-floating .sh-1 { animation: float-shape-1 16s ease-in-out infinite alternate; }
.contact-shapes-bg.start-floating .sh-3 { animation: float-shape-3 18s ease-in-out infinite alternate; }
.contact-shapes-bg.start-floating .sh-4 { animation: float-shape-4 20s ease-in-out infinite alternate; }
.contact-shapes-bg.start-floating .sh-6 { animation: float-shape-6 24s ease-in-out infinite alternate; }

/* Animasi Melayang Acak dan Berputar Halus (GPU Accelerated) - Opacity dihilangkan agar stabil */
@keyframes float-shape-1 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(20px, -35px, 0) rotate(180deg); }
}
@keyframes float-shape-3 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(25px, -20px, 0) rotate(90deg); }
}
@keyframes float-shape-4 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(-30px, 30px, 0) rotate(240deg); }
}
@keyframes float-shape-6 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(-20px, 25px, 0) rotate(150deg); }
}

.contact-section .contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 120px;
    position: relative;
    z-index: 1; /* Di atas shapes background */
}

.contact-pills-wrapper { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 48px; flex-wrap: wrap; }

.contact-pill {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    width: 54px; 
    border-radius: 12px;
    background: #0f1017;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    overflow: hidden; 
    cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

.contact-pill * { cursor: url('../assets/custom-cursor-hover.svg') 6 4, pointer !important; }

.contact-pill::before {
    content: ""; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 100%); z-index: 2; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; padding: 1.5px; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

.pill-icon-box { width: 54px; height: 54px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; color: var(--color-secondary); transition: color 0.4s ease, transform 0.4s ease; }
.pill-svg { width: 22px; height: 22px; }

.pill-content { display: flex; flex-direction: column; justify-content: center; padding-right: 24px; padding-left: 2px; white-space: nowrap; opacity: 0; transform: translateX(-15px); transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.pill-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-primary); line-height: 1.2; }
.pill-value { font-size: 13.5px; font-weight: 500; color: var(--text-main); line-height: 1.3; }

.contact-pill:hover { width: 260px; background: #14161f; border-color: transparent; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); }
.contact-pill:hover::before { opacity: 1; }
.contact-pill:hover .pill-icon-box { color: #ffffff; transform: scale(1.05); }
.contact-pill:hover .pill-content { opacity: 1; transform: translateX(0); transition-delay: 0.1s; transition-duration: 0.5s; }

/* Footer Section */
.footer { background: var(--bg-base); padding: 40px 24px; }
.footer-container { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-copy { color: var(--text-dark); font-size: 14px; }
.footer-tools-link { color: #ffffff; text-decoration: none; transition: var(--transition-fast); margin-left: 8px; font-weight: 500; }
.footer-tools-link:hover { color: var(--color-primary); }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
    .footer-tools-desktop-only {
        display: none !important;
    }
}

.reveal .reveal-child { opacity: 0; transform: translateY(60px); transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active .reveal-child { opacity: 1; transform: translateY(0); }

/* Override Khusus Hero Section (Apple Style Fade-Up) */
#hero .reveal-child { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.6s ease-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); 
}

#hero.active .reveal-child { 
    opacity: 1; 
    transform: translateY(0); 
}

.reveal.active .reveal-child.delay-1 { transition-delay: 0.1s; }
.reveal.active .reveal-child.delay-2 { transition-delay: 0.3s; }
.reveal.active .reveal-child.delay-3 { transition-delay: 0.6s; }
.reveal.active .reveal-child.delay-4 { transition-delay: 0.9s; }
.reveal.active .reveal-child.delay-5 { transition-delay: 1.2s; }
.reveal.active .reveal-child.delay-6 { transition-delay: 1.4s; }
.reveal.active .reveal-child.delay-7 { transition-delay: 1.5s; }
.reveal.active .reveal-child.delay-8 { transition-delay: 1.6s; }
.reveal.active .reveal-child.delay-9 { transition-delay: 1.7s; }
.reveal.active .reveal-child.delay-10 { transition-delay: 2.0s; }
.reveal.active .reveal-child.delay-11 { transition-delay: 2.2s; }
.reveal-child:hover { transition-delay: 0s !important; }

/* Premium Toast Notification */
.toast-notification {
    position: fixed; top: 28px; right: 28px; background: rgba(10, 10, 15, 0.96); border: 1px solid rgba(0, 102, 255, 0.35); border-radius: 12px; padding: 14px 20px; color: var(--text-main); font-family: var(--font-body); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 255, 0.15); transform: translateY(-40px) scale(0.95); opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 10000; pointer-events: none; 
}
.toast-notification.show { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.toast-icon { color: #00FF66; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; }

/* Premium Back to Top Button */
.back-to-top-btn {
    position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: rgba(10, 10, 15, 0.95); border: 1px solid rgba(0, 102, 255, 0.35); color: var(--text-main); display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 999;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: rgba(15, 15, 25, 0.90); border-color: var(--color-primary); color: var(--color-primary); box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3); }
.back-to-top-icon { width: 20px; height: 20px; transition: transform 0.3s ease; }
.back-to-top-btn:hover .back-to-top-icon { transform: translateY(-2px); }

/* Responsiveness Rules Desktop/Tablet */
@media (max-width: 1024px) {
    section { padding: 80px 24px; }
    .hero-section { padding-top: 0; padding-bottom: 0; }
    .hero-container { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .hero-content { align-items: center; }
    .hero-visual { justify-content: center !important; transform: none !important; }
    .visual-card-wrapper { justify-content: center !important; max-width: 90vw; width: 90vw; transform: scale(0.9); transform-origin: center center; }
    .carousel-card.card-left { transform: translateX(-50%) translateZ(-150px) scale(0.85); }
    .carousel-card.card-right { transform: translateX(50%) translateZ(-150px) scale(0.85); }
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-info .section-tagline { align-self: center; }
    .about-info .section-title { text-align: center; }
    .about-skills { align-items: center !important; }
    .about-skills .skills-title { justify-content: center !important; text-align: center !important; width: 100%; }
    .software-grid { max-width: 260px !important; margin: 0 auto; }

    /* Pindahkan pemicu Works Stage ke 1024px untuk mengamankan Layout dari Zoom 125%-150% */
    .works-stage { display: none !important; }
    .works-section { height: auto; padding: 0 16px 60px; justify-content: flex-start; }
    .works-section .section-header { margin-top: 90px; margin-bottom: 28px; }
    .works-container { padding: 0; }
    
    /* Tampilkan Mobile-Only Grid (Disesuaikan Lebar Tablet 720px) */
    .works-mobile-grid { display: block; width: 100%; max-width: 720px; margin: 0 auto; padding: 0 0 20px; }
    .works-grid { grid-template-columns: 1fr; gap: 24px; }
    .work-card.portrait, .work-card.landscape { grid-column: span 1; }
}

/* Modal Responsiveness */
@media (max-width: 992px) {
    .project-modal.portrait .modal-body, .project-modal.landscape .modal-body { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column; }
    .project-modal.portrait .modal-media-col, .project-modal.landscape .modal-media-col { width: 100% !important; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .modal-details-col { padding: 32px; }
    .modal-content-wrapper { max-height: 90vh; overflow-y: auto; }
    .project-specs-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 16px 16px !important; 
        padding: 16px 18px !important; 
        margin-bottom: 10px; 
    }
    @media (max-width: 480px) {
        .project-specs-grid { 
            grid-template-columns: 1fr !important; 
            gap: 14px !important;
        }
    }
}


/* ====================================================
   INJECTED: MOBILE WORKS GRID STYLING & 60 FPS OPTIMIZATION
   ==================================================== */
@media (max-width: 1024px) {
    .hero-section { background-position: 80% top; }
    
    /* Reset Floating Pill ke Navbar Default Lebar Penuh di Mobile */
    .navbar {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 64px !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        background: #090a0f !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    .nav-container {
        padding: 0 20px !important;
        gap: 0 !important;
    }
    
    .menu-toggle { display: flex; }
    .visual-card-wrapper { max-width: 100%; width: 100%; transform: scale(0.85); transform-origin: center center; }
    
    /* Container Mengambang Mobile Menu (Floating Card Popover) */
    .nav-menu { 
        position: fixed !important; 
        top: 74px !important; 
        left: 16px !important; 
        right: 16px !important;
        width: auto !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        height: auto !important; 
        min-height: 0 !important;
        background: #0f1017 !important; 
        flex-direction: column !important; 
        align-items: stretch !important; 
        padding: 10px !important; 
        gap: 6px !important; 
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0.25s !important; 
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 18px !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(var(--color-primary-rgb), 0.2) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-8px) scale(0.96) !important;
        pointer-events: none !important;
        z-index: 1000 !important;
    }
    .nav-menu.open { 
        left: 16px !important;
        right: 16px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }
    
    .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        height: auto !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.75) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid transparent !important;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
        margin: 0 !important;
    }

    .nav-link:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .nav-link.active {
        color: #ffffff !important;
        font-weight: 700 !important;
        background: rgba(var(--color-primary-rgb), 0.14) !important;
        border-color: rgba(var(--color-primary-rgb), 0.35) !important;
    }

    .nav-link .nav-icon {
        width: 19px !important;
        height: 19px !important;
        stroke: currentColor !important;
        flex-shrink: 0 !important;
    }

    /* Seluruh label teks navbar tampil penuh tanpa ter-collapse di mobile */
    .nav-label {
        max-width: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        margin-left: 0 !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
        color: inherit !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }

    .nav-link.active .nav-label {
        color: #ffffff !important;
        font-weight: 700 !important;
    }
    
    .nav-sliding-bg {
        display: none !important; /* Nonaktifkan sliding bg di floating menu mobile */
    }

    /* override max-width agar lebih ramping di perangkat mobile */
    .works-mobile-grid { max-width: 480px; }

    .contact-section {
        background-size: cover;
    }
    .contact-section .contact-container {
        padding-bottom: 80px;
    }
    .about-section {
        padding-top: 120px; /* Kompensasi margin negatif dari cross-line divider di mobile */
    }
}

/* Mobile specific menu animations */
.menu-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================================================
   ULTRA-OPTIMIZED MOBILE PERFORMANCE (60 FPS CLEAN)
   ==================================================== */
@media (max-width: 768px) {
    /* 1. Disable All GPU-Heavy Backdrop Filters & Heavy Backgrounds on Mobile */
    *, *::before, *::after {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    .bg-grid {
        display: none !important;
    }
    
    /* 2. Hero Section: Clean Text-Only Focus (Hide 3D Video Carousel completely) */
    .hero-section {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        background-color: #0c0d10 !important;
        background-image: url('https://res.cloudinary.com/fngcyksk/image/upload/v1784900334/bg_xfoswp.webp') !important;
        background-size: cover !important;
        background-position: center top !important;
    }
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 0 !important;
        padding: 0 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .browser-notice {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-visual {
        display: none !important; /* Sembunyikan total 3D video carousel berat di mobile */
    }
    .hero-content {
        max-width: 100% !important;
        align-items: center !important;
        width: 100% !important;
    }
    .hero-title {
        font-size: clamp(30px, 7.5vw, 44px) !important;
        line-height: 1.15 !important;
        margin-bottom: 18px !important;
    }
    .hero-subtitle {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 92% !important;
        margin-bottom: 28px !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
    .hero-actions {
        justify-content: center !important;
    }
    
    /* 3. Solid Sleek Dark Backgrounds (Replace GPU blurs with clean solids) */
    .navbar {
        background: #090a0f !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }
    .project-specs-grid,
    .software-card,
    .work-card,
    .contact-pill,
    .toast-notification,
    .back-to-top-btn {
        background: #0f1017 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    .modal-backdrop,
    .image-lightbox .lightbox-backdrop {
        background: rgba(5, 6, 8, 0.95) !important;
    }
    
    /* 4. Disable Continuous Background Shapes Repaints */
    .contact-shapes-bg {
        display: none !important;
    }
    
    /* 5. Touch Devices Native Cursor */
    html, body, a, button, input, [role="button"], * {
        cursor: auto !important;
    }

    /* 6. Pure Static Content on Mobile (Hapus total efek animasi reveal konten) */
    .reveal,
    .reveal.active,
    .reveal-child,
    .reveal.active .reveal-child,
    #hero .reveal-child,
    #hero.active .reveal-child,
    .reveal-child[class*="delay-"],
    .reveal.active .reveal-child[class*="delay-"],
    .first-project.active .reveal-child[class*="delay-"] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        transition-delay: 0s !important;
        animation: none !important;
    }
    
    /* 7. Hapus Divider Loading di Bawah About & Pastikan Contact Selalu Aktif */
    .scroll-progress-wrapper,
    #scroll-divider {
        display: none !important;
    }
    
    #contact,
    .contact-section {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }
}

@media (max-width: 640px) {
    .about-profile-wrap { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .profile-avatar-box { width: 155px; }
    .contact-pills-wrapper { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
    .contact-pill { width: 100% !important; }
    .contact-pill:hover { width: 100% !important; }
    .pill-content { opacity: 1 !important; transform: translateX(0) !important; }
}

@media (max-width: 480px) {
    .hero-actions { display: flex; flex-direction: row !important; justify-content: center; flex-wrap: nowrap !important; gap: 12px; width: 100%; }
    .hero-actions .btn { padding: 12px 18px; font-size: 14px; width: auto; max-width: none; white-space: nowrap; }
    .hero-actions .btn-primary svg { width: 16px !important; height: 16px !important; }
    .visual-card-wrapper { max-width: 100%; width: 100%; transform: scale(0.72); transform-origin: center center; margin-top: -15px; margin-bottom: -15px; }
    .toast-notification { top: 20px; left: 20px; right: 20px; bottom: auto; justify-content: center; transform: translateY(-30px) scale(0.95); }
    .back-to-top-btn { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    
    /* Responsive card info for small screens */
    .card-info { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .card-title { font-size: clamp(14px, 4vw, 16px); line-height: 1.3; }
    .card-desc { font-size: 12px; line-height: 1.4; }
    .card-meta { align-items: center; flex-direction: row; justify-content: space-between; width: 100%; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 10px; }
    .card-software-suite { grid-template-columns: repeat(4, 19px); gap: 4px; }
}

@media (prefers-reduced-transparency: reduce) {
    .work-card, .software-card, .contact-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(15, 16, 22, 0.9) !important; }
}

video::-internal-media-controls-download-button { display: none !important; }

/* =========================================
   SCROLL WARNING PROGRESS DIVIDER
   ========================================= */
.scroll-progress-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px; /* Diperpendek secara signifikan (sebelumnya 600px) */
    margin: 0 auto;
    padding: 50px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.scroll-track {
    position: relative;
    width: 100%;
    height: 24px;
    background: #11131a;
    border: 1px solid #232836; /* Border sedikit lebih tegas */
    border-radius: 6px;
    overflow: visible !important;
    box-shadow: inset 0 2px 6px #08090a;
}

.scroll-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    /* Pattern stripe sedikit lebih berpenampilan biru gelap */
    background-image: repeating-linear-gradient(
        -45deg,
        #1a233a,
        #1a233a 15px,
        #263352 15px,
        #263352 30px
    );
    background-size: 42px 42px;
    animation: warning-move 2.5s linear infinite;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
}

@keyframes warning-move {
    0% { background-position: 0 0; }
    100% { background-position: 42px 0; }
}

.scroll-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #8da2c0; /* Warna teks lebih terang & mudah dibaca */
    z-index: 5;
    white-space: nowrap;
    text-shadow: 1px 1px 3px #000000;
    pointer-events: none;
}

/* Festive / Completed State (Semi-Stealth Theme Gradient) */
.scroll-fill.festive {
    background-image: 
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.06) 15px,
            rgba(0, 0, 0, 0.25) 15px,
            rgba(0, 0, 0, 0.25) 30px
        ),
        linear-gradient(90deg, #0e2042, #183c78, #2251a3); /* Gradasi biru lebih hidup */
    background-size: 42px 42px, 100% 100%;
    box-shadow: 0 0 12px rgba(0, 102, 255, 0.25); /* Glow biru lembut/subtle */
    animation: festive-move 2s linear infinite;
}

/* Animasi khusus festive: hanya layer garis yang bergerak (posisi pertama), gradasi (posisi kedua) tetap diam di 0 0 */
@keyframes festive-move {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 42px 0, 0 0; }
}

.scroll-text.festive {
    color: #a5c9ff; /* Warna biru muda terang khas tema FLoz Visuals */
    text-shadow: 0 0 6px rgba(0, 102, 255, 0.5), 1px 1px 2px #000000;
}

/* Efek Cyber-Flicker Glitch untuk transisi teks */
.scroll-text.flicker-active {
    animation: cyber-flicker 0.4s steps(2, start) 1;
}

@keyframes cyber-flicker {
    0%, 100% {
        opacity: 1;
        filter: none;
    }
    10% {
        opacity: 0.1;
        filter: hue-rotate(90deg) blur(0.5px);
    }
    30% {
        opacity: 0.8;
    }
    45% {
        opacity: 0;
        filter: skewX(10deg);
    }
    60% {
        opacity: 0.9;
        filter: none;
    }
    75% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.8;
        filter: skewX(-5deg);
    }
}

/* Membuka overflow parent agar outline pulse bisa membesar menembus kotak */
.scroll-track {
    overflow: visible !important;
}

/* Memastikan ujung loading bar tetap melengkung rapi walau overflow dibuka */
.scroll-fill {
    border-radius: 6px;
}

/* Animasi Outline Tipis Gradasi Biru-Putih (Ekspansi Geometris Rapi) */
.scroll-track.festive::before {
    content: "";
    position: absolute;
    inset: -1px; 
    border-radius: 6px; 
    padding: 1.5px; 
    background: linear-gradient(135deg, var(--color-primary), #ffffff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0; /* Default opacity 0 mencegah kedipan awal sebelum animasi terpicu */
    animation: outline-pulse-even 2s infinite cubic-bezier(0.16, 1, 0.3, 1) both; /* Menggunakan both untuk fill-mode */
    pointer-events: none;
    will-change: inset, opacity, border-radius; /* Akselerasi hardware agar tidak patah-patah */
}

@keyframes outline-pulse-even {
    0% {
        inset: -1px;
        border-radius: 6px;
        opacity: 0; 
    }
    15% {
        opacity: 0.6; /* Dinaikkan sedikit dari 0.4 agar desiran terlihat elegan */
    }
    85% {
        opacity: 0; /* Mematikan opacity lebih awal sebelum siklus loop berakhir */
    }
    100% {
        inset: -18px; 
        border-radius: 24px; 
        opacity: 0; 
    }
}

/* Festive Particles */
.festive-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}

/* =========================================
   WORKS 5-STEPS VIDEO INDICATOR (PREMIUM ULTRAMODERN)
   ========================================= */
.works-indicator {
    position: absolute;
    right: -50px; /* Menggeser jauh ke kanan luar dari area teks info 1200px */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 180px;
    z-index: 20;
}

/* Penataan Pop-up Device Dinamis di Samping Titik (Diposisikan di Kanan) */
.device-pop {
    position: absolute;
    left: 20px; /* Jarak melayang di sebelah kanan titik */
    top: 50%;
    transform: translateY(-50%) translateX(-12px) scale(0.7); /* Bergerak masuk dari arah kiri */
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

/* Munculkan Pop-up Saat Titik Aktif ATAU Di-hover */
.ind-dot.active .device-pop,
.ind-dot:hover .device-pop {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
}

/* Base Device Wireframe Style (Pop-up Mungil) */
.device-icon {
    position: relative;
    border-radius: 3px;
    background: rgba(12, 14, 18, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.device-screen {
    position: absolute;
    border-radius: 1.5px;
    background: rgba(9, 10, 15, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-count {
    font-size: 8px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.2px;
}

.device-home-btn {
    position: absolute;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
}

/* 1. Spesifikasi HP Berdiri (Portrait) */
.device-portrait {
    width: 20px;
    height: 34px;
    border: 1.2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.25);
}

.device-portrait .device-screen {
    top: 2px;
    bottom: 5px;
    left: 1.5px;
    right: 1.5px;
}

.device-portrait .device-count {
    color: #ffffff;
}

.device-portrait .device-home-btn {
    width: 2px;
    height: 2px;
    bottom: 1.5px;
    left: 50%;
    transform: translateX(-50%);
}

/* 2. Spesifikasi HP Tidur (Landscape) */
.device-landscape {
    width: 34px;
    height: 20px;
    border: 1.2px solid var(--color-primary); /* Menyelaraskan border menjadi warna biru tema */
    color: var(--color-primary); /* Menyelaraskan detail tombol/home */
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.25); /* Menyelaraskan glow menjadi biru */
}

.device-landscape .device-screen {
    left: 2px;
    right: 5px;
    top: 1.5px;
    bottom: 1.5px;
}

.device-landscape .device-count {
    color: #ffffff; /* Mengubah teks angka menjadi putih agar senada dengan HP portrait */
}

.device-landscape .device-home-btn {
    width: 2px;
    height: 2px;
    right: 1.5px;
    top: 50%;
    transform: translateY(-50%);
}

.indicator-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05); /* Garis track redup */
    border-radius: 9px;
    overflow: hidden;
    z-index: 1;
}

/* Glow Active Fill Line */
.indicator-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--active-height, 0%); /* Diupdate via JS */
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.8);
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 9px;
}

.indicator-dots {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    z-index: 2;
}

.ind-dot {
    position: relative; /* Anchor untuk absolute pop-up device */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #090a0f;
    border: 2px solid rgba(255, 255, 255, 0.25); /* Desain Cincin Minimalis */
    cursor: inherit; /* Mewarisi custom cursor lingkaran bawaan website secara konsisten */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ind-dot.active {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 2.5px solid var(--color-primary); /* Cincin menyala */
    box-shadow: 0 0 12px var(--color-primary), 0 0 20px rgba(0, 102, 255, 0.4);
    transform: scale(1.2);
}

@media (max-width: 1340px) {
    .works-indicator {
        right: 15px; /* Nudge ke dalam layar jika lebar viewport tidak cukup */
    }
}

@media (max-width: 768px) {
    .works-indicator {
        display: none; /* Sembunyikan di versi mobile karena menggunakan grid */
    }
}

/* Stabilizer Mutlak untuk Dynamic Font Cycling (Flexbox Centering) */
#dynamic-create-text {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: bottom; /* Menjajajarkan dengan baseline teks sebarisnya */
    line-height: 1;
    transform: translateY(0.08em); /* Menurunkan sedikit posisi secara presisi agar sejajar sempurna */
    transition: opacity 0.05s ease; /* Transisi instan untuk flicker */
}

/* Animasi Flicker Khusus saat Pergantian Font (Kedipan Cepat Berulang) */
#dynamic-create-text.text-flicker {
    animation: text-cyber-flicker 0.45s steps(1) 1; /* Patah-patah neon glitch 1 kali putaran */
}

@keyframes text-cyber-flicker {
    0%, 100% { opacity: 1; filter: none; }
    8% { opacity: 0; filter: skewX(10deg); }
    15% { opacity: 0.8; }
    22% { opacity: 0.1; filter: blur(0.5px); }
    30% { opacity: 0.9; }
    38% { opacity: 0; }
    45% { opacity: 1; filter: none; }
    53% { opacity: 0.15; }
    60% { opacity: 0.85; filter: skewX(-8deg); }
    68% { opacity: 0; }
    75% { opacity: 0.9; }
    83% { opacity: 0.1; filter: blur(1px); }
    90% { opacity: 0.95; }
}

/* Responsif Cyber Shapes Mobile - Mencegah tabrakan dengan teks */
@media (max-width: 768px) {
    /* Sembunyikan shapes bagian tengah/bawah agar tidak menimpa teks & tombol pills */
    .contact-shape.sh-3,
    .contact-shape.sh-6 {
        display: none !important;
    }
    
    /* Reposisi sisa shapes (.sh-1 dan .sh-4) ke pojok steril terluar */
    .reveal.active .contact-shape.sh-1 {
        top: 8% !important;
        left: 12% !important;
        transform: translate3d(0, 0, 0) scale(0.65) !important;
    }
    
    .reveal.active .contact-shape.sh-4 {
        top: 15% !important;
        left: 88% !important;
        transform: translate3d(0, 0, 0) scale(0.65) !important;
    }

    /* =======================================================
       KHUSUS PREVIEW MOBILE: JANGAN TERAPKAN STYLE WARNA GRAY
       Software stack cards, badges Ae/Pr/Ai/Ps/Figma langsung
       tampil tajam, penuh warna, dan jelas tanpa butuh hover.
       (Desktop tetap menggunakan efek hover normal).
       ======================================================= */
    .soft-icon {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
    }

    .software-card .soft-level {
        opacity: 1 !important;
        max-height: 16px !important;
        margin-top: 4px !important;
        transform: translateY(0) !important;
    }

    .adobe-badge,
    .figma-badge {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
    }
}

/* =========================================
   THEME: PURPLE (Graphic Design Portfolio)
   ========================================= */
body.theme-purple {
    --color-primary: #9333EA; 
    --color-primary-rgb: 147, 51, 234;
    --color-secondary: #D8B4FE; 
    --color-secondary-rgb: 216, 180, 254;
}

/* Gradasi ambient ungu gelap yang menyatu dengan biru gelap dasar #0c0d10 */
html.theme-purple-page {
    background: #0c0d10 radial-gradient(circle at 50% 30%, #1a0b2e 0%, #0d0714 65%, #0c0d10 100%) no-repeat fixed !important;
    background-color: #0c0d10 !important;
}

/* Override Hardcoded Gradients & Glows to Purple */
body.theme-purple .works-text-overlay { color: var(--color-primary) !important; -webkit-text-fill-color: var(--color-primary) !important; }
body.theme-purple .police-line.line-1 { background: linear-gradient(135deg, #6B21A8 0%, #9333EA 38%, #C084FC 68%, #D8B4FE 88%, #FFFFFF 100%); }
body.theme-purple .police-line.line-2 { background: linear-gradient(135deg, #FFFFFF 0%, #D8B4FE 12%, #C084FC 32%, #9333EA 62%, #6B21A8 100%); }

body.theme-purple .contact-shape {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(147, 51, 234, 0.45) 50%, rgba(59, 7, 100, 0.25) 100%);
    border-color: rgba(216, 180, 254, 0.65);
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.4), 0 0 6px rgba(255, 255, 255, 0.25);
}
body.theme-purple .shape-triangle::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(147, 51, 234, 0.45) 50%, rgba(59, 7, 100, 0.25) 100%); border-color: rgba(216, 180, 254, 0.65); }
body.theme-purple .shape-cross::before, body.theme-purple .shape-cross::after { background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(147, 51, 234, 0.45) 100%); }

body.theme-purple .project-specs-grid {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-top: 1px solid rgba(147, 51, 234, 0.4); 
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), inset 0 24px 40px -20px rgba(147, 51, 234, 0.12), 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Wrapper Static Grid Khusus Halaman Ini */
.static-portfolio-container {
    display: block;
    width: 100%;
    margin: 0 auto;
    /* Jarak atas (padding-top) di-reset ke 0 karena tag <section> induk sudah memberikan padding 120px. 
       Padding kiri-kanan juga di-reset ke 0 karena sudah ditangani oleh tag <section>. */
    padding: 0 0 80px 0; 
}

/* =========================================
   CTA BUTTON NAVBAR (Graphic Design - Purple)
   ========================================= */
.nav-link.nav-link-purple {
    margin-left: 12px;
    padding: 0 16px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(88, 28, 135, 0.05) 100%);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 99px;
    box-shadow: inset 0 0 8px rgba(147, 51, 234, 0.1);
}

.nav-link.nav-link-purple .nav-icon { color: #9333EA; stroke-width: 2.5px; }
.nav-link.nav-link-purple .nav-label {
    max-width: 130px; /* Diperlebar sedikit agar muat teks kapital */
    opacity: 1;
    margin-left: 0;
    color: #D8B4FE;
    text-transform: uppercase; /* Membuat teks KAPITAL SEMUA */
    letter-spacing: 0.8px;      /* Memberikan ruang antar huruf agar tidak rapat */
    font-size: 12px;           /* Penyesuaian ukuran font kapital agar seimbang */
}

.nav-link.nav-link-purple:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(88, 28, 135, 0.1) 100%);
    border-color: rgba(147, 51, 234, 0.8);
    box-shadow: 0 0 18px rgba(147, 51, 234, 0.3);
    transform: scale(1.06) translateY(-2px);
}
.nav-link.nav-link-purple:hover .nav-label { color: #ffffff; }

@media (max-width: 768px) {
    .nav-link.nav-link-purple {
        margin-left: 0 !important;
        margin-top: 4px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* =========================================
   CTA BUTTON NAVBAR (Return to Motion Design)
   ========================================= */
.nav-link.nav-link-blue {
    margin-left: 12px;
    padding: 0 16px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 68, 238, 0.05) 100%);
    border: 1px solid rgba(0, 102, 255, 0.4);
    border-radius: 99px;
    box-shadow: inset 0 0 8px rgba(0, 102, 255, 0.1);
}

/* Warna Ikon Biru Tegas & Mengabaikan Override Theme Orange */
.nav-link.nav-link-blue .nav-icon {
    color: #0066FF !important; 
    stroke-width: 2.5px;
}

.nav-link.nav-link-blue .nav-label {
    max-width: 130px; /* Diperlebar sedikit agar muat teks kapital */
    opacity: 1;
    margin-left: 0;
    color: #A5C9FF !important;
    text-transform: uppercase; /* Membuat teks KAPITAL SEMUA */
    letter-spacing: 0.8px;      /* Memberikan ruang antar huruf agar tidak rapat */
    font-size: 12px;           /* Penyesuaian ukuran font kapital agar seimbang */
}

.nav-link.nav-link-blue:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.3) 0%, rgba(0, 68, 238, 0.1) 100%);
    border-color: rgba(0, 102, 255, 0.8);
    box-shadow: 0 0 18px rgba(0, 102, 255, 0.3);
    transform: scale(1.06) translateY(-2px); /* Ditambahkan efek perbesar */
}

.nav-link.nav-link-blue:hover .nav-label {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .nav-link.nav-link-blue {
        margin-left: 0 !important;
        margin-top: 4px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* =========================================
   KHUSUS PREVIEW MOBILE: CREATOR TOOLS NAVBAR LINK
   ========================================= */
.mobile-only-nav-item {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only-nav-item {
        display: flex !important;
    }
    
    .nav-link.nav-link-tools {
        margin-top: 6px !important;
        background: linear-gradient(135deg, rgba(0, 102, 255, 0.12) 0%, rgba(0, 68, 238, 0.04) 100%) !important;
        border: 1px solid rgba(0, 102, 255, 0.3) !important;
        color: #80b8ff !important;
    }

    .nav-link.nav-link-tools .nav-icon {
        color: #0066ff !important;
        stroke: #0066ff !important;
    }

    .nav-link.nav-link-tools:hover,
    .nav-link.nav-link-tools:active {
        background: rgba(0, 102, 255, 0.22) !important;
        border-color: rgba(0, 102, 255, 0.6) !important;
        color: #ffffff !important;
    }

    /* Style khusus di tema purple (Graphic Design) */
    .theme-purple .nav-link.nav-link-tools,
    .theme-purple-page .nav-link.nav-link-tools {
        background: linear-gradient(135deg, rgba(147, 51, 234, 0.12) 0%, rgba(88, 28, 135, 0.04) 100%) !important;
        border: 1px solid rgba(147, 51, 234, 0.3) !important;
        color: #d8b4fe !important;
    }

    .theme-purple .nav-link.nav-link-tools .nav-icon,
    .theme-purple-page .nav-link.nav-link-tools .nav-icon {
        color: #c084fc !important;
        stroke: #c084fc !important;
    }
}

/* =========================================
   CUSTOM CURSOR OVERRIDES (Theme Purple)
   ========================================= */
.theme-purple-page,
.theme-purple-page body {
    cursor: url('../assets/custom-cursor-purple.svg') 6 4, auto !important;
}

.theme-purple-page a,
.theme-purple-page button,
.theme-purple-page .btn-primary,
.theme-purple-page .btn-secondary,
.theme-purple-page input[type="submit"],
.theme-purple-page input[type="button"],
.theme-purple-page [role="button"],
.theme-purple-page .carousel-card,
.theme-purple-page .carousel-card *,
.theme-purple-page .hero-carousel-container *,
.theme-purple-page .trial-play-overlay,
.theme-purple-page .card-overlay,
.theme-purple-page .modal-close-btn,
.theme-purple-page video::-webkit-media-controls,
.theme-purple-page video::-webkit-media-controls-enclosure,
.theme-purple-page video::-webkit-media-controls-panel,
.theme-purple-page video::-webkit-media-controls-play-button,
.theme-purple-page video::-webkit-media-controls-volume-slider,
.theme-purple-page video::-webkit-media-controls-mute-button,
.theme-purple-page video::-webkit-media-controls-timeline,
.theme-purple-page video::-webkit-media-controls-current-time-display,
.theme-purple-page video::-webkit-media-controls-time-remaining-display,
.theme-purple-page video::-webkit-media-controls-fullscreen-button,
.theme-purple-page .contact-pill,
.theme-purple-page .contact-pill * {
    cursor: url('../assets/custom-cursor-hover-purple.svg') 6 4, pointer !important;
}

/* =========================================
   FOOTER GRAPHIC DESIGN PORTAL
   ========================================= */
.footer-graphic-portal-inline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-graphic-title-inline {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.explore-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    color: #d8b4fe;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.explore-btn-mini:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: transparent;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
    transform: translateY(-2px);
}

.explore-btn-mini-blue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    color: #93c5fd;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 102, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.explore-btn-mini-blue:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #0052cc, #0088ff);
    border-color: transparent;
    box-shadow: 0 0 25px rgba(0, 102, 255, 0.45);
    transform: translateY(-2px);
}

.explore-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.explore-btn-mini:hover .explore-arrow,
.explore-btn-mini-blue:hover .explore-arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column-reverse !important;
        gap: 16px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .footer-graphic-portal-inline {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================
   PROJECT SHOWCASE DIVIDER (Opsi 4)
   ========================================= */
.project-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 80px auto;
    width: 100%;
    position: relative;
    user-select: none;
    pointer-events: none;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.4) 50%, transparent);
}

.divider-counter {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900; /* Menggunakan font weight tertebal (Black) */
    font-style: italic; /* Dibuat miring (Italic) */
    color: rgba(147, 51, 234, 0.35); /* Angka ungu transparan/stealth */
    letter-spacing: 2px;
    padding: 0 24px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.divider-counter::before {
    content: "PROJECT";
    position: absolute;
    top: -12px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(147, 51, 234, 0.6);
}

@media (max-width: 768px) {
    .project-divider {
        margin: 50px auto;
    }
    .divider-counter {
        font-size: 22px;
        padding: 0 16px;
    }
}

/* =========================================
   PROJECT IMAGE COVER REVEAL ANIMATION
   ========================================= */
.graphic-single-image {
    position: relative;
    overflow: hidden;
}

.project-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.88) 20%, rgba(255, 255, 255, 0.28) 100%); /* Gradasi Ungu dibatasi 20% area + Putih semi-transparan premium */
    backdrop-filter: blur(12px); /* Membuat gambar di belakangnya menjadi blur */
    -webkit-backdrop-filter: blur(12px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* User tidak bisa klik/drag overlay */
    box-sizing: border-box;
    padding: 30px;
    transform: translateY(0);
}

/* Animasi Memudar & Hilang Blur dipicu saat induk .active */
.graphic-3d-showcase.active .project-cover-overlay {
    animation: cover-fade-reveal 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 3.5s; /* Memudar tepat saat tag & judul padam */
}

.project-cover-overlay-purple {
    display: none !important; /* Ditiadakan atas permintaan user */
}

@keyframes cover-fade-reveal {
    0% {
        opacity: 1;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    100% {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        visibility: hidden; /* Sembunyikan agar pointer-events kembali normal */
    }
}

.cover-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.cover-tag {
    display: inline-block; /* Mengaktifkan box model agar padding & background bekerja sempurna */
    font-size: 11px; /* Ukuran diperbesar sedikit agar lebih tegas */
    font-weight: 900; /* Tebal maksimal */
    letter-spacing: 5px; /* Diregangkan agar terkesan modern-futuristik */
    color: var(--color-primary); /* Teks ungu tema kontras di atas putih */
    background: #ffffff; /* Shape putih solid penahan teks */
    padding: 4px 12px; /* Jarak napas sekeliling teks disesuaikan */
    border-radius: 4px; /* Sudut melengkung halus modern */
    text-transform: uppercase;
    opacity: 0; /* Default opacity 0 agar tidak langsung menyala sebelum reveal */
}

.cover-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3.5vw, 36px);
    font-weight: 900; /* Font weight maksimal (Black) */
    font-style: italic; /* Gaya huruf miring (Italic) */
    letter-spacing: -0.5px;
    color: #ffffff; /* Menggunakan warna putih bersih agar sangat kontras */
    text-transform: uppercase;
    margin: 0;
    opacity: 0; /* Default opacity 0 agar tidak langsung menyala sebelum reveal */
}

/* Animasi Flicker pada Teks (Terpisah secara Berurutan) */
.graphic-3d-showcase.active .cover-tag {
    animation: flicker-tag-sequence 3.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.graphic-3d-showcase.active .cover-title {
    animation: flicker-title-sequence 3.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes flicker-tag-sequence {
    /* --- JEDA KOSONG AWAL (0% s/d 8.6%) = 0s s/d 0.3s --- */
    0%, 8.6% { opacity: 0; filter: blur(1px) skewX(10deg); transform: scale(0.98); }
    
    /* --- FLICKER IN (8.6% s/d 22.8%) = 0.3s s/d 0.8s --- */
    11% { opacity: 0.8; filter: none; }
    14% { opacity: 0.1; filter: blur(0.5px); }
    17% { opacity: 0.9; filter: none; }
    20% { opacity: 0; filter: skewX(-5deg); }
    22.8% { opacity: 1; filter: none; transform: scale(1); }
    
    /* --- SUSTAIN (22.8% s/d 71.4%) = 0.8s s/d 2.5s --- */
    71.4% { opacity: 1; filter: none; transform: scale(1); }
    
    /* --- FLICKER OUT (71.4% s/d 85.7%) = 2.5s s/d 3.0s --- */
    74% { opacity: 0.7; filter: skewX(-6deg); }
    77% { opacity: 0.1; filter: blur(0.5px); }
    80% { opacity: 0.8; filter: none; }
    83% { opacity: 0; filter: skewX(6deg); }
    85.7% { opacity: 0; filter: blur(1.5px) skewX(-10deg); transform: scale(0.96); }
    
    /* --- MATI TOTAL (85.7% s/d 100%) = 3.0s s/d 3.5s --- */
    100% { opacity: 0; }
}

@keyframes flicker-title-sequence {
    /* --- JEDA KOSONG AWAL & MENUNGGU TAG (0% s/d 22.8%) = 0s s/d 0.8s --- */
    0%, 22.8% { opacity: 0; filter: blur(1px) skewX(10deg); transform: scale(0.98); }
    
    /* --- FLICKER IN (22.8% s/d 37.1%) = 0.8s s/d 1.3s --- */
    25% { opacity: 0.8; filter: none; }
    28% { opacity: 0.1; filter: blur(0.5px); }
    31% { opacity: 0.9; filter: none; }
    34% { opacity: 0; filter: skewX(-5deg); }
    37.1% { opacity: 1; filter: none; transform: scale(1); }
    
    /* --- SUSTAIN (37.1% s/d 85.7%) = 1.3s s/d 3.0s --- */
    85.7% { opacity: 1; filter: none; transform: scale(1); }
    
    /* --- FLICKER OUT (85.7% s/d 100%) = 3.0s s/d 3.5s --- */
    88% { opacity: 0.7; filter: skewX(-6deg); }
    91% { opacity: 0.1; filter: blur(0.5px); }
    94% { opacity: 0.8; filter: none; }
    97% { opacity: 0; filter: skewX(6deg); }
    100% { opacity: 0; filter: blur(1.5px) skewX(-10deg); transform: scale(0.96); }
}

/* Delay Tambahan Khusus Project 1 (Staggered dengan Judul Halaman) */
.graphic-3d-showcase.active.first-project .cover-tag {
    animation-delay: 0.5s;
}
.graphic-3d-showcase.active.first-project .cover-title {
    animation-delay: 0.5s;
}
.graphic-3d-showcase.active.first-project .project-cover-overlay {
    animation-delay: 4.0s; /* 3.5s + 0.5s */
}
.graphic-3d-showcase.active.first-project .project-cover-overlay-purple {
    animation-delay: 4.3s; /* 3.8s + 0.5s */
}

/* Menunda fade-up masuk elemen Project 1 agar menunggu judul section & divider 01 selesai */
.first-project.active .reveal-child.delay-1 {
    transition-delay: 0.3s !important;
}
.first-project.active .reveal-child.delay-2 {
    transition-delay: 0.5s !important;
}
    