/* ==========================================================================
   style.css — Seluruh tampilan website (FRONTEND)
   File ini dipanggil oleh index.html melalui <link rel="stylesheet">.
   Memisahkan CSS dari HTML adalah praktik standar: HTML untuk isi,
   CSS untuk tampilan, JS untuk perilaku.
   ========================================================================== */

/* 1. VARIABEL WARNA & FONT — ubah di sini untuk mengganti tema seluruh situs */
:root {
  --paper:      #F7F6F1;
  --paper-2:    #EFEDE5;
  --ink:        #14202B;
  --ink-2:      #1C2C3A;
  --ink-soft:   #55616E;
  --line:       #DAD7CC;
  --brass:      #A67A28;
  --brass-lite: #C79A44;
  --danger:     #B4472E;
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, sans-serif;
  --mono:  "JetBrains Mono", monospace;
  --maxw: 1080px;
}

/* 2. RESET & DASAR */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--paper); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass);
}

/* 3. NAVIGASI ATAS */
header.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(20,32,43,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.nav-name { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--paper); }
.nav-name span { color: var(--brass-lite); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: .8rem; color: #B8C0C8; letter-spacing: .04em; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brass-lite); }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); cursor: pointer; font-size: 1.2rem; }

/* 4. HERO */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 34px; pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px;
  align-items: center; padding: 84px 0 92px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.01em; margin: 18px 0 22px;
}
.hero h1 .credentials {
  display: block; font-size: .95rem; font-family: var(--mono); color: var(--brass-lite);
  letter-spacing: .04em; margin-top: 16px; font-weight: 400;
}
.hero-role { font-size: 1.08rem; color: #C4CCD3; max-width: 46ch; border-left: 2px solid var(--brass); padding-left: 18px; }
.hero-role strong { color: var(--paper); font-weight: 600; }
.portrait {
  aspect-ratio: 4/5;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.14);
  background-image: url('foto.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.portrait .mono-initials { font-family: var(--serif); font-size: 5rem; color: var(--brass-lite); opacity: .9; }
.portrait .photo-hint {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; color: rgba(255,255,255,.35); text-transform: uppercase;
}
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.stat { padding: 26px 4px 30px; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: 2.1rem; color: var(--paper); line-height: 1; }
.stat .num em { color: var(--brass-lite); font-style: normal; }
.stat .lbl { font-family: var(--mono); font-size: .68rem; color: #97A0A8; letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; line-height: 1.4; }

/* 5. SECTION UMUM */
section { padding: 82px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 44px; }
.sec-index { font-family: var(--mono); font-size: .8rem; color: var(--brass); padding-top: 6px; }
.sec-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 66ch; }

/* 6. TENTANG + FOKUS */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 52px; }
.about-grid p + p { margin-top: 16px; }
.focus-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 26px 26px 30px; align-self: start; }
.focus-box h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .82rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 40px; background: var(--paper); color: var(--ink-2); }

/* 7. TIMELINE */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-when { font-family: var(--mono); font-size: .78rem; color: var(--brass); padding-top: 3px; }
.tl-role { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; }
.tl-org { color: var(--ink-soft); font-size: .95rem; margin: 2px 0 8px; }
.tl-desc { color: var(--ink-soft); font-size: .95rem; max-width: 62ch; }

/* 8. PENDIDIKAN */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edu-card { border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--paper-2); }
.edu-card .yr { font-family: var(--mono); font-size: .74rem; color: var(--brass); letter-spacing: .06em; }
.edu-card .deg { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin: 8px 0 4px; }
.edu-card .inst { color: var(--ink-soft); font-size: .92rem; }

/* 9. PUBLIKASI */
.pub-list { display: grid; gap: 0; }
.pub { display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); transition: padding-left .25s ease; }
.pub:first-child { border-top: 0; }
.pub:hover { padding-left: 10px; }
.pub .py { font-family: var(--mono); font-size: .8rem; color: var(--brass); }
.pub .pt { font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.pub .pj { color: var(--ink-soft); font-size: .9rem; margin-top: 3px; }
.pub .pq { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--brass); border: 1px solid var(--brass); border-radius: 4px; padding: 3px 8px; white-space: nowrap; align-self: center; }

/* 10. BUKU */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.book { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--paper-2); border-left: 3px solid var(--brass); }
.book .by { font-family: var(--mono); font-size: .72rem; color: var(--brass); }
.book .bt { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; margin: 8px 0 6px; line-height: 1.3; }
.book .bp { color: var(--ink-soft); font-size: .84rem; }

/* INTERNATIONAL HIGHLIGHTS */
.highlights-section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.highlight-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 38px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--brass);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20,32,43,.14);
}

.highlight-card .eyebrow {
  color: var(--brass-lite);
}

.highlight-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.25;
  margin: 15px 0 18px;
}

.highlight-card p {
  color: #C4CCD3;
  font-size: .96rem;
  line-height: 1.7;
}

.highlight-meta {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--brass-lite);
  letter-spacing: .06em;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* Kartu pertama dibuat lebih besar */
.highlight-card:first-child {
  grid-column: span 2;
}

@media (max-width: 860px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card:first-child {
    grid-column: span 1;
  }

  .highlight-card {
    padding: 30px 24px;
  }
}

/* 12. KONTAK (FRONTEND FORM) + FOOTER */
footer { background: var(--ink); color: var(--paper); padding: 78px 0 42px; }
footer .sec-title { color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-lead { font-size: 1.1rem; color: #C4CCD3; max-width: 38ch; margin-bottom: 28px; }
.contact-list { display: grid; gap: 2px; }
.contact-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact-row .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8A939B; }
.contact-row .v { color: var(--paper); font-size: .9rem; text-align: right; }
.contact-row a.v:hover { color: var(--brass-lite); }

/* Form */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8A939B; margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px; padding: 12px 14px; color: var(--paper); font-family: var(--sans); font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brass-lite); background: rgba(255,255,255,.06); }
.form-field textarea { resize: vertical; min-height: 120px; }
/* Honeypot: kolom jebakan anti-spam, disembunyikan dari manusia */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--brass); color: #14202B; border: 0; border-radius: 5px;
  font-family: var(--sans); font-weight: 600; font-size: .92rem; padding: 13px 26px;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--brass-lite); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.form-note { margin-top: 14px; font-size: .88rem; min-height: 1.2em; }
.form-note.ok { color: #7FBF8F; }
.form-note.err { color: #E39B86; }

.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: .7rem; color: #8A939B; letter-spacing: .06em; }

/* 13. ANIMASI REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 14. RESPONSIVE */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 62px; left: 0; right: 0; background: var(--ink-2); padding: 8px 28px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links.open a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 68px; }
  .portrait { max-width: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .edu-grid, .book-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .pub { grid-template-columns: 44px 1fr; }
  .pub .pq { grid-column: 2; justify-self: start; margin-top: 6px; }
  .highlight { padding: 32px 24px; }
}
