/* =========================================================
   PORTOFOLIO AKADEMIK MODERN — STATIC CPANEL READY
   Edit warna utama di bagian :root
   ========================================================= */
:root {
  --bg: #070b16;
  --bg-soft: #0c1326;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #eef3ff;
  --muted: #aab5cf;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #d7b56d;
  --primary-strong: #f0d58a;
  --accent: #79ddc8;
  --danger: #ff7a90;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1160px;
}

[data-theme="light"] {
  --bg: #f7f4ee;
  --bg-soft: #fffaf2;
  --surface: rgba(10, 18, 34, 0.055);
  --surface-strong: rgba(10, 18, 34, 0.09);
  --text: #101827;
  --muted: #526072;
  --line: rgba(16, 24, 39, 0.13);
  --primary: #9a7136;
  --primary-strong: #735122;
  --accent: #186f65;
  --shadow: 0 24px 80px rgba(40, 29, 10, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(215, 181, 109, 0.16), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(121, 221, 200, 0.12), transparent 28rem),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: var(--primary);
  color: #08111f;
  padding: 10px 14px;
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 2000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 32px rgba(215, 181, 109, 0.22);
}
.brand-text { font-size: 1rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu a,
.theme-toggle {
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a.active,
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}
.theme-toggle { min-width: 44px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.section {
  padding: 104px 0;
  position: relative;
}
.section.soft {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.035), transparent);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 11%, transparent), transparent 35%),
    url('../img/research-pattern.svg') center / 720px auto;
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.82fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  color: var(--primary-strong);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
}
.hero h1,
.section-head h2,
.section-kicker h2,
.contact-card h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.07em;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  max-width: 11ch;
}
.hero-lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  max-width: 720px;
  margin: 28px 0 0;
}
.hero-lead strong { color: var(--text); }

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #0c1326;
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(215, 181, 109, 0.25);
}
.btn-ghost,
.btn-copy {
  background: var(--surface);
  color: var(--text);
}

.academic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.academic-links a {
  color: var(--muted);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.academic-links a:hover { color: var(--text); border-color: color-mix(in srgb, var(--primary) 60%, var(--line)); }

.hero-card,
.content-card,
.contact-card {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 22px;
  transform: rotate(1.5deg);
}
.profile-frame {
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 28%, transparent), color-mix(in srgb, var(--accent) 20%, transparent));
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
}
.profile-info { padding: 22px 6px 10px; }
.profile-label { color: var(--primary-strong); margin: 0 0 6px; font-weight: 800; }
.profile-info h2 { margin: 0 0 10px; letter-spacing: -0.04em; line-height: 1.1; }
.profile-info p:last-child { color: var(--muted); margin-bottom: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.stats-grid div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.stats-grid strong { display: block; font-size: 1.5rem; color: var(--primary-strong); line-height: 1; }
.stats-grid span { color: var(--muted); font-size: 0.85rem; }

.two-col {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 52px;
  align-items: center;
}
.align-start { align-items: start; }
.section-kicker h2,
.section-head h2,
.contact-card h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}
.section-kicker p:last-child,
.section-head p,
.contact-card p {
  color: var(--muted);
}
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.content-card { padding: clamp(24px, 4vw, 42px); }
.content-card p { color: var(--muted); font-size: 1.05rem; }
.content-card p:first-child { color: var(--text); }
.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.info-list div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
}
.info-list span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 4px;
}
.info-list strong { font-size: 0.98rem; }
.info-list a { color: var(--primary-strong); }

.expertise-grid,
.project-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.expertise-card,
.project-card,
.course-grid article,
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.expertise-card:hover,
.project-card:hover,
.course-grid article:hover,
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  background: var(--surface-strong);
}
.card-icon,
.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding-inline: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary-strong);
  font-weight: 900;
  margin-bottom: 18px;
}
.expertise-card h3,
.project-card h3,
.course-grid h3 {
  margin: 0 0 10px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}
.expertise-card p,
.project-card p,
.course-grid p,
.gallery-card figcaption {
  color: var(--muted);
  margin-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.timeline-item span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0c1326;
  font-weight: 900;
}
.timeline-item h3 { margin: 0 0 5px; letter-spacing: -0.03em; }
.timeline-item p { color: var(--muted); margin: 0; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.filter-btn.active,
.filter-btn:hover {
  color: #0c1326;
  background: var(--primary);
  border-color: transparent;
}
.publication-list { display: grid; gap: 14px; }
.publication-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.publication-card.is-hidden { display: none; }
.publication-card:hover { transform: translateX(6px); }
.pub-year {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-weight: 950;
}
.pub-type {
  margin: 0 0 5px;
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.publication-card h3 { margin: 0 0 8px; letter-spacing: -0.03em; line-height: 1.2; }
.publication-card p:not(.pub-type) { margin: 0 0 12px; color: var(--muted); }
.publication-card a { color: var(--primary-strong); font-weight: 800; }

.project-grid { grid-template-columns: repeat(3, 1fr); }
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-card {
  min-height: 230px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,0.35)),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, transparent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.gallery-card span {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.contact-section { padding-top: 70px; }
.contact-card {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 20%, transparent), transparent 25rem),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
}
.contact-card h2 { max-width: 850px; }
.contact-actions { justify-content: flex-end; margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--text); }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 3000;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .contact-card {
    grid-template-columns: 1fr;
  }
  .hero h1 { max-width: 100%; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .gallery-grid { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 74px 0; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 76px 14px auto;
    display: grid;
    align-content: start;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(24px);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu a,
  .theme-toggle { width: 100%; text-align: left; border-radius: 16px; }
  .hero { min-height: auto; padding-top: 58px; }
  .hero-card { transform: none; }
  .info-list,
  .expertise-grid,
  .course-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .publication-card {
    grid-template-columns: 1fr;
  }
  .pub-year { width: max-content; padding-inline: 16px; height: 44px; border-radius: 999px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
