/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0D1117;
  --bg2:          #161B22;
  --bg3:          #1C2333;
  --ink:          #E6EDF3;
  --ink-muted:    #8B949E;
  --accent:       #3DDC97;
  --accent-light: rgba(61,220,151,0.12);
  --accent2:      #F78166;
  --border:       rgba(255,255,255,0.08);
  --card-shadow:  0 4px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(61,220,151,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(247,129,102,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(88,166,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

section, nav, footer { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 64px;
  background: rgba(13,17,23,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: var(--border); }
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 600;
  color: var(--ink-muted); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 130px 64px 90px;
  position: relative; overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(61,220,151,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,220,151,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-glow {
  position: absolute; right: -60px; top: 40%;
  transform: translateY(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(61,220,151,0.1) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}

/* Foto Profil */
.hero-photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}
.hero-photo {
  width: 88px; height: 88px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(61,220,151,0.15), 0 0 28px rgba(61,220,151,0.25);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-photo-ring {
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(61,220,151,0.4);
  animation: spinRing 12s linear infinite;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-photo-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 28px; height: 28px;
  background: var(--bg2); border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(61,220,151,0.1);
  border: 1px solid rgba(61,220,151,0.25);
  color: var(--accent);
  font-size: 0.75rem; font-weight: 700;
  padding: 6px 14px; border-radius: 100px;
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.6s 0.1s forwards;
}
.dot-pulse {
  width: 7px; height: 7px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(1.4); }
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, #3DDC97, #58A6FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--ink-muted);
  max-width: 480px; line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.7s 0.35s forwards;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.5s forwards;
}
.btn {
  padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 0.875rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s; letter-spacing: 0.01em;
  display: inline-block;
}
.btn-primary {
  background: var(--accent); color: #0D1117;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent; color: var(--accent);
  box-shadow: 0 0 24px rgba(61,220,151,0.3);
}
.btn-secondary {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--ink-muted); }

/* Hero Card */
.hero-visual {
  position: relative;
  opacity: 0; animation: fadeIn 1s 0.4s forwards;
}
.hero-card {
  background: var(--bg2); border-radius: 22px;
  padding: 30px; box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.hc-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.hc-title { font-size: 0.72rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hc-badge { font-size: 0.72rem; background: rgba(61,220,151,0.15); color: var(--accent); padding: 4px 10px; border-radius: 100px; font-weight: 700; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 72px; margin-bottom: 20px; }
.mbar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: rgba(61,220,151,0.2); transition: background 0.3s;
}
.mbar.hi { background: var(--accent); }
.mbar:hover { background: var(--accent); cursor: pointer; }
.hc-stats { display: flex; gap: 12px; }
.hstat {
  flex: 1; background: var(--bg3);
  border-radius: 10px; padding: 12px; text-align: center;
}
.hstat-v { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--ink); }
.hstat-l { font-size: 0.68rem; color: var(--ink-muted); font-weight: 600; margin-top: 2px; }
.pill {
  position: absolute;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px;
  font-size: 0.78rem; font-weight: 700;
  box-shadow: var(--card-shadow); white-space: nowrap;
}
.pill-1 { top: -14px; right: -18px; color: var(--accent); }
.pill-2 { bottom: -14px; left: -18px; color: var(--accent2); }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ===== SHARED ===== */
section { padding: 96px 64px; }
.sec-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px;
}
.sec-desc { color: var(--ink-muted); max-width: 500px; line-height: 1.75; }
.divider { width: 44px; height: 3px; background: var(--accent); border-radius: 2px; margin: 20px 0; }

/* ===== SKILLS ===== */
#skills { background: var(--bg2); border-top: 1px solid var(--border); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px; margin-top: 52px;
}
.sk-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 22px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.sk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(61,220,151,0.1);
  border-color: rgba(61,220,151,0.3);
}
.sk-icon {
  width: 42px; height: 42px; background: rgba(61,220,151,0.1);
  border-radius: 11px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; margin-bottom: 14px;
}
.sk-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.sk-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sk-tag {
  font-size: 0.7rem; font-weight: 600;
  background: rgba(255,255,255,0.05); color: var(--ink-muted);
  padding: 3px 9px; border-radius: 100px;
  border: 1px solid var(--border);
}

/* ===== PROJECTS ===== */
#projects { background: var(--bg); border-top: 1px solid var(--border); }
.proj-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px; flex-wrap: wrap; gap: 20px;
}
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.proj-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border-color: rgba(61,220,151,0.25);
}
.proj-visual {
  height: 190px; display: flex;
  align-items: center; justify-content: center;
  padding: 24px; overflow: hidden;
}
.pv1 { background: linear-gradient(135deg, #0D2B1F, #1A4D35); }
.pv2 { background: linear-gradient(135deg, #2B1A0D, #4D3010); }
.pv3 { background: linear-gradient(135deg, #0D1A2B, #102040); }
.proj-visual svg { width: 100%; height: 100%; }
.proj-body { padding: 22px; }
.proj-cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 7px; }
.proj-title { font-family: 'DM Serif Display', serif; font-size: 1.15rem; line-height: 1.3; margin-bottom: 9px; }
.proj-desc { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.65; margin-bottom: 14px; }
.proj-result { font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.proj-result::before { content: '↑'; font-size: 0.9rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-tag { font-size: 0.7rem; font-weight: 600; background: rgba(255,255,255,0.05); color: var(--ink-muted); padding: 3px 9px; border-radius: 100px; border: 1px solid var(--border); }

/* ===== ABOUT ===== */
#about {
  background: var(--bg2); border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
#about::before {
  content: '';
  position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(61,220,151,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 52px; }
.about-body { font-size: 0.975rem; color: var(--ink-muted); line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.astat {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 20px;
  transition: border-color 0.25s;
}
.astat:hover { border-color: rgba(61,220,151,0.3); }
.astat-num { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--accent); line-height: 1; }
.astat-lbl { font-size: 0.8rem; color: var(--ink-muted); margin-top: 5px; }
.exp-list { display: flex; flex-direction: column; gap: 14px; }
.exp-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 13px; padding: 18px 22px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: border-color 0.25s, background 0.25s;
}
.exp-item:hover {
  border-color: rgba(61,220,151,0.3);
  background: rgba(61,220,151,0.04);
}
.exp-yr { font-size: 0.72rem; font-weight: 700; color: var(--accent); min-width: 50px; padding-top: 3px; }
.exp-role { font-weight: 600; font-size: 0.925rem; margin-bottom: 3px; color: var(--ink); }
.exp-co { font-size: 0.78rem; color: var(--ink-muted); }

/* ===== CONTACT ===== */
#contact {
  background: var(--bg); border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
#contact::after {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(247,129,102,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.contact-box {
  max-width: 640px; margin: 52px auto 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 22px; padding: 56px 52px;
  text-align: center; position: relative;
}
.contact-box p { color: var(--ink-muted); margin: 14px 0 36px; font-size: 1rem; line-height: 1.7; }
.c-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.c-link {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 9px;
  font-weight: 600; font-size: 0.875rem;
  text-decoration: none; color: var(--ink);
  border: 2px solid var(--border);
  transition: all 0.25s;
}
.c-link:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(61,220,151,0.08);
  box-shadow: 0 0 20px rgba(61,220,151,0.15);
}
.c-link svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  color: var(--ink-muted);
  text-align: center; padding: 28px 64px;
  font-size: 0.82rem;
}
footer span { color: var(--accent); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; padding: 120px 40px 80px; }
  .hero-visual { display: none; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  section { padding: 68px 24px; }
  #hero { padding: 96px 24px 60px; }
  .proj-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 36px 22px; }
}