/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #F5F2EA;          /* ivory hangat, bukan putih dingin */
  --surface: #FFFFFF;
  --navy-deep: #10233F;   /* navy institusional untuk hero & footer */
  --navy: #1F3B60;
  --gold: #A9824B;        /* emas pudar, aksen formal tapi lembut */
  --ink: #202634;         /* teks utama, charcoal-navy, bukan hitam pekat */
  --muted: #6B7385;

  /* alias supaya nama variabel lama tetap konsisten dipakai di file ini */
  --accent: var(--gold);
  --white: var(--ink);
  --gray: var(--muted);
  --deep-blue: var(--navy-deep);

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(16, 35, 63, 0.1);
  --glass-blur: 14px;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

/* Loading fade */
body.is-loading * { animation-play-state: paused !important; }
body { opacity: 0; transition: opacity 0.6s var(--ease); }
body.is-ready { opacity: 1; }

/* =========================================================
   BACKGROUND FX — floating shapes + subtle grid
   ========================================================= */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 35, 63, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 63, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: floaty 16s ease-in-out infinite;
  will-change: transform;
}
.orb--red  { width: 380px; height: 380px; background: var(--gold); top: -80px; right: -60px; animation-delay: 0s; }
.orb--blue { width: 420px; height: 420px; background: var(--navy);   top: 40%;  left: -140px; animation-delay: -5s; }
.orb--navy { width: 320px; height: 320px; background: var(--navy-deep); bottom: -100px; right: 10%; animation-delay: -10s; opacity: 0.14;}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.08); }
  66%      { transform: translate(-20px, 30px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   GLASSMORPHISM
   ========================================================= */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* =========================================================
   EYEBROW / LABELS
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(169, 130, 75, 0.5);
}

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

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  cursor: pointer;
}
.btn svg { transition: transform 0.3s var(--ease); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold), #8A6B3B);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(169, 130, 75, 0.35);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(169, 130, 75, 0.45);
}
.btn--primary:hover svg { transform: translateY(3px); }

.btn--ghost {
  background: rgba(245, 242, 234, 0.06);
  border: 1px solid rgba(245, 242, 234, 0.25);
  color: #F5F2EA;
}
.btn--ghost:hover {
  transform: translateY(-3px);
  background: rgba(245, 242, 234, 0.12);
  border-color: rgba(245, 242, 234, 0.4);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(3); opacity: 0; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8vw 80px;
  background: linear-gradient(175deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #F5F2EA;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero .eyebrow { color: #C9B48A; }
.hero .eyebrow__dot { background: var(--gold); box-shadow: 0 0 10px 2px rgba(169, 130, 75, 0.5); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__status {
  font-family: var(--font-mono);
  color: #C9B48A;
  font-size: 0.95rem;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__intro {
  max-width: 46ch;
  color: rgba(245, 242, 234, 0.72);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Portrait */
.hero__portrait { position: relative; display: flex; justify-content: center; }

.portrait-card {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, var(--accent), var(--navy), var(--deep-blue), var(--accent));
  filter: blur(60px);
  opacity: 0.35;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portrait-avatar{
    width:350px;
    height:360px;
    border-radius:10%;
    object-fit:cover;
filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.portrait-tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.55);
  border: 1px solid rgba(245, 242, 234, 0.2);
  color: #F5F2EA;
  z-index: 2;
}

.portrait-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--navy-deep);
  white-space: nowrap;
}
.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(169, 130, 75, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(169,130,75,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(169,130,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(169,130,75,0); }
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--glass-border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 4px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 8vw;
  max-width: 1280px;
  margin: 0 auto;
}

.section__head { margin-bottom: 48px; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* =========================================================
   BIODATA
   ========================================================= */
.biodata-card {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.biodata-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}

.biodata-item--wide { grid-column: span 3; }

.biodata-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.biodata-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.biodata-icon svg { width: 19px; height: 19px; }

.biodata-item:hover .biodata-icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(169, 130, 75, 0.12);
  color: var(--white);
}

.biodata-item div:last-child { display: flex; flex-direction: column; gap: 2px; }

.biodata-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.biodata-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline { position: relative; padding-left: 40px; }

.timeline__line {
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--navy), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__node {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gray);
}
.timeline__node--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(169, 130, 75, 0.18);
}
.timeline__node--active::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline__card {
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.timeline__card:hover {
  transform: translateX(6px);
  border-color: rgba(169, 130, 75, 0.35);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.timeline__school {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 6px 0 8px;
}

.timeline__desc { color: var(--gray); font-size: 0.95rem; max-width: 60ch; }

/* =========================================================
   HOBBY
   ========================================================= */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.hobby-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hobby-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(169, 130, 75, 0.4);
  box-shadow: 0 24px 48px rgba(169, 130, 75, 0.18);
}

.hobby-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31,59,96,0.35), rgba(169,130,75,0.3));
  color: var(--white);
  margin-bottom: 18px;
}
.hobby-icon svg { width: 24px; height: 24px; }

.hobby-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.hobby-card p { color: var(--gray); font-size: 0.9rem; }

/* =========================================================
   MOTTO
   ========================================================= */
.section--motto { display: flex; justify-content: center; padding-top: 60px; padding-bottom: 140px; }

.motto-card {
  max-width: 720px;
  text-align: center;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-lg);
  position: relative;
}

.motto-quote {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin: 0 auto 20px;
  opacity: 0.8;
}

.motto-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}

.motto-author {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 8vw 56px;
  text-align: center;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #F5F2EA;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
  color: #F5F2EA;
}

.footer__year {
  color: #C9B48A;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.footer__thanks { color: rgba(245, 242, 234, 0.65); font-size: 0.9rem; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__intro { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__portrait { order: -1; margin-bottom: 24px; }
  .biodata-grid { grid-template-columns: repeat(2, 1fr); }
  .biodata-item--wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 6vw 60px; }
  .section { padding: 80px 6vw; }
  .biodata-grid { grid-template-columns: 1fr; }
  .biodata-item--wide { grid-column: span 1; }
  .timeline { padding-left: 32px; }
  .timeline__node { left: -32px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .btn { justify-content: center; width: 100%; }
}
