/* ============================================
   TOKENS
   ============================================ */
:root {
  --bg: #14171a;
  --panel: #1b1f23;
  --panel-alt: #21262b;
  --accent: #f2641a;
  --accent-soft: rgba(242, 100, 26, 0.14);
  --blueprint: #6f9cd1;
  --blueprint-soft: rgba(111, 156, 209, 0.1);
  --text: #ecedee;
  --text-muted: #9aa3ab;
  --rivet: #3a4046;
  --border: #2a3035;

  --font-display: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1040px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }

::selection { background: var(--accent); color: #14171a; }

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================
   BLUEPRINT GRID BACKGROUND
   ============================================ */
.blueprint-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--blueprint-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at top, black, transparent 75%);
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}
.mark__dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.nav a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav__num { color: var(--accent); font-size: 0.7rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  text-align: center;
}

.hero__inner {
  max-width: 720px;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--blueprint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
}
.eyebrow__line {
  width: 28px;
  height: 1px;
  background: var(--blueprint);
}

.nameplate {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--panel-alt), var(--panel));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 48px 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}

.nameplate__gear-bg {
  position: absolute;
  top: 50%;
  right: -80px;
  width: 460px;
  height: 460px;
  transform: translateY(-50%);
  color: var(--blueprint);
  opacity: 0.05;
  z-index: 0;
  animation: spin 48s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .nameplate__gear-bg { animation: none; }
}

.nameplate__rivet {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rivet);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.5);
}
.nameplate__rivet--tl { top: 14px; left: 14px; }
.nameplate__rivet--tr { top: 14px; right: 14px; }
.nameplate__rivet--bl { bottom: 14px; left: 14px; }
.nameplate__rivet--br { bottom: 14px; right: 14px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.nameplate__photo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 176px;
  aspect-ratio: 640 / 710;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.nameplate__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}
.nameplate__photo-tag {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: rgba(20, 23, 26, 0.85);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(111, 156, 209, 0.35);
  color: var(--blueprint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.nameplate__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  z-index: 2;
}
.nameplate__corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.nameplate__corner--tr { top: -1px; right: -1px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.nameplate__corner--bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.nameplate__corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.nameplate__text {
  position: relative;
  z-index: 1;
}

.hero__name {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero__tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 14px 0 10px;
}

.hero__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--blueprint);
  margin: 0;
}
.hero__meta .dot { margin: 0 10px; color: var(--border); }

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: var(--accent);
  color: #14171a;
  font-weight: 500;
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 18px 36px; font-size: 0.95rem; }

.hero__scroll {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.hero__scroll span {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--blueprint), transparent);
}

/* ============================================
   SECTION HEAD
   ============================================ */
.panel-section {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 24px 20px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}
.section-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  white-space: nowrap;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   PANEL (Tentang / Rencana)
   ============================================ */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px;
}
.panel--highlight {
  border-color: rgba(242, 100, 26, 0.35);
  background: linear-gradient(155deg, var(--accent-soft), var(--panel));
}
.panel__lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 500;
}
.panel__body {
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   SKILL GRID (Minat & Keahlian)
   ============================================ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.skill-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.skill-card:hover {
  border-color: var(--blueprint);
  transform: translateY(-3px);
}
.skill-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blueprint);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.skill-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.skill-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ============================================
   RECORD LIST (Prestasi)
   ============================================ */
.record-list__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.record-list__item:last-child { border-bottom: none; }
.record-list__code {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 3px;
  margin-top: 3px;
}
.record-list__item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.record-list__item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.panel-section--kontak { padding-bottom: 140px; }
.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 56px 40px;
  text-align: center;
}
.contact-card__text {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px 40px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .topbar.is-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .topbar.is-open .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nameplate {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 24px;
  }
  .nameplate__photo { width: 148px; }
  .nameplate__gear-bg { width: 340px; height: 340px; right: -60px; }
  .skill-grid { grid-template-columns: 1fr; }
  .section-head h2 { white-space: normal; }
  .panel-section { padding: 72px 20px 16px; }
}
