/* ==========================================================================
   style.css  |  Ganti warna dan font cukup di bagian :root di bawah ini
   Mau pakai Poppins atau Montserrat: ganti --font di bawah, lalu tambahkan
   file fontnya (lihat PANDUAN.md bagian "Ganti font").
   ========================================================================== */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --font: "Plus Jakarta Sans", "Poppins", "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --navy: #0a1f44;
  --blue: #1f5eff;
  --blue-deep: #123a9c;
  --sky: #5cc8ff;
  --cyan: #19e3d4;
  --ice: #eaf3ff;

  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-2: #eaf1ff;
  --text: #0b1b3a;
  --muted: #53627f;
  --line: #d7e3f8;
  --accent: var(--blue);
  --accent-ink: #ffffff;
  --shadow: 0 10px 30px rgba(15, 50, 120, .10);
  --radius: 24px;
  --maxw: 1160px;
}

[data-theme="dark"] {
  --bg: #060e22;
  --surface: #0d1a3a;
  --surface-2: #122349;
  --text: #e9f0ff;
  --muted: #9db0d4;
  --line: #1f3366;
  --accent: #5cc8ff;
  --accent-ink: #06142e;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 16.5px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--navy, #0a1f44); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px 0;
  backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; }
.logo { font-weight: 800; letter-spacing: -.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 14px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; }
.nav ul a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: .2s; }
.nav ul a:hover, .nav ul a.active { color: var(--text); background: var(--surface-2); }
.tools { display: flex; gap: 8px; }
.pill-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 13px;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: .2s;
}
.pill-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.burger { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15.5px;
  padding: 14px 24px; border-radius: 999px; transition: .25s; border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(31, 94, 255, .35); }
[data-theme="dark"] .btn.primary { background: var(--sky); color: #06142e; box-shadow: 0 10px 26px rgba(92, 200, 255, .25); }
.btn.primary:hover { transform: translateY(-3px); }
.btn.ghost { border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); transform: translateY(-3px); }
.btn.sm { padding: 10px 18px; font-size: 14px; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 140px 0 70px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; animation: float 14s ease-in-out infinite; }
.blob.b1 { width: 420px; height: 420px; background: var(--sky); top: -80px; right: -60px; }
.blob.b2 { width: 360px; height: 360px; background: var(--cyan); bottom: -120px; left: -80px; animation-delay: -5s; opacity: .35; }
.blob.b3 { width: 300px; height: 300px; background: var(--blue); top: 40%; left: 40%; animation-delay: -9s; opacity: .22; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-26px) scale(1.08); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
h1.big {
  font-size: clamp(46px, 8.2vw, 104px); line-height: .96; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 22px;
}
h1.big .l { display: block; }
h1.big .grad { background: linear-gradient(95deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] h1.big .grad { background: linear-gradient(95deg, var(--sky), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.hero p.sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 54ch; margin: 0 0 30px; }
.hero .name-line { font-weight: 800; font-size: 18px; margin-top: 4px; }
.hero .name-line span { color: var(--muted); font-weight: 600; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 420px; margin-inline: auto; width: 100%; }
.portrait .frame {
  position: absolute; inset: 0; border-radius: 40% 60% 46% 54% / 46% 40% 60% 54%; background: linear-gradient(160deg, var(--blue), var(--navy));
  overflow: hidden; box-shadow: 0 30px 60px rgba(10, 31, 68, .35); animation: morph 12s ease-in-out infinite;
}
@keyframes morph { 0%,100% { border-radius: 40% 60% 46% 54% / 46% 40% 60% 54%; } 50% { border-radius: 56% 44% 58% 42% / 40% 58% 42% 60%; } }
.portrait img { position: absolute; top: 0; left: 5%; width: 120%; max-width: none; height: auto; z-index: 2; }
.portrait .frame.has-photo .mono { display: none; }
.portrait .mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: -.05em; z-index: 1; }
.sticker {
  position: absolute; z-index: 3; background: var(--surface); color: var(--text); font-weight: 800; font-size: 14px; padding: 10px 16px;
  border-radius: 14px; border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); animation: bob 5s ease-in-out infinite;
}
[data-theme="dark"] .sticker { border-color: var(--sky); box-shadow: 4px 4px 0 var(--sky); }
.sticker:nth-of-type(1) { top: 6%; left: -6%; transform: rotate(-8deg); }
.sticker:nth-of-type(2) { top: 30%; right: -8%; transform: rotate(7deg); animation-delay: -1.2s; background: var(--cyan); color: #04202a; }
.sticker:nth-of-type(3) { bottom: 22%; left: -10%; transform: rotate(5deg); animation-delay: -2.4s; background: var(--sky); color: #06142e; }
.sticker:nth-of-type(4) { bottom: 4%; right: -2%; transform: rotate(-6deg); animation-delay: -3.4s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* ---------- MARQUEE ---------- */
.marquee-wrap { overflow: hidden; padding: 26px 0 12px; }
.marquee { background: var(--navy); color: #fff; padding: 20px 0; overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); transform: rotate(-1.2deg); margin: 0 -3%; }
.marquee .track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-size: clamp(22px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; padding-inline: 26px; white-space: nowrap; display: inline-flex; align-items: center; gap: 52px; }
.marquee span::after { content: "✦"; color: var(--cyan); font-size: .7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
section { padding: 96px 0 24px; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 38px; flex-wrap: wrap; }
.sec-head .no { font-weight: 800; color: var(--accent); font-size: 15px; letter-spacing: .08em; }
.sec-head h2 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1; letter-spacing: -.04em; margin: 0; font-weight: 800; }
.sec-head p { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); max-width: 70ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; }
.about-lead { font-size: clamp(22px, 2.7vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 18px; }
.about-grid p { color: var(--muted); margin: 0 0 14px; }
.about-grid p.about-lead { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-self: start; position: sticky; top: 96px; }
.stat { background: linear-gradient(150deg, var(--blue-deep), var(--blue)); color: #fff; border-radius: 22px; padding: 22px; position: relative; overflow: hidden; }
.stat:nth-child(2n) { background: linear-gradient(150deg, var(--navy), var(--blue-deep)); }
.stat:nth-child(5) { grid-column: span 2; background: linear-gradient(120deg, #0f8f98, var(--cyan)); color: #04202a; }
.stat .num { font-size: clamp(38px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat .lab { font-size: 13.5px; font-weight: 600; opacity: .92; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { background: var(--surface-2); border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: 14px; }
h3.sub-h { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 30px 0 0; font-weight: 800; }

/* timeline */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--cyan)); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -33px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 4px solid var(--blue); }
.tl-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.tl-item h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.tl-role { color: var(--accent); font-weight: 700; margin: 2px 0 0; }
.tl-meta { color: var(--muted); font-weight: 600; font-size: 14px; text-align: right; }
.tl-item ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.tl-item li { margin-bottom: 8px; }

/* projects */
.note { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--cyan) 14%, var(--surface)); border: 1px dashed var(--cyan); padding: 14px 18px; border-radius: 16px; margin-bottom: 24px; font-weight: 600; font-size: 15px; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj { display: flex; flex-direction: column; gap: 12px; }
.badge { align-self: flex-start; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
[data-theme="dark"] .badge { background: var(--sky); color: #06142e; }
.proj h3 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.proj p { margin: 0; color: var(--muted); font-size: 15.5px; }
.proj ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.proj .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.proj .tags span { font-size: 12.5px; font-weight: 700; background: var(--surface-2); padding: 4px 10px; border-radius: 8px; }
.proj .btn { align-self: flex-start; }

/* leadership */
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lead-grid .card.wide { grid-column: 1 / -1; }
.lead-org { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.lead-org h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.lead-org span { color: var(--muted); font-weight: 600; font-size: 14px; }
.role-block { padding-top: 16px; margin-top: 16px; border-top: 1px dashed var(--line); }
.role-block h4 { margin: 0 0 6px; font-size: 16.5px; color: var(--accent); }
.role-block h4 .rp { display: inline-block; margin-left: 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
.role-block ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.role-block li { margin-bottom: 6px; }
.tl-desc { margin: 2px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.press { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; }
.press span { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin-right: 2px; }
.press a { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.press a:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.wide .roles-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; }
.speak { margin-top: 22px; }
.speak ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }

/* certs */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert { display: flex; flex-direction: column; gap: 6px; }
.cert.hl { background: linear-gradient(150deg, var(--navy), var(--blue-deep)); color: #fff; border-color: transparent; }
.cert.hl .muted { color: rgba(255,255,255,.78); }
.cert h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.cert .muted { color: var(--muted); font-size: 14.5px; }
.cert .date { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 14px; color: var(--accent); }
.cert.hl .date { color: var(--cyan); }

/* gallery */
.gal-grid { columns: 3 260px; column-gap: 16px; }
.gal-grid figure { margin: 0 0 16px; break-inside: avoid; border-radius: 22px; overflow: hidden; position: relative; background: var(--surface-2); border: 1px solid var(--line); }
.gal-grid img { width: 100%; height: auto; transition: transform .5s; }
.gal-grid figure:hover img { transform: scale(1.05); }
.gal-grid:not(.open) figure.extra { display: none; }
.gal-more { display: flex; justify-content: center; margin-top: 10px; }
.gal-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(transparent, rgba(5, 15, 40, .85)); }
.ph { display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-weight: 700; min-height: 180px; background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 14px, var(--surface) 14px, var(--surface) 28px); }
.ph:nth-child(3n+1) { min-height: 260px; }
.ph:nth-child(3n+2) { min-height: 200px; }
.ph:nth-child(3n) { min-height: 230px; }

/* edu */
.edu-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.edu-item { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.edu-item:last-child { border: 0; padding-bottom: 0; }
.edu-item:first-child { padding-top: 0; }
.edu-item h3 { margin: 0; font-size: 18.5px; letter-spacing: -.015em; }
.edu-item p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.lang { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.lang:first-of-type { padding-top: 0; }
.lang:last-child { border: 0; padding-bottom: 0; }
.lang .row { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.lang .row span:last-child { color: var(--muted); font-weight: 600; font-size: 14px; text-align: right; }

/* contact */
.contact-box {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(32px, 6vw, 70px);
  background: linear-gradient(135deg, var(--navy), var(--blue-deep) 60%, #0b8fa0); color: #fff;
}
.contact-box h2 { font-size: clamp(38px, 6.4vw, 78px); letter-spacing: -.045em; line-height: .98; margin: 0 0 16px; font-weight: 800; }
.contact-box p { max-width: 56ch; opacity: .9; margin: 0 0 28px; font-size: 18px; }
.contact-box .btn.ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.contact-box .btn.ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.contact-box .btn.primary { background: #fff; color: var(--navy); box-shadow: none; }
.contact-box .ring { position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); }
.contact-box .ring.two { right: 90px; top: auto; bottom: -160px; width: 280px; height: 280px; border-width: 30px; }
.contact-meta { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; opacity: .92; font-size: 15px; }

footer { padding: 46px 0 60px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .edu-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .proj-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .stats { position: static; }
  .wide .roles-cols { grid-template-columns: 1fr; }
  .nav ul { position: fixed; inset: 64px 14px auto 14px; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); display: none; margin: 0; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 14px; }
  .tools { margin-left: auto; }
  .burger { display: inline-block; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .proj-grid, .cert-grid, .lead-grid { grid-template-columns: 1fr; }
  .sticker { font-size: 12px; padding: 7px 11px; }
  .sticker:nth-of-type(1) { left: 0; } .sticker:nth-of-type(3) { left: -2%; } .sticker:nth-of-type(2) { right: 0; }
  .timeline { padding-left: 26px; }
  .tl-item::before { left: -25px; }
  .tl-meta { text-align: left; }
  section { padding-top: 72px; }
  .logo span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
