/* Transisi warna dasar */
:root {
    transition: background-color 0.5s ease;
}

/* Efek Riak saat ganti tema */
.theme-ripple {
    position: fixed;
    top: var(--y);
    left: var(--x);
    width: 2px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: ripple-effect 0.8s ease-out forwards;
}

@keyframes ripple-effect {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(3000); opacity: 0; }
}

/* Animasi Icon Tombol */
.theme-toggle i {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle:active i {
    transform: scale(0.7) rotate(20deg);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.liquid-navbar {
    position: fixed; top: 25px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 900px;
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 30px; z-index: 1000;
}

.logo { font-weight: 900; letter-spacing: 1px; }
.nav-container { position: relative; }
.nav-links { display: flex; list-style: none; position: relative; z-index: 2; }
.nav-item { text-decoration: none; color: var(--text-secondary); font-weight: 700; padding: 10px 20px; transition: var(--transition); }
.nav-item.active { color: #fff; }
.nav-pill-bg { position: absolute; background: var(--accent-blue); border-radius: 50px; z-index: 1; transition: var(--transition); }

/* --- HERO SECTION --- */
.content-wrapper { padding: 160px 8% 80px; max-width: 1300px; margin: 0 auto; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Teks kiri, Gambar kanan */
    gap: 60px;
    align-items: center;
    min-height: 60vh;
}

.title-huge { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 0.95; }
.text-outline-blue { color: transparent; -webkit-text-stroke: 1.5px var(--accent-blue); }

.hero-image-container {
    position: relative;
    width: 100%;
    height: 550px;
    background: var(--card-bg);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-container:hover { transform: rotate(0deg) scale(1.02); }

/* --- TABLE OF CONTENTS --- */
.section-container { margin-top: 100px; }
.toc-card {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.toc-title { font-weight: 900; letter-spacing: 5px; margin-bottom: 40px; }

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.toc-item {
    display: flex; gap: 20px; padding: 25px; background: var(--bg-color);
    border-radius: 25px; border: 1px solid var(--glass-border); transition: var(--transition);
}

.toc-item:hover { transform: translateX(10px); border-color: var(--accent-blue); }
.toc-num { font-size: 2rem; font-weight: 900; color: var(--accent-blue); opacity: 0.3; }

/* --- THEME TOGGLE --- */
.theme-toggle {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%;
    background: var(--accent-blue); color: white; border: none; cursor: pointer;
    z-index: 2000; display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
}

/* --- ANIMATIONS --- */
.fade-in { animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-container { height: 400px; transform: rotate(0); }
}
:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #555555;
    --accent-blue: #007bff;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: #f9f9f9;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #151515;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- NAVBAR --- */
.liquid-navbar {
    position: fixed; top: 25px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 900px;
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 30px; z-index: 1000;
}

.logo { font-weight: 900; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; position: relative; z-index: 2; }
.nav-item { text-decoration: none; color: var(--text-secondary); font-weight: 700; padding: 10px 20px; transition: var(--transition); }
.nav-item.active { color: #fff; }
.nav-pill-bg { position: absolute; background: var(--accent-blue); border-radius: 50px; z-index: 1; transition: var(--transition); }

/* --- CONTENT WRAPPER --- */
.content-wrapper { padding: 160px 8% 80px; max-width: 1300px; margin: 0 auto; }
.section-container { margin-bottom: 100px; }

/* --- GRID SYSTEM --- */
.hero-grid, .grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- IMAGES (FIXED) --- */
.hero-image-container, .jpg-box {
    position: relative;
    width: 100%;
    height: 450px;
    background: var(--card-bg);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-image-container img, .jpg-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gunakan 'contain' jika ingin foto utuh 100% tanpa crop */
}

/* --- TYPOGRAPHY --- */
.title-huge { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 900; line-height: 0.95; }
.text-outline-blue { color: transparent; -webkit-text-stroke: 1.5px var(--accent-blue); }

/* --- TOC & CARDS --- */
.toc-card { background: var(--card-bg); padding: 50px; border-radius: 50px; border: 1px solid var(--glass-border); }
.toc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.toc-item { 
    display: flex; gap: 15px; padding: 20px; background: var(--bg-color); 
    border-radius: 20px; border: 1px solid var(--glass-border); transition: var(--transition);
}
.dot { width: 8px; height: 8px; background: var(--accent-blue); border-radius: 50%; display: inline-block; margin-right: 10px; }

/* --- THEME TOGGLE --- */
.theme-toggle {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%;
    background: var(--accent-blue); color: white; border: none; cursor: pointer;
    z-index: 2000; display: flex; justify-content: center; align-items: center;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .hero-grid, .grid-2 { grid-template-columns: 1fr !important; text-align: center; gap: 40px; }
    .hero-image-container, .jpg-box { height: 350px; transform: none !important; }
    .content-wrapper { padding-top: 120px; }
    .liquid-navbar { width: 95%; padding: 10px 15px; }
    .nav-item { padding: 8px 12px; font-size: 0.8rem; }
}

.fade-in { animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   ATURAN OTOMATIS RESPONSIVE (HP, LAPTOP, & PC)
   ============================================================ */

/* 1. UNTUK MONITOR ULTRA-WIDE (3440px ke atas) */
@media (min-width: 2000px) {
    .content-wrapper {
        max-width: 1800px; /* Melebarkan konten agar tidak terlihat terlalu kecil di tengah */
    }
    .title-huge {
        font-size: 6rem; /* Judul lebih besar agar seimbang */
    }
}

/* 2. UNTUK 4K & QHD (1440p - 2160p) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .content-wrapper {
        max-width: 1400px;
    }
}

/* 3. UNTUK LAPTOP STANDAR (Full HD 1080p) */
@media (max-width: 1920px) {
    .hero-grid, .grid-2 {
        gap: 40px;
    }
}

/* 4. UNTUK LAPTOP LAMA / KECIL (HD 1366 x 768) */
@media (max-width: 1366px) {
    .hero-image-container, .jpg-box {
        height: 400px; /* Mengurangi tinggi gambar agar tidak memakan layar */
    }
    .title-huge {
        font-size: 3.5rem;
    }
}

/* 5. UNTUK TABLET & HP PREMIUM (QHD+ / Large Phones) */
@media (max-width: 1024px) {
    .hero-grid, .grid-2 {
        grid-template-columns: 1fr; /* Mulai menumpuk ke bawah agar tidak sempit */
        text-align: center;
    }
    .hero-image-container, .jpg-box {
        height: 380px;
        transform: none !important; /* Menghilangkan rotasi agar rapi */
    }
    .liquid-navbar {
        width: 95%;
    }
}

/* 6. UNTUK HP FULL HD+ (1080p) & HD+ (720p) */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 100px 20px 40px; /* Padding lebih kecil agar teks punya ruang */
    }
    .title-huge {
        font-size: 2.2rem !important; /* Judul mengecil agar tidak terpotong ke samping */
        line-height: 1.1;
    }
    .hero-image-container, .jpg-box {
        height: 300px; /* Gambar lebih pendek menyesuaikan layar HP */
    }
    .nav-item {
        padding: 8px 10px;
        font-size: 0.75rem; /* Menu mengecil agar tidak menumpuk */
    }
    .toc-card {
        padding: 30px 20px; /* Mengurangi padding dalam kartu agar muat di layar sempit */
    }
}

/* --- FINAL CINEMATIC INTRO --- */
#intro-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #050505; /* Hitam pekat modern */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1500px;
    transition: 
        opacity 1.2s cubic-bezier(0.7, 0, 0.3, 1),
        transform 1.2s cubic-bezier(0.7, 0, 0.3, 1),
        visibility 1.2s;
    will-change: transform, opacity;
}

#matrix-canvas {
    position: absolute;
    top: 0; left: 0;
    opacity: 0.25;
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Glitch Animation Modern */
.intro-logo {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 10px;
    color: #fff;
    position: relative;
    text-shadow: 2px 0 #00fffc, -2px 0 #fc00ff;
    animation: glitch-anim 0.4s infinite;
}

.intro-bar {
    width: 0;
    height: 2px;
    background: #007bff; /* Biru Accent kamu */
    margin: 20px auto 0;
    box-shadow: 0 0 20px #007bff;
    animation: scaleBar 2s forwards 0.5s;
}

.intro-status {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: #007bff;
    margin-top: 15px;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* --- ANIMASI SAAT MENGHILANG (THE FLUID PART) --- */
.intro-hidden {
    /* Gerakan mundur (Z), miring halus (X), dan meluncur ke atas (Y) */
    transform: translateZ(-300px) rotateX(10deg) translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden;
}

.intro-hidden .intro-content {
    transform: scale(0.8);
}

/* Keyframes */
@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes scaleBar { to { width: 180px; } }
/* --- DYNAMIC BOTTOM BAR --- */
.bottom-status-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 8px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.status-item {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

#scroll-percent {
    color: var(--accent-blue);
}

.back-to-top {
    background: var(--accent-blue);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Sembunyikan di HP agar tidak menutupi konten */
@media (max-width: 480px) {
    .bottom-status-bar { display: none; }
}

/* --- CUSTOM GLASS CURSOR --- */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none; /* Penting: agar tidak menghalangi klik */
    z-index: 9999;
    mix-blend-mode: difference; /* Efek warna invert yang keren saat kena teks */
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
    backdrop-filter: blur(2px);
}

/* Saat mouse hover ke tombol/link */
.cursor-hover {
    transform: scale(2);
    background: rgba(0, 123, 255, 0.2);
    border: none;
}

/* Sembunyikan kursor asli dan kustom di HP karena tidak ada mouse */
@media (max-width: 1024px) {
    .custom-cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
}

body { cursor: none; } /* Sembunyikan kursor bawaan browser */

/* 1. Scroll Progress Bar (Di atas Navbar) */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), #00d4ff);
    width: 0%;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
}

/* 2. Style untuk Parallax Image */
.tilt-card {
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

/* 3. Floating Social Dock (Kanan Layar) */
.social-dock {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 997;
    background: var(--glass-bg);
    padding: 15px 10px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--accent-blue);
    color: white;
}

/* --- 1. SKELETON LOADING EFFECT --- */
.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--glass-border) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- 2. GLASS NOTIFICATION (Toast) --- */
.glass-toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-blue);
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 3000;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.glass-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Background blur yang dinamis tapi ringan */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.glow-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform; /* Optimalisasi GPU */
}

/* --- PERBAIKAN TAMPILAN HP --- */
@media (max-width: 768px) {
    /* Munculkan kembali bar bawah di HP */
    .bottom-status-bar {
        display: flex !important; 
        bottom: 15px; /* Lebih mepet ke bawah agar tidak ganggu teks */
        min-width: 200px;
        padding: 5px 15px;
        gap: 15px;
    }

    .status-item {
        font-size: 0.65rem; /* Teks lebih kecil khusus di HP */
    }

    /* Sembunyikan dock sosmed kanan di HP agar tidak sumpek */
    .social-dock {
        display: none;
    }

    /* Tombol Theme & Up dikecilkan agar tidak menutupi konten */
    .action-controls {
        right: 15px;
        bottom: 15px;
        gap: 8px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

