/* ============================================================
   STYLE.CSS - FINAL COMPLETE VERSION
   (Clean Layout, Physics Drag, Simple Loader, Smooth Name)
   ============================================================ */

   
:root {
    --bg-color: #02050a;
    --card-bg: rgba(20, 20, 30, 0.7);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #00dc82; /* Hijau Neon */
    --accent-glow: rgba(0, 220, 130, 0.4);
    --font-main: 'Poppins', sans-serif;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(to bottom, #080f1f 0%, #000000 100%);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    /* Mencegah highlight bawaan HP saat tombol disentuh yang bisa membuat layar nge-flicker */
    -webkit-tap-highlight-color: transparent;
}

/* ================= 1. PRELOADER (SIMPLE MINIMALIS) ================= */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #02050a; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease, visibility 1s;
}

.simple-loader {
    font-family: var(--font-main); font-size: 1rem; font-weight: 300;
    letter-spacing: 4px; color: #ffffff;
    animation: softBlink 2s infinite ease-in-out;
}

@keyframes softBlink {
    0% { opacity: 0.2; } 50% { opacity: 0.7; } 100% { opacity: 0.2; }
}

.preloader-finish { opacity: 0; visibility: hidden; pointer-events: none; }

/* ================= CSS ANIMASI SCROLL ================= */

/* Kondisi Awal (Hilang / Keluar) */
.reveal {
    opacity: 0;
    transform: translateY(50px); /* Turun sedikit ke bawah */
    transition: all 0.8s ease-out; /* Durasi animasi */
    will-change: opacity, transform;
}

/* Kondisi Akhir (Muncul / Masuk) */
.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Kembali ke posisi asal */
}

/* --- Variasi Arah (Opsional) --- */
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }

.reveal.from-left.active, 
.reveal.from-right.active { 
    transform: translateX(0); 
}
/* ================= 2. BACKGROUND (STARS & AURORA) ================= */
/* Container utama untuk bintang agar tetap di belakang */
#stars, #stars2 {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    z-index: -10; /* Paling belakang */
    animation: animStar linear infinite;
}

/* --- LAYER 1: BINTANG KECIL (BANYAK SEKALI & LEBIH TEBAL) --- */
/* Sebelumnya 1px, sekarang diubah jadi 2px agar lebih tebal */
#stars {
    width: 2px; height: 2px;
    border-radius: 50%; /* Biar agak bulat */
    /* Daftar panjang di bawah ini adalah koordinat setiap bintang.
       Format: [posisi-X] [posisi-Y] [blur-radius] [warna]
       Saya sudah menambahkan SANGAT BANYAK koordinat baru dan menambah blur 1px.
    */
    box-shadow: 
        100px 200px 1px #FFF, 300px 400px 1px #FFF, 500px 100px 1px #FFF, 
        700px 600px 1px #FFF, 900px 800px 1px #FFF, 1100px 200px 1px #FFF, 
        1300px 500px 1px #FFF, 1500px 300px 1px #FFF, 1700px 700px 1px #FFF, 
        50px 800px 1px #FFF, 250px 600px 1px #FFF, 450px 300px 1px #FFF, 
        650px 900px 1px #FFF, 850px 100px 1px #FFF, 1050px 500px 1px #FFF, 
        1250px 200px 1px #FFF, 1450px 800px 1px #FFF, 1650px 400px 1px #FFF, 
        1850px 600px 1px #FFF, 200px 150px 1px #FFF, 400px 350px 1px #FFF, 
        600px 550px 1px #FFF, 800px 750px 1px #FFF, 1000px 950px 1px #FFF, 
        1200px 150px 1px #FFF, 1400px 350px 1px #FFF, 1600px 550px 1px #FFF, 
        1800px 750px 1px #FFF, 150px 50px 1px #FFF, 350px 250px 1px #FFF,
        550px 450px 1px #FFF, 750px 650px 1px #FFF, 950px 850px 1px #FFF,
        1150px 50px 1px #FFF, 1350px 250px 1px #FFF, 1550px 450px 1px #FFF,
        1750px 650px 1px #FFF, 1950px 850px 1px #FFF, 50px 1000px 1px #FFF,
        250px 1200px 1px #FFF, 450px 1400px 1px #FFF, 650px 1600px 1px #FFF;
    animation-duration: 150s; /* Bergerak lambat */
}

/* --- LAYER 2: BINTANG SEDANG (LEBIH BESAR & TERANG) --- */
/* Sebelumnya 2px, sekarang diubah jadi 3px */
#stars2 {
    width: 3px; height: 3px;
    border-radius: 50%;
    /* Ditambah blur 2px agar berpendar lebih kuat */
    box-shadow: 
        200px 300px 2px #FFF, 400px 100px 2px #FFF, 600px 500px 2px #FFF, 
        800px 200px 2px #FFF, 1000px 600px 2px #FFF, 1200px 400px 2px #FFF, 
        1400px 800px 2px #FFF, 1600px 100px 2px #FFF, 1800px 500px 2px #FFF, 
        100px 700px 2px #FFF, 300px 900px 2px #FFF, 500px 200px 2px #FFF, 
        700px 400px 2px #FFF, 900px 700px 2px #FFF, 1100px 100px 2px #FFF, 
        1300px 300px 2px #FFF, 1500px 600px 2px #FFF, 1700px 200px 2px #FFF, 
        1900px 800px 2px #FFF, 150px 450px 2px #FFF, 350px 650px 2px #FFF,
        550px 850px 2px #FFF, 750px 1050px 2px #FFF, 950px 1250px 2px #FFF,
        1150px 1450px 2px #FFF, 1350px 1650px 2px #FFF, 50px 1850px 2px #FFF,
        250px 50px 2px #FFF, 450px 250px 2px #FFF, 650px 450px 2px #FFF;
    animation-duration: 100s; /* Bergerak sedikit lebih cepat */
}

/* Animasi gerakan bintang ke atas */
@keyframes animStar { 
    from { transform: translateY(0px); } 
    to { transform: translateY(-2000px); } 
}

/* --- AURORA EFFECT (TETAP SAMA) --- */
.top-aurora-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 45vh; z-index: -5; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%); opacity: 0.8;
}
.aurora-light {
    position: absolute; width: 150%; height: 150%; top: -50%; left: -25%;
    filter: blur(80px); mix-blend-mode: screen; animation: auroraMove 20s infinite linear; opacity: 0.6;
}
.aurora-light:nth-child(1) { background: linear-gradient(45deg, rgba(0,220,130,0) 20%, rgba(0,220,130,0.7) 50%, rgba(0,100,255,0.4) 80%); animation-duration: 25s; }
.aurora-light:nth-child(2) { background: linear-gradient(135deg, rgba(100,0,255,0) 10%, rgba(100,0,255,0.5) 40%, rgba(0,220,130,0.3) 70%); animation-delay: -5s; animation-duration: 35s; opacity: 0.5; }
.aurora-light:nth-child(3) { background: radial-gradient(circle at center, rgba(0,255,255,0.4) 0%, rgba(0,0,0,0) 60%); top: -25%; left: 0%; animation: auroraWave 15s infinite alternate; opacity: 0.4; }
@keyframes auroraMove { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes auroraWave { 0% { transform: translateX(-10%); } 100% { transform: translateX(10%); } }
/* ================= 3. LAYOUT UTAMA ================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
/* Update Navbar yang sudah ada */
/* ================= NAVBAR GLOW & SMOOTH ANIMATION ================= */

.navbar {
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 15px 0; /* Sedikit lebih ramping agar elegan */
    
    /* Background semi-transparan gelap */
    background: rgba(2, 5, 10, 0.85);
    
    /* Blur yang kuat untuk efek kaca */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    
    z-index: 1000; 
    border-bottom: 1px solid rgba(255,255,255,0.05);

    /* --- 1. EFEK GLOW (CAHAYA) --- */
    /* Kombinasi bayangan hitam (depth) dan cahaya hijau tipis (glow) */
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),      /* Bayangan hitam lembut */
        0 0 20px rgba(0, 220, 130, 0.15);    /* Cahaya Hijau Neon Tipis */

    /* --- 2. ANIMASI SMOOTH (PHYSICS) --- */
    /* Menggunakan cubic-bezier agar gerakannya: Cepat di awal -> Melambat di akhir */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease,
                padding 0.3s ease;
                
    /* Pastikan opacity 1 saat muncul */
    opacity: 1;
}

/* ================= TOMBOL GITHUB DI NAVBAR ================= */
.github-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak ikon dan teks */
    
    /* Style Dasar */
    background: rgba(255, 255, 255, 0.05); /* Transparan gelap */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 20px; /* Ukuran tombol */
    border-radius: 50px; /* Bentuk Kapsul */
    
    /* Border tipis agar terlihat rapi */
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Transisi halus */
    transition: all 0.3s ease;
}

/* Ukuran Ikon GitHub */
.github-nav-btn i {
    font-size: 1.2rem;
}

/* EFEK SAAT DISENTUH (HOVER) */
.github-nav-btn:hover {
    background: var(--accent); /* Jadi Hijau Neon */
    color: #000; /* Teks jadi hitam biar kontras */
    border-color: var(--accent);
    
    /* Efek Glow/Cahaya */
    box-shadow: 0 0 15px var(--accent-glow);
    
    /* Sedikit naik ke atas */
    transform: translateY(-2px);
}

/* KELAS SEMBUNYI (Saat Auto-Hide) */
.navbar-hidden {
    /* Geser ke atas */
    transform: translateY(-100%);
    
    /* Hilangkan glow saat sembunyi agar tidak ada sisa cahaya tertinggal */
    box-shadow: none;
    
    /* Opsional: Buat transparan agar hilangnya lebih halus */
    opacity: 0; 
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-main); text-decoration: none; letter-spacing: 2px; }

.nav-links { list-style: none; display: flex; gap: 15px; /* Jarak antar tombol */ }

/* --- 1. STYLE LINK DASAR (BENTUK KAPSUL) --- */
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    /* Memberi ruang agar berbentuk kotak/kapsul */
    padding: 8px 20px;
    /* Sudut membulat */
    border-radius: 30px;
    /* Border transparan (agar layout tidak loncat saat hover) */
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* --- 2. SAAT MOUSE LEWAT (HOVER BIASA) --- */
.nav-links a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05); /* Background putih tipis */
    border-color: rgba(0, 220, 130, 0.3); /* Border hijau tipis */
}

/* --- 3. SAAT AKTIF (EFEK TENGGELAM / PRESSED) --- */
.nav-links a.active {
    background: var(--accent); /* Background Hijau Neon */
    color: #02050a; /* Teks jadi hitam pekat agar terbaca */
    font-weight: 700;
    border-color: var(--accent);
    
    /* RAHASIA EFEK TENGGELAM (INSET SHADOW) */
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.4), /* Bayangan gelap di pojok kiri atas dalam */
        inset -2px -2px 4px rgba(255, 255, 255, 0.3), /* Pantulan cahaya di pojok kanan bawah dalam */
        0 0 15px var(--accent-glow); /* Glow luar dikit */

    /* Efek fisik tombol tertekan ke bawah (mengecil sedikit) */
    transform: scale(0.95); 
}

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* ================= 4. HERO SECTION (Layout Fix) ================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; padding-bottom: 50px; }

.hero-content {
    display: flex !important; flex-direction: row; align-items: center; 
    justify-content: space-between; width: 100%; gap: 40px; z-index: 2;
}

/* --- Tatanan Teks (RAPI VERTIKAL) --- */
.hero-text {
    flex: 1; 
    display: flex; flex-direction: column; /* Susun ke bawah */
    justify-content: center; align-items: flex-start; /* Rata Kiri */
    padding-right: 20px; z-index: 5;
}

.greeting {
    display: block; color: var(--accent); font-size: 1.2rem; font-weight: 600;
    letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase;
}

/* Efek Nama (Spotlight + Smooth Scale) */
.glitch-name {
    display: inline-block; font-size: 3.5rem; font-weight: 800; line-height: 1.1;
    margin-bottom: 25px; color: #aaaaaa; text-decoration: none; cursor: default; position: relative;
    transform-origin: left center; will-change: transform;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}
.glitch-name::before {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle 150px at var(--x, 50%) var(--y, 50%), #00dc82 0%, #ffffff 30%, transparent 70%);
    background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    opacity: 0; transition: opacity 0.5s ease; pointer-events: none; z-index: 2;
}
.glitch-name:hover { transform: scale(1.1); color: #cccccc; }
.glitch-name:hover::before { opacity: 1; }

/* Efek Ketikan */
.typewriter-style {
    font-size: 1.1rem; color: var(--text-muted); font-family: 'Courier New', monospace; line-height: 1.6;
    min-height: 3.2em; display: block; max-width: 600px;
}
.typewriter-style::after {
    content: '|'; color: var(--accent); animation: blinkCursor 0.8s infinite; margin-left: 2px;
}
@keyframes blinkCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- Tatanan Foto (DRAG PHYSICS FIX) --- */
.hero-image-box {
    flex: 0 0 350px; width: 350px; height: 450px; position: relative;
    border-radius: 30px; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
    transition: box-shadow 0.3s, border-color 0.3s;
    cursor: grab; user-select: none; touch-action: none;
    transform: translate(0px, 0px); will-change: transform;
}
.profile-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; pointer-events: none; transition: opacity 0.3s; }

/* Hover Biasa (Saat tidak ditarik) */
.hero-image-box:hover { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }
.hero-image-box:hover .profile-img { opacity: 1; }

/* Saat Ditarik (Dragging) */
.hero-image-box.dragging {
    cursor: grabbing; transition: none !important; z-index: 100;
    border-color: #ffffff; box-shadow: 0 0 50px var(--accent);
}

/* Saat Dilepas (Pulang) */
.hero-image-box.smooth-return {
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

/* ================= 5. SECTIONS UMUM ================= */
.section { padding: 100px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 60px; text-align: center; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn.primary { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent-glow); }
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px var(--accent-glow); }
.btn.secondary { border: 1px solid var(--text-muted); color: var(--text-main); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.big-btn { padding: 15px 40px; font-size: 1.1rem; }

.about-text p { color: var(--text-muted); margin-bottom: 20px; }
.about-text strong { color: var(--text-main); }
.skills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.skills span { background: rgba(255,255,255,0.05); padding: 8px 15px; border-radius: 5px; font-size: 0.9rem; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }

.logos-wrapper { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.logo-item { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: 0.3s; }
.logo-item:hover { transform: translateY(-5px); }
.logo-item img { width: 50px; height: 50px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); }
.logo-item span { font-size: 0.85rem; color: var(--text-muted); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
/* ================= PROJECT CARD: FINAL MASTER CODE ================= */

/* 1. WADAH UTAMA KARTU (KUNCI ROUNDED ADA DI SINI) */
.project-card {
    background: #080f15;
    
    /* --- INI YANG MEMBUAT ROUNDED --- */
    border-radius: 24px; 
    overflow: hidden; /* Memotong sudut gambar agar ikut melengkung */
    /* -------------------------------- */
    
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    
    /* Transisi Gerakan Kartu Naik Turun (Lembut) */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

/* 2. AREA GAMBAR (CONTAINER) */
.project-card .card-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: #080f15;
    overflow: hidden; /* Double protection agar gambar tidak bocor */
    z-index: 1;
}

/* 3. GAMBARNYA (ZOOM HALUS & ANTI-KAKU) */
.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1; /* Layer paling bawah */
    
    /* Tampilan Diam (Normal) */
    filter: brightness(0.8) saturate(0.9);
    transform: scale(1.0);
    
    /* Transisi Super Smooth (Seperti iOS/Mac) */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 0.6s ease;
}

/* 4. GRADASI OVERLAY (ANTI-BOCOR & ANTI-NAIK) */
.project-card .card-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 10; /* Selalu di atas gambar */
    pointer-events: none;

    /* KUNCI ANTI-BOCOR: Bagian bawah 90%-100% adalah warna solid */
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(8, 15, 21, 0.5) 60%, 
        #080f15 90%, 
        #080f15 100%
    );
}

/* 5. INFO & TEKS */
.card-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 20; /* Layer paling atas */
}

/* Styling Teks */
.project-card h3 { 
    color: #00dc82; font-size: 1.5rem; margin-bottom: 10px; transition: 0.3s; 
}
.project-card p { 
    color: #8892b0; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; 
}
.btn-link { 
    color: #00dc82; text-decoration: none; font-weight: 600; 
    display: inline-flex; align-items: center; gap: 5px; transition: 0.3s; 
}

/* ================= INTERAKSI HOVER (ELEGANT) ================= */

/* Kartu Naik & Border Nyala */
.project-card:hover {
    border-color: #00dc82;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 220, 130, 0.2);
}

/* Gambar Zoom 5% (Tipis Saja) & Jadi Terang */
.project-card:hover .card-image img {
    filter: brightness(1.1) saturate(1.1);
    transform: scale(1.05); /* Zoom kecil agar elegan */
}

/* Panah Tombol Gerak */
.project-card:hover .btn-link i { 
    transform: translateX(5px); 
}

/* Efek Panah Tombol */
.project-card:hover .btn-link i { transform: translateX(5px); }
.card-image { height: 200px; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.icon-placeholder { font-size: 3rem; color: rgba(255,255,255,0.2); }
.card-info { padding: 25px; }
.card-info h3 { margin-bottom: 10px; font-size: 1.3rem; }
.card-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.btn-link { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

.contact-wrapper { text-align: center; }
.socials { display: flex; justify-content: center; gap: 25px; margin-top: 20px; }
.socials a { color: var(--text-muted); font-size: 2rem; transition: 0.3s; }
.socials a:hover { color: var(--accent); transform: scale(1.1); }

/* ================= FOOTER STYLE ================= */
footer {
    text-align: center;
    padding: 60px 0 30px;
    /* Gradient halus dari hitam pekat di bawah ke transparan di atas */
    background: linear-gradient(to top, #000000 0%, rgba(2, 5, 10, 0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Scroll Snap Settings (Tetap Pertahankan) */
    min-height: auto; 
    scroll-snap-align: end;
}

/* Wadah Informasi (Alamat & Email) */
.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px; /* Jarak ke tulisan copyright */
    flex-wrap: wrap; /* Agar turun ke bawah kalau di HP */
}

/* Item Kontak */
.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: 0.3s;
}

/* Efek Hover pada Teks */
.info-item:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Ikon Neon */
.info-item i {
    color: var(--accent); /* Hijau Neon */
    font-size: 1.3rem;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Garis Pemisah */
.separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

/* Tulisan Copyright */
.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.copyright strong {
    color: var(--text-main);
}

/* Responsif HP */
@media (max-width: 768px) {
    .footer-info {
        flex-direction: column; /* Susun ke bawah di HP */
        gap: 15px;
    }
    .separator {
        display: none; /* Hilangkan garis pemisah di HP */
    }
}


/* ================= METEOR / BINTANG JATUH ================= */
.meteor {
    position: fixed;
    top: 0;
    /* Posisi left akan diatur random oleh JS */
    width: 150px; /* Panjang ekor */
    height: 2px;  /* Ketebalan ekor */
    /* Gradient ekor: transparan -> putih -> kepala terang */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.8) 100%);
    /* Putar agar jatuh diagonal dari kanan atas ke kiri bawah */
    transform: rotate(-45deg); 
    z-index: -3; /* Di depan bintang, tapi di belakang aurora */
    pointer-events: none;
    opacity: 0; /* Awalnya tidak terlihat */
    /* Jalankan animasi sekali */
    animation: meteorDrop 2s linear forwards;
}

/* Kepala meteor yang bersinar */
.meteor::before {
    content: '';
    position: absolute;
    top: 50%; /* Tengah vertikal */
    right: 0; /* Di ujung kanan (kepala) */
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    /* Glow efek menggunakan warna aksen (hijau/cyan) */
    box-shadow: 0 0 15px #fff, 0 0 30px var(--accent), 0 0 50px var(--accent);
}

/* Keyframes Animasi Jatuh */
@keyframes meteorDrop {
    0% {
        /* Mulai dari luar layar (kanan atas) */
        transform: translate(200px, -200px) rotate(-45deg);
        opacity: 1;
    }
    80% {
        /* Menjelang akhir mulai memudar */
        opacity: 1;
    }
    100% {
        /* Berakhir di luar layar (kiri bawah) dan hilang */
        transform: translate(-100vw, 150vh) rotate(-45deg);
        opacity: 0;
    }
}

/* ================= EDUCATION TIMELINE ================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px; /* Ruang untuk garis di kiri */
}

/* Garis Vertikal Neon */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Garis redup */
    box-shadow: 0 0 10px rgba(0, 220, 130, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* Titik Bulat Neon */
.timeline-dot {
    position: absolute;
    left: -36px; /* Pas di garis vertikal */
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent); /* Hijau Neon */
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    border: 2px solid #000; /* Border hitam biar kontras */
}

/* Kartu Konten */
.timeline-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    position: relative;
}

/* Efek Hover Kartu */
.timeline-content:hover {
    transform: translateX(10px); /* Geser kanan dikit */
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0, 220, 130, 0.1);
}

/* Segitiga kecil penunjuk ke arah titik */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.timeline-content:hover::before {
    border-right-color: var(--accent); /* Segitiga jadi hijau saat hover */
}

/* Teks di dalam kartu */
.timeline-content .year {
    display: inline-block;
    background: rgba(0, 220, 130, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 220, 130, 0.3);
}

.timeline-content h3 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.timeline-content .degree {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.timeline-content .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ================= 6. RESPONSIF (HP/TABLET) ================= */
@media (max-width: 900px) {
    /* Navbar Mobile */
    .menu-toggle { display: block; }
    .nav-links { position: absolute; top: 70px; right: 0; width: 100%; background: rgba(5,5,5,0.95); flex-direction: column; align-items: center; padding: 20px 0; display: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    /* Hero Layout Mobile */
    .hero-content { flex-direction: column-reverse; text-align: center; gap: 30px; }
    .hero-text { align-items: center; padding-right: 0; }
    .greeting { font-size: 1rem; }
    .glitch-name { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; transform-origin: center center; }
    .glitch-name:hover { transform: scale(1.05); color: #ffffff; }
    .glitch-name::before { display: none; }
    .typewriter-style { font-size: 0.95rem; min-height: 4em; }

    /* Foto Mobile */
    .hero-image-box { width: 280px; height: 350px; flex: none; }
}

/* =========================================
   CUSTOM SCROLLBAR (DARK & NEON)
   ========================================= */

/* 1. Mengatur Lebar Scrollbar */
::-webkit-scrollbar {
    width: 10px;  /* Lebar untuk scroll vertikal */
    height: 10px; /* Tinggi untuk scroll horizontal (jika ada) */
}

/* 2. Track (Jalur Latar Belakang Scrollbar) */
::-webkit-scrollbar-track {
    background: #02050a; /* Hitam pekat (Menyatu dengan background web) */
}

/* 3. Thumb (Batang/Kotak yang digeser) */
::-webkit-scrollbar-thumb {
    background: #333333; /* Abu-abu gelap (Supaya tidak mencolok saat diam) */
    border-radius: 10px; /* Membulat (Kapsul) */
    
    /* Trik Border: Membuat efek scrollbar terlihat "melayang" / lebih kecil */
    border: 2px solid #02050a; 
}

/* 4. Saat Mouse Menyentuh Scrollbar (Hover) */
::-webkit-scrollbar-thumb:hover {
    background: var(--accent); /* Berubah jadi Hijau Neon */
    box-shadow: 0 0 15px var(--accent-glow); /* Efek bercahaya */
}

/* --- Support untuk Browser Firefox --- */
html {
    scrollbar-width: thin; /* Scrollbar tipis */
    scrollbar-color: #333333 #02050a; /* Thumb Track */
}

/* --- TAMBAHAN PENTING UNTUK SCROLL --- */
html {
    scroll-behavior: smooth; /* Agar scroll manual terasa halus */
}

section {
    /* Angka 120px ini disesuaikan dengan tinggi Navbar Anda + sedikit jarak */
    /* Ini membuat judul section tidak akan nyangkut di balik navbar */
    scroll-margin-top: 120px; 
}
/* ================= SCROLL TO TOP BUTTON ================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    
    /* Animasi Progress Melingkar (Ring Progress) */
    background: conic-gradient(var(--accent) var(--scroll-progress, 0%), rgba(255, 255, 255, 0.05) var(--scroll-progress, 0%));
    
    color: var(--accent); /* Ikon warna hijau neon */
    border-radius: 50%; /* Bulat */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 999; /* Di atas elemen lain */
    
    /* Hapus border, kita akan gunakan pseudo-element sebagai bagian dalam */
    border: none;
    position: fixed;
    
    /* State Awal: Sembunyi */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Turun sedikit */
    
    /* Transisi Halus */
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Lingkaran Hitam di Bagian Dalam untuk Membentuk Efek Cincin (Ring) */
.scroll-top-btn::after {
    content: '';
    position: absolute;
    inset: 3px; /* Ketebalan cincin */
    background: #02050a; /* Warna senada dengan background website */
    border-radius: 50%;
    z-index: 0; /* Di bawah ikon, di atas background melingkar */
    transition: all 0.3s ease;
}

/* Pastikan Ikon Tampil di Atas Cincin */
.scroll-top-btn i {
    position: relative;
    z-index: 1;
}

/* State Aktif (Muncul saat discroll) */
.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Efek Hover */
.scroll-top-btn:hover {
    box-shadow: 0 0 20px rgba(0, 220, 130, 0.5); /* Glow hijau */
    transform: translateY(-5px); /* Naik sedikit seolah melayang */
}

/* Saat disentuh bagian dalamnya jadi putih/menyala */
.scroll-top-btn:hover::after {
    background: var(--accent);
}
.scroll-top-btn:hover i {
    color: #000;
}

/* =========================================
   UNIQUE SECTION ANIMATIONS
   ========================================= */

/* 1. Base Class (Wajib ada di semua section) */
.scroll-anim {
    opacity: 0;
    /* Transisi fisik (posisi/skala) dan opacity */
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 1s ease-out, 
                filter 1s ease;
    will-change: transform, opacity;
}

/* State Aktif (Saat section terlihat) */
.scroll-anim.anim-active {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg) !important;
    filter: blur(0) !important;
}

/* --- VARIASI 1: SLIDE DARI KIRI (Untuk 'About') --- */
/* Muncul dari kiri sambil sedikit miring (Speed) */
.anim-left {
    transform: translateX(-100px) skewX(10deg);
}

/* --- VARIASI 2: 3D FLIP UP (Untuk 'Education') --- */
/* Muncul dari bawah dengan efek putaran 3D */
.anim-flip {
    transform: perspective(1000px) rotateX(45deg) translateY(100px);
    transform-origin: center top;
}

/* --- VARIASI 3: MATRIX ZOOM (Untuk 'Projects') --- */
/* Muncul dari dalam (Zoom Out) dengan efek membesar dramatis */
.anim-zoom {
    transform: scale(0.7) translateY(50px);
}

/* --- VARIASI 4: BLUR & FLOAT (Untuk 'Contact') --- */
/* Muncul dari bawah perlahan sambil menajamkan blur */
.anim-blur {
    transform: translateY(80px);
    filter: blur(20px); /* Mulai dari buram */
}
/* ================= FOOTER ANIMATION (RISING EMBERS) ================= */

/* Update Footer Utama agar bisa menampung animasi */
footer {
    position: relative; /* Wajib */
    overflow: hidden;   /* Agar partikel tidak keluar dari area footer */
    /* Tambahkan sedikit efek glow berdenyut di border atasnya */
    animation: borderPulse 4s infinite alternate;
}

/* Pastikan konten teks tetap di atas animasi */
.footer-content-relative {
    position: relative;
    z-index: 2;
}

/* Wadah Partikel */
.footer-embers {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Agar tidak menghalangi klik */
    z-index: 1;
}

/* Gaya Dasar Partikel */
.ember {
    position: absolute;
    bottom: -20px; /* Mulai dari bawah layar */
    width: 4px; height: 4px; /* Ukuran kecil */
    background: var(--accent);
    border-radius: 50%; /* Bulat */
    /* Glow Neon Kuat */
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
    opacity: 0;
    animation: riseUp linear infinite;
}

/* Keyframes Animasi Naik */
@keyframes riseUp {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: scale(0.5);
    }
    20% {
        opacity: 0.8; /* Muncul cepat */
    }
    100% {
        bottom: 200px; /* Naik setinggi 200px */
        opacity: 0;    /* Memudar */
        transform: scale(1.5) translateX(20px); /* Membesar dan sedikit bergeser ke kanan */
    }
}

/* Animasi Denyutan Border Footer */
@keyframes borderPulse {
    0%   { border-top-color: rgba(255, 255, 255, 0.05); }
    100% { border-top-color: rgba(0, 220, 130, 0.4); box-shadow: inset 0 10px 20px -10px var(--accent-glow); }
}

/* --- PENGATURAN ACAK (RANDOM) UNTUK SETIAP PARTIKEL --- */
/* Agar terlihat natural, kita acak posisi kiri, durasi, dan delaynya */

.ember:nth-child(1)  { left: 5%;   animation-duration: 5s; animation-delay: 0s; }
.ember:nth-child(2)  { left: 15%;  animation-duration: 7s; animation-delay: 1.5s; }
.ember:nth-child(3)  { left: 25%;  animation-duration: 4s; animation-delay: 3s; }
.ember:nth-child(4)  { left: 35%;  animation-duration: 6s; animation-delay: 0.5s; }
.ember:nth-child(5)  { left: 45%;  animation-duration: 8s; animation-delay: 2.5s; }
.ember:nth-child(6)  { left: 55%;  animation-duration: 5s; animation-delay: 1s; }
.ember:nth-child(7)  { left: 65%;  animation-duration: 7s; animation-delay: 4s; }
.ember:nth-child(8)  { left: 75%;  animation-duration: 4.5s; animation-delay: 2s; }
.ember:nth-child(9)  { left: 85%;  animation-duration: 6.5s; animation-delay: 0.2s; }
.ember:nth-child(10) { left: 95%;  animation-duration: 5.5s; animation-delay: 3.5s; }
.ember:nth-child(11) { left: 10%;  animation-duration: 8s; animation-delay: 5s; width: 6px; height: 6px; } /* Ada yang agak besar */
.ember:nth-child(12) { left: 30%;  animation-duration: 6s; animation-delay: 4.2s; }
.ember:nth-child(13) { left: 50%;  animation-duration: 7.5s; animation-delay: 1.2s; }
.ember:nth-child(14) { left: 70%;  animation-duration: 5s; animation-delay: 2.8s; width: 5px; height: 5px;}
.ember:nth-child(15) { left: 90%;  animation-duration: 6s; animation-delay: 0.8s; }

/* ================= GALERI PORTFOLIO (NEW PAGES) ================= */

/* Header Halaman Portfolio */
.portfolio-header {
    padding-top: 120px; /* Jarak dari atas karena ada navbar */
    padding-bottom: 50px;
    text-align: center;
}
.portfolio-header h1 {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 10px;
}
.portfolio-header p {
    color: var(--text-muted);
}

/* Grid Layout (Kotak-kotak Galeri) */
.gallery-grid {
    display: grid;
    /* Responsive: Otomatis ngatur jumlah kolom sesuai lebar layar */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

/* Kartu Item Galeri */
.gallery-item {
    position: relative;
    height: 250px; /* Tinggi kotak */
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    transition: 0.4s ease;
}

/* Gambar Background */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    opacity: 0.8;
}

/* Overlay Hitam & Teks (Sembunyi dulu) */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 5, 10, 0.85); /* Latar gelap transparan */
    backdrop-filter: blur(5px); /* Efek blur di belakang teks */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    
    opacity: 0; /* Hilang saat awal */
    transform: translateY(20px); /* Turun sedikit */
    transition: all 0.4s ease;
}

.gallery-overlay h3 {
    color: var(--accent); /* Judul Hijau */
    font-size: 1.4rem;
    margin-bottom: 10px;
    transform: translateY(-10px);
    transition: 0.4s;
}

.gallery-overlay p {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gallery-overlay .view-btn {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
}

/* --- EFEK HOVER (Saat Mouse Masuk) --- */
.gallery-item:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 220, 130, 0.2);
    transform: translateY(-5px);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1); /* Gambar membesar */
    opacity: 0.4; /* Gambar meredup biar teks kebaca */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1; /* Munculkan teks */
    transform: translateY(0); /* Naik ke posisi normal */
}

/* ================= TOMBOL KEMBALI (REDESIGN) ================= */

/* Style Dasar Tombol */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Jarak ikon ke teks */
    
    background: rgba(255, 255, 255, 0.05); /* Kaca transparan gelap */
    color: var(--text-muted);
    
    padding: 10px 25px; /* Besar tombol */
    border-radius: 50px; /* Bentuk Kapsul Sempurna */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Garis tepi halus */
    
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Style Ikon Panah */
.back-home-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease; /* Agar panah bisa gerak */
}

/* --- SAAT MOUSE LEWAT (HOVER) --- */
.back-home-btn:hover {
    background: var(--accent); /* Berubah jadi Hijau Neon */
    color: #000; /* Teks jadi hitam pekat (kontras) */
    border-color: var(--accent);
    
    /* Efek Glow Neon */
    box-shadow: 0 0 20px var(--accent-glow);
    
    /* Tombol agak mundur sedikit */
    transform: translateX(5px); 
}

/* Animasi Panah saat Hover (Geser ke kiri) */
.back-home-btn:hover i {
    transform: translateX(-5px); 
}

/* --- BADGE LOGO DI KANAN --- */
.page-badge {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Tombol Utama (Neon Style) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent); /* Warna Hijau */
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 220, 130, 0.4);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* ================= MOBILE MENU CSS ================= */

/* Tampilan Default (PC): Tombol Menu Hilang */
.menu-btn {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

/* Tampilan Mobile (Layar Kecil) */
@media (max-width: 768px) {
    
    /* 1. Munculkan Tombol Menu */
    .menu-btn {
        display: block;
    }

    /* 2. Sembunyikan Menu Links (Geser ke Kanan Layar) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyi di luar layar kanan */
        width: 70%;   /* Lebar menu 70% layar */
        height: 100vh; /* Tinggi full layar */
        background: rgba(2, 5, 10, 0.95); /* Background gelap transparan */
        backdrop-filter: blur(10px);
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        
        transition: right 0.4s ease; /* Animasi geser halus */
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    /* 3. Class 'active' (Saat Menu Dibuka) */
    .nav-links.active {
        right: 0; /* Geser masuk ke layar */
    }

    /* Styling Link di dalam Menu Mobile */
    .nav-links li a {
        font-size: 1.2rem;
        color: #fff;
    }
    
    /* 4. FIX NAVBAR KEPOTONG (SEMBUNYIKAN TEKS GITHUB) */
    .github-nav-btn span {
        display: none;
    }
    .github-nav-btn {
        padding: 8px 12px;
    }
    .lang-toggle {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    /* 5. FIX POSISI TOMBOL BAWAH (CHAT & SCROLL TOP) */
    .chat-widget {
        bottom: 25px !important;
        left: 20px !important;
    }
    
    .chat-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    
    .scroll-top-btn {
        bottom: 25px !important;
        right: 20px !important;
        width: 45px;
        height: 45px;
    }
}

/* ================= CHATBOT STYLE (RAPID & CLEAN FIX) ================= */

/* 1. CONTAINER UTAMA (Floating) */
.chat-widget {
    position: fixed; bottom: 30px; left: 30px; 
    z-index: 9999; font-family: 'Poppins', sans-serif;
    
    /* Animasi Muncul Awal */
    opacity: 0; transform: translateY(100px); pointer-events: none;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-widget.appear { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* 2. TOMBOL BULAT UTAMA */
.chat-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: #00dc82; color: #000; border: none;
    font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 220, 130, 0.4);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
}
.chat-btn:hover { transform: scale(1.1) rotate(10deg); background: #fff; }

/* 3. TOOLTIP "Ask Me" */
.chat-tooltip {
    position: absolute; top: -45px; left: 50%; transform: translateX(-50%);
    background: #fff; color: #000; padding: 5px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: bold; white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); pointer-events: none;
    animation: bounceTooltip 2s infinite ease-in-out;
    opacity: 1; transition: opacity 0.3s;
}
.chat-tooltip::after {
    content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
    border-width: 6px 6px 0; border-style: solid; border-color: #fff transparent transparent transparent;
}
@keyframes bounceTooltip {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}
/* Hilangkan tooltip saat chat terbuka */
.chat-widget.opened .chat-tooltip { opacity: 0; visibility: hidden; }

/* 4. KOTAK CHAT (POPUP) */
.chat-box {
    position: absolute; bottom: 80px; left: 0;
    width: 350px; /* Lebar pas */
    height: 450px;
    background: #080f19; /* Warna Gelap Solid */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    /* DEFAULT: SEMBUNYI TOTAL */
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom left;
}
.chat-box.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

/* 5. HEADER (TITIK KRITIS KERAPIAN) */
.chat-header {
    background: rgba(255,255,255,0.05); 
    padding: 15px;
    height: 60px; /* Tinggi Fix agar tidak gepeng */
    display: flex; 
    justify-content: space-between; /* Paksa Kiri & Kanan menjauh */
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-title { 
    font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; font-size: 0.95rem;
}
.dot-online { width: 8px; height: 8px; background: #00dc82; border-radius: 50%; box-shadow: 0 0 5px #00dc82; }

/* Wrapper Tombol Kanan */
.header-actions {
    display: flex; align-items: center; gap: 10px; /* Jarak antar tombol */
}

/* Style Tombol Header */
#reset-btn { 
    background: none; border: none; color: #ff5555; 
    font-size: 1.2rem; cursor: pointer; padding: 5px; transition: 0.2s; 
}
#reset-btn:hover { color: #ff0000; transform: scale(1.1); }

#lang-btn {
    background: transparent; border: 1px solid #00dc82; color: #00dc82;
    border-radius: 6px; padding: 4px 8px; font-size: 0.7rem; font-weight: 700;
    cursor: pointer; transition: 0.2s;
}
#lang-btn:hover { background: #00dc82; color: #000; }

#chat-close-btn { 
    background: none; border: none; color: #aaa; 
    font-size: 1.4rem; cursor: pointer; padding: 5px; transition: 0.2s; 
}
#chat-close-btn:hover { color: #fff; transform: rotate(90deg); }

/* 6. AREA PESAN & INPUT */
.chat-messages {
    flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
}
.message {
    max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4;
}
.bot-msg { align-self: flex-start; background: rgba(255,255,255,0.1); color: #ddd; border-bottom-left-radius: 2px; }
.user-msg { align-self: flex-end; background: #00dc82; color: #000; border-bottom-right-radius: 2px; font-weight: 600; }
.suggestion-chip {
    display: inline-block; font-size: 0.75rem; background: rgba(0, 220, 130, 0.1);
    color: #00dc82; padding: 4px 8px; border-radius: 15px; margin-top: 5px; margin-right: 5px;
    border: 1px solid rgba(0, 220, 130, 0.3);
}

.chat-input-area {
    padding: 12px; display: flex; gap: 10px; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2);
}
#chat-input { flex: 1; background: transparent; border: none; color: #fff; outline: none; }
#send-btn { background: none; border: none; color: #00dc82; font-size: 1.4rem; cursor: pointer; }

.lang-container{
display:flex;
flex-direction:column;
gap:10px;
margin-top:10px;
}

.lang-option{
padding:10px;
border-radius:10px;
border:none;
cursor:pointer;
background:#00dc82;
color:#000;
font-weight:600;
}

.restart-chat{
margin-top:10px;
padding:6px 12px;
border-radius:8px;
border:none;
cursor:pointer;
background:#222;
color:#fff;
}

.quick-questions{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-top:10px;
}

.quick-btn{

padding:8px 12px;
border-radius:20px;
border:1px solid rgba(255,255,255,0.2);

background:rgba(255,255,255,0.05);
color:#fff;

cursor:pointer;
font-size:0.85rem;

transition:all .25s ease;

}

.quick-btn:hover{

background:#00dc82;
color:#000;
border-color:#00dc82;

}

.bot-msg{

line-height:1.6;
font-size:0.9rem;

}

.bot-msg b{

color:#00dc82;

}

.bot-msg ul{

margin-top:5px;
padding-left:15px;

}

.bot-msg li{

margin-bottom:4px;

}

.ai-loading{
display:flex;
gap:4px;
align-items:center;
}

.ai-loading span{
width:6px;
height:6px;
background:#aaa;
border-radius:50%;
animation:aiBubble 1.2s infinite ease-in-out;
}

.ai-loading span:nth-child(2){
animation-delay:.2s;
}

.ai-loading span:nth-child(3){
animation-delay:.4s;
}

@keyframes aiBubble{

0%{transform:translateY(0)}
50%{transform:translateY(-5px)}
100%{transform:translateY(0)}

}


/* ================= SERTIFIKAT CAROUSEL & FILTER ================= */

.cert-filters {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted); padding: 8px 25px; border-radius: 30px; cursor: pointer;
    transition: all 0.3s ease; font-family: var(--font-main); font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent); color: #000; border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow); transform: translateY(-2px);
}

.cert-carousel-wrapper {
    position: relative; width: 100%; padding: 20px 0;
    cursor: grab; /* Kursor bentuk tangan ambil */
}

.cert-carousel-wrapper:active { cursor: grabbing; /* Kursor mengepal saat ditarik */ }

.cert-carousel {
    display: flex; gap: 25px; overflow-x: auto; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none; /* Sembunyikan scrollbar bawaan */
    padding: 10px; /* Ruang agar shadow tidak terpotong */
}

.cert-carousel::-webkit-scrollbar { display: none; }

.cert-card {
    flex: 0 0 320px; /* Lebar tetap tiap kartu */ height: 230px;
    border-radius: 20px; position: relative; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08); background: #080f15;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cert-card img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.8);
}

/* Overlay Gelap + Blur saat dihover */
.cert-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 5, 10, 0.85); backdrop-filter: blur(5px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: all 0.4s ease; transform: translateY(20px);
}

/* Interaksi Hover */
.cert-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px -10px rgba(0, 220, 130, 0.3); transform: translateY(-5px); }
.cert-card:hover img { transform: scale(1.1); filter: brightness(0.4); }
.cert-card:hover .cert-overlay { opacity: 1; transform: translateY(0); }

.cert-overlay h3 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; text-align: center; padding: 0 15px; }

/* Modal / Pop-up Full Screen */
.cert-modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px);
    justify-content: center; align-items: center; flex-direction: column;
    opacity: 0; transition: opacity 0.3s ease;
}

.cert-modal.show { display: flex; opacity: 1; animation: modalFadeIn 0.4s; }

@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.cert-modal-content {
    max-width: 85%; max-height: 80vh; border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 220, 130, 0.2); border: 2px solid var(--accent); object-fit: contain;
}

#cert-caption { margin-top: 20px; color: var(--accent); font-size: 1.3rem; font-weight: 600; letter-spacing: 1px; text-align: center; }

.cert-modal-close {
    position: absolute; top: 30px; right: 40px; color: #fff; font-size: 3rem;
    cursor: pointer; transition: 0.3s;
}

.cert-modal-close:hover { color: var(--accent); transform: scale(1.2) rotate(90deg); }

/* ================= CSS FROM ABOUT-FULL.HTML ================= */
.education-wrapper {
    margin-top: 50px; padding: 30px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 50px;
}

/* SNAKE GRID TIMELINE */
.snake-wrapper { position: relative; padding: 10px 0; }
.snake-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    grid-template-areas: "area1 area2" "area4 area3";
}
.snake-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px; border-radius: 15px; position: relative;
    transition: 0.3s; backdrop-filter: blur(5px);
}
.snake-card:hover { border-color: #00dc82; box-shadow: 0 0 15px rgba(0, 220, 130, 0.1); }
.snake-year {
    display: inline-block; font-size: 0.8rem; color: #00dc82;
    background: rgba(0, 220, 130, 0.1); padding: 2px 10px;
    border-radius: 20px; margin-bottom: 8px; font-weight: bold;
}
.snake-title { font-size: 1.1rem; color: #fff; margin: 0 0 5px 0; }
.snake-desc { font-size: 0.85rem; color: #888; margin: 0 0 15px 0; line-height: 1.4; }
.school-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.8rem; text-decoration: none;
    color: #ddd; border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 15px; border-radius: 8px;
    transition: 0.3s; background: rgba(0,0,0,0.3);
}
.school-btn:hover { background: #00dc82; color: #000; border-color: #00dc82; }

.connect-right::after { content: ''; position: absolute; right: -42px; top: 50%; width: 42px; height: 2px; background: #00dc82; box-shadow: 0 0 10px #00dc82; }
.connect-down::after { content: ''; position: absolute; bottom: -42px; left: 50%; width: 2px; height: 42px; background: #00dc82; box-shadow: 0 0 10px #00dc82; }
.connect-left::after { content: ''; position: absolute; left: -42px; top: 50%; width: 42px; height: 2px; background: #00dc82; box-shadow: 0 0 10px #00dc82; }

/* EXPERIENCE & TECH STACK */
.bottom-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    margin-top: 50px;
}
.vertical-timeline { position: relative; border-left: 2px solid rgba(255,255,255,0.1); margin-left: 10px; padding-left: 30px; }
.v-item { position: relative; margin-bottom: 30px; }
.v-item::before {
    content: ''; position: absolute; left: -37px; top: 5px;
    width: 12px; height: 12px; background: #00dc82; border-radius: 50%;
    box-shadow: 0 0 8px #00dc82;
}
.v-date { color: #00dc82; font-size: 0.85rem; font-family: monospace; margin-bottom: 5px; display: block; }
.v-title { color: #fff; font-size: 1.1rem; margin-bottom: 5px; }
.v-desc { color: #aaa; font-size: 0.9rem; line-height: 1.5; }

.tech-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    gap: 15px;
}
.tech-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 15px; text-align: center;
    transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.tech-card:hover { 
    background: rgba(255,255,255,0.08); transform: translateY(-5px); border-color: #00dc82; 
}
.tech-name { font-size: 0.75rem; color: #ccc; font-weight: 500; }
.tech-card img {
    width: 45px; height: 45px; object-fit: contain; margin-bottom: 8px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

@media (max-width: 768px) {
    .snake-grid { 
        grid-template-columns: 1fr; 
        grid-template-areas: "area1" "area2" "area3" "area4";
        gap: 30px; 
    }
    .connect-right::after, .connect-left::after, .connect-down::after { display: none; }
    .snake-card:not(:last-child)::before {
        content: '▼'; position: absolute; bottom: -25px; left: 50%;
        transform: translateX(-50%); color: #00dc82; font-size: 12px;
    }
    .bottom-section { grid-template-columns: 1fr; }
}

/* LANGUAGE TOGGLE BUTTON */
.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-toggle:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 220, 130, 0.3);
}

.lang-toggle .active-lang {
    color: #fff;
}
.lang-toggle:hover .active-lang {
    color: #000;
}