/* ============================================================
   Profil Pribadi v2 — Luqman Zahid Abdurrokhman
   Gaya: Editorial Minimalis (monokrom + 1 aksen, light/dark)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --accent: #2563eb;

  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e5e5;
  --text: #171717;
  --text-soft: #525252;
  --text-faint: #a3a3a3;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --accent: #60a5fa;

  --bg: #0a0a0a;
  --surface: #141414;
  --border: #262626;
  --text: #ededed;
  --text-soft: #a3a3a3;
  --text-faint: #616161;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

.container { width: min(1060px, 90%); margin: 0 auto; }

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); }

.nav { display: flex; gap: 4px; }

.nav-link {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--accent); }

.topbar-actions { display: flex; align-items: center; gap: 6px; }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { color: var(--text); background: var(--surface); }
.theme-toggle svg { width: 19px; height: 19px; }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 38px; height: 38px; justify-content: center; align-items: center; border-radius: 8px; }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 1px; transition: all 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(600px 320px at 85% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 56px;
  align-items: center;
}

.kicker { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); margin-bottom: 18px; }

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 22px;
}

.accent-dot { color: var(--accent); }

.hero-role { font-size: 1.1rem; font-weight: 500; color: var(--text-soft); margin-bottom: 14px; }

.hero-focus { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.08em; margin-bottom: 24px; }

.hero-desc { color: var(--text-soft); max-width: 520px; margin-bottom: 32px; }

.hero-cta { display: flex; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-head);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--accent); color: #fff; }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-side { display: flex; justify-content: center; }

.photo {
  position: relative;
  width: 260px;
}
.photo::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  z-index: 0;
}
.photo img, .photo .avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface);
  filter: grayscale(12%) contrast(1.02);
}
.avatar {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 700;
  color: var(--text-faint);
}
.avatar-img { display: none; }
.has-photo .avatar { display: none; }
.has-photo .avatar-img { display: block; }

.photo-caption {
  position: absolute;
  z-index: 1;
  bottom: -18px;
  right: -4px;
  background: var(--bg);
  color: var(--text-faint);
  padding: 2px 8px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ---------- SECTION ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 48px; }

.section-num { color: var(--accent); font-size: 0.82rem; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.section-sub { color: var(--text-soft); margin-top: -32px; margin-bottom: 40px; }

/* ---------- TENTANG ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
}

.about-body p { color: var(--text-soft); margin-bottom: 18px; max-width: 56ch; }
.about-body strong { color: var(--text); font-weight: 600; }

.facts { border-top: 1px solid var(--border); }

.fact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.fact dt { color: var(--text-faint); font-size: 0.78rem; padding-top: 3px; }
.fact dd { color: var(--text); font-weight: 500; }

/* ---------- PENDIDIKAN ---------- */
.edu-row {
  display: grid;
  grid-template-columns: 130px 1fr 1.2fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.edu-row:last-child { border-bottom: none; }

.edu-when { color: var(--text-faint); font-size: 0.8rem; padding-top: 4px; }

.edu-what h3 { font-size: 1.2rem; margin-bottom: 4px; }
.edu-what p { color: var(--accent); font-size: 0.92rem; font-weight: 500; }

.edu-note { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- SKILL ---------- */
.skill-groups { display: flex; flex-direction: column; gap: 40px; }

.skill-group { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: start; }

.skill-group-name { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); padding-top: 6px; letter-spacing: 0.05em; }

.skill-group-items { display: flex; flex-direction: column; }

.skill-item {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.skill-item:last-child { border-bottom: none; }

.skill-item-name { font-weight: 500; font-size: 0.98rem; }
.skill-item-name em { font-style: normal; color: var(--text-faint); font-size: 0.82rem; font-weight: 400; }

.dots { display: flex; gap: 6px; justify-content: flex-end; }
.dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--text-faint);
}
.dots i.on { background: var(--accent); border-color: var(--accent); }

/* ---------- TOOLS ---------- */
.tools-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.tool-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.tool-item:hover { background: var(--surface); }

.tool-name { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }

.tool-cat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.05em; }

/* ---------- HOBI ---------- */
.hobby-list { display: flex; flex-direction: column; max-width: 640px; }

.hobby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 1.02rem;
  font-weight: 500;
}
.hobby-item:last-child { border-bottom: none; }
.hobby-item .mono { color: var(--text-faint); }

/* ---------- KONTAK ---------- */
.contact-block { max-width: 640px; }

.contact-label { color: var(--text-faint); margin-bottom: 12px; }

.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 40px;
  transition: color 0.2s ease;
}
.contact-email:hover { color: var(--accent); }

.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-link .mono { font-size: 0.72rem; color: var(--text-faint); }

/* ---------- FOOTER ---------- */
.footer { padding: 36px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-side { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .edu-row { grid-template-columns: 100px 1fr; }
  .edu-note { grid-column: 2; }
  .skill-group { grid-template-columns: 1fr; gap: 14px; }
  .tools-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px;
    gap: 4px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px; }
  .hamburger { display: flex; }
  .edu-row { grid-template-columns: 1fr; gap: 8px; }
  .edu-note { grid-column: 1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}