:root {
    --bg: #010101;
    --accent: #00ffcc; /* Neon Cyan */
    --accent-alt: #ff0055; /* Neon Pink */
    --card-bg: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.05);
    --text-p: #ffffff;
    --text-s: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
body { 
    background: var(--bg); color: var(--text-p); 
    font-family: 'Plus Jakarta Sans', sans-serif; overflow-x: hidden; 
}

/* --- 3D Background & Cyber Grid --- */
.canvas-container { position: fixed; inset: 0; z-index: -1; background: #000; overflow: hidden; perspective: 1000px; }
.mesh-gradient {
    position: absolute; width: 140%; height: 140%; top: -20%; left: -20%;
    background-image: 
        radial-gradient(at 10% 20%, #00ffcc 0px, transparent 40%),
        radial-gradient(at 90% 10%, #7000ff 0px, transparent 40%),
        radial-gradient(at 20% 80%, #1a1033 0px, transparent 40%);
    filter: blur(100px); opacity: 0.2;
    animation: moveGradient 25s infinite alternate ease-in-out;
}
@keyframes moveGradient {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(5deg); }
}

/* Cyber Grid Tekno */
.cyber-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    transform: rotateX(60deg) translateZ(-100px);
    opacity: 0.4;
    animation: gridScroll 10s infinite linear;
}
@keyframes gridScroll { from { background-position-y: 0; } to { background-position-y: 50px; } }

.noise { position: absolute; inset: 0; background: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.05; pointer-events: none; }
#visualizerCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- Cursor & Perbaikan Nav --- */
.cursor-dot { width: 5px; height: 5px; background: var(--accent); position: fixed; border-radius: 50%; pointer-events: none; z-index: 10000; box-shadow: 0 0 15px var(--accent); transition: transform 0.1s; mix-blend-mode: exclusion; }

/* FIX: Perbaikan Navigasi di Pojok Kiri */
ul, li { list-style: none; padding: 0; margin: 0; } /* Reset List Global */

.glass-nav { 
    position: fixed; width: 100%; top: 0; z-index: 1000; 
    padding: 25px 8%; backdrop-filter: blur(15px); 
    background: rgba(1, 1, 1, 0.7);
    border-bottom: 1px solid var(--border); 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1300px; margin: 0 auto; }
.minimal-logo span { width: 25px; height: 25px; border: 2px solid var(--accent); border-radius: 50%; display: block; position: relative; }
.minimal-logo span::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.nav-links { display: flex; gap: 40px; }
.nav-links a { 
    text-decoration: none; color: var(--text-s); 
    font-family: 'Space Mono', monospace; font-size: 0.75rem; 
    letter-spacing: 2px; text-transform: uppercase; transition: 0.3s; 
}
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

/* --- Hero Section & Cyber Teks --- */
.hero { height: 90vh; display: flex; align-items: center; padding: 0 10%; perspective: 1000px; }
.hero-content { perspective: 1000px; }
.mono-text { font-family: 'Space Mono'; color: var(--accent); font-size: 0.65rem; letter-spacing: 5px; margin-bottom: 20px; text-transform: uppercase; opacity: 0.8; }

/* Teks Glitch Bergerak (Cyberpunk) */
.glitch-wrapper { position: relative; }
.main-title { font-size: clamp(3.5rem, 11vw, 7rem); font-weight: 800; line-height: 0.85; text-transform: uppercase; letter-spacing: -3px; }
.outline-text { color: transparent; -webkit-text-stroke: 1px var(--text-p); opacity: 0.3; }

.glitch { position: relative; color: var(--text-p); }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch::before { left: 2px; text-shadow: -2px 0 var(--accent-alt); clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); animation: glitchTop 1s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -2px 0 var(--accent); clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); animation: glitchBottom 1.5s infinite linear alternate-reverse; }

@keyframes glitchTop { 0% { clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); transform: translate(0); } 10% { clip-path: polygon(0 50%, 100% 10%, 100% 60%, 0 100%); transform: translate(-2px, 2px); } 100% { clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); transform: translate(0); } }
@keyframes glitchBottom { 0% { clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); transform: translate(0); } 10% { clip-path: polygon(0 100%, 100% 70%, 100% 10%, 0 10%); transform: translate(2px, -2px); } 100% { clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); transform: translate(0); } }

.hero-desc { max-width: 450px; margin-top: 30px; color: var(--text-s); font-weight: 300; }
.hero-desc span { color: var(--accent); font-weight: 500; }

.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.stat-item span { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-item p { font-size: 0.6rem; color: var(--text-s); text-transform: uppercase; letter-spacing: 1px; }

/* --- Perbaikan Bento Grid Layout --- */
.bento-section { padding: 50px 10%; }
.bento-container {
    display: grid; gap: 20px; max-width: 1200px; margin: 0 auto;
    /* FIX: Layout Rapi Seimbang */
    grid-template-areas: 
        "profile profile score"
        "tech bio bio";
    grid-template-columns: 2fr 1fr 1.5fr;
    grid-template-rows: auto auto;
}

.bento-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; padding: 35px; position: relative; overflow: hidden; transition: 0.4s; display: flex; flex-direction: column; justify-content: center; }
.bento-card:hover { border-color: rgba(0,255,204,0.15); background: rgba(255,255,255,0.04); transform: translateY(-3px); }

/* Grid Mapping */
.profile-card { grid-area: profile; justify-content: space-between; gap: 15px; }
.profile-header { display: flex; align-items: center; gap: 20px; }
.image-wrapper { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent); flex-shrink: 0; box-shadow: 0 0 15px rgba(0, 255, 204, 0.1); }
.profile-img-round { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: 0.3s; }
.profile-card:hover .profile-img-round { filter: grayscale(0); }
.profile-text h2 { font-size: 1.1rem; }
.profile-text .mono-text { font-size: 0.6rem; margin-top: 5px; margin-bottom: 0; opacity: 0.7; }

/* Pulse Glow Anim */
.glow-anim { animation: pulseGlow 3s infinite alternate; }
@keyframes pulseGlow { from { box-shadow: 0 0 5px var(--accent); } to { box-shadow: 0 0 20px var(--accent); } }

/* Tombol CV */
.btn-cv { display: inline-block; padding: 10px 18px; background: rgba(0, 255, 204, 0.05); color: var(--accent); border: 1px solid rgba(0, 255, 204, 0.1); border-radius: 50px; text-decoration: none; font-size: 0.7rem; font-family: 'Space Mono'; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; width: fit-content; }
.btn-cv:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent); }

.score-card { grid-area: score; text-align: center; }
.big-num { font-size: 4.5rem; color: var(--accent); font-weight: 800; text-shadow: 0 0 10px rgba(0, 255, 204, 0.3); }

.bio-card { grid-area: bio; justify-content: flex-start; }
.bio-card h3 { color: var(--accent); margin-top: 10px; margin-bottom: 5px; }
.bio-card p { font-size: 0.9rem; }

.label { font-family: 'Space Mono'; color: var(--text-s); font-size: 0.6rem; letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; }

.tech-tags-card { grid-area: tech; justify-content: flex-start; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.skills-grid span { font-size: 0.65rem; color: var(--accent); background: rgba(0, 255, 204, 0.03); border: 1px solid rgba(0, 255, 204, 0.08); padding: 5px 12px; border-radius: 20px; font-family: 'Space Mono'; }

/* Works */
.works-section { padding: 80px 10%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2rem; margin-bottom: 30px; color: var(--text-s); text-transform: uppercase; font-family: 'Space Mono'; }
.project-item { padding: 30px 0; border-bottom: 1px solid var(--border); transition: 0.3s; }
.project-item:hover { padding-left: 20px; border-color: var(--accent); }
.p-header { display: flex; gap: 20px; align-items: center; }
.p-num { font-family: 'Space Mono'; color: var(--accent); opacity: 0.3; }
.p-tags { margin-top: 10px; display: flex; gap: 8px; }
.p-tags span { border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; font-size: 0.65rem; color: var(--text-s); }

/* Audio Widget */
.audio-widget { position: fixed; bottom: 30px; right: 30px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); padding: 12px 20px; border-radius: 50px; border: 1px solid var(--border); display: flex; align-items: center; gap: 15px; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.audio-info { font-family: 'Space Mono'; font-size: 0.6rem; }
.track-name { color: var(--accent); }
#playBtn { width: 35px; height: 35px; border-radius: 50%; border: none; background: var(--accent); cursor: pointer; color: #000; transition: 0.3s; }
#playBtn:hover { transform: scale(1.1); box-shadow: 0 0 20px var(--accent); }
.visualizer-mini { display: flex; gap: 3px; height: 10px; align-items: flex-end; }
.visualizer-mini span { width: 2px; height: 3px; background: var(--accent); }
.playing span { animation: dance 0.5s infinite alternate; }
@keyframes dance { from { height: 2px; } to { height: 10px; } }

/* Reveal Animation */
.reveal, .reveal-up { opacity: 0; transform: translateY(20px); transition: 0.8s ease-out; }
.reveal-up { transform: translateY(30px); }
.active { opacity: 1; transform: translate(0); }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@media (max-width: 900px) {
    .bento-container { grid-template-areas: "profile" "score" "tech" "bio"; grid-template-columns: 1fr; grid-template-rows: auto; }
}