/* ============================================
   CSS PORTFOLIO WEBSITE - STRUKTUR TERORGANISIR
   ============================================ */

/* --- ROOT VARIABLES (Variabel Global) --- */
:root {
    /* Font Family */
    --font-main: 'Poppins', sans-serif;
    
    /* Warna Background */
    --bg-dark: #050505;
    --bg-gradient-start: #0f2e26;
    --bg-gradient-end: #000000;
    
    /* Warna Teks */
    --text-white: #FFFFFF;
    --text-grey: #B0B0B0;
    
    /* Efek Glass/Border */
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- RESET & BASE STYLES (Reset dan Gaya Dasar) --- */
* {
    margin: 0;              /* Reset margin default browser */
    padding: 0;             /* Reset padding default browser */
    box-sizing: border-box; /* Menghitung width/height termasuk border dan padding */
}

/* --- SEMBUNYIKAN SCROLLBAR --- */

/* Untuk Chrome, Safari, dan Opera */
::-webkit-scrollbar {
    display: none;
}

/* Untuk Firefox */
html {
    scrollbar-width: none;
}


body {
    font-family: var(--font-main);      /* Gunakan font utama yang didefinisikan */
    background-color: var(--bg-dark);   /* Warna background gelap */
    color: var(--text-white);           /* Warna teks putih */
    min-height: 100vh;                  /* Minimal tinggi setara viewport */
    overflow-x: hidden;                 /* Sembunyikan scroll horizontal */
    -ms-overflow-style: none;
}

/* --- BACKGROUND LAYERS (Layer Latar Belakang) --- */
.background-overlay {
    position: fixed;        /* Posisi tetap tidak bergerak saat scroll */
    top: 0;                 /* Posisi dari atas 0 */
    left: 0;                /* Posisi dari kiri 0 */
    width: 100%;            /* Lebar penuh layar */
    height: 100vh;          /* Tinggi penuh viewport */
    background: radial-gradient(
        circle at 50% 0%,   /* Bentuk radial dengan pusat di tengah atas */
        var(--bg-gradient-start) 0%,    /* Warna gradient mulai */
        var(--bg-gradient-end) 80%      /* Warna gradient berakhir */
    );
    z-index: -5;            /* Letakkan di belakang semua elemen */
}

/* --- DIM OVERLAY (Background Gelap saat Hover) --- */
#dim-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Hitam transparan 70% */
    z-index: 9995; /* Layer: Di atas konten, tapi di bawah Popup & Navbar */
    opacity: 0;
    pointer-events: none; /* Penting: Agar mouse tetap bisa mendeteksi kartu di bawahnya */
    transition: opacity 0.5s ease;
}

#dim-overlay.active {
    opacity: 1;
}

/* --- NAVBAR BUBBLE (Navigasi Bubble Fixed) --- */
.bubble-nav {
    position: fixed;        /* Posisi tetap di layar */
    top: 25px;              /* Jarak dari atas */
    left: 50%;              /* Posisi tengah horizontal */
    transform: translateX(-50%) translateY(-200%); /* Default tersembunyi di atas */
    display: flex;          /* Layout flexbox */
    justify-content: space-between; /* Sebar item dengan ruang di antara */
    align-items: center;    /* Rata tengah vertikal */
    width: 90%;             /* Lebar 90% dari parent */
    max-width: 100%;       /* Lebar maksimum 550px */
    padding: 10px 25px;     /* Padding dalam */
    background: rgba(15, 15, 15, 0.678); /* Background semi-transparan */
    backdrop-filter: blur(20px);        /* Efek blur untuk background */
    -webkit-backdrop-filter: blur(20px); /* Vendor prefix untuk Safari */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Border transparan */
    border-radius: 100px;               /* Bentuk bulat penuh */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); /* Bayangan */
    z-index: 10005 !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.5s ease; /* Transisi untuk animasi */
    opacity: 0;             /* Awalnya transparan */
    pointer-events: none;   /* Non-aktifkan interaksi saat hidden */
}

/* State Navbar Visible (Ketika navbar muncul) */
.bubble-nav.nav-visible {
    transform: translateX(-50%) translateY(0); /* Tampilkan di posisi normal */
    opacity: 1;             /* Tampilkan sepenuhnya */
    pointer-events: all;    /* Aktifkan interaksi */
}

/* Logo Navigasi */
.nav-logo {
    font-weight: 700;       /* Ketebalan font bold */
    font-size: 1rem;        /* Ukuran font 1rem */
    color: var(--text-white); /* Warna teks putih */
    letter-spacing: 0.5px;  /* Spasi antar huruf */
}

.nav-logo img {
    height: 30px;           /* Tinggi logo 30px */
    width: auto;            /* Lebar otomatis untuk menjaga rasio */
}

/* Container Link Navigasi */
.nav-links {
    display: flex;          /* Layout flexbox */
    gap: 12px;              /* Jarak antar item 12px */
}

/* Item Navigasi Individual */
/* Update Style Nav Item untuk menangani IMG */
.nav-item {
    color: var(--text-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

/* Style Gambar Icon di Navbar */
.nav-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    
    /* DEFAULT: Putih Tulang / Abu-abu (Sama seperti Sidebar) */
    filter: brightness(0) invert(1) opacity(0.7);
    
    transition: all 0.3s ease;
}

/* HOVER EFFECT: Background Hijau Transparan */
.nav-item:hover {
    background: rgba(0, 255, 170, 0.15);
    transform: translateY(-2px);
}

/* HOVER EFFECT: Icon jadi Hijau Neon */
.nav-item:hover img {
    /* Filter warna hijau neon (#00ffaa) */
    filter: brightness(0) saturate(100%) invert(68%) sepia(63%) saturate(460%) hue-rotate(99deg) brightness(103%) contrast(103%);
    
    /* Glow Effect */
    drop-shadow(0 0 5px rgba(0, 255, 170, 0.8));
    
    opacity: 1;
}

/* --- HERO SECTION (Bagian Hero Utama) --- */
.hero-section {
    position: relative;     /* Posisi relatif untuk child absolute */
    width: 100%;            /* Lebar penuh */
    height: 100vh;          /* Tinggi penuh viewport */
    min-height: 700px;      /* Tinggi minimal 700px */
    display: flex;          /* Flexbox layout */
    justify-content: center; /* Rata tengah horizontal */
    align-items: center;     /* Rata tengah vertikal */
    text-align: center;      /* Rata tengah teks */
    overflow: hidden;        /* Sembunyikan overflow */
    padding-top: 0;          /* Tidak ada padding atas */
    margin-bottom: 20px;     /* Margin bawah 20px */
}

/* Grid Pattern Background */
.bg-grid {
    position: absolute;      /* Posisi absolute terhadap parent */
    top: 0;                  /* Posisi dari atas 0 */
    left: 0;                 /* Posisi dari kiri 0 */
    right: 0;                /* Posisi dari kanan 0 */
    bottom: 0;               /* Posisi dari bawah 0 */
    z-index: -2;             /* Z-index di belakang content */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), /* Garis vertikal */
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); /* Garis horizontal */
    background-size: 60px 60px; /* Ukuran pattern grid 60x60px */
    mask-image: radial-gradient(ellipse at center, black 20%, rgba(0,0,0,0.4) 60%, transparent 85%); /* Mask untuk efek fade */
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, rgba(0,0,0,0.4) 60%, transparent 85%); /* Vendor prefix */
    
    /* Animasi Masuk */
    opacity: 0;              /* Awalnya transparan */
    animation: fadeInSlow 1.5s ease-out forwards; /* Animasi fade in */
}

/* Glowing Arch Effect */
.glowing-arch {
    position: absolute;      /* Posisi absolute */
    top: 15%;                /* 15% dari atas parent */
    left: 50%;               /* Tengah horizontal */
    transform: translateX(-50%); /* Pusatkan tepat di tengah */
    width: 90%;              /* Lebar 90% dari parent */
    max-width: 900px;        /* Lebar maksimum 900px */
    height: 100%;            /* Tinggi penuh parent */
    border-radius: 40% 40% 0 0; /* Lengkungan atas setengah lingkaran */
    z-index: -1;             /* Di belakang content */
    border-top: 3px solid rgba(0, 255, 170, 0.5); /* Border atas hijau neon */
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 170, 0.15), transparent 70%); /* Gradient radial */
    box-shadow: 0 -10px 80px rgba(0, 255, 170, 0.2); /* Bayangan glow hijau */
    mask-image: linear-gradient(to bottom, black 30%, transparent 95%); /* Mask untuk fade bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%); /* Vendor prefix */
    
    /* Animasi Masuk */
    opacity: 0;              /* Awalnya transparan */
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Animasi scale in */
    animation-delay: 0.2s;   /* Delay 0.2 detik */
}

/* Konten Hero (Teks) */
.hero-content {
    position: relative;      /* Posisi relatif untuk z-index */
    z-index: 2;              /* Di atas background elements */
    max-width: 800px;        /* Lebar maksimum konten */
    padding: 0 20px;         /* Padding kiri-kanan */
}

/* Judul Hero */
.hero-title {
    font-size: 4rem;         /* Ukuran font besar */
    font-weight: 700;        /* Font weight bold */
    line-height: 1.1;        /* Tinggi line 1.1 */
    margin-top: 70px;
    margin-bottom: 25px;     /* Margin bawah */
    background: linear-gradient(to bottom, #ffffff, #d0d0d0); /* Gradient teks */
    -webkit-background-clip: text; /* Clip background ke teks */
    -webkit-text-fill-color: transparent; /* Warna teks transparan untuk gradient */
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Bayangan teks */
    
    /* Animasi Masuk */
    opacity: 0;              /* Awalnya transparan */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Animasi fade up */
    animation-delay: 0.4s;   /* Delay 0.4 detik */
}

/* Deskripsi Hero */
.hero-desc {
    font-size: 1rem;          /* Ukuran font normal */
    color: var(--text-grey);  /* Warna abu-abu */
    max-width: 600px;         /* Lebar maksimum deskripsi */
    margin: 0 auto;           /* Margin otomatis untuk rata tengah */
    line-height: 1.6;         /* Tinggi line untuk readability */
    
    /* Animasi Masuk */
    opacity: 0;              /* Awalnya transparan */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Animasi fade up */
    animation-delay: 0.5s;   /* Delay 0.5 detik */
}


/* --- HERO TECH STACK (VERSI IMG) --- */

.hero-tools-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 80px;
    
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.7s;
}

.tools-label {
    font-size: 0.75rem;
    color: var(--text-grey);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-tools-container {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 15px 35px;
    
    /* Glassmorphism Background */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-tools-container:hover {
    border-color: rgba(7, 159, 96, 0.495);
    box-shadow: 0 0 20px rgba(3, 110, 58, 0.297);
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor:auto;
}

/* SETTING GAMBAR LOGO */
.tool-item img {
    width: 28px;  /* Ukuran Icon */
    height: 28px;
    object-fit: contain;
    
    /* DEFAULT: Hitam Putih (Abu-abu) & Agak Redup */
    filter: grayscale(100%) opacity(0.6); 
    
    transition: all 0.3s ease;
}

/* EFEK HOVER: Warna Asli Muncul */
.tool-item:hover {
    transform: translateY(-5px); /* Icon naik dikit */
}

.tool-item:hover img {
    /* Kembalikan ke warna asli & Terang penuh */
    filter: grayscale(0%) opacity(1); 
    
    /* Opsional: Efek drop shadow sesuai warna logo asli (otomatis dari browser) */
    filter: grayscale(0%) opacity(1) drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .hero-tools-container {
        gap: 15px;
        padding: 12px 20px;
        width: 90%;
    }
    .tool-item img { width: 24px; height: 24px; }
}



/* --- SOCIAL SIDEBAR (Sidebar Sosial Media) --- */
.social-sidebar {
    position: absolute;      /* Posisi absolute */
    right: 0px;             /* 20px dari kanan */
    top: 50%;                /* 50% dari atas (tengah vertikal) */
    transform: translateY(-50%); /* Pusatkan vertikal */
    display: flex;           /* Flexbox layout */
    flex-direction: column;  /* Susun vertikal */
    gap: 15px;               /* Jarak antar item 15px */
    z-index: 10;             /* Z-index di atas konten */
    transition: opacity 0.4s ease, transform 0.4s ease; /* Transisi untuk hide/show */
    
    /* Animasi Masuk */
    opacity: 0;              /* Awalnya transparan */
    animation: fadeInRight 0.8s ease-out forwards; /* Animasi fade dari kanan */
    animation-delay: 0.8s;   /* Delay 0.8 detik */
}

/* Icon Sosial Media */
/* --- SOCIAL SIDEBAR & ICONS (IMG STYLE) --- */

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

/* Style Default Gambar/Icon */
.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    
    /* DEFAULT: Putih Tulang / Abu-abu Terang */
    /* brightness(0) + invert(1) membuat icon apapun jadi putih */
    filter: brightness(0) invert(1) opacity(0.7);
    
    transition: all 0.3s ease;
}

/* --- EFEK HOVER: HIJAU NEON --- */

.social-icon:hover {
    background: rgba(0, 255, 170, 0.1); /* Background hijau transparan */
    border-color: rgba(0, 255, 170, 0.3);
    transform: translateX(-3px);
}

.social-icon:hover img {
    /* RUMUS AJAIB FILTER KE WARNA HIJAU (#00ffaa) 
       Penjelasan: 
       1. brightness(0) -> Hitamkan dulu icon aslinya
       2. invert(...) dst -> Ubah hitam menjadi kode warna hijau neon
    */
    filter: brightness(0) saturate(100%) invert(68%) sepia(63%) saturate(460%) hue-rotate(99deg) brightness(103%) contrast(103%);
    
    /* Tambahkan efek pendaran cahaya (Glow) */
    drop-shadow(0 0 5px rgba(0, 255, 170, 0.8));
    
    /* Pastikan opacity penuh */
    opacity: 1;
}


/* State Sidebar Tersembunyi */
.sidebar-hidden {
    opacity: 0 !important;           /* Transparan sepenuhnya */
    pointer-events: none;            /* Non-aktifkan interaksi */
    transform: translateY(-50%) translateX(20px); /* Geser ke kanan */
}

/* --- FILTER & PORTFOLIO SECTION (Filter dan Grid Portfolio) --- */
.container {
    max-width: 1200px;       /* Lebar maksimum container */
    margin: 0 auto 40px auto; /* Margin otomatis dengan 40px bawah */
    text-align: center;      /* Rata tengah teks */
    padding: 0 20px;         /* Padding kiri-kanan */
}

/* Container Filter Buttons */
.filter-container {
    display: flex;           /* Flexbox layout */
    justify-content: center; /* Rata tengah horizontal */
    gap: 15px;               /* Jarak antar button */
    margin-bottom: 50px;     /* Margin bawah 50px */
    flex-wrap: wrap;         /* Wrap jika tidak muat */
}

/* Tombol Filter */
.filter-btn {
    background: rgba(255, 255, 255, 0.05); /* Background transparan */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Border transparan */
    color: var(--text-grey); /* Warna teks abu-abu */
    padding: 8px 24px;       /* Padding dalam */
    border-radius: 50px;     /* Bentuk bulat penuh */
    font-family: var(--font-main); /* Gunakan font utama */
    cursor: pointer;         /* Pointer cursor saat hover */
    transition: all 0.3s ease; /* Transisi semua properti */
}

/* Hover Effect Filter Button */
.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1); /* Background lebih terang */
    color: var(--text-white);             /* Warna teks putih */
}

/* State Filter Button Aktif */
.filter-btn.active {
    background: var(--text-white); /* Background putih */
    color: #000;                   /* Warna teks hitam */
    border-color: var(--text-white); /* Border putih */
    font-weight: 500;              /* Font weight medium */
}

/* Grid Portfolio */
.portfolio-grid {
    display: grid;                     /* Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 25px;                         /* Jarak antar card */
}

/* Card Portfolio Individual */
.portfolio-card {
    background: rgba(20, 20, 20, 0.6); /* Background gelap transparan */
    border: 1px solid var(--glass-border); /* Border glass effect */
    border-radius: 16px;               /* Sudut membulat */
    overflow: hidden;                  /* Sembunyikan overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transisi untuk hover */
    cursor: pointer;                   /* Pointer cursor */
}

/* Hover Effect Portfolio Card */
.portfolio-card:hover {
    transform: translateY(-5px);       /* Angkat card sedikit */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Bayangan lebih kuat */
    border-color: rgba(255, 255, 255, 0.2); /* Border lebih terang */
}

/* Wrapper untuk Gambar Card */
.card-image-wrapper {
    width: 100%;      /* Lebar penuh parent */
    height: 180px;    /* Tinggi tetap 180px */
    position: relative; /* Posisi relatif untuk absolute child */
}

/* Gambar dalam Card */
.card-img {
    width: 100%;               /* Lebar penuh wrapper */
    height: 100%;              /* Tinggi penuh wrapper */
    object-fit: cover;         /* Crop dan cover area */
    object-position: center;   /* Posisi tengah gambar */
    display: block;            /* Display block */
}

/* Konten dalam Card (Teks) */
.card-content {
    padding: 20px;    /* Padding dalam 20px */
    text-align: left; /* Rata kiri teks */
}

/* Judul dalam Card */
.card-content h3 {
    font-size: 0.95rem;        /* Ukuran font kecil */
    font-weight: 500;          /* Font weight medium */
    margin-bottom: 5px;        /* Margin bawah kecil */
    color: var(--text-white);  /* Warna teks putih */
}

/* Deskripsi dalam Card */
.card-content p {
    font-size: 0.75rem;        /* Ukuran font sangat kecil */
    color: var(--text-grey);   /* Warna teks abu-abu */
}

/* Container Tombol More/Load More */
.more-container {
    margin-top: 60px;      /* Margin atas 60px */
    margin-bottom: 40px;   /* Margin bawah 40px */
}

/* Tombol More/Load More */
.btn-more {
    background: transparent;                /* Background transparan */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Border transparan */
    color: var(--text-white);               /* Warna teks putih */
    padding: 10px 40px;                     /* Padding dalam */
    border-radius: 50px;                    /* Bentuk bulat penuh */
    font-family: var(--font-main);          /* Gunakan font utama */
    cursor: pointer;                        /* Pointer cursor */
    transition: all 0.3s ease;              /* Transisi semua properti */
}

/* Hover Effect Tombol More */
.btn-more:hover {
    background: rgba(255, 255, 255, 0.1); /* Background lebih terang */
    border-color: var(--text-white);      /* Border putih */
}

/* --- ANIMATIONS KEYFRAMES (Definisi Animasi) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;                /* Mulai transparan */
        transform: translateY(40px); /* Mulai 40px lebih bawah */
    }
    to {
        opacity: 1;                /* Akhir terlihat penuh */
        transform: translateY(0);  /* Akhir di posisi normal */
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;                        /* Mulai transparan */
        transform: translateX(-50%) scale(0.95); /* Mulai sedikit lebih kecil */
    }
    to {
        opacity: 1;                        /* Akhir terlihat penuh */
        transform: translateX(-50%) scale(1); /* Akhir ukuran normal */
    }
}

@keyframes fadeInSlow {
    from {
        opacity: 0; /* Mulai transparan */
    }
    to {
        opacity: 1; /* Akhir terlihat penuh */
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;                                /* Mulai transparan */
        transform: translateY(-50%) translateX(20px); /* Mulai 20px dari kanan */
    }
    to {
        opacity: 1;                               /* Akhir terlihat penuh */
        transform: translateY(-50%) translateX(0); /* Akhir di posisi normal */
    }
}

/* --- RESPONSIVE BREAKPOINTS (Media Queries untuk Responsif) --- */

/* Tablet dan Layar Kecil (max-width: 768px) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem; /* Perkecil ukuran font judul */
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr; /* Satu kolom untuk grid */
    }
    
    .social-sidebar {
        display: none; /* Sembunyikan sidebar sosial di mobile */
    }
}

/* Mobile Phone Kecil (max-width: 480px) */
@media (max-width: 480px) {
    .bubble-nav {
        width: 95%;          /* Lebar 95% dari viewport */
        padding: 8px 15px;   /* Padding lebih kecil */
        top: 15px;           /* Jarak dari atas lebih kecil */
    }
    
    .nav-links {
        gap: 8px;            /* Jarak antar nav item lebih kecil */
    }
    
    .nav-item {
        width: 30px;         /* Ukuran nav item lebih kecil */
        height: 30px;
    }
    
    .nav-item svg {
        width: 15px;         /* Ukuran icon lebih kecil */
        height: 15px;
    }
}



/* --- HOVER DETAIL POPUP --- */
.detail-popup {
    position: fixed; /* Wajib fixed agar koordinat akurat */
    top: 0; left: 0;
    width: 360px; /* Ukuran Popup */
    
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    
    /* Z-Index SANGAT TINGGI agar di atas segalanya */
    z-index: 10000 !important;
    
    opacity: 0;
    visibility: hidden; /* Gunakan visibility agar tidak mengganggu layout */
    transform: scale(0.9);
    pointer-events: none; /* PENTING: Agar mouse "tembus" ke kartu asli di bawahnya */
    
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    overflow: hidden;
}

/* Saat popup aktif */
.detail-popup.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.1); /* Membesar 10% dari ukuran kartu asli */
}

.popup-image-wrapper {
    width: 100%;
    /* Tetapkan tinggi tetap agar layout popup konsisten tidak loncat-loncat */
    height: 100%; 
    position: relative;
    background: #050505; /* Background gelap untuk mengisi ruang kosong */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px 20px 0 0; /* Round corner atas mengikuti popup */
}

.popup-img {
    width: 100%;
    height: 100%;
    /* KUNCI PERUBAHAN: Gunakan 'contain' agar gambar utuh */
    object-fit: contain; 
    /* Opsional: Beri sedikit padding agar tidak nempel pinggir banget */
    /* padding: 10px;  */
}

.popup-image-wrapper::after {
    position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(to top, #0a0a0a, transparent);
}

.popup-content { padding: 25px; position: relative; }

.popup-category {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    color: #00ffaa; margin-bottom: 5px; display: block; font-weight: 600;
}

.popup-title {
    font-size: 1.2rem; font-weight: 700; color: var(--text-white);
    margin-bottom: 15px; line-height: 1.3;
}

.popup-divider {
    width: 40px; height: 2px; background: rgba(255, 255, 255, 0.1); margin-bottom: 15px;
}

.popup-desc {
    font-size: 0.85rem; color: var(--text-grey); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}



/* =========================================
   MODAL STYLE (FIX FINAL: KIRI-KANAN)
   ========================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    
    /* Background Gelap Blur */
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
    
    /* Center Modal */
    align-items: center; justify-content: center;
    
    /* Padding agar tidak mepet layar */
    padding: 40px; 
    padding-top: 130px; /* Jarak aman dari Navbar */
    
    opacity: 0; transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    display: flex !important;
}

/* CONTAINER KARTU */
.modal-content {
    background-color: #0F0F0F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 255, 170, 0.05);
    
    width: 100%;
    max-width: 1200px;
    height: 80vh; /* Tinggi Fix 90% layar */
    
    position: relative;
    overflow: hidden; 
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    
    /* Hapus display flex di sini, pindahkan ke modal-body */
    display: block; 
}

.modal.show .modal-content { transform: scale(1); }

/* --- STRUKTUR UTAMA (YANG MENGATUR KIRI-KANAN) --- */
.modal-body {
    display: flex; /* INI KUNCINYA */
    flex-direction: row; /* Pastikan baris (samping-sampingan) */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* BAGIAN KIRI: GAMBAR (60%) */
.modal-image-column {
    flex: 0 0 60%; /* Lebar Fix 60% */
    max-width: 60%;
    height: 100%;
    
    background: #000;
    overflow-y: auto; /* Gambar scroll vertikal */
    border-right: 1px solid rgba(255,255,255,0.05);
    scrollbar-width: none;
}
.modal-image-column::-webkit-scrollbar { display: none; }

#modal-images-stack {
    display: flex; flex-direction: column;
}
.modal-stack-img {
    width: 100%; height: auto; display: block; object-fit: contain;
}

/* BAGIAN KANAN: INFO (40%) */
.modal-info-column {
    flex: 0 0 40%; /* Lebar Fix 40% */
    max-width: 40%;
    height: 100%;
    
    background: #0F0F0F;
    overflow-y: auto; /* Teks scroll vertikal */
    position: relative;
}

.sticky-info {
    padding: 40px;
    padding-top: 60px; /* Jarak untuk tombol close */
}

/* TYPOGRAPHY */
.modal-category {
    color: #00ffaa; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    display: block; margin-bottom: 10px;
}

.modal-title {
    font-size: 2rem; color: white; font-weight: 700;
    line-height: 1.2; margin-bottom: 20px;
}

.modal-meta {
    display: flex; gap: 15px; color: #888; font-size: 0.9rem;
    padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.modal-meta strong { color: #fff; margin-left: 5px; }

.modal-desc {
    color: #ccc; line-height: 1.6; font-size: 0.95rem;
    margin-bottom: 30px; white-space: pre-line;
}

.btn-live {
    display: block; width: 100%; padding: 15px;
    background: white; color: black; font-weight: 700;
    text-align: center; text-decoration: none;
    border-radius: 50px; transition: 0.3s;
}
.btn-live:hover { background: #00ffaa; }

/* TOMBOL CLOSE */
.close-modal {
    position: absolute; top: 20px; right: 20px;
    width: 35px; height: 35px; background: rgba(255,255,255,0.1);
    border-radius: 50%; color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 100; transition: 0.3s;
}
.close-modal:hover { background: #ff4d4d; transform: rotate(90deg); }

/* --- RESPONSIVE MOBILE (< 900px) --- */
@media (max-width: 900px) {
    .modal { padding: 10px; padding-top: 80px; }
    
    .modal-body {
        flex-direction: column; /* Balik ke Atas-Bawah di HP */
    }

    .modal-image-column {
        flex: none; width: 100%; max-width: 100%;
        height: 40%; /* Gambar ambil 40% tinggi */
    }

    .modal-info-column {
        flex: none; width: 100%; max-width: 100%;
        height: 60%; /* Teks ambil 60% tinggi */
    }
}















/* --- FOOTER GABUNGAN (CTA + GLASS) --- */

.site-footer {
    position: relative;
    background-color: #050505;
    padding: 60px 20px 40px 20px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Garis Glow Atas */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.5), transparent);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
}

/* 1. BAGIAN ATAS: CTA (Have an idea?) */
.footer-top {
    text-align: center;
    margin-bottom: 50px; /* Jarak ke kartu kaca di bawahnya */
    position: relative;
    z-index: 5;
}

.footer-cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.footer-cta-desc {
    color: var(--text-grey);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn-footer {
    display: inline-block;
    padding: 15px 50px;
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-footer:hover {
    background: #00ffaa; color: #000; border-color: #00ffaa;
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.4); transform: translateY(-5px);
}


.footer-separator {
    width: 90%; /* Tidak full layar, cukup kecil saja */
    height: 1px;
    
    /* Warna sangat halus (Putih 10%) */
    background: rgba(255, 255, 255, 0.077); 
    
    /* Posisi tengah (auto) dan jarak ke bawah (60px) */
    margin: 0 auto 60px auto; 
}


/* 2. BAGIAN BAWAH: WRAPPER KARTU KACA */
.footer-bottom-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Watermark Besar di Belakang Kartu */
.footer-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* Glow Effect Spot */
.footer-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

/* KARTU KACA (GLASS CARD) */
.footer-glass-card {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(15, 15, 15, 0);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px;
    
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Kiri: Info Brand */
.footer-info { flex: 1; }
.footer-brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.footer-address {
    font-size: 1rem; color: var(--text-grey); line-height: 1.6;
}

/* Kanan: Socials (Pill Style) */
.footer-socials {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; max-width: 300px;
}

.social-pill {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px; /* Bentuk Pill */
    text-decoration: none;
    color: var(--text-grey);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Styling Gambar di dalam Social Pill */
.social-pill .icon img {
    width: 20px;  /* Ukuran icon */
    height: 20px;
    object-fit: contain;
    
    /* DEFAULT: Ubah jadi Putih/Abu-abu (agar seragam) */
    filter: brightness(0) invert(1) opacity(0.8);
    
    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.social-pill:hover .icon img {
    /* Kembalikan ke warna asli saat hover */
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

/* KHUSUS: Untuk icon GitHub (karena aslinya hitam, kalau filter none dia jadi hitam di bg gelap) */
/* Kita buat GitHub jadi Putih Terang atau Hijau saat hover */
.social-pill:hover .icon img[alt="GitHub"] {
    filter: brightness(0) invert(1); /* Tetap putih */
    /* Atau kalau mau hijau: */
    /* filter: brightness(0) saturate(100%) invert(68%) sepia(63%) saturate(460%) hue-rotate(99deg) brightness(103%) contrast(103%); */
}
.social-pill .arrow { font-size: 1.1rem; opacity: 0.5; transition: 0.3s; }

.social-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    transform: translateX(5px);
}
.social-pill:hover .arrow {
    color: #00ffaa; transform: translate(3px, -3px); opacity: 1;
}

.simple-copyright {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    position: relative; z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-cta-title { font-size: 2.5rem; }
    .footer-glass-card {
        flex-direction: column; padding: 30px; text-align: center;
    }
    .footer-socials { width: 100%; max-width: none; }
    .footer-watermark { font-size: 20vw; }
}