:root {
    --bg: #0c0c0c;
    --surface: #161616;
    --surface2: #1e1e1e;
    --border: #2a2a2a;
    --accent: #c9f135;
    --accent2: #a8cc20;
    --text: #efefef;
    --muted: #7a7a7a;
    --nav-h: 68px;
    --px: clamp(1.5rem, 6vw, 7rem);
    --py: clamp(4rem, 8vw, 7rem);
    --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 36px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; }

/* NAVIGATION */
nav { 
    position: fixed; top: 0; left: 0; right: 0; z-index: 999; 
    height: var(--nav-h); display: flex; align-items: center; 
    justify-content: space-between; padding: 0 var(--px); 
    background: var(--bg) !important; /* Warna solid */
    border-bottom: 1px solid var(--border); 
    transition: all 0.3s ease; 
}
.logo { font-weight: 800; font-size: 14px; color: var(--text); }
.logo em { color: var(--accent); font-style: normal; }
.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; }

.nav-menu a { 
    font-size: 12.5px; font-weight: 500; text-transform: uppercase; 
    color: var(--muted); transition: color .2s; 
    position: relative;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a::after { 
    content: ''; position: absolute; width: 0; height: 2px; 
    bottom: -4px; left: 0; background: var(--accent); transition: 0.3s; 
}
.nav-menu a:hover::after { width: 100%; }

/* HERO SECTION */
#hero { min-height: 100vh; padding: calc(var(--nav-h) + 3rem) var(--px) 4rem; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 4rem; }
.hero-content { max-width: 580px; }
.hero-title { font-size: clamp(2.5rem, 4.5vw, 4rem); margin-bottom: 1.1rem; font-weight: 700; line-height: 1.2; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-body { font-size: 15px; color: var(--muted); line-height: 1.8; max-width: 480px; margin-bottom: 2.2rem; }

/* TERMINAL */
.hero-visual { position: relative; width: 100%; }
.hero-terminal { width: 100%; aspect-ratio: 4/3; background: #131313; border-radius: var(--r-md); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); font-family: monospace; }
.term-head { background: #252525; padding: 12px 18px; display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.term-body { padding: 18px; font-size: 11px; color: #efefef; line-height: 1.4; white-space: pre; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* BUTTONS & SOCIALS */
.hero-actions { display: flex; gap: 12px; margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; padding: 11px 24px; border-radius: 100px; transition: .2s; cursor: pointer; border: none; }
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }

.socials { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: .3s; overflow: hidden; padding: 8px; }
.social-link img { width: 100%; height: 100%; object-fit: contain; }
.social-link:hover { border-color: var(--accent); transform: translateY(-3px); background: rgba(201, 241, 53, 0.05); }

/* SECTION GENERIC */
.section { padding: var(--py) var(--px); }
.section-alt { background: var(--surface); }
.s-head { text-align: center; margin-bottom: 3rem; }
.label { display: inline-block; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }

/* ABOUT SECTION (CENTERED) */
.about-content { max-width: 850px; margin: 0 auto; text-align: center; }
.about-body { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.about-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.about-info-item { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.info-label { color: var(--accent); font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.info-val { color: var(--text); font-size: 14px; }

/* PROJECTS */
.filter-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 2.5rem; flex-wrap: wrap; }
.ftab { padding: 8px 20px; border-radius: 100px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); color: var(--muted); background: none; cursor: pointer; transition: .2s; }
.ftab.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proj-card { border-radius: var(--r-lg); overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--surface2); border: 1px solid var(--border); display: block; transition: .3s; }
.proj-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.proj-thumb { width: 100%; height: 100%; position: relative; overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj-card:hover .proj-thumb img { transform: scale(1.05); }

.proj-over { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .2) 60%, transparent 100%); padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transition: .3s; z-index: 2; }
.proj-card:hover .proj-over { opacity: 1; }
.proj-over h4 { font-weight: 700; font-size: 14px; margin-bottom: 3px; color: #fff; }
.proj-over p { font-size: 11px; color: rgba(255, 255, 255, .7); }

/* SERVICES */
.svc-icon img { width: 24px; height: 24px; object-fit: contain; opacity: 0.9;}
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.svc-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem 1.5rem; transition: all .25s; cursor: pointer; }
.svc-card:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--surface2); }
.svc-icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: rgba(201, 241, 53, 0.08); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.1rem; }
.svc-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* FOOTER */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 4rem var(--px) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.foot-col h5 { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; letter-spacing: 1px; }
.foot-col ul { list-style: none; }
.foot-col ul a { font-size: 13.5px; color: var(--muted); line-height: 2.5; transition: .2s; }
.foot-col ul a:hover { color: var(--accent); }
.foot-bottom { text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* ANIMATION CLASSES */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media(max-width:1024px){
    #hero { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-content, .hero-visual { margin: 0 auto; }
    .hero-visual { order: -1; max-width: 650px; width: 100%; }
    .hero-actions { justify-content: center; } 
    .socials { justify-content: center; } 
    .hero-terminal { aspect-ratio: auto; height: 320px; padding-bottom: 20px; }
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .foot-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; } 
}

@media(max-width:850px){
    nav { height: auto; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
    .logo { order: 1; flex-shrink: 0; }
    nav > .btn { order: 2; flex-shrink: 0; }
    .nav-menu { order: 3; width: 100%; justify-content: center; margin-top: 15px; gap: 20px; flex-wrap: wrap; }
    #hero { padding-top: 160px; } 
}

@media(max-width:768px){
    :root { --px: clamp(1rem, 5vw, 2rem); }
    .about-info-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.5rem); } 
    .hero-visual { max-width: 100%; }
    .proj-over { opacity: 1; background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0,0,0,0.4) 40%, transparent 100%); padding: 1rem; }
    .proj-over p { color: #c9f135;}
}

@media(max-width:600px){
    .logo { font-size: 13px; }
    nav > .btn { padding: 8px 16px; font-size: 12px; } 
    .nav-menu a { font-size: 11px; }
    .proj-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto 2rem; }
    .hero-actions .btn { justify-content: center; width: 100%; } 
    .filter-row { gap: 8px; }
    .ftab { padding: 6px 14px; font-size: 11.5px; }
    .term-body { font-size: 10px; overflow-x: auto; }
    .hero-terminal { aspect-ratio: auto; height: 280px; padding-bottom: 0; }
}

@media(max-width:380px) {
    .logo { font-size: 12px; }
    nav > .btn { padding: 6px 12px; font-size: 11px; }
    .nav-menu { gap: 12px; }
}