/* ==========================================================
   muktiaji.web.id — pure black dark theme
   ========================================================== */

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #08080a;
  --surface-2: #0e0e11;
  --surface-3: #141418;
  --border: #1c1c20;
  --border-2: #2a2a30;
  --text: #f4f4f5;
  --muted: #9d9da8;
  --dim: #6b6b76;
  --accent: #3b82f6;
  --accent-2: #7aa9f7;
  --green: #4ade80;
  --yellow: #fbbf24;
  --purple: #a78bfa;
  --red: #f87171;
  --grid: rgba(255, 255, 255, 0.033);
  --glow: rgba(59, 130, 246, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 820px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --surface-3: #ececee;
  --border: #e4e4e7;
  --border-2: #d4d4d8;
  --text: #09090b;
  --muted: #52525b;
  --dim: #71717a;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --green: #16a34a;
  --yellow: #b45309;
  --purple: #7c3aed;
  --red: #dc2626;
  --grid: rgba(0, 0, 0, 0.045);
  --glow: rgba(37, 99, 235, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(880px 420px at 50% -140px, var(--glow), transparent 72%),
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sprite { display: none; }

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.ico.blue { color: var(--accent); }
.ico.yellow { color: var(--yellow); }
.ico.red { color: var(--red); }
.ico.arrow { color: var(--dim); font-size: 14px; }

button, input { font: inherit; color: inherit; }
a { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.hdr { display: flex; align-items: center; gap: 14px; height: 48px; }

.site-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.pill-avail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}
.pill-avail .dot { width: 6px; height: 6px; }

.lang-group {
  display: flex;
  border: 1px solid var(--border-2);
  border-radius: 7px;
  overflow: hidden;
}
.lang-group button {
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lang-group button + button { border-left: 1px solid var(--border-2); }
.lang-group button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 27px;
  font-size: 14px;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 7px;
  cursor: pointer;
}
[data-theme="dark"] .icon-btn { color: var(--yellow); }
.icon-btn:hover { border-color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 58px 0 10px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 48px;
  align-items: start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 20px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 7px;
}
.hero-badge .ico { font-size: 11px; color: var(--accent); }

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.role-line {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.role-line .gt { color: var(--accent); }

.hero-desc {
  max-width: 54ch;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s, border-color .15s, background-color .15s;
}
.btn .ico { font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-2);
}
.btn-outline:hover { border-color: var(--accent); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 11.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--border-2); background: var(--surface-2); }
.chip .ico { font-size: 12px; }

/* ---------- profile card ---------- */

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pc-bar, .term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.pc-bar i, .term-bar i { width: 8px; height: 8px; border-radius: 50%; }
i.r { background: #ff5f57; }
i.y { background: #febc2e; }
i.g { background: #28c840; }
.pc-bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
}

.pc-body {
  margin: 0;
  padding: 13px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
}
.pc-body .k { color: var(--accent-2); }
.pc-body .s { color: var(--green); }
.pc-body .p { color: var(--dim); }

/* ---------- sections ---------- */

.section { padding: 52px 20px; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  color: var(--accent);
  opacity: 0.85;
}

h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.sec-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-2); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}
.card-icon.blue { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.card-icon.green { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.card-icon.purple { color: var(--purple); background: color-mix(in srgb, var(--purple) 14%, transparent); }

.card-index {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
  white-space: nowrap;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 0 0 14px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.skill-list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.skill-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  font-size: 11.5px;
  color: var(--text);
}
.skill-list li + li { border-top: 1px solid var(--border); }
.skill-list .ico { font-size: 11px; color: var(--dim); }
.skill-list span { flex: 1; min-width: 0; }
.skill-list .lv {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.lv.high { color: var(--accent); }
.lv.mid { color: var(--accent-2); }
.lv.low { color: var(--yellow); }

/* ---------- projects ---------- */

.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  border: 1px solid;
  border-radius: 5px;
}
.tag.blue {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.tag.yellow {
  color: var(--yellow);
  border-color: color-mix(in srgb, var(--yellow) 38%, transparent);
  background: color-mix(in srgb, var(--yellow) 12%, transparent);
}

.proj-link { color: var(--dim); font-size: 13px; display: inline-flex; }
.proj-link:hover { color: var(--accent); }

.proj-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
.proj-foot .ico { font-size: 12px; }

/* ---------- certifications ---------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cert .ico { font-size: 15px; color: var(--accent); }
.cert strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}
.cert span {
  display: block;
  font-size: 10px;
  color: var(--dim);
  line-height: 1.4;
}

/* ---------- terminal ---------- */

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
}

.term-bar .path { margin-left: 4px; font-size: 10.5px; color: var(--muted); }
.term-bar .shell { margin-left: auto; font-size: 9.5px; color: var(--dim); }

.term-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.term-presets .lbl { font-size: 10px; color: var(--dim); margin-right: 2px; }

.preset {
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  cursor: pointer;
}
.preset:hover { color: var(--text); border-color: var(--accent); }
.preset.clear {
  margin-left: auto;
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}
.preset.clear:hover { border-color: var(--red); color: var(--red); }

.term-out {
  padding: 14px;
  min-height: 118px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.term-out .ln { white-space: pre-wrap; word-break: break-word; }
.term-out .hi { color: var(--text); }
.term-out .ac { color: var(--accent-2); }
.term-out .ok { color: var(--green); }

.term-input-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
}
.term-input-row .prompt { font-size: 10.5px; color: var(--accent-2); white-space: nowrap; }
.term-input-row input {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}
.term-input-row input::placeholder { color: var(--dim); }

.run-btn {
  padding: 5px 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.run-btn:hover { filter: brightness(1.1); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: start;
}

.contact-desc {
  max-width: 46ch;
  margin: 12px 0 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.email-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.email-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 7px;
}
.email-meta { flex: 1; min-width: 0; }
.email-meta span { display: block; font-size: 9.5px; color: var(--dim); line-height: 1.4; }
.email-meta strong {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soc-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  padding: 9px 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background-color .15s;
}
.social-row:hover { border-color: var(--border-2); background: var(--surface-2); }
.social-row span { flex: 1; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot-left { display: inline-flex; align-items: center; gap: 7px; }
.foot-left .dot { width: 6px; height: 6px; }
.foot-right { display: inline-flex; align-items: center; gap: 6px; }
.foot-right .ico { font-size: 11px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .profile-card { max-width: 380px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
  .sec-note:empty { display: none; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill-avail { display: none; }
}

@media (max-width: 540px) {
  .grid-3, .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .section { padding: 40px 20px; }
  .email-card { flex-wrap: wrap; }
  .email-meta { flex: 1 1 100%; order: 2; }
  h1 { font-size: clamp(30px, 9vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- footer links ---------- */

.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.proj-foot a { color: var(--dim); text-decoration: none; }
.proj-foot a:hover { color: var(--accent); }

/* ---------- subpages: privacy & docs ---------- */

.page { padding: 44px 0 8px; }

.page .crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  text-decoration: none;
}
.page .crumb:hover { color: var(--accent); }

.page h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); }

.page .lead {
  max-width: 62ch;
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.meta-row .chip { cursor: default; }
.meta-row a.chip:hover { border-color: var(--accent); }

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  margin-bottom: 28px;
}
.policy-card h3 {
  margin: 24px 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  scroll-margin-top: 70px;
}
.policy-card h3:first-child { margin-top: 0; }
.policy-card p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.policy-card ul { margin: 0 0 12px; padding-left: 20px; }
.policy-card li { margin-bottom: 4px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.policy-card li::marker { color: var(--accent); }
.policy-card strong { color: var(--text); font-weight: 600; }
.policy-card a { color: var(--accent); }
.policy-card .contact-line { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
