
/* --- 1. VARIABLES & RESET --- */
:root {
    /* Cyber Palette */
    --bg-color: #050505;       /* Hitam Pekat */
    --text-color: #e0e0e0;     /* Putih redup biar gak sakit mata */
    --accent-color: #00f2ea;   /* Cyan Neon (Warna Hacker) */
    --secondary-color: #7000ff; /* Ungu Deep (Warna Misterius) */
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Outfit', sans-serif;
    --font-code: 'Courier New', Courier, monospace; /* Buat efek ngetik/matrix */
}

/* CUSTOM SCROLLBAR (Webkit only: Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505; /* Warna track hitam */
}

::-webkit-scrollbar-thumb {
    background: #333; /* Warna batang scroll */
    border-radius: 5px;
    border: 1px solid #00f2ea; /* Border Neon */
}

::-webkit-scrollbar-thumb:hover {
    background: #00f2ea; /* Jadi terang pas dihover */
    box-shadow: 0 0 10px #00f2ea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: none; /* HILANGIN KURSOR BAWAAN (Diganti glowing ball) */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden; /* Biar gak ada scroll samping */
}

/* --- 2. CURSOR GLOW (SENTER AJAIB) --- */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    /* Gradient campuran Cyan & Ungu */
    background: radial-gradient(circle, rgba(0, 242, 234, 0.15) 0%, rgba(112, 0, 255, 0.05) 40%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none; /* PENTING: Biar bisa klik elemen di bawahnya */
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen; 
    transition: transform 0.08s ease-out; /* Sedikit delay biar smooth */
}

/* --- 3. UTILITIES & TYPOGRAPHY --- */
a { text-decoration: none; cursor: none; } /* Semua link gak pake cursor tangan */
section { padding: 100px 10%; }
.dark-section { background-color: #020202; } /* Sedikit lebih gelap dari body */

.highlight { color: var(--accent-color); text-shadow: 0 0 10px rgba(0, 242, 234, 0.3); }
.dot { color: var(--accent-color); }

.section-header { margin-bottom: 60px; }
.section-header h3 {
    font-family: var(--font-code);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.section-header h2 { font-size: 3rem; font-weight: 800; }

/* --- 4. NAVBAR (GLASS EFFECT) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7); /* Transparan */
    backdrop-filter: blur(12px); /* Blur effect */
    border-bottom: 1px solid var(--glass-border);
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    letter-spacing: 2px; 
    font-family: var(--font-code); /* Logo gaya koding */
}

.nav-links { display: flex; list-style: none; gap: 40px; }
.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover { color: var(--accent-color); text-shadow: 0 0 8px var(--accent-color); }

.btn-nav {
    padding: 10px 25px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-nav:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

/* --- 5. HERO SECTION --- */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    padding-top: 80px;
}

.hero-content { max-width: 600px; z-index: 2; }
.hero-content h4 { color: var(--accent-color); font-family: var(--font-code); margin-bottom: 15px; }

/* Nama Lu (YANG BAKAL DI-HACK SAMA JS) */
.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    font-family: var(--font-code); /* Wajib monospace biar efek matrix rapi */
    color: #fff;
}

/* Typing Effect Text */
.hero-content h2 { 
    font-size: 1.8rem; 
    color: #888; 
    font-weight: 400; 
    margin-bottom: 30px; 
    min-height: 40px; /* Biar gak loncat pas ngetik */
}
/* Kursor kedip-kedip buat typing effect */
.hero-content h2.typing::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-color);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-content p { color: #aaa; margin-bottom: 40px; max-width: 500px; }

.socials a {
    color: #aaa; font-size: 1.5rem; margin-right: 25px; transition: 0.3s;
}
.socials a:hover { color: var(--accent-color); transform: translateY(-5px); }

/* HERO IMAGE (Neon Border Effect) */
.hero-img-container {
    position: relative;
    width: 380px;
    height: 380px;
}
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    filter: grayscale(100%) contrast(1.2); /* Hitam putih dramatis */
    transition: 0.5s;
}
.hero-img:hover { filter: grayscale(0%); }

.img-backdrop {
    position: absolute;
    top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 2px solid var(--accent-color); /* Garis Neon */
    z-index: 1;
    border-radius: 10px;
    transition: 0.3s;
}
.hero-img-container:hover .img-backdrop {
    top: 10px; left: 10px;
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.2); /* Glow pas hover */
}

/* --- 6. SERVICES (3D TILT CARDS) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.1s; /* PENTING BUAT JS TILT */
    transform-style: preserve-3d; /* Wajib buat efek 3D */
    perspective: 1000px;
}

/* Fallback hover kalo JS mati */
.service-card:hover { border-color: var(--accent-color); }

.icon-box {
    width: 60px; height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-color);
    font-size: 1.5rem;
    transform: translateZ(20px); /* Ikon nongol dikit pas 3D */
}
.service-card h4 { font-size: 1.4rem; margin-bottom: 15px; transform: translateZ(20px); }
.service-card p { color: #aaa; transform: translateZ(20px); }

/* --- 7. SKILLS (CHIP STYLE) --- */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; }
.skill-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.skill-item {
    background: #111;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s;
}
.skill-item:hover {
    border-color: var(--accent-color);
    background: rgba(0, 242, 234, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.1);
    transform: translateY(-3px);
}

/* --- 8. PROJECTS --- */
.project-list { display: flex; flex-direction: column; gap: 100px; }
.project-item { display: flex; align-items: center; gap: 60px; }
.project-item.alternate { flex-direction: row-reverse; }

.project-image {
    flex: 1;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
}
.project-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s ease;
    filter: brightness(0.7);
}
.project-image:hover img { transform: scale(1.05); filter: brightness(1); }

.project-info { flex: 1; }
.project-info h4 { color: var(--accent-color); font-family: var(--font-code); margin-bottom: 10px; }
.project-info h3 { font-size: 2.2rem; margin-bottom: 20px; }
.project-info p { color: #aaa; margin-bottom: 25px; line-height: 1.7; }

.tech-stack { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tech-stack span {
    font-size: 0.8rem;
    font-family: var(--font-code);
    color: var(--accent-color);
    background: rgba(0, 242, 234, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
}

.btn-outline {
    display: inline-block;
    color: #fff;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
    transition: 0.3s;
}
.btn-outline:hover { color: var(--accent-color); padding-right: 15px; }

/* --- 9. FOOTER --- */
footer { text-align: center; padding: 100px 10% 30px; background: #020202; border-top: 1px solid #111; }
.footer-content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.btn-main {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin: 30px 0 60px;
    transition: 0.3s;
}
.btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-color);
}
.copyright { color: #555; font-size: 0.9rem; font-family: var(--font-code); }

/* --- 10. RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .project-item, .project-item.alternate { flex-direction: column; gap: 30px; }
    .project-image { width: 100%; height: 250px; }
}

@media (max-width: 768px) {
    header { flex-direction: column-reverse; text-align: center; justify-content: center; gap: 50px; }
    .nav-links { display: none; } /* Simpel hide dulu buat mobile */
    .hero-img-container { width: 280px; height: 280px; margin: 0 auto; }
    .hero-content h1 { font-size: 2.8rem; }
    nav { padding: 20px; }
    section { padding: 80px 5%; }
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* PENTING: Biar di belakang konten */
    background: #050505; /* Warna dasar */
}

/* TERMINAL MODAL */
#secret-terminal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 50px rgba(0, 242, 234, 0.2);
    border-radius: 8px;
    z-index: 10000;
    font-family: 'Courier New', monospace;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.terminal-header {
    background: #111;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 0.9rem;
    display: flex; justify-content: space-between;
}
#close-terminal { cursor: pointer; color: red; font-weight: bold; }
.terminal-body {
    padding: 20px;
    color: var(--accent-color);
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
}
.input-line { display: flex; align-items: center; margin-top: 10px; }
.prompt { color: #0f0; margin-right: 10px; } /* Warna Hijau root */
#terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    outline: none;
}

/* BOOT SCREEN */
#boot-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 99999; /* Paling atas */
    padding: 50px;
    font-family: 'Courier New', monospace;
    color: #ccc;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Teks muncul dari bawah kayak terminal */
}