/* =========================================================
   PORTFOLIO — Dark Modern
   Struktur:
   1. Token & reset      5. Tentang
   2. Komponen dasar     6. Keahlian
   3. Header / Nav       7. Proyek
   4. Hero               8. Timeline, Kontak, Footer, Responsif
   ========================================================= */

/* ============ 1. TOKEN & RESET ============ */
:root {
  /* Warna — tema gelap (default) */
  --bg:          #0a0c11;
  --bg-soft:     #0e1219;
  --surface:     rgba(255, 255, 255, .035);
  --surface-2:   rgba(255, 255, 255, .06);
  --border:      rgba(255, 255, 255, .09);
  --border-soft: rgba(255, 255, 255, .055);
  --text:        #e9ecf3;
  --heading:     #ffffff;
  --muted:       #949eb2;
  --accent:      #7c5cff;
  --accent-2:    #22d3ee;
  --accent-soft: rgba(124, 92, 255, .14);
  --shadow:      0 20px 50px -20px rgba(0, 0, 0, .7);
  --grid-line:   rgba(255, 255, 255, .035);
  --orb-1:       rgba(124, 92, 255, .30);
  --orb-2:       rgba(34, 211, 238, .18);
  --orb-3:       rgba(236, 72, 153, .14);

  /* Tipografi */
  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Tema terang */
[data-theme="light"] {
  --bg:          #f6f7fb;
  --bg-soft:     #ffffff;
  --surface:     #ffffff;
  --surface-2:   #f1f3f9;
  --border:      rgba(12, 16, 25, .10);
  --border-soft: rgba(12, 16, 25, .07);
  --text:        #2a3040;
  --heading:     #0c1019;
  --muted:       #5d6779;
  --accent:      #5b3df5;
  --accent-2:    #0891b2;
  --accent-soft: rgba(91, 61, 245, .10);
  --shadow:      0 20px 45px -25px rgba(20, 26, 40, .35);
  --grid-line:   rgba(12, 16, 25, .04);
  --orb-1:       rgba(124, 92, 255, .20);
  --orb-2:       rgba(34, 211, 238, .16);
  --orb-3:       rgba(236, 72, 153, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 10px;
}
.skip-link:focus { left: 16px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

/* ============ Latar dekoratif ============ */
.bg-decor {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: var(--orb-1); top: -140px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: var(--orb-2); top: 24%; right: -160px; animation-delay: -7s; }
.orb-3 { width: 420px; height: 420px; background: var(--orb-3); bottom: 6%; left: 22%; animation-delay: -13s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -50px) scale(1.08); }
  66%      { transform: translate(-30px, 35px) scale(.94); }
}

/* Progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200;
  transition: width .1s linear;
}

/* ============ 2. KOMPONEN DASAR ============ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: 110px 0; position: relative; }
/* Latar section berselang dibuat memudar di kedua ujungnya, jadi perpindahannya
   berupa peralihan halus — bukan garis tegas yang memotong gradien di belakangnya. */
.section-alt {
  background: linear-gradient(180deg,
    transparent 0%,
    var(--bg-soft) 9%,
    var(--bg-soft) 91%,
    transparent 100%);
}

.center { text-align: center; margin-top: 52px; }

.grad {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.accent { color: var(--accent-2); }

/* Kepala section */
.sec-head { max-width: 680px; margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
.eyebrow .line { width: 34px; height: 1px; background: currentColor; opacity: .55; }
.sec-title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
.sec-sub { color: var(--muted); font-size: 1.03rem; margin: 0; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .94rem;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(124, 92, 255, .75);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(124, 92, 255, .9); }

.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--heading); transform: translateY(-3px); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-3px); }

.btn-sm { padding: 10px 20px; font-size: .86rem; }
.btn-block { width: 100%; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  font-family: var(--font-mono); font-size: .74rem;
  padding: 5px 11px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--muted);
}
.chips.sm li { font-size: .7rem; padding: 4px 9px; }

/* Kartu generik */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* Badge status */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; color: var(--muted); margin-bottom: 26px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Animasi reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .10s; }
.reveal[data-delay="2"] { transition-delay: .20s; }
.reveal[data-delay="3"] { transition-delay: .30s; }
.reveal[data-delay="4"] { transition-delay: .40s; }
.reveal[data-delay="5"] { transition-delay: .50s; }

/* ============ 3. HEADER / NAV ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; }
/* Logo panda punya bagian putih di dalamnya, jadi ia butuh alas terang
   supaya tetap terbaca di tema gelap maupun terang. */
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  object-fit: contain; padding: 4px;
  background: #ffffff; border: 1px solid var(--border);
}
.brand-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--heading); white-space: nowrap;
}

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 9px 15px; border-radius: 10px;
  font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-link:hover { color: var(--heading); background: var(--surface-2); }
.nav-link.is-active { color: var(--heading); }
.nav-link.is-active::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); transition: color .25s, border-color .25s, transform .25s;
}
.icon-btn:hover { color: var(--heading); border-color: var(--accent-2); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun { display: none; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }


/* ============ 4. HERO ============ */
.hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 90px; min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }

.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 800; margin-bottom: 22px; max-width: 16ch; }
.typed { color: var(--accent-2); }
.caret {
  display: inline-block; width: 3px; height: .95em; vertical-align: -.12em;
  margin-left: 3px; border-radius: 2px;
  background: var(--accent-2); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: transform .3s var(--ease), color .3s, border-color .3s, background .3s;
}
.socials a:hover { transform: translateY(-4px); color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Kartu percakapan bot (visual hero) */
.hero-visual { position: relative; padding-bottom: 12px; }
.chat-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.chat-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

/* Dua percakapan ditumpuk di sel grid yang sama: tingginya mengikuti yang
   terpanjang, jadi pergantian slide tidak menggeser tata letak. */
.chat-card { display: grid; }
.chat-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
.chat-slide.is-active { opacity: 1; visibility: visible; }

/* Titik pemilih di bawah kartu */
.chat-dots {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -30px; display: flex; gap: 8px; z-index: 3;
}
.chat-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  background: var(--border); border: none;
  transition: background .3s var(--ease), width .3s var(--ease);
}
.chat-dot:hover { background: var(--muted); }
.chat-dot.is-active {
  width: 22px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.chat-bar {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft); background: var(--surface);
}
.chat-ava {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.chat-meta { display: flex; flex-direction: column; line-height: 1.35; }
.chat-meta b { font-size: .92rem; color: var(--heading); }
.chat-meta small { font-size: .72rem; color: var(--muted); }

/* padding bawah ekstra supaya baris terakhir tidak tertutup kartu melayang */
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 52px; }
.bubble {
  max-width: 82%; margin: 0; padding: 11px 15px;
  font-size: .87rem; line-height: 1.6; border-radius: 16px;
}
.bubble.out {
  align-self: flex-end; border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.bubble.in {
  align-self: flex-start; border-bottom-left-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text);
}
.bubble.in b { color: var(--heading); }
.chat-note {
  margin: 6px 0 0; font-family: var(--font-mono); font-size: .7rem;
  color: var(--muted); text-align: center;
}

.float-card {
  position: absolute; display: flex; flex-direction: column;
  padding: 15px 20px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(16px); box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--heading); line-height: 1.1; }
/* Kartu berisi teks, bukan angka — ukurannya diturunkan agar tetap satu baris */
.float-card.is-text strong { font-size: .98rem; letter-spacing: -.01em; }
.float-card span { font-size: .76rem; color: var(--muted); }
.fc-1 { top: -26px; right: -18px; }
.fc-2 { bottom: -26px; left: -26px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); }
.mouse { display: block; width: 25px; height: 40px; border: 2px solid var(--border); border-radius: 13px; position: relative; }
.mouse span { position: absolute; top: 8px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ MARQUEE ============ */
.marquee {
  border-block: 1px solid var(--border-soft); background: var(--bg-soft);
  padding: 20px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: slide 36s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--muted); white-space: nowrap; }
.marquee-track i { color: var(--accent); font-size: .6rem; font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============ 5. TENTANG ============ */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }

/* Potret menyatu: foto tanpa latar berdiri di atas cakram gradien,
   kepalanya sengaja melewati batas cakram supaya tidak terasa "ditempel". */
/* width:100% wajib: .portrait memakai width persentase, dan tanpa lebar pasti
   di induknya (yang punya margin-inline:auto) persentase itu resolve ke nol. */
.about-photo { position: relative; width: 100%; }

.portrait {
  position: relative; margin: 0 auto;
  width: 100%; max-width: 420px; aspect-ratio: 4 / 5;   /* fotonya setengah badan */
}

/* 1. Cahaya latar paling belakang */
.pt-glow {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: 106%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  filter: blur(18px);
}

/* 2. Cakram gradien */
.pt-disc {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(155deg, var(--accent), var(--accent-2));
  opacity: .20;
}

/* 3. Cincin tipis, sedikit lebih besar dari cakram */
.pt-ring {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  width: 95%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--border);
}

/* 4. Fotonya */
.pt-img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 68%; height: auto; z-index: 2;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .45));
}
[data-theme="light"] .pt-img { filter: drop-shadow(0 22px 30px rgba(20, 26, 40, .28)); }

/* 5. Keping kaca melayang */
.pt-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; font-size: .8rem; color: var(--text);
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.pt-chip-1 { left: -6px;  bottom: 17%; }
.pt-chip-2 { right: -6px; top: 20%; }
.pt-chip-2 b { color: var(--accent-2); font-weight: 600; }

.about-copy .lead { font-size: 1.2rem; color: var(--heading); font-family: var(--font-head); font-weight: 600; margin-bottom: 20px; }
.about-copy p { color: var(--muted); }


/* Statistik */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 76px;
  padding: 38px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
}
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { font-size: .84rem; color: var(--muted); }

/* ============ 6. KEAHLIAN ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Empat kartu: 2x2 supaya tiap kartu tetap punya ruang baca */
.cards-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.skill-card { position: relative; overflow: hidden; }
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 65%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.skill-card:hover { transform: translateY(-7px); border-color: var(--border); box-shadow: var(--shadow); }
.skill-card:hover::before { opacity: 1; }
.skill-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.skill-card p { color: var(--muted); font-size: .94rem; margin: 0; }

.card-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 22px; border: 1px solid var(--border);
}
.card-ico svg { width: 25px; height: 25px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-a { background: rgba(124, 92, 255, .12); } .ico-a svg { stroke: #a78bfa; }
.ico-b { background: rgba(34, 211, 238, .12); }  .ico-b svg { stroke: #22d3ee; }
.ico-c { background: rgba(244, 114, 182, .12); } .ico-c svg { stroke: #f472b6; }
.ico-d { background: rgba(251, 146, 60, .12); }  .ico-d svg { stroke: #fb923c; }

/* Perkakas — dikelompokkan menurut seberapa sering dipakai, bukan persentase */
.toolset { margin-top: 58px; border-top: 1px solid var(--border-soft); }
.tool-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px 28px;
  padding: 22px 2px; border-bottom: 1px solid var(--border-soft); align-items: start;
}
.tool-label {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-2); padding-top: 6px;
}
.tool-row .chips { margin-top: 0; }

/* ============ 7. PROYEK ============ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 9px 20px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: all .25s var(--ease);
}
.filter:hover { color: var(--heading); border-color: var(--accent-2); }
.filter.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
}

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.project {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s, opacity .35s, scale .35s;
}
.project:hover { transform: translateY(-9px); box-shadow: var(--shadow); }
.project.is-hidden { display: none; }

.project-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project-thumb img { transform: scale(1.07); }

.project-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, rgba(10, 12, 17, .25), rgba(10, 12, 17, .82));
  opacity: 0; transition: opacity .35s var(--ease);
}
.project:hover .project-overlay { opacity: 1; }
.round-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; backdrop-filter: blur(8px);
  transform: translateY(12px); transition: transform .35s var(--ease), background .25s;
}
.project:hover .round-btn { transform: none; }
.round-btn:hover { background: var(--accent); border-color: transparent; }
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.project-body { padding: 24px 22px 26px; }
.project-cat {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 9px;
}
.project-body h3 { font-size: 1.1rem; margin-bottom: 9px; }
.project-body p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Proyek unggulan — melebar dua kolom dan diberi tepi beraksen */
.project.is-featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.project.is-featured .project-cat { color: var(--accent); }
/* Catatan: kartu unggulan tidak dilebarkan — dengan 6 proyek, 3+3 lebih rapi
   daripada menyisakan satu kartu sendirian di baris terakhir. */

/* Thumbnail yang bisa diklik (kartu dengan studi kasus) */
a.project-thumb { display: block; }
.overlay-cta {
  padding: 12px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  backdrop-filter: blur(8px);
  transform: translateY(12px); transition: transform .35s var(--ease), background .25s;
}
.project:hover .overlay-cta { transform: none; }
a.project-thumb:hover .overlay-cta { background: var(--accent); border-color: transparent; }

.project-body h3 a { transition: color .25s var(--ease); }
.project-body h3 a:hover { color: var(--accent-2); }

/* ============ CATATAN KEPUTUSAN ============ */
.decisions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.decision {
  position: relative; padding: 30px 30px 30px 34px;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .35s;
}
.decision::before {
  content: ''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--accent), var(--accent-2));
}
.decision:hover { transform: translateY(-5px); border-color: var(--accent); }

.dec-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px;
}
.decision h3 { font-size: 1.16rem; margin-bottom: 12px; }
.decision p { font-size: .93rem; color: var(--muted); margin-bottom: 12px; }
.decision b { color: var(--heading); font-weight: 600; }
.decision code {
  font-family: var(--font-mono); font-size: .85em; padding: 2px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--accent-2);
  overflow-wrap: anywhere;
}
/* Kalimat penutup: pelajaran yang diambil */
.dec-out {
  margin-bottom: 0; padding-top: 14px; border-top: 1px solid var(--border-soft);
  color: var(--text); font-size: .93rem;
}

/* ============ HALAMAN STUDI KASUS ============ */
.case-hero { padding: calc(var(--nav-h) + 72px) 0 56px; }
.case-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 20px; }
.case-lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin-bottom: 34px; }

.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 0 0 34px; padding: 24px 0; border-block: 1px solid var(--border-soft);
}
.case-meta > div { display: flex; flex-direction: column; gap: 4px; }
.case-meta dt {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.case-meta dd { margin: 0; font-size: .95rem; color: var(--heading); font-weight: 500; }

/* Penjelasan kenapa tidak ada demo publik */
.case-note {
  padding: 20px 24px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid var(--border);
  font-size: .94rem; color: var(--muted); max-width: 72ch;
}
.case-note b { display: block; color: var(--heading); margin-bottom: 5px; }

.case-section { padding: 78px 0; }
.container.narrow { max-width: 780px; }
.center-block { text-align: center; }
.center-block .case-h2 { margin-inline: auto; }
.center-block p { margin-inline: auto; max-width: 62ch; }

.case-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 18px; }
.case-sub { color: var(--muted); margin-bottom: 34px; }
.case-section p { color: var(--muted); }
.case-section code {
  font-family: var(--font-mono); font-size: .85em; padding: 2px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--accent-2);
  overflow-wrap: anywhere;
}

/* Diagram arsitektur */
.arch {
  margin-bottom: 40px; padding: 26px 24px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border); overflow-x: auto;
}
.arch pre { margin: 0; }
.arch code {
  display: block; background: none; border: none; padding: 0; color: var(--text);
  font-family: var(--font-mono); font-size: .8rem; line-height: 1.75; white-space: pre;
}

.arch-cards .card h3 { font-size: 1.05rem; margin-bottom: 9px; }
.arch-cards .card p { font-size: .92rem; margin: 0; }

.case-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

@media (max-width: 860px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-section { padding: 58px 0; }
}
@media (max-width: 480px) {
  .case-meta { grid-template-columns: 1fr; gap: 16px; }
}

/* ============ 8a. TIMELINE ============ */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 8px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
  opacity: .45;
}
.tl-item { position: relative; padding-left: 42px; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 24px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.tl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px; backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .35s;
}
.tl-card:hover { transform: translateX(7px); border-color: var(--accent); }
.tl-date {
  display: inline-block; font-family: var(--font-mono); font-size: .73rem;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
  background: var(--accent-soft); color: var(--accent-2);
}
.tl-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.tl-org { font-size: .85rem; color: var(--accent-2); margin-bottom: 10px; }
.tl-card > p:last-child { font-size: .92rem; color: var(--muted); margin: 0; }

/* ============ 8b. KONTAK ============ */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }

.ci-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 14px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s;
}
.ci-item:not(.static):hover { transform: translateX(6px); border-color: var(--accent-2); }
.ci-ico {
  width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2);
}
.ci-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-txt { display: flex; flex-direction: column; font-size: .92rem; color: var(--text); overflow-wrap: anywhere; }
.ci-txt b { font-size: .74rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }

.avail-box {
  margin-top: 26px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--border);
}
.ab-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--heading); }
.avail-box .small { font-size: .88rem; color: var(--muted); margin: 0; }

.contact-form {
  padding: 36px 34px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: .84rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: .94rem; resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .6; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.has-error input, .field.has-error textarea { border-color: #f87171; }
.err { min-height: 16px; font-size: .78rem; color: #f87171; margin-top: 5px; }

.form-note { margin: 16px 0 0; font-size: .88rem; text-align: center; min-height: 20px; }
.form-note.ok  { color: #4ade80; }
.form-note.bad { color: #f87171; }

/* ============ 8c. FOOTER ============ */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-soft); padding: 56px 0 34px; }
.footer-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.f-brand p { color: var(--muted); font-size: .9rem; margin: 10px 0 0; max-width: 40ch; }
.f-links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.f-links a { font-size: .9rem; color: var(--muted); transition: color .25s; }
.f-links a:hover { color: var(--accent-2); }
.f-copy {
  grid-column: 1 / -1; padding-top: 26px; margin-top: 8px;
  border-top: 1px solid var(--border-soft); text-align: center;
}
.f-copy p { font-size: .85rem; color: var(--muted); margin: 0; }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none;
  box-shadow: 0 10px 26px -10px rgba(124, 92, 255, .85);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 8d. RESPONSIF ============ */
@media (max-width: 1024px) {
  .hero-grid  { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-photo { max-width: 420px; margin-inline: auto; }
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .decisions { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 104px; }
  /* Header dua baris: merek + tema di atas, tautan section di bawahnya.
     Stripnya digeser mendatar kalau tautannya tidak muat, tanpa tombol tiga garis. */
  .site-header { height: auto; padding: 12px 0 0; align-items: flex-start; }
  .site-header.is-stuck { height: auto; }
  .nav-wrap { flex-wrap: wrap; row-gap: 4px; }
  .nav {
    order: 3; width: 100%;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-list { width: max-content; gap: 2px; padding: 2px 0 9px; }
  .nav-link { padding: 7px 12px; font-size: .88rem; }
  .nav-link.is-active::after { left: 12px; right: 12px; bottom: 1px; }
  .nav-cta { display: none; }
  .section { padding: 84px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .tool-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 2px; }
  .tool-label { padding-top: 0; }
  .footer-wrap { grid-template-columns: 1fr; }
  .f-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  :root { --radius: 16px; }
  .container { padding-inline: 18px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .projects-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .chat-card { transform: none; }
  .award-list li { grid-template-columns: 1fr; gap: 4px; }
  .decision { padding: 24px 22px 24px 26px; }
  .fc-1 { top: -20px; right: -8px; } .fc-2 { bottom: -20px; left: -8px; }
  .float-card { padding: 12px 15px; }
  .float-card strong { font-size: 1.15rem; }
  .pt-chip { font-size: .74rem; padding: 7px 13px; }
  .pt-chip-1 { left: 0; } .pt-chip-2 { right: 0; }
  .scroll-hint { display: none; }
  .btn { padding: 13px 22px; }
}

/* Hormati preferensi kurangi animasi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Cetak */
@media print {
  .site-header, .to-top, .bg-decor, .scroll-progress, .marquee, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
}
