/* ===========================================================
   YUSFI IKHWAN -- Portfolio CSS
   Mobile-first, low-bandwidth optimized, dark/light theme
=========================================================== */

/* --- THEME VARIABLES --------------------------------------- */
:root { --transition-theme: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease; }

[data-theme="dark"] {
  --bg: #0a0a0b; --bg-2: #111114; --bg-3: #18181c; --bg-4: #1f1f24;
  --surface: rgba(255,255,255,0.04); --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.07); --border-strong: rgba(255,255,255,0.15);
  --text: #f0ede8; --text-2: #a09d98; --text-3: #6b6865;
  --accent: #c9a96e; --accent-2: #e8c98a; --accent-glow: rgba(201,169,110,0.15);
  --red: #e05a5a;
  --orb-1: rgba(201,169,110,0.08); --orb-2: rgba(120,100,200,0.06);
  --shadow: 0 8px 40px rgba(0,0,0,0.6); --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --nav-blur: rgba(10,10,11,0.88); --modal-bg: #111114;
  --input-bg: rgba(255,255,255,0.05); --input-border: rgba(255,255,255,0.12);
  --skeleton-from: #1a1a1e; --skeleton-to: #26262c;
  --section-glass: rgba(10,10,11,0.55);
  --section-glass-about: rgba(10,10,11,0.72);
}
[data-theme="light"] {
  --bg: #f7f4f0; --bg-2: #eeebe5; --bg-3: #e5e0d8; --bg-4: #ddd7cc;
  --surface: rgba(0,0,0,0.04); --surface-hover: rgba(0,0,0,0.07);
  --border: rgba(0,0,0,0.07); --border-strong: rgba(0,0,0,0.15);
  --text: #1c1a17; --text-2: #5a5550; --text-3: #9a9590;
  --accent: #8b6914; --accent-2: #a07d1a; --accent-glow: rgba(139,105,20,0.10);
  --red: #c0392b;
  --orb-1: rgba(201,169,110,0.12); --orb-2: rgba(120,100,200,0.08);
  --shadow: 0 8px 40px rgba(0,0,0,0.12); --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --nav-blur: rgba(247,244,240,0.92); --modal-bg: #f7f4f0;
  --input-bg: rgba(0,0,0,0.04); --input-border: rgba(0,0,0,0.12);
  --skeleton-from: #e8e4de; --skeleton-to: #ddd8d1;
  --section-glass: rgba(247,244,240,0.60);
  --section-glass-about: rgba(247,244,240,0.80);
}

/* --- RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg); color: var(--text);
  transition: var(--transition-theme);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

/* --- NAVBAR ------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: var(--nav-blur);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-theme);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
  height: 56px; display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text); flex-shrink: 0;
}
.nav-logo em { font-style: normal; color: var(--accent); }
.logo-mark { font-size: 1.1rem; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-2); transition: color 0.2s; padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--text); }
.theme-toggle {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all 0.2s; flex-shrink: 0;
  min-width: 44px; min-height: 44px;
}
.theme-toggle:hover { background: var(--surface-hover); color: var(--accent); }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; margin-left: auto;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); transition: all 0.3s; border-radius: 1px; }
.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); }

/* Mobile nav */
.nav-mobile {
  display: none; flex-direction: column; padding: 0.75rem 1.25rem 1.25rem;
  gap: 0.25rem; border-top: 1px solid var(--border);
  background: var(--nav-blur);
}
.nav-mobile.show { display: flex; }
.nav-mobile-link {
  font-size: 1rem; color: var(--text-2); padding: 0.75rem 0;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); min-height: 44px;
  display: flex; align-items: center;
}
.nav-mobile-link:last-child { border-bottom: none; }

/* === GLOBAL PARALLAX -- 1 FOTO PENUH, TENGAH VIEWPORT ==== */
.global-parallax {
  position: fixed; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
}
.gp-slot {
  position: absolute;
  top: -12%; bottom: -12%; left: 0; right: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.gp-slot.gp-active { opacity: 1; }

/* Overlay global */
.global-parallax-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
[data-theme="dark"]  .global-parallax-overlay {
  background: linear-gradient(135deg, rgba(10,10,11,0.82) 0%, rgba(10,10,11,0.55) 50%, rgba(10,10,11,0.75) 100%);
}
[data-theme="light"] .global-parallax-overlay {
  background: linear-gradient(135deg, rgba(247,244,240,0.86) 0%, rgba(247,244,240,0.62) 50%, rgba(247,244,240,0.82) 100%);
}

/* --- HERO (transparent -- pakai global parallax) ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 5rem 1.25rem 3rem;
  /* Tidak perlu background sendiri -- global parallax di belakang */
  background: transparent;
}
/* Grain texture tetap di hero */
.hero-grain {
  position: absolute; inset: 0; opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}
.hero-content { position: relative; max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 300; line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 1.25rem; opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1rem); color: var(--text-2);
  max-width: 400px; line-height: 1.7; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  padding: 0.75rem 1.75rem; font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; border: none; border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s; display: inline-flex;
  align-items: center; min-height: 44px;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text);
  padding: 0.75rem 1.75rem; font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 2px;
  transition: all 0.2s; display: inline-flex; align-items: center; min-height: 44px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 1.25rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  opacity: 0; animation: fadeIn 1s 1.2s forwards;
}
.hero-scroll-hint span {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.5;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }

/* --- SECTIONS ----------------------------------------------- */
.section {
  padding: 4rem 1.25rem; max-width: 1280px; margin: 0 auto;
  /* Backdrop blur ringan agar teks terbaca di atas parallax */
  position: relative;
}
/* Subtle glass card di belakang konten section */
.section::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--section-glass);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border-radius: 0;
  z-index: -1;
  pointer-events: none;
}
.section-header { margin-bottom: 2rem; }
.section-label {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1; letter-spacing: -0.01em; margin-bottom: 0.6rem;
}
.section-desc { color: var(--text-2); font-size: 0.9rem; }

/* --- FILTER BAR --------------------------------------------- */
.filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  padding: 0.35rem 0.85rem; font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.04em; border-radius: 100px;
  transition: all 0.2s; min-height: 36px;
}
.filter-btn:hover { background: var(--surface-hover); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* --- SKELETON LOADER ---------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.skeleton-card {
  aspect-ratio: 4/3; border-radius: 4px;
  background: linear-gradient(90deg, var(--skeleton-from) 25%, var(--skeleton-to) 50%, var(--skeleton-from) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

/* --- MEDIA GRID --------------------------------------------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.media-card {
  position: relative; border-radius: 4px; overflow: hidden;
  background: var(--bg-3); cursor: pointer; aspect-ratio: 4/3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Prevent text selection on tap */
  -webkit-user-select: none; user-select: none;
}
/* On mobile: no hover transform to avoid sticky states */
@media (hover: hover) {
  .media-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow); }
}
.media-card img, .media-card video {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
@media (hover: hover) {
  .media-card:hover img, .media-card:hover video { transform: scale(1.06); }
}
.media-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
}
/* Always show overlay on touch devices */
@media (hover: none) { .media-card-overlay { opacity: 1; } }
@media (hover: hover) { .media-card:hover .media-card-overlay { opacity: 1; } }
.media-card-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1rem;
  font-weight: 400; color: #fff; margin-bottom: 0.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-card-cat {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.media-card-type {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.65rem; padding: 0.15rem 0.45rem;
  border-radius: 100px; letter-spacing: 0.04em;
}
.video-thumb-wrapper { position: relative; width: 100%; height: 100%; }
.video-play-icon {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; pointer-events: none;
}
.video-play-icon svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }

/* --- EMPTY STATE -------------------------------------------- */
.empty-state {
  grid-column: 1 / -1; display: flex; flex-direction: column;
  align-items: center; padding: 3rem 1.5rem; color: var(--text-3);
  text-align: center; border: 1px dashed var(--border); border-radius: 4px;
}
.empty-icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.4; }
.empty-state p { font-size: 0.88rem; line-height: 1.7; }

/* --- ABOUT -------------------------------------------------- */
.section-about {
  max-width: 100%; padding: 4.5rem 1.25rem;
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-theme);
  position: relative;
}
.about-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.about-text p { color: var(--text-2); line-height: 1.8; margin-bottom: 1rem; font-size: 0.92rem; }
.about-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem;
  font-weight: 300; color: var(--accent); line-height: 1;
}
.stat span:last-child {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3);
}
/* Visual frame -- bisa foto atau placeholder art */
.about-visual { display: flex; justify-content: center; }
.about-photo-frame {
  width: 300px; height: 380px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
}
/* Foto profil dari galeri */
.about-profile-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
  transition: transform 0.6s ease;
}
@media (hover: hover) {
  .about-photo-frame:hover .about-profile-photo { transform: scale(1.03); }
}
/* Placeholder art (sebelum foto tersedia) */
.about-placeholder-art { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.art-ring { position: absolute; border-radius: 50%; border: 1px solid var(--accent); animation: ringPulse 3s ease-in-out infinite; }
.art-ring-1 { width: 120px; height: 120px; opacity: 0.15; }
.art-ring-2 { width: 84px;  height: 84px;  opacity: 0.25; animation-delay: -1s; }
.art-ring-3 { width: 48px;  height: 48px;  opacity: 0.4;  animation-delay: -2s; }
@keyframes ringPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
.art-symbol { font-size: 1.75rem; color: var(--accent); position: relative; z-index: 1; }

/* --- FOOTER ------------------------------------------------- */
.footer { padding: 2.5rem 1.25rem; border-top: 1px solid var(--border); background: var(--bg); transition: var(--transition-theme); }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand em { font-style: normal; color: var(--accent); }
.footer-copy { font-size: 0.78rem; color: var(--text-3); font-family: 'DM Mono', monospace; }
.footer-admin-link { color: var(--text-3); text-decoration: none; margin-left: 1rem; font-size: 0.75rem; transition: color 0.2s; }
.footer-admin-link:hover { color: var(--accent); }

/* --- MODAL SHARED ------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  /* Mobile: align to bottom */
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--modal-bg); border: 1px solid var(--border-strong);
  border-radius: 10px; width: 100%; max-width: 540px; max-height: 90svh;
  overflow-y: auto; transform: translateY(20px); transition: transform 0.3s, background-color 0.4s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; }
.modal-close {
  background: none; border: none; color: var(--text-2); font-size: 1rem;
  padding: 0.25rem; line-height: 1; transition: color 0.2s; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--red); }
.modal-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-footer {
  padding: 0.75rem 1.5rem 1.25rem; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap;
}
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-size: 0.78rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.03em; }
.form-row input, .form-row select, .form-row textarea {
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: 4px; color: var(--text); padding: 0.6rem 0.85rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; outline: none;
  transition: border-color 0.2s; width: 100%;
  /* iOS font size fix -- prevent zoom on focus */
  font-size: max(16px, 0.88rem);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-row select option { background: var(--bg-2); }
.form-row textarea { resize: vertical; line-height: 1.6; }
.optional { color: var(--text-3); font-weight: 400; }

/* --- LIGHTBOX ----------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-media {
  max-width: 92vw; max-height: 80svh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-media img { max-width: 92vw; max-height: 80svh; object-fit: contain; border-radius: 3px; }
.lightbox-media video { max-width: 92vw; max-height: 80svh; border-radius: 3px; }
.lightbox-close, .lightbox-nav {
  position: fixed; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; min-width: 44px; min-height: 44px;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 1rem; right: 1rem; width: 42px; height: 42px; font-size: 1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.4rem; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-info {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  padding: 2.5rem 1.25rem 1.25rem; text-align: center;
}
.lightbox-info h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400; color: #fff; margin-bottom: 0.25rem; }
.lightbox-info p { font-size: 0.78rem; color: rgba(255,255,255,0.5); font-family: 'DM Mono', monospace; }

/* --- YOUTUBE LIGHTBOX --------------------------------------- */
.yt-iframe-wrap { width: min(92vw, 960px); aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #000; }
.yt-iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.yt-thumb-wrapper img { object-fit: cover; }

/* --- ANIMATIONS --------------------------------------------- */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* --- SCROLLBAR (Chromium only, suppressed in Firefox) ------- */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}

/* --- TOAST -------------------------------------------------- */
.toast {
  position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-4); border: 1px solid var(--border-strong); color: var(--text);
  padding: 0.7rem 1.5rem; border-radius: 100px; font-size: 0.85rem;
  z-index: 400; opacity: 0; transition: all 0.3s; white-space: nowrap;
  box-shadow: var(--shadow); max-width: calc(100vw - 2rem); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--accent); }
.toast.error   { border-color: var(--red); color: var(--red); }

/* --- PROTEKSI DOWNLOAD --------------------------------------- */
.media-card img, .media-card video,
.lightbox-media img, .lightbox-media video {
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-user-drag: none; pointer-events: none;
}
.media-card, .lightbox-media { pointer-events: all; }
video::-webkit-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-enclosure { overflow: hidden; }

/* --- RESPONSIVE: TABLET ------------------------------------- */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo-frame { width: 100%; height: 220px; }
  .about-visual { justify-content: stretch; }
  .hero-scroll-hint { display: none; }
}

/* --- RESPONSIVE: MOBILE ------------------------------------- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  /* Reset margin-left yang diberikan ke nav-links */

  .hero { padding: 4.5rem 1rem 2.5rem; min-height: 85svh; }
  .hero-title { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero-sub { font-size: 0.88rem; }
  .hero-actions { gap: 0.6rem; }
  .btn-primary, .btn-ghost { padding: 0.7rem 1.25rem; font-size: 0.82rem; }

  .section { padding: 3rem 1rem; }
  .section-about { padding: 3rem 1rem; }

  .media-grid, .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  /* Lightbox mobile: nav buttons di bawah */
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-media { max-width: 100vw; }
  .lightbox-media img, .lightbox-media video { max-width: 100vw; border-radius: 0; }

  .about-stats { gap: 1.5rem; }
  .filter-bar { gap: 0.35rem; }
  .filter-btn { padding: 0.3rem 0.65rem; font-size: 0.75rem; }

  .modal { border-radius: 12px 12px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: 100%; max-height: 92svh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-overlay.open .modal { transform: translateY(0); }
}

/* --- LOW BANDWIDTH: prefers-reduced-data -------------------- */
/* prefers-reduced-data: handled via JS isLowBandwidth() */

/* --- CAROUSEL CARD --------------------------------------- */
.carousel-dots {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; align-items: center; pointer-events: none;
}
.cdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: background 0.2s;
}
.cdot.active { background: #fff; }
.cdot-more { font-size: 0.6rem; color: rgba(255,255,255,0.6); font-family: 'DM Mono',monospace; }

/* --- LIGHTBOX CAPTION ------------------------------------ */
.lightbox-caption {
  font-size: 0.9rem; color: rgba(255,255,255,0.85); font-style: italic;
  margin-bottom: 0.25rem; max-width: 600px; margin: 0 auto 0.4rem;
  line-height: 1.6;
}

/* --- SECTION CONTROLS (per-page + total count) ----------- */
.section-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1rem; padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.perpage-selector {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-2);
}
.perpage-select {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 6px; color: var(--text);
  padding: 0.3rem 0.6rem; font-size: 0.82rem;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: border-color 0.2s; min-height: 36px;
}
.perpage-select:focus { outline: none; border-color: var(--accent); }
.perpage-select option { background: var(--bg-2); }
.total-count {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--text-3); letter-spacing: 0.08em;
}

/* --- PAGINATOR ------------------------------------------- */
.paginator {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.35rem; margin-top: 2rem; padding: 0.5rem 0;
}
.page-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); border-radius: 6px; cursor: pointer;
  min-width: 38px; height: 38px; padding: 0 0.6rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.page-btn:hover:not(.disabled):not(.active) {
  background: var(--surface-hover); color: var(--text); border-color: var(--border-strong);
}
.page-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: var(--bg); font-weight: 500; cursor: default;
}
.page-btn.disabled { opacity: 0.35; cursor: not-allowed; }
.page-ellipsis {
  color: var(--text-3); font-size: 0.9rem;
  display: flex; align-items: center; padding: 0 0.2rem;
}

/* Mobile paginator */
@media (max-width: 640px) {
  .page-btn { min-width: 34px; height: 34px; font-size: 0.8rem; }
  .section-controls { flex-direction: column; align-items: flex-start; }
}

/* --- SECTION ABOUT: background transparan (global parallax)
   .section::before pakai --section-glass (0.55), tapi about punya
   variable sendiri. Override dengan opacity 0 di section-about::before
   lalu gunakan ::after untuk layer about yang tipis.                  */
.section-about::before {
  /* Matikan layer default dari .section::before */
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.section-about::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--section-glass-about);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

/* FOOTER juga transparan */
.footer { position: relative; }
.footer::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--section-glass);
  pointer-events: none;
}

/* --- CONTACT SECTION ------------------------------------- */
.section-contact {
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.25rem;
  text-decoration: none; color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
/* Garis warna kiri dari platform */
.contact-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--social-color, var(--accent));
  border-radius: 2px 0 0 2px;
  opacity: 0.8;
}
@media (hover: hover) {
  .contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--social-color, var(--accent));
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  }
}
.contact-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border-radius: 10px;
}
.contact-icon-svg svg {
  width: 22px; height: 22px; display: block;
}
.contact-info { flex: 1; min-width: 0; }
.contact-platform {
  font-size: 0.7rem; font-family: 'DM Mono',monospace;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 0.15rem;
}
.contact-handle {
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-arrow {
  color: var(--text-3); font-size: 1rem; flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.contact-card:hover .contact-arrow {
  transform: translate(2px,-2px); color: var(--social-color,var(--accent));
}
.contact-empty {
  color: var(--text-3); font-size: 0.88rem; padding: 1rem 0;
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .contact-card { padding: 0.85rem 0.85rem; }
  .contact-handle { font-size: 0.82rem; }
}

/* ===========================================================
   AUDIO PLAYER -- Controls + Now Playing Marquee
=========================================================== */

/* --- Audio controls (mute + volume slider) di navbar ------- */
/* ===========================================================
   AUDIO CONTROLS + NOW PLAYING
   Layout desktop : [???? vol] [???][??? marquee][???] [???]
   Layout mobile  : [????]     [???][???]         [???] [???]
   (marquee & volume slider disembunyikan di mobile)
=========================================================== */

/* -- Mute button + volume slider ---------------------------- */
.audio-controls {
  display: none;          /* JS tampilkan saat audio siap */
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.audio-mute-btn {
  background: none; border: none;
  color: var(--text-2); cursor: pointer;
  /* Sama tinggi dengan theme-toggle (44px touch target) */
  width: 34px; height: 34px;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.audio-mute-btn svg { width: 16px; height: 16px; }
.audio-mute-btn:hover { color: var(--accent); background: var(--surface); }

/* Volume: tampil saat hover, tersembunyi saat tidak hover */
.audio-volume-wrap {
  display: flex; align-items: center;
  width: 0; overflow: hidden;
  transition: width 0.3s ease;
}
.audio-controls:hover .audio-volume-wrap,
.audio-controls:focus-within .audio-volume-wrap { width: 64px; }
.audio-volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 64px; height: 3px;
  background: var(--border-strong); border-radius: 2px;
  outline: none; cursor: pointer; accent-color: var(--accent);
}
.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
}
.audio-volume-slider::-moz-range-thumb {
  width: 11px; height: 11px; border: none;
  border-radius: 50%; background: var(--accent); cursor: pointer;
}

/* -- np-player: [???][??? marquee][???] ------------------------ */
.np-player {
  display: none;          /* JS tampilkan saat audio siap */
  align-items: center;
  gap: 0;
  flex: 1;                /* isi ruang tersisa, marquee mengembang */
  min-width: 0;
  max-width: 400px;
  margin: 0 0.25rem;
}

/* Tombol ??? ??? -- matching theme-toggle: border, surface, rounded pill */
.np-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 34px; height: 34px;
  min-width: 34px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
#npPrev { border-radius: 50% 0 0 50%; border-right: none; }
#npNext { border-radius: 0 50% 50% 0; }
.np-btn svg { width: 14px; height: 14px; pointer-events: none; }
.np-btn:hover { background: var(--surface-hover); color: var(--accent); border-color: var(--accent); }
#npPrev:hover { border-right: none; }

/* Marquee: fill antara dua tombol */
.np-marquee-wrap {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 0.3rem;
  overflow: hidden; height: 34px; padding: 0 0.4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.np-icon {
  font-size: 0.58rem; color: var(--accent); flex-shrink: 0;
  animation: npPulse 1.6s ease-in-out infinite;
}
@keyframes npPulse { 0%,100%{opacity:.35;} 50%{opacity:1;} }
.np-marquee {
  display: inline-block; white-space: pre;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.05em; color: var(--text-2);
  animation: npScroll 20s linear infinite;
  will-change: transform;
}
@keyframes npScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* -- Mobile ???640px: sembunyikan audio+prev/next+theme dari nav-inner --
   Mereka dipindahkan ke nav-mobile-footer di dalam menu hamburger       */
@media (max-width: 640px) {
  .audio-controls { display: none !important; }
  .np-player      { display: none !important; }
  .theme-toggle   { display: none !important; }
  /* nav-inner: hanya logo + hamburger */
  .nav-inner { gap: 0; padding: 0 1rem; }
  .hamburger { margin-left: auto; }
}

/* -- nav-mobile-footer: baris bawah menu hamburger -- */
.nav-mobile-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem; gap: 0.75rem;
}

/* Theme toggle di footer mobile -- sama style dengan desktop */
.theme-toggle-mobile {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all 0.2s; flex-shrink: 0;
  min-width: 44px; min-height: 44px; cursor: pointer;
}
.theme-toggle-mobile:hover { background: var(--surface-hover); color: var(--accent); }

/* Audio row di footer mobile: [????] [???] [??? marquee] [???] */
.nav-mobile-audio {
  flex: 1; display: none; /* JS tampilkan saat ada musik */
  align-items: center; gap: 0; min-width: 0;
}
/* Mute di mobile footer -- sedikit lebih kecil dari desktop */
.nav-mobile-audio .audio-mute-btn {
  width: 38px; height: 38px; min-width: 38px; min-height: 44px;
  border-radius: 50%; flex-shrink: 0;
}
.nav-mobile-audio .audio-mute-btn svg { width: 16px; height: 16px; }
/* Tombol prev/next di mobile footer */
.nav-mobile-audio .np-btn {
  width: 34px; height: 34px; min-width: 34px; min-height: 44px;
}
.nav-mobile-audio .np-btn svg { width: 14px; height: 14px; }
/* Marquee wrap di mobile footer: fill sisa ruang */
.np-marquee-mobile {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 0.3rem;
  overflow: hidden; height: 34px; padding: 0 0.4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* --- AUDIO TOAST -- "Tap untuk mulai musik" ---------------- */
#audioToast {
  position: fixed;
  bottom: 1.5rem; right: 1.25rem;
  z-index: 9100;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg-4);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 0.6rem 0.75rem 0.6rem 0.9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  cursor: pointer;
  /* Mulai tersembunyi, animasi masuk */
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: auto;
  max-width: calc(100vw - 2.5rem);
}
#audioToast.at-show {
  opacity: 1; transform: translateY(0);
}
.at-icon {
  font-size: 0.9rem; color: var(--accent);
  animation: npPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.at-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--text-2); white-space: nowrap;
}
.at-btn {
  background: var(--accent); border: none;
  color: var(--bg); font-size: 0.7rem;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
  transition: opacity 0.15s;
}
.at-btn:hover { opacity: 0.85; }
