/* Semua warna dan font sesuai docs/design.md */
:root {
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-tint: #FDF8F9;
  --color-tint-strong: #F8E9EB;
  --color-line: #F3D3DA;
  --color-line-soft: #F0EAEB;
  --color-text: #262626;
  --color-heading: #171717;
  --color-muted: #6B6B6B;
  --color-accent: #A33C56;
  --color-accent-hover: #873248;
  --color-accent-soft: #DF8799;
  --color-accent-grad: #C55370;
  --color-on-accent: #FFFFFF;
  --color-badge-text: #873248;
  --color-header: rgba(255, 255, 255, .85);
  --shadow-soft: 0 10px 40px -10px rgba(223, 135, 153, .25);
  --shadow-hover: 0 15px 30px -10px rgba(197, 83, 112, .22);
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --max: 1152px;
}
[data-theme="dark"] {
  --color-bg: #1A1214;
  --color-surface: #241A1D;
  --color-tint: #2B1E22;
  --color-tint-strong: #3A262C;
  --color-line: #4A3038;
  --color-line-soft: #33252A;
  --color-text: #EDE4E6;
  --color-heading: #FFFFFF;
  --color-muted: #BFAEB3;
  --color-accent: #EBB2BE;
  --color-accent-hover: #F3D3DA;
  --color-accent-soft: #C55370;
  --color-accent-grad: #DF8799;
  --color-on-accent: #5E2635;
  --color-badge-text: #F3D3DA;
  --color-header: rgba(26, 18, 20, .85);
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, .5);
  --shadow-hover: 0 15px 30px -10px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-line); color: var(--color-heading); }
a { color: var(--color-accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--color-heading); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-header);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--color-heading); text-decoration: none; }
.logo span { color: var(--color-accent-grad); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--color-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--color-accent); }
.nav a.nav-cta {
  color: var(--color-on-accent); background: var(--color-accent);
  padding: 8px 20px; border-radius: 999px;
}
.nav a.nav-cta:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.theme-btn {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--color-muted);
  border: 1px solid var(--color-line); border-radius: 999px; padding: 6px 14px;
}
.theme-btn:hover { color: var(--color-accent); background: var(--color-tint); }
.menu-btn {
  display: none; background: transparent; border: 0; padding: 6px; cursor: pointer; color: var(--color-muted);
}
.menu-btn svg { display: block; width: 26px; height: 26px; }

/* Badge dan pill */
.badge {
  display: inline-block; align-self: center; padding: 4px 14px; border-radius: 999px;
  background: var(--color-tint-strong); color: var(--color-badge-text);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; margin: 0;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li {
  font-size: 14px; font-weight: 500; padding: 6px 16px; border-radius: 999px;
  background: var(--color-tint); color: var(--color-badge-text); border: 1px solid var(--color-tint-strong);
}
.pills.plain li { background: var(--color-line-soft); color: var(--color-text); border-color: transparent; }
.pills.small li { font-size: 12px; padding: 3px 12px; }

/* Tombol */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--color-accent); color: var(--color-on-accent); border: 1px solid var(--color-accent);
  box-shadow: var(--shadow-soft); transition: background .2s, color .2s;
}
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn.alt { background: var(--color-surface); color: var(--color-accent); border-color: var(--color-line); box-shadow: none; }
.btn.alt:hover { background: var(--color-tint); }
.btn svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }

/* Beranda */
.hero { position: relative; overflow: hidden; background: var(--color-tint); padding-block: 120px 112px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.hero::before { width: 384px; height: 384px; top: -80px; right: -80px; background: var(--color-tint-strong); opacity: .7; }
.hero::after { width: 320px; height: 320px; bottom: -80px; left: -80px; background: var(--color-line); opacity: .4; }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.hero h1 { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 8px 0 0; max-width: 20ch; }
.hero h1 .name {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-grad));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .role { font-size: 22px; font-weight: 500; color: var(--color-muted); margin: 0; }
.hero .lead { font-size: 18px; color: var(--color-muted); margin: 0 0 12px; max-width: 62ch; }
.cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Bagian */
.section { padding-block: 96px; }
.section.white { background: var(--color-surface); }
.section.alt { border-top: 1px solid var(--color-line-soft); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 56px; }
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.section-head p { margin: 0; color: var(--color-muted); font-size: 18px; max-width: 62ch; }
.title-bar { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 24px; }
.title-bar::before { content: ""; width: 32px; height: 4px; border-radius: 999px; background: var(--color-accent-soft); flex-shrink: 0; }

/* Biodata */
.bio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.bio-col { display: flex; flex-direction: column; gap: 48px; }
.bio p.summary { font-size: 18px; color: var(--color-muted); margin: 0; max-width: 62ch; }
.skill-group { display: flex; flex-direction: column; gap: 10px; }
.skill-group + .skill-group { margin-top: 22px; }
.skill-group h3 { font-size: 16px; font-weight: 600; margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-line), transparent);
}
.timeline li {
  position: relative; background: var(--color-surface); padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--color-line-soft); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent-soft);
  border: 4px solid var(--color-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.timeline h3, .certs h3 { font-size: 16px; font-weight: 700; margin: 0; }
.timeline p { margin: 4px 0 0; font-size: 14px; font-weight: 500; color: var(--color-accent); }

.certs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.certs li {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 14px;
  background: var(--color-tint); border: 1px solid var(--color-tint-strong);
}
.certs .icon { flex-shrink: 0; padding: 8px; border-radius: 10px; background: var(--color-surface); color: var(--color-accent); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.certs .icon svg { display: block; width: 24px; height: 24px; }
.certs p { margin: 4px 0 0; font-size: 14px; color: var(--color-muted); }

/* Proyek */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.project {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px;
  background: var(--color-surface); border: 1px solid var(--color-line-soft); border-radius: 18px; padding: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.project::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--color-accent-soft); }
.project:nth-child(even)::before { background: var(--color-line); }
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--color-line); }
.project h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.project .company { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-accent); }
.project .meta { margin: 4px 0 0; font-size: 13px; color: var(--color-muted); }
.project a.more { margin-top: auto; font-weight: 600; font-size: 14px; text-decoration: none; }
.project a.more::after { content: ""; position: absolute; inset: 0; }
.project a.more:hover { text-decoration: underline; }

/* Kontak */
.contact { position: relative; overflow: hidden; background: var(--color-surface); border-top: 1px solid var(--color-line); padding-block: 88px 40px; }
.contact::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 800px; height: 800px; border-radius: 50%;
  transform: translate(-50%, 50%); background: var(--color-tint); opacity: .8; pointer-events: none;
}
.contact .wrap { position: relative; max-width: 896px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact h2 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.contact p { margin: 0; color: var(--color-muted); font-size: 18px; }
.contact .cta { margin-top: 16px; }
.contact .details { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 15px; color: var(--color-muted); }
.contact .details a { color: var(--color-accent); text-decoration: none; font-weight: 500; }
.contact .details a:hover { text-decoration: underline; }
.site-footer {
  width: 100%; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--color-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--color-muted);
}
.site-footer p { margin: 0; font-size: 14px; }
.site-footer .heart { color: var(--color-accent-soft); }
.page-footer { background: var(--color-surface); border-top: 1px solid var(--color-line); }
.page-footer .site-footer { margin: 0; border: 0; padding-block: 24px 32px; }

/* Halaman studi kasus */
.case-hero { background: var(--color-tint); border-bottom: 1px solid var(--color-line); }
.case-hero .wrap { max-width: 816px; padding-block: 56px 48px; display: flex; flex-direction: column; gap: 18px; }
.case-hero .badge { align-self: flex-start; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.case-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.case { max-width: 816px; padding-block: 48px 80px; display: flex; flex-direction: column; gap: 36px; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0;
  background: var(--color-surface); border: 1px solid var(--color-line-soft); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.facts div { padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.facts div + div { border-left: 1px solid var(--color-line-soft); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.facts dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--color-heading); }
.case .title-bar { font-size: 24px; margin-bottom: 16px; }
.case p { margin: 0; font-size: 17px; line-height: 1.75; max-width: 68ch; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--color-line); }
.pager a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; font-weight: 600; max-width: 48%; }
.pager a:hover span:last-child { text-decoration: underline; }
.pager .next { text-align: right; margin-left: auto; }
.pager small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }

@media (max-width: 1000px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 20px; }
  .site-header .wrap { height: 64px; position: relative; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 16px 20px;
    background: var(--color-surface); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-soft);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 12px; border-radius: 8px; }
  .nav a:hover { background: var(--color-tint); }
  .nav a.nav-cta { background: transparent; color: var(--color-accent); padding: 12px; }
  .nav a.nav-cta:hover { background: var(--color-tint); color: var(--color-accent); }
  .theme-btn { align-self: flex-start; margin: 8px 12px 0; }
  .hero { padding-block: 72px 64px; }
  .hero h1 { font-size: 36px; }
  .hero .role { font-size: 19px; }
  .hero .lead { font-size: 16px; }
  .cta { flex-direction: column; align-self: stretch; }
  .btn { text-align: center; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 30px; }
  .section-head p, .bio p.summary { font-size: 16px; }
  .title-bar { font-size: 26px; }
  .projects { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project { padding: 26px 22px; }
  .contact { padding-block: 64px 32px; }
  .contact h2 { font-size: 28px; }
  .contact p { font-size: 16px; }
  .site-footer { justify-content: center; text-align: center; }
  .case-hero .wrap { padding-block: 36px 32px; }
  .case-hero h1 { font-size: 30px; }
  .case { padding-block: 36px 56px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div + div { border-left: 0; border-top: 1px solid var(--color-line-soft); }
  .pager a { max-width: 100%; }
}
