/* =========================================================
   TOKENS
========================================================= */
:root {
  --bg: #060B18;
  --surface: #0E1526;
  --surface-2: #131C33;
  --line: #223055;
  --text: #EAF0FF;
  --text-muted: #8C9AC2;
  --amber: #4C8DFF;
  --mint: #37D6E8;
  --violet: #7C6CFF;

  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --maxw: 1440px;
  --gutter: clamp(24px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(76, 141, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(55, 214, 232, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* =========================================================
   TOPBAR / NAV
========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
}
.brand__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255,180,84,0.15);
}
.brand__ext { color: var(--mint); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}
.nav__link {
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); border-color: var(--amber); }
.nav__link--cta {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--amber), var(--violet));
  padding: 7px 14px;
  border-radius: 6px;
  border-bottom: none;
}
.nav__link--cta:hover { color: #FFFFFF; border-color: transparent; filter: brightness(1.1); }

.navtoggle {
  display: none;
  width: 32px; height: 26px;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.navtoggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 108px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px 40px;
  align-items: center;
  overflow: clip;
}

.hero__glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(76, 141, 255, 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.hero__gutter {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #3B4150;
  padding-top: 6px;
}

.hero__content { grid-column: 2; }

.hero__kicker {
  font-family: var(--font-mono);
  color: var(--mint);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  margin-top: 18px;
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1rem;
}

.hero__tagline {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 7px;
  border: 1px solid transparent;
  display: inline-block;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--amber), var(--violet));
  color: #FFFFFF;
  box-shadow: 0 8px 24px -8px rgba(76, 141, 255, 0.55);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 10px 28px -6px rgba(76, 141, 255, 0.7); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }

.hero__portrait {
  grid-column: 3;
  position: relative;
  width: clamp(160px, 20vw, 220px);
  justify-self: end;
}
.hero__photo {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid var(--line);
}
.portrait-svg { width: 100%; height: auto; }
.portrait-frame { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.portrait-head { fill: var(--surface-2); }
.portrait-head-outline { stroke: var(--amber); stroke-width: 3; }
.portrait-body { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; }
.portrait-tag {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* =========================================================
   SECTIONS (shared)
========================================================= */
.section {
  padding: clamp(48px, 8vw, 80px) var(--gutter);
}
.section--alt { background: var(--surface); }

.section__head {
  max-width: var(--maxw);
  margin: 0 auto 32px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.section__num {
  font-family: var(--font-mono);
  color: #3B4150;
  font-size: 0.9rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section__body {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ===== TENTANG ===== */
.about p { max-width: 68ch; color: var(--text-muted); margin-bottom: 14px; }
.about p strong { color: var(--text); }
.about__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.about__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.about__card:hover {
  border-color: rgba(76, 141, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(76, 141, 255, 0.5);
}
.about__label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mint); margin-bottom: 8px; }
.about__value { font-size: 0.98rem; }

/* ===== PROFIL PROFESIONAL ===== */
.profile-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}
.profile-row__role { font-weight: 600; font-size: 1.1rem; }
.profile-row__org { color: var(--amber); font-family: var(--font-mono); font-size: 0.9rem; margin-top: 6px; }
.profile-row__desc { color: var(--text-muted); max-width: 56ch; }

/* ===== TIMELINE (Pendidikan / Pengalaman) ===== */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; }
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--bg);
}
.timeline__year { font-family: var(--font-mono); color: var(--mint); font-size: 0.85rem; margin-bottom: 4px; }
.timeline__title { font-weight: 600; }
.timeline__meta { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* ===== KEAHLIAN ===== */
.skills { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.skill__top { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; }
.skill__name { font-weight: 500; }
.skill__pct { font-family: var(--font-mono); color: var(--text-muted); }
.skill__bar { height: 6px; background: var(--surface); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.skill__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--amber)); }

.chiplist { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text-muted);
}

/* ===== PORTOFOLIO ===== */
.works { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.work-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover {
  border-color: rgba(55, 214, 232, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(76, 141, 255, 0.5);
}
.work-card__thumb { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--surface-2); }
.work-card__thumb svg { width: 100%; height: 100%; display: block; }
.work-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-bg { fill: var(--surface-2); }
.thumb-bar { fill: var(--mint); opacity: 0.85; }
.thumb-line { fill: var(--line); }
.work-card__body { padding: 20px; }
.work-card__title { font-weight: 600; margin-bottom: 8px; }
.work-card__desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.work-card__link { color: var(--amber); font-size: 0.9rem; font-weight: 600; }
.work-card__link:hover { color: var(--mint); }

/* ===== SERTIFIKAT ===== */
.badgelist { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.badge {
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(76, 141, 255, 0.5);
}
.badge__img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  border-bottom: 1px dashed var(--line);
}
.badge__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge__body { padding: 14px 18px 18px; }
.badge__title { font-weight: 600; font-size: 0.95rem; }
.badge__meta { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; margin-top: 6px; }

/* ===== KEGIATAN ===== */
.activity-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.activity-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  border: 1px dashed var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.activity-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activity-card figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--text-muted); }
.activity-note { margin-top: 22px; font-size: 0.85rem; color: var(--text-muted); }

/* ===== BLOG ===== */
.posts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post { border-top: 1px solid var(--line); padding-top: 18px; }
.post__date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--mint); }
.post__title { font-weight: 600; margin: 8px 0; font-size: 1.05rem; }
.post__excerpt { color: var(--text-muted); font-size: 0.92rem; }
.post__link { display: inline-block; margin-top: 10px; color: var(--amber); font-size: 0.88rem; font-weight: 600; }
.post__link:hover { color: var(--mint); }

.artikel-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 12px;
}
.artikel-detail p {
  color: var(--text-muted);
  font-size: 0.94rem;
}
.artikel-detail strong { color: var(--text); }

/* ===== KONTAK ===== */
.contact__lead { color: var(--text-muted); max-width: 56ch; margin-bottom: 24px; }
.contact__list { display: grid; gap: 14px; max-width: 480px; }
.contact__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-size: 0.95rem;
}
.contact__label { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.82rem; }
.contact__list a:hover { color: var(--mint); }

/* =========================================================
   FOOTER
========================================================= */
.footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__social { display: flex; gap: 18px; }
.footer__social a:hover { color: var(--mint); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__gutter { display: none; }
  .hero__content { grid-column: 1; }
  .hero__portrait { grid-column: 1; justify-self: start; margin-top: 32px; }
  .profile-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .navtoggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open, .nav.nav--open { display: flex; }
  .nav__link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__link--cta { margin-top: 10px; text-align: center; }
}

/* =========================
   SERTIFIKAT
========================= */

.badgelist {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 45px 0 0;
}

.badge {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge__img {
  width: 620px;
  height: 500px;
  margin: 20px auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background: #f2f2f2;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.badge__img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.badge__body {
  text-align: center;
}

.badge__title {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 600;
}

.badge__meta {
  margin: 0;
  font-size: 16px;
  opacity: 0.7;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .badgelist {
    margin-top: 30px;
  }

  .badge__img {
    width: 100%;
    max-width: 620px;
    height: auto;
    aspect-ratio: 620 / 500;
    margin-top: 15px;
  }

  .badge__title {
    font-size: 20px;
  }

  .badge__meta {
    font-size: 14px;
  }
}
