/* ==========================================================================
   1. RESET, VARIABLES, & BODY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;900&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Base Colors */
    --color-orange: #f2552c;
    --color-dark: #12151b;
    --color-figma-blue: #3b82f6;
    
    /* Night Sky Palette (Midnight Blue Gradient) */
    --sky-top: #050614; 
    --sky-mid: #101432; 
    --sky-bottom: #1c234a; 

    /* Warna Awan di Malam Hari (Gelap transparan) */
    --cloud-warm: rgba(43, 53, 99, 0.4);
    --cloud-shadow: rgba(14, 18, 43, 0.7);
    
    --silhouette: #0a0c1a;
    --sky-text: #e2e8f0; 
    --moon-glow: rgba(226, 232, 240, 0.15); 
    
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

/* ==========================================================================
   OPENING SCREEN / PRELOADER
   ========================================================================== */
/* Mengunci scroll body saat preloader aktif */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0B0B0B; /* Dark solid developer vibe */
    z-index: 999999900; /* Angka super tinggi, tapi TETAP DI BAWAH custom cursor (999999999) */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); /* Transisi smooth slide-up */
    will-change: transform;
}

/* Class pemicu saat preloader terangkat (Curtain Reveal) */
.preloader.slide-up {
    transform: translateY(-100%);
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    padding: 0 40px;
    transition: opacity 0.4s ease; /* Transisi untuk fade-out elemen di dalam */
}

.preloader-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 11px;
    font-weight: 700;
    color: #64748b; /* Abu-abu redup */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInPreloader 0.5s ease forwards 0.2s;
}

.preloader-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 64px;
    color: white;
    letter-spacing: -2px;
    margin: 0 0 40px 0;
    display: flex;
    overflow: hidden; /* Memotong huruf sebelum ter-reveal */
}

.preloader-title .letter {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Class untuk memunculkan huruf satu per satu */
.preloader-title .letter.revealed {
    transform: translateY(0);
    opacity: 1;
}

.preloader-progress-wrapper {
    width: 100%;
    height: 1px; /* Garis sangat tipis/clean */
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #B5342A; /* Aksen merah sesuai request */
    transition: width 0.1s linear;
}

.preloader-counter {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 12px;
    font-weight: 700;
    color: #B5342A; /* Aksen merah */
    align-self: flex-end; /* Menempatkan angka 100% di pojok kanan bawah bar */
}

@keyframes fadeInPreloader {
    to { opacity: 1; }
}

body {
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    background-color: transparent; 
}

/* KURSOR PALING PRIORITAS HARUS DI ATAS SEGALA HAL */
* { cursor: none !important; }

/* Efek Kursor saat mode Dragging (Di Project Section) */
.custom-cursor.is-dragging .cursor-arrow { display: none; }
.custom-cursor.is-dragging .cursor-label {
    background-color: #1e293b;
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 999px;
    margin: 0;
    transform: translate(-50%, -50%); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.custom-cursor.is-dragging-active .cursor-label {
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--color-orange); 
}

/* Efek Kursor berubah jadi "OPEN" saat Hover ke Tombol Detail */
.custom-cursor.is-hovering-btn .cursor-label {
    background-color: var(--color-figma-blue);
    transform: translate(-50%, -50%) scale(1.1);
    color: white;
}

.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none; 
    z-index: 999999999; 
    display: flex; flex-direction: column; align-items: flex-start;
    will-change: transform; 
}

.cursor-arrow {
    filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.2));
    margin-left: -2px; margin-top: -2px; 
}

.cursor-label {
    background-color: #0ea5e9; color: white;
    font-family: var(--font-sans); font-size: 14px; font-weight: 700;
    padding: 6px 12px;
    border-radius: 0px 12px 12px 12px; 
    margin-left: 14px; margin-top: -8px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: transform 0.1s, background-color 0.2s; 
}

/* ==========================================================================
   2. BACKGROUND NIGHT SKY, STARS & CLOUDS
   ========================================================================== */
.fixed-sky-background {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; /* FIX RESPONSIVE: Ganti 100vw jadi 100% agar tidak meluber */
    height: 100vh;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-bottom) 100%);
    z-index: -10; 
    overflow: hidden; pointer-events: none;
}

#stars-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0; 
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    animation: twinkle infinite ease-in-out;
}

@keyframes twinkle {
    0% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); }
    100% { opacity: 0.1; transform: scale(0.8); }
}

.cloud { 
    position: absolute; 
    background: linear-gradient(135deg, var(--cloud-warm) 0%, var(--cloud-shadow) 100%); 
    border-radius: 100px; 
    filter: blur(8px); 
    opacity: 0.7; 
    animation: moveCloud linear infinite; 
    z-index: 1; 
}
.cloud::before, .cloud::after { 
    content: ''; 
    position: absolute; 
    background: linear-gradient(135deg, var(--cloud-warm) 0%, var(--cloud-shadow) 100%); 
    border-radius: 50%; 
}
@keyframes moveCloud { 0% { transform: translateX(-400px); } 100% { transform: translateX(100vw); } }

.animated-cloud-1 { width: 150px; height: 50px; top: 15%; animation-duration: 45s; animation-delay: -10s; }
.animated-cloud-1::before { width: 70px; height: 70px; top: -30px; left: 20px; }
.animated-cloud-1::after { width: 50px; height: 50px; top: -20px; right: 20px; }
.animated-cloud-2 { width: 250px; height: 80px; top: 40%; animation-duration: 65s; animation-delay: -35s; opacity: 0.4; filter: blur(14px); }
.animated-cloud-2::before { width: 100px; height: 100px; top: -40px; left: 40px; }
.animated-cloud-2::after { width: 80px; height: 80px; top: -30px; right: 40px; }
.animated-cloud-3 { width: 180px; height: 60px; top: 65%; animation-duration: 55s; animation-delay: -5s; }
.animated-cloud-3::before { width: 90px; height: 90px; top: -40px; left: 30px; }
.animated-cloud-3::after { width: 70px; height: 70px; top: -30px; right: 30px; }
.animated-cloud-4 { width: 320px; height: 100px; top: 25%; animation-duration: 80s; animation-delay: -60s; opacity: 0.35; filter: blur(16px); }
.animated-cloud-4::before { width: 140px; height: 140px; top: -60px; left: 60px; }
.animated-cloud-4::after { width: 110px; height: 110px; top: -40px; right: 60px; }
.animated-cloud-5 { width: 200px; height: 55px; top: 85%; animation-duration: 50s; animation-delay: -25s; }
.animated-cloud-5::before { width: 80px; height: 80px; top: -35px; left: 25px; }
.animated-cloud-5::after { width: 60px; height: 60px; top: -25px; right: 25px; }

/* ==========================================================================
   3. HEADER & RULER
   ========================================================================== */
.app-header { position: fixed; top: 0; width: 100%; z-index: 100; }

.top-toolbar { 
    display: flex; align-items: center; 
    background-color: rgba(26, 18, 36, 0.35); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(245, 239, 224, 0.15); 
    height: 32px; font-family: var(--font-mono); font-size: 11px; 
    color: var(--sky-text);
}

.toolbar-left { display: flex; align-items: center; height: 100%; background-color: rgba(26, 18, 36, 0.5); }
.brand-logo { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid rgba(245, 239, 224, 0.15); height: 100%; font-weight: 700; color: var(--sky-text); }
.f4-logo { background-color: var(--sky-text); color: var(--color-dark); border-radius: 4px; font-family: var(--font-sans); font-weight: 900; font-size: 11px; padding: 2px 6px; letter-spacing: 0; }
.brand-text { font-weight: 800; }

.ruler-wrapper { display: flex; flex-grow: 1; height: 100%; overflow: hidden; position: relative; }
.scroll-progress-bar { 
    position: absolute; top: 0; left: 0; height: 100%; width: 0%; 
    background-color: rgba(255, 217, 142, 0.65); 
    border-right: 4px solid var(--color-orange); 
    z-index: 1; transition: width 0.1s linear; 
}
.ruler-segment { min-width: 100px; height: 100%; position: relative; z-index: 2; } 
.ruler-number { position: absolute; top: 2px; left: 4px; color: var(--sky-text); font-size: 9px; font-weight: 700; opacity: 0.8; }
.ruler-ticks { position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background-image: repeating-linear-gradient(to right, transparent, transparent 9px, rgba(245, 239, 224, 0.3) 9px, rgba(245, 239, 224, 0.3) 10px); }

/* --- FIX RESPONSIVE: HEADER --- */
@media (max-width: 640px) {
    .brand-text { display: none; } /* Hemat ruang di HP, cukup logo F4 */
    .ruler-segment { min-width: 60px; } /* Rapatkan penggaris */
}

/* ==========================================================================
   4. NAVIGASI MELAYANG (FLOATING NAVBAR)
   ========================================================================== */
.floating-nav-container { 
    position: fixed; top: 50px; width: 100%; padding: 0 40px; z-index: 90; 
    display: flex; justify-content: center; align-items: center; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; 
}

.floating-nav-container.scrolled { transform: translateY(-100px); opacity: 0; pointer-events: none; }
.floating-nav-container.scrolling-up { transform: translateY(0); opacity: 1; pointer-events: auto; }

.floating-pill { 
    background-color: rgba(26, 18, 36, 0.45); 
    backdrop-filter: blur(16px); 
    border: 1px solid rgba(245, 239, 224, 0.15); 
    border-radius: 999px; display: flex; align-items: center; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); 
}
.nav-menu-pill { padding: 12px 16px 12px 32px; }
.main-nav ul { display: flex; list-style: none; gap: 40px; align-items: center; margin: 0; padding: 0; }

.main-nav a { text-decoration: none; color: var(--sky-text); font-size: 16px; font-weight: 700; display: inline-flex; overflow: hidden; vertical-align: middle; cursor: none; }
.main-nav a span { display: inline-block; position: relative; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); color: inherit; }
.main-nav a span::after { content: attr(data-text); position: absolute; top: 100%; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color: var(--color-orange); }
.main-nav a:hover span { transform: translateY(-100%); }
.main-nav a.active span { color: var(--color-orange); }

.main-nav a.nav-contact-btn { background-color: var(--sky-text); border-radius: 999px; transition: background-color 0.4s ease, color 0.4s ease; }
.main-nav a.nav-contact-btn span { padding: 12px 28px; color: var(--color-dark); }
.main-nav a.nav-contact-btn span::after { color: var(--color-dark); padding: 12px 28px; box-sizing: border-box; }

.main-nav a.nav-contact-btn:hover, .main-nav a.nav-contact-btn.active { 
    background-color: var(--color-figma-blue); 
    color: white;
}
.main-nav a.nav-contact-btn:hover span::after, .main-nav a.nav-contact-btn.active span::after {
    color: white;
}

/* --- FIX RESPONSIVE: NAVBAR --- */
@media (max-width: 850px) {
    .floating-nav-container { padding: 0 20px; }
    .main-nav ul { gap: 20px; }
    .nav-menu-pill { padding: 10px 16px 10px 24px; }
    .main-nav a { font-size: 14px; }
    .main-nav a.nav-contact-btn span { padding: 10px 20px; }
    .main-nav a.nav-contact-btn span::after { padding: 10px 20px; }
}

@media (max-width: 640px) {
    .floating-nav-container { padding: 0 15px; top: 40px; }
    .nav-menu-pill { padding: 8px 12px; width: 100%; overflow: hidden; border-radius: 20px; }
    /* Membuat navbar bisa digeser horizontal jika layarnya sangat kecil */
    .main-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav ul { gap: 16px; justify-content: flex-start; padding: 0 4px; width: max-content; }
    .main-nav a { font-size: 12px; }
    .main-nav a.nav-contact-btn span { padding: 8px 14px; }
    .main-nav a.nav-contact-btn span::after { padding: 8px 14px; }
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding-top: 150px; position: relative; scroll-margin-top: 100px; }
.hero-content { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; position: relative; }

.figma-box { position: relative; border: 1px dashed rgba(245, 239, 224, 0.3); padding: 8px 16px; background: rgba(26, 18, 36, 0.4); backdrop-filter: blur(4px); font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--sky-text); text-align: center; }
.figma-handle { position: absolute; width: 6px; height: 6px; background: var(--sky-text); border: 1px solid rgba(245, 239, 224, 0.5); }
.nw { top: -3px; left: -3px; } .ne { top: -3px; right: -3px; } .sw { bottom: -3px; left: -3px; } .se { bottom: -3px; right: -3px; }

.top-box { margin-bottom: 20px; padding: 6px 14px; display: inline-block; }
.yc-square { background-color: var(--color-orange); color: white; padding: 1px 4px; border-radius: 2px; margin: 0 4px 0 0; }
.bottom-box { margin-top: -10px; max-width: 400px; padding: 16px; border-color: rgba(245, 239, 224, 0.3); }
.box-tags { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; font-size: 9px; }
.tag { padding: 4px 8px; border-radius: 4px; }
.tag.blue { background-color: var(--color-figma-blue); color: white; }
.tag.red { color: var(--color-orange); letter-spacing: 1px; }
.desc-text { font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--sky-text); opacity: 0.9; }

/* ==========================================================================
   CSS HERO TEXT & PARTICLE 
   ========================================================================== */
.particle-text-container { 
    margin-bottom: 20px; 
    position: relative; 
    width: 100%;
    max-width: 1000px; /* Batasi maksimal lebar canvas */
    height: 350px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

/* Canvas menutupi seluruh container secara absolut */
canvas#particleCanvas { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
}

/* Teks Statis untuk Fallback di Mobile */
.hero-main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(40px, 8vw, 105px); /* Otomatis mengecil di HP */
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    text-align: center;
    z-index: 5; /* Pastikan teks ada di atas kalau muncul */
}

.hero-main-title .highlight {
    color: var(--color-orange);
}

/* Penyesuaian container di bawah 1024px agar tidak menyisakan ruang kosong saat canvas mati */
@media (max-width: 1023px) {
    .particle-text-container {
        height: auto;
        min-height: auto;
        padding: 20px 0;
    }
}

.hero-actions { display: flex; gap: 16px; margin-top: 30px; }
.btn-primary { background-color: var(--color-orange); color: white; text-decoration: none; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 4px 14px rgba(242, 85, 44, 0.3); transition: background-color 0.2s, transform 0.2s; cursor: none; }
.btn-outline { background-color: rgba(26, 18, 36, 0.35); border: 1px solid rgba(245, 239, 224, 0.3); color: var(--sky-text); backdrop-filter: blur(8px); text-decoration: none; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background-color 0.2s, color 0.2s, border-color 0.2s; cursor: none; }

/* -- HOVER UPDATE: Tombol Primary & Outline -- */
.btn-primary:hover { 
    transform: translateY(-2px); 
    background-color: var(--color-figma-blue); 
}

.btn-outline:hover { 
    background-color: var(--color-figma-blue); 
    border-color: var(--color-figma-blue); 
    color: white; 
}

/* ==========================================================================
   6. ABOUT SECTION (BENTO GRID V2)
   ========================================================================== */
.about-section { padding: 80px 40px; max-width: 1200px; margin: 0 auto; position: relative; scroll-margin-top: 100px;}
.about-header { text-align: center; margin-bottom: 40px; }
.script-text { font-family: 'Caveat', cursive; color: var(--color-orange); font-size: 24px; letter-spacing: 1px; }
.about-title { font-size: 48px; font-weight: 900; color: var(--sky-text); letter-spacing: -1px; margin-top: -5px; }

/* Grid Dasar: 4 Kolom */
.bento-grid-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.bento-card-v2 { border-radius: 24px; padding: 32px; position: relative; box-shadow: 0 15px 35px rgba(0,0,0,0.25); transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden; display: flex; flex-direction: column; }
.bento-card-v2:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(0,0,0,0.35); }

.bg-white { background-color: #ffffff; } 
.bg-dark { background-color: #1a1e23; color: white; }

.card-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #94a3b8; position: absolute; top: 20px; right: 24px; letter-spacing: 1px; }
.dark-label { color: #4a5568; }

.intro-card { grid-column: span 3; min-height: 380px; justify-content: space-between; }
.intro-content { max-width: 90%; }
.intro-headline { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; color: var(--color-dark); }
.underline-magic { text-decoration: underline; text-decoration-color: var(--color-orange); text-decoration-thickness: 3px; text-underline-offset: 4px;}
.intro-subtext { font-size: 16px; color: #475569; line-height: 1.6; }
.intro-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; border-top: 1px solid #f1f5f9; padding-top: 20px; }
.availability { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #22c55e; }

.photo-card { grid-column: span 1; padding: 0; min-height: 380px; background-color: var(--color-dark); }
.profile-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.1); transition: filter 0.4s ease; }
.photo-card:hover .profile-photo { filter: grayscale(0%) contrast(1); }
.photo-label { background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); color: white; padding: 4px 8px; border-radius: 4px; top: auto; bottom: 20px; right: 20px; }

.small-card { min-height: 240px; padding: 24px; justify-content: space-between; }

.useless-card { grid-column: span 1; position: relative; overflow: hidden; }
.useless-content { margin-top: 16px; position: relative; z-index: 2; }
.useless-title { font-family: 'Archivo Black', sans-serif; font-size: 18px; color: var(--color-dark); line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }
.useless-desc { font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: #64748b; line-height: 1.4; font-weight: 500; }
.useless-footer { margin-top: auto; position: relative; z-index: 2; }
.btn-poke { background-color: var(--color-orange); color: white; border: none; padding: 8px 16px; border-radius: 8px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; cursor: none; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s; }

/* -- HOVER UPDATE: Tombol Easter Egg -- */
.btn-poke:hover { 
    transform: translateY(-2px); 
    background-color: var(--color-figma-blue); 
}
.btn-poke:active { transform: translateY(2px) scale(0.95); }

.emoji-popup { position: absolute; font-size: 40px; pointer-events: none; z-index: 1; animation: popUpBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOutUp 1.2s ease-in forwards 0.5s; }
@keyframes popUpBounce { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeOutUp { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-60px) scale(1.1); opacity: 0; } }
.card-shake { animation: shakeEffect 0.3s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shakeEffect { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-4px) rotate(-1deg); } 40%, 80% { transform: translateX(4px) rotate(1deg); } }

.skill-stack-card { font-family: 'Space Grotesk', sans-serif; grid-column: span 1; }
.skill-cycle-container { position: relative; flex-grow: 1; margin-top: 24px; width: 100%; }
.skill-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: translateY(20px); visibility: hidden; transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out; display: flex; flex-direction: column; }
.skill-slide.active { opacity: 1; transform: translateY(0); visibility: visible; }
.skill-slide.exit { opacity: 0; transform: translateY(-20px); visibility: hidden; }

.skill-number { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--color-orange); margin-bottom: 6px; letter-spacing: 1px; }
.skill-category-title { font-family: 'Archivo Black', sans-serif; font-size: 22px; color: var(--color-dark); line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }

.skill-tags-v2 { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-stack-card .skill-tag { border: 1px solid #cbd5e1; background-color: transparent; color: #475569; font-size: 11px; font-family: var(--font-mono); font-weight: 600; padding: 6px 10px; border-radius: 6px; cursor: none; transition: all 0.2s; }
.skill-stack-card .skill-tag:hover { background-color: var(--color-dark); color: white; border-color: var(--color-dark); }

.skill-progress-dots { display: flex; gap: 6px; margin-top: auto; padding-top: 24px; }
.skill-progress-dots .dot { height: 4px; width: 16px; background-color: #e2e8f0; border-radius: 4px; transition: background-color 0.4s ease, width 0.4s ease; }
.skill-progress-dots .dot.active { background-color: var(--color-orange); width: 24px; }

.github-card-wide { grid-column: span 2; }
.github-content-link { text-decoration: none; display: block; height: 100%; cursor: none; }
.github-content { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; margin-top: 24px; transition: transform 0.3s ease; }
.github-content-link:hover .github-content { transform: translateY(-4px); }

.github-title { font-family: 'Archivo Black', sans-serif; font-size: 20px; color: white; line-height: 1.1; margin-bottom: 12px; text-transform: uppercase; }
.github-months { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8px; color: #64748b; margin-bottom: 6px; padding: 0 5px; }

.github-graph-wide { display: grid; grid-template-columns: repeat(20, 1fr); grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 4px; margin-bottom: 12px; }
.gh-cell { aspect-ratio: 1 / 1; border-radius: 2px; background-color: #1e293b; position: relative; }
.gh-cell.empty { background-color: transparent; }
.gh-cell[data-level="1"], .gh-cell-legend[data-level="1"] { background-color: rgba(242, 85, 44, 0.3); } 
.gh-cell[data-level="2"], .gh-cell-legend[data-level="2"] { background-color: rgba(242, 85, 44, 0.6); } 
.gh-cell[data-level="3"], .gh-cell-legend[data-level="3"] { background-color: rgba(242, 85, 44, 0.85); } 
.gh-cell[data-level="4"], .gh-cell-legend[data-level="4"] { background-color: rgba(242, 85, 44, 1); }   

.gh-cell:hover::after { content: attr(data-tooltip); position: absolute; bottom: 140%; left: 50%; transform: translateX(-50%); background-color: white; color: var(--color-dark); font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 6px 10px; border-radius: 4px; white-space: nowrap; z-index: 20; pointer-events: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.github-footer-wide { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.github-stats-group { display: flex; gap: 16px; }
.github-stats { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: #94a3b8; letter-spacing: 0.5px; }
.github-legend { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 8px; color: #64748b; }
.gh-cell-legend { width: 10px; height: 10px; border-radius: 2px; background-color: #1e293b; }

.github-action { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--color-orange); opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; }
.github-content-link:hover .github-action { opacity: 1; transform: translateX(0); }

/* Responsive Bento Grid V2 */
@media (max-width: 1024px) {
    .bento-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .intro-card { grid-column: span 2; min-height: auto; }
    .photo-card { grid-column: span 2; height: 350px; }
    .small-card { grid-column: span 1; }
    .github-card-wide { grid-column: span 2; } 
}

@media (max-width: 640px) {
    .bento-grid-v2 { grid-template-columns: 1fr; }
    .intro-card, .photo-card, .small-card { grid-column: span 1; } 
    .photo-card { height: 300px; }
    .github-card-wide { grid-column: span 1; } 
    .github-graph-wide { gap: 2px; } 
    .github-stats-group { flex-direction: column; gap: 4px; }
}


/* ==========================================================================
   7. PROJECTS SECTION (SHARED: CAROUSEL & GRID)
   ========================================================================== */
.projects-section { padding: 80px 0 120px 0; position: relative; z-index: 50; overflow: hidden; }
.projects-header-wrapper { max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 40px; position: relative; z-index: 10; }
.projects-header { text-align: center; margin-bottom: 60px; position: relative; z-index: 2; color: var(--sky-text); }
.projects-desc { font-size: 15px; color: var(--sky-text); line-height: 1.6; max-width: 580px; margin: 20px auto 0; font-weight: 500; opacity: 0.9; }

/* --- A. CAROUSEL MODE (index.html) --- */
.carousel-outer-wrapper { width: 100%; position: relative; margin-top: 20px; user-select: none; -webkit-user-select: none; -moz-user-select: none; }
.infinite-carousel-container { width: 100%; height: 60vh; min-height: 480px; max-height: 650px; position: relative; display: flex; justify-content: center; align-items: center; perspective: 1500px; }
.infinite-track { width: 100%; height: 100%; position: relative; display: flex; justify-content: center; align-items: center; }
.infinite-card { position: absolute; width: 62vw; max-width: 900px; min-width: 340px; height: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform, opacity; pointer-events: none; }
.infinite-card.center-card { pointer-events: auto; z-index: 10; }
.infinite-card.center-card * { pointer-events: auto; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 180px; padding: 0 40px; position: relative; z-index: 20; }
.carousel-btn { background: rgba(26, 18, 36, 0.35); border: 1px solid rgba(245, 239, 224, 0.3); color: var(--sky-text); width: 54px; height: 54px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: none; transition: background 0.2s, transform 0.2s, border-color 0.2s; }

/* -- HOVER UPDATE: Tombol Carousel Navigasi -- */
.carousel-btn:hover { 
    background: var(--color-figma-blue); 
    border-color: var(--color-figma-blue); 
    color: white; 
    transform: scale(1.05); 
}

.carousel-progress { width: 320px; height: 12px; background: rgba(26, 18, 36, 0.5); border-radius: 12px; position: relative; border: 1px solid rgba(245, 239, 224, 0.1); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.progress-bar-indicator { height: 100%; background: var(--color-orange); width: 25%; border-radius: 12px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 0 12px rgba(242, 85, 44, 0.6); transform: translateX(0%); }

/* --- B. GRID MODE (project.html) --- */
.projects-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 10; }

/* --- C. DESAIN KARTU BERSAMA --- */
.project-card { width: 100%; height: 600px; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: box-shadow 0.4s ease, transform 0.4s ease; }
.infinite-card.center-card .project-card { box-shadow: 0 40px 90px rgba(0,0,0,0.35); border-color: rgba(255, 255, 255, 0.95); }

/* Hover efek hanya aktif jika di grid ATAU jika kartu carousel di tengah */
.projects-grid-container .project-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.25); border-color: rgba(255, 255, 255, 0.95); }

.project-image-wrapper { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; margin-bottom: 20px; background-color: #0f172a; }
.image-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.5s ease; }
.projects-grid-container .project-card:hover .image-placeholder { transform: scale(1.05); }

.bg-gradient-dark { background: radial-gradient(circle at center, #2d3748 0%, #0f172a 100%); }
.bg-gradient-light { background: radial-gradient(circle at center, #f8fafc 0%, #cbd5e1 100%); }

.live-badge { position: absolute; top: 20px; left: 20px; background-color: rgba(18, 21, 27, 0.85); backdrop-filter: blur(4px); color: white; font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 6px 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; z-index: 2; border: 1px solid rgba(255,255,255,0.1); }
.pulse-dot { width: 8px; height: 8px; background-color: #ef4444; border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* PERBAIKAN ALIGNMENT (RATA KIRI) */
.project-info { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; flex-grow: 1; gap: 20px; padding: 10px 4px 4px 4px; }
.info-meta { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; text-align: left; }

.project-title { font-size: 24px; font-weight: 800; color: var(--color-dark); display: flex; align-items: center; justify-content: flex-start; gap: 10px; letter-spacing: -0.5px; margin: 0; width: 100%; }
.orange-square { width: 8px; height: 8px; background-color: var(--color-orange); border-radius: 2px; flex-shrink: 0; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; justify-content: flex-start; width: 100%; }
.tag-pill { background-color: rgba(241, 245, 249, 0.8); color: #64748b; font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; text-transform: uppercase; letter-spacing: 0.5px; }

.project-detail-btn { background-color: var(--color-dark); color: white; font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 12px 24px; border-radius: 999px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; cursor: none; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s; width: 100%; }
.project-detail-btn i { font-size: 14px; }

/* -- HOVER UPDATE: Tombol Detail Kartu -- */
.project-detail-btn:hover { 
    background-color: var(--color-figma-blue); 
    transform: translateY(-3px); 
}

/* --- RESPONSIVE PROJECT SECTION --- */
@media (max-width: 1024px) {
    .projects-grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .infinite-card { width: 85vw; }
    .carousel-progress { width: 180px; }
    .infinite-carousel-container { height: 50vh; min-height: 420px; }
}

@media (max-width: 768px) {
    .projects-grid-container { grid-template-columns: 1fr; }
    .project-title { font-size: 22px; }
}

/* ==========================================================================
   8. CONTACT SECTION
   ========================================================================== */
.contact-section { padding: 120px 40px; max-width: 1200px; margin: 0 auto; position: relative; scroll-margin-top: 80px;}
.contact-header-wrapper { position: relative; max-width: 800px; margin-bottom: 60px; }
.contact-title { font-size: 64px; font-weight: 900; color: var(--sky-text); letter-spacing: -2px; line-height: 1; width: max-content; margin-top: 10px; margin-bottom: 24px; }
.contact-desc { font-size: 18px; color: var(--sky-text); line-height: 1.6; max-width: 550px; opacity: 0.9; }

.contact-title .text-orange { color: var(--color-orange); } 

.avatar-circle { width: 24px; height: 24px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 12px; font-weight: 700; }
.bg-orange { background-color: var(--color-orange); } .bg-blue { background-color: #3b82f6; } .bg-green { background-color: #22c55e; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.form-card { border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.25); }
.form-header-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #f1f5f9; }
.file-info { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.figma-icon-orange { width: 14px; height: 14px; background-color: var(--color-orange); border-radius: 3px; }
.draft-tag { border: 1px solid #cbd5e1; color: #64748b; padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.avatars { display: flex; gap: -5px; } 

.form-body { padding: 40px; }
.form-intro { font-size: 14px; color: #475569; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 24px; position: relative; }
.input-group label { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #94a3b8; margin-bottom: 8px; letter-spacing: 1px; }
.input-group input, .input-group textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 14px 16px; font-family: var(--font-sans); font-size: 14px; color: var(--color-dark); transition: border-color 0.2s; outline: none; resize: none; cursor: none; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--color-orange); }
.resize-icon { position: absolute; bottom: 12px; right: 12px; color: #94a3b8; }
.form-footer { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.form-footer .btn-primary { display: flex; align-items: center; gap: 8px; border: none; cursor: none; }

.info-cards-col { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.info-card { padding: 24px 32px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.25); flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.card-mono-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.text-green { color: #22c55e; }

.info-title-small { font-size: 20px; font-weight: 800; color: var(--color-dark); margin-bottom: 8px; letter-spacing: -0.5px; }
.info-desc-small { font-size: 13px; color: #475569; line-height: 1.5; margin-bottom: 16px; margin-top: 0; }

.btn-outline-small { background: transparent; border: 1px solid #93c5fd; color: #3b82f6; font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 6px; cursor: none; transition: background-color 0.2s, border-color 0.2s, color 0.2s; margin-top: auto; }

/* -- HOVER UPDATE: Tombol Outline Info Card -- */
.btn-outline-small:hover { 
    background: var(--color-figma-blue); 
    border-color: var(--color-figma-blue); 
    color: white; 
}
.btn-outline-small.success { background: #22c55e; border-color: #22c55e; color: white; }

/* ==========================================================================
   9. DARK FOOTER
   ========================================================================== */
.site-footer { background-color: #12151b; color: white; position: relative; overflow: hidden; margin-top: 40px; font-family: var(--font-sans); padding-bottom: 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; z-index: 1; pointer-events: none; }
.footer-content-wrapper { position: relative; z-index: 2; padding: 40px 40px 0; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; min-height: 50vh; }

.footer-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; }
.frame-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #64748b; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
.back-to-top { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; width: 40px; height: 40px; border-radius: 50%; cursor: none; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }

/* -- HOVER UPDATE: Tombol Back to Top -- */
.back-to-top:hover { 
    background: white; 
    color: var(--color-figma-blue); 
    border-color: var(--color-figma-blue); 
}

.footer-main-grid { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 80px; flex-wrap: wrap; }
.footer-left { display: flex; flex-direction: column; align-items: flex-start; max-width: 600px; }
.footer-prompt-text { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #94a3b8; margin-bottom: 8px; font-weight: 500; }
.footer-email-link { font-family: 'Archivo Black', sans-serif; font-size: 48px; color: white; text-decoration: none; margin-bottom: 30px; display: inline-flex; letter-spacing: -1px; cursor: none; flex-wrap: wrap; position: relative; padding-right: 40px; }
.footer-email-link span { display: inline-block; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s; }
.footer-email-link:hover span { color: var(--color-orange); }

@keyframes waveEffect { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); color: white; } }
.footer-email-link::after { content: '↗'; font-family: var(--font-sans); position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 40px; color: #3b82f6; transition: transform 0.3s ease, color 0.3s; }
.footer-email-link:hover::after { transform: translateY(-70%) translateX(10px); color: white; }
.footer-idea-btn { margin-top: 10px; font-size: 14px; padding: 12px 24px; }

.footer-right { display: flex; gap: 60px; }
.footer-nav-group { display: flex; flex-direction: column; }
.footer-nav-title { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #64748b; letter-spacing: 1px; margin-bottom: 20px; text-transform: uppercase; }
.footer-nav-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-nav-group a { color: white; text-decoration: none; font-size: 16px; font-weight: 500; font-family: 'Space Grotesk', sans-serif; transition: color 0.2s, transform 0.2s; display: inline-flex; align-items: center; gap: 6px; cursor: none; }
.footer-nav-group a i { font-size: 14px; color: #64748b; transition: color 0.2s; }
.footer-nav-group a:hover { color: var(--color-orange); transform: translateX(5px); }
.footer-nav-group a:hover i { color: var(--color-orange); }

.footer-bottom-bar { position: relative; z-index: 2; margin-top: 20px; }
.bottom-ruler { width: 100%; height: 8px; background-image: repeating-linear-gradient(to right, transparent, transparent 19px, rgba(255,255,255,0.1) 19px, rgba(255,255,255,0.1) 20px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.bottom-status-content { display: flex; justify-content: space-between; padding: 12px 40px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #94a3b8; }
.status-item { display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px; }
.copyright-text { color: #64748b; }

@media (max-width: 850px) {
    .footer-email-link { font-size: 32px; padding-right: 30px; }
    .footer-email-link::after { font-size: 28px; }
}

@media (max-width: 640px) {
    .footer-main-grid { flex-direction: column; gap: 60px; }
    .footer-email-link { font-size: 24px; padding-right: 24px; }
    .footer-email-link::after { font-size: 20px; }
    .footer-right { flex-direction: column; gap: 40px; }
    .bottom-status-content { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
}

/* ==========================================================================
   10. STANDALONE PAGE UTILITY (Untuk Halaman Multi-Page)
   ========================================================================== */
.standalone-section {
    padding-top: 180px !important;
    min-height: calc(100vh - 120px);
    margin-bottom: 80px;
}