/* Reset ringan */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

:root {
  --bg: #ffffff;
  --text: #0b0b0c;
  --muted: #5f6368;
  --primary: #0b57d0;
  --surface: #f5f7fb;
  --card: rgba(255,255,255,0.7);
  --border: rgba(0,0,0,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --bg-image: url("../assets/theme light.png");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --text: #f5f5f7;
    --muted: #b0b3b8;
    --primary: #8ab4f8;
    --surface: #141416;
    --card: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --bg-image: url("../assets/theme dark.png");
  }
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--bg);
  background-image:
    linear-gradient(color-mix(in oklab, var(--bg) 42%, transparent), color-mix(in oklab, var(--bg) 42%, transparent)),
    var(--bg-image),
    radial-gradient(900px 500px at 10% -10%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(800px 460px at 90% 0%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 72%),
    linear-gradient(to bottom, color-mix(in oklab, var(--surface) 60%, transparent), transparent 220px);
  background-size: cover, cover, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
  padding-bottom: 88px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .2;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 3vw;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2)); }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text); padding: 10px 12px; border-radius: 10px; }
.nav-links a:hover { background: var(--surface); }

/* Theme toggle button */
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 8px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle .icon { font-size: 16px; line-height: 1; }

/* Language switcher */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lang-btn { appearance: none; background: transparent; color: var(--text); border: 0; padding: 8px 10px; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--surface); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-links { position: fixed; inset: 60px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 4vw; display: grid; gap: 6px; transform: translateY(-120%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
}

.btn { display: inline-block; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: var(--text); background: var(--surface); }
.btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn.ghost { background: transparent; border-color: var(--border); }
/* Micro-interaction */
.btn { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:active { transform: translateY(1px); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 8vh 4vw;
  min-height: 78vh;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 6vh; gap: 20px; }
}

.hero h1 { font-size: clamp(28px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 10px; }
.hero p { font-size: clamp(16px, 2.4vw, 18px); color: var(--muted); margin: 0 0 20px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-media { position: relative; height: min(60vh, 520px); border-radius: 24px; background: radial-gradient(1200px 400px at 30% 30%, color-mix(in oklab, var(--primary) 30%, transparent), transparent), linear-gradient(160deg, var(--surface), transparent 70%); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.hero-media .glow { position: absolute; inset: -20%; background: conic-gradient(from 180deg at 50% 50%, transparent, color-mix(in oklab, var(--primary) 65%, transparent), transparent 70%); filter: blur(40px) saturate(140%); animation: spin 16s linear infinite; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

.section { padding: 80px 0; }
.section.no-bottom { padding-bottom: 24px; }
.section h2 { font-size: clamp(22px, 4vw, 32px); margin: 0 0 20px; }
.section p { margin: 0 0 14px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(10px); padding: 18px; border-radius: 16px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.12); }
.link { text-decoration: none; color: var(--primary); }
.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 10px;
}
.media-image,
.card .news-image {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in oklab, var(--card) 70%, var(--surface));
}
.card .news-image {
  aspect-ratio: 16 / 9;
}
.media-image.is-loading::before,
.card .news-image.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 10%,
    color-mix(in oklab, var(--text) 10%, transparent) 45%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.2s infinite;
}
.media-image img,
.card .news-image img {
  width: 100%;
  height: auto;
  margin-bottom: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.card .news-image img {
  height: 100%;
  object-fit: cover;
}
.media-image.is-loaded img,
.card .news-image.is-loaded img {
  opacity: 1;
}
.media-image.is-error::before,
.card .news-image.is-error::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--card) 82%, var(--surface));
}
.media-image.is-error::after,
.card .news-image.is-error::after {
  content: 'Foto belum tersedia';
  position: absolute;
  inset: auto 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .2px;
}
.media-image.is-error img,
.card .news-image.is-error img {
  opacity: 0;
}
@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}
.news-summary {
  margin: 0;
}
.read-more-toggle-text {
  border: 0;
  background: transparent;
  padding: 0 0 0 4px;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
}
.read-more-toggle-text:hover {
  text-decoration: underline;
}

/* Semua foto dari folder assets tampil dengan sudut lengkung */
img[src^="assets/"] {
  border-radius: 14px;
}
.brand img,
img[src*="favicon"] {
  border-radius: 0;
}

/* Pastikan gambar dalam artikel juga konsisten */
#article-cover,
#article-content img {
  border-radius: 14px !important;
}
#article-cover {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 10px 0 16px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: start;
}
.article-main.card,
.article-side.card {
  padding: 20px;
}
.article-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.article-side-title {
  margin: 0 0 10px;
  font-size: 16px;
}
.article-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
}
.article-share {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* Search bar */
.searchbar { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0 18px; }
.searchbar input[type="search"] { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-btn { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.tag-btn[aria-pressed="true"] { background: color-mix(in oklab, var(--primary) 12%, var(--surface)); border-color: transparent; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; } }
.timeline .time { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .item {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
.generation-group { margin-bottom: 24px; }
.generation-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}
.person {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(170%) blur(12px);
  -webkit-backdrop-filter: saturate(170%) blur(12px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.person:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  border-color: color-mix(in oklab, var(--primary) 24%, var(--border));
  background: color-mix(in oklab, var(--card) 80%, var(--surface));
}
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 26px;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-fallback {
  display: none;
}
.avatar.is-loading {
  position: relative;
}
.avatar.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 10%,
    color-mix(in oklab, var(--text) 10%, transparent) 45%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.2s infinite;
}
.avatar.is-error .avatar-image {
  display: none;
}
.avatar.is-error .avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.person .role {
  margin: 4px 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.person .desc {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 6px;
}
.person .email {
  font-size: 13px;
  margin: 0 0 6px;
}
.person .email a {
  color: var(--primary);
  text-decoration: none;
}
.person .email a:hover {
  text-decoration: underline;
}
.mini-social {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.mini-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, background-color .15s ease;
}
.mini-social a:hover {
  transform: translateY(-1px);
  background: color-mix(in oklab, var(--primary) 16%, var(--surface));
}
.btn.small {
  padding: 7px 10px;
  font-size: 13px;
  margin-top: 6px;
}
.team-guide {
  margin-top: 28px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 85%, transparent);
  backdrop-filter: saturate(170%) blur(12px);
  -webkit-backdrop-filter: saturate(170%) blur(12px);
}
.team-guide h2 {
  margin-top: 0;
  font-size: 18px;
}
.team-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.team-guide li + li { margin-top: 6px; }

.cta { text-align: center; }

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--border);
  padding: 12px 0;
  color: var(--muted);
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  z-index: 45;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
}
.site-footer.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.site-footer .container {
  min-height: 44px;
}

/* Animasi reveal saat scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
/* Staggered reveal for child elements */
.stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.stagger.in-view > * { opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(1) { transition-delay: .05s; }
.stagger.in-view > *:nth-child(2) { transition-delay: .1s; }
.stagger.in-view > *:nth-child(3) { transition-delay: .15s; }
.stagger.in-view > *:nth-child(4) { transition-delay: .2s; }
.stagger.in-view > *:nth-child(5) { transition-delay: .25s; }
.stagger.in-view > *:nth-child(6) { transition-delay: .3s; }

/* Smooth scroll */
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 80px; /* Memberikan ruang untuk header sticky */
}

/* Fallback untuk browser yang tidak mendukung scroll-behavior */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* Timeline bar (horizontal) */
.timeline-bar { margin: 20px 0 34px; }
.timeline-bar .bar-track { position: relative; height: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.timeline-bar .bar-fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in oklab, var(--primary) 35%, transparent); border-radius: 999px; }
.timeline-bar .milestone { position: absolute; top: 50%; transform: translate(-50%, -50%); background: var(--bg); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; font-size: 12px; color: var(--text); text-decoration: none; cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 600px) { .timeline-bar .milestone { font-size: 11px; padding: 3px 6px; } }

/* Social links */
.social { display: flex; gap: 10px; align-items: center; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .15s ease, background-color .2s ease; }
.social a:hover { transform: none; background: color-mix(in oklab, var(--primary) 12%, var(--surface)); }
.social .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Explicit theme overrides via data-theme attribute */
[data-theme="light"] {
  --bg: #ffffff;
  --text: #0b0b0c;
  --muted: #5f6368;
  --primary: #0b57d0;
  --surface: #f5f7fb;
  --card: rgba(255,255,255,0.7);
  --border: rgba(0,0,0,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --bg-image: url("../assets/theme light.png");
}
[data-theme="dark"] {
  --bg: #0b0b0c;
  --text: #f5f5f7;
  --muted: #b0b3b8;
  --primary: #8ab4f8;
  --surface: #141416;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
  --bg-image: url("../assets/theme dark.png");
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


