:root {
  --gold: #d4af37;
  --dark-bg: #050505;
  --text-muted: #b5b5b5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
/* Music Button Style */
.music-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: 0.3s;
}

.music-btn:hover {
  background: var(--gold);
  color: #000;
}

/* Animasi Bar Musik (Wave) */
.music-wave {
  display: none; /* Muncul saat musik menyala */
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-left: 5px;
}
.music-wave span {
  width: 2px;
  background: var(--gold);
  animation: wave 1s infinite ease-in-out;
}
.music-wave span:nth-child(2) {
  animation-delay: 0.2s;
}
.music-wave span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 12px;
  }
}

.music-btn.playing i {
  display: none;
}
.music-btn.playing .music-wave {
  display: flex;
}

/* Context Text Glow */
.context-text {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

body::-webkit-scrollbar {
  display: none;
}

/* Definisikan Variabel Warna */
:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --gold: #d4af37;
  --muted-text: #b5b5b5;
  --card-bg: rgba(255, 255, 255, 0.03);
  --input-bg: rgba(255, 255, 255, 0.05);
}

/* Warna untuk Light Mode */
[data-theme="light"] {
  --bg-color: #f4f4f4;
  --text-color: #1a1a1a;
  --gold: #b08d26; /* Gold sedikit lebih gelap agar terbaca di background terang */
  --muted-text: #555555;
  --card-bg: rgba(0, 0, 0, 0.05);
  --input-bg: rgba(0, 0, 0, 0.03);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition:
    background 0.5s ease,
    color 0.5s ease; /* Transisi halus saat ganti tema */
}

/* Update semua elemen agar menggunakan variabel */
.abstract-bg {
  background: var(--bg-color);
}

.brush-stroke {
  background: var(--gold);
}
.context-text {
  color: var(--muted-text);
}
.wish-box {
  background: var(--card-bg);
}

/* Tombol Theme */
.theme-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
.theme-btn:hover {
  background: var(--gold);
  color: var(--bg-color);
}

/* Backgrounds */
.abstract-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(125deg, #0a0a1a 0%, #1a0a2e 50%, #050505 100%);
  z-index: -2;
}
.paper-overlay {
  position: fixed;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/black-linen.png");
  opacity: 0.1;
  z-index: 100;
  pointer-events: none;
}

/* Container untuk icon + teks */
.header-control-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px; /* Jarak antara icon dan teks */
}

/* Styling teks kecil di bawah icon */
.control-label {
  font-size: 8px; /* Sangat kecil agar elegan */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 400;
  opacity: 0.8;
}

/* Pastikan button tidak punya margin bawah agar teks pas */
.music-btn,
.theme-btn {
  margin-bottom: 0;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 999;
  /* backdrop-filter: blur(15px); */
  /* border-bottom: 1px solid rgba(212, 175, 55, 0.1); */
  display: flex;
  align-items: center;
}
.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo .initials {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
}

/* --- HEADER COUNTDOWN STYLING --- */
.header-countdown-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.countdown-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.8;
  margin: 0;
}

.header-countdown {
  display: flex;
  gap: 8px;
}

.time-segment {
  text-align: center;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 45px;
}

.time-value {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

.time-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--text-color);
  opacity: 0.6;
}

/* Header Countdown */
.header-countdown {
  display: flex;
  gap: 10px;
}
.time-segment {
  text-align: center;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 5px 10px;
  border-radius: 8px;
  min-width: 60px;
}
.time-value {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}
.time-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
}

/* Panels & Wrapper */
.wrapper {
  height: 600vh;
  position: relative;
}
.panel {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  background: transparent !important; /* WAJIB: Supaya p-2 kelihatan dari p-1 */
}

/* Pastikan Page 1 punya z-index lebih tinggi di awal */
.p-1 {
  z-index: 10;
}
.p-2 {
  z-index: 5;
}

/* Content Layout */
.content-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 85%;
  max-width: 1100px;
}
.side-reverse {
  flex-direction: row-reverse;
}

.image-box {
  position: relative;
  width: 350px;
  height: 450px;
  flex-shrink: 0;
}
.image-box .img,
iframe {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}
.box-shadow-premium {
  position: absolute;
  inset: 10px;
  box-shadow: 0 40px 100px rgba(212, 175, 55, 0.15);
  z-index: 0;
}
.frame-line {
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--gold);
  z-index: 1;
  opacity: 0.6;
}

/* Typography */
.text-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  font-style: italic;
  margin: 10px 0;
}
.text-content p i {
  color: var(--gold);
  margin-right: 8px;
  font-size: 0.8rem;
}
.brush-stroke {
  width: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0.5;
  margin-bottom: 20px;
}
.context-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 400px;
  font-weight: 300;
}

/* Dot Nav */
.dot-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 9999;
}
.dot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}
.dot-circle {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  transition: 0.4s;
}
.dot-label {
  margin-right: 20px;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(10px);
  transition: 0.4s;
}
.dot.active .dot-circle {
  background: var(--gold);
  transform: scale(1.5);
  box-shadow: 0 0 15px var(--gold);
}
.dot.active .dot-label,
.dot:hover .dot-label {
  opacity: 1;
  transform: translateX(0);
}

/* Form */
.wish-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
  width: 100%;
  pointer-events: auto;
}
.wish-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold);
  color: #fff;
  padding: 12px 0;
  margin-bottom: 20px;
  outline: none;
  font-family: inherit;
}
.btn-send {
  width: 100%;
  padding: 15px;
  background: var(--gold);
  border: none;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 2px;
}

.footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.5;
  z-index: 100;
}

/* --- LAYOUT LOADER / COVER --- */
.loader-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

/* --- TYPOGRAPHY --- */
/* .intro-reveal h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: #d4af37; } */
.guest-box {
  margin: 30px 0;
}
.guest-box h3 {
  font-size: 1.8rem;
  margin: 10px 0;
  color: #fff;
}
.line-decor {
  width: 60px;
  height: 1px;
  background: #d4af37;
  margin: 15px auto;
}

#btn-open-invitation {
  margin-top: 20px;
  padding: 12px 30px;
  background: #d4af37;
  border: none;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  letter-spacing: 2px;
}

/* Button Premium Style */
.btn-premium {
  position: relative;
  padding: 15px 35px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;

  /* --- BAGIAN UNTUK KETENGAH --- */
  display: flex;
  align-items: center; /* Tengah secara vertikal */
  justify-content: center; /* Tengah secara horizontal */
  margin: 0 auto; /* Tengah secara posisi (kalau dia elemen blok) */
  /* ---------------------------- */

  gap: 15px;
  border-radius: 2px;
}

.btn-premium i {
  font-size: 14px;
  transition: transform 0.4s ease;
}

/* Efek Hover */
.btn-premium:hover {
  background: var(--gold);
  color: var(--bg-color);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-premium:hover i {
  transform: translateX(5px) rotate(-10deg);
}

/* Efek Cahaya Mengalir (Shine Effect) */
.btn-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn-premium:hover::before {
  left: 100%;
}

#btn-open-invitation-PAGE2 {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 9999 !important;
}

.text-content {
  z-index: 100 !important;
}

/* halaman awal */
/* ==========================================
   LOADER / COVER SYSTEM (ANTI-KETIMPAH)
   ========================================== */
#loader-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #050505;
  z-index: 10000; /* Paling atas dari seluruh web */
  display: flex;
  overflow: hidden;
}

.loader-container {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Di atas bintang */
}

/* --- SISI GAMBAR --- */
.loader-image-side {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
}

.img-wrapper {
  position: relative;
  width: 75%;
  height: 80%;
  z-index: 5;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  /* border: 1px solid rgba(212, 175, 55, 0.3); */
}

.luxury-frame {
  position: absolute;
  inset: -15px; /* Lebih lebar dari gambar */
  border: 2px solid var(--gold);
  z-index: 6;
  pointer-events: none;
  opacity: 0.5;
}

/* --- SISI TEKS (SISI KANAN) --- */
.loader-text-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
  position: relative;
  overflow: hidden;
}

/* ==========================================
   ANIMASI KHUSUS LOADER (ADD-ON)
   ========================================== */

/* 1. Efek Denyut Frame Emas */
/* --- CONTAINER FOTO SETENGAH HALAMAN --- */
.luxury-image-container {
  position: relative;
  width: 80%; /* Lebar tidak full box kiri agar ada gap */
  height: 85vh; /* Hampir setinggi layar */
  margin-left: auto; /* Mepet ke arah pembatas tengah */
  margin-right: 5%;
  overflow: visible;
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 5;
  clip-path: inset(0); /* Menjaga foto tetap di jalurnya */
  border-radius: 4px;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(80%) contrast(110%);
  transition: transform 10s ease-out;
}

/* --- EFEK SHIMMER MEWAH (PENGGANTI PULSE) --- */
.luxury-frame,
.frame-line2 {
  position: absolute;
  inset: -10px;
  /* border: 1px solid var(--gold); */
  border: none;
  z-index: 6;
  pointer-events: none;
  opacity: 0.6;
  overflow: hidden;
}

/* Garis Cahaya Mengalir di Frame */
.luxury-frame::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    25deg,
    transparent 45%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 55%
  );
  animation: shimmerGold 6s infinite ease-in-out;
}

/* --- DEKORASI GARIS TAMBAHAN (KYK PAGE 2) --- */
.frame-line-accent {
  position: absolute;
  top: 20px;
  left: -20px;
  right: 20px;
  bottom: -20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  z-index: 4;
  pointer-events: none;
}

/* Ornamen Bunga (Diperkecil agar tidak norak) */
.flower-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  background: url("https://www.transparentpng.com/download/gold-floral/gold-floral-transparent-images-11.png")
    no-repeat;
  background-size: contain;
  z-index: 7;
  opacity: 0.8;
}
.top-left {
  top: -20px;
  left: -20px;
  transform: rotate(-90deg);
}
.bottom-right {
  bottom: -20px;
  right: -20px;
  transform: rotate(90deg);
}

/* --- ANIMASI --- */
@keyframes shimmerGold {
  0% {
    transform: translate(-30%, -30%) rotate(0deg);
  }
  100% {
    transform: translate(30%, 30%) rotate(0deg);
  }
}

/* 5. Teks "The Wedding of" Berdenyut Halus */
h2.intro-reveal {
  animation: textGlow 2s infinite alternate ease-in-out;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 5px rgba(212, 175, 55, 0);
  }
  to {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  }
}

/* Konten Utama (Harus Z-Index Tertinggi) */
.loader-content {
  position: relative;
  z-index: 20; /* Pastikan di atas bunga melayang */
  text-align: center;
  width: 100%;
}

/* Typography Loader */
/* --- TYPOGRAPHY LOADER (JUDUL 3D) --- */
h1.intro-reveal {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 10vw, 5.5rem) !important;
  color: #f1d279 !important; /* Warna emas lebih terang agar kontras */
  text-align: center;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 5px;
  margin: 15px 0;

  /* Setup Ruang 3D */
  transform-style: preserve-3d;
  display: block;

  /* --- DEEP 3D LAYERED SHADOW --- */
  /* Membuat efek ketebalan huruf seperti logam padat */
  text-shadow:
    0 1px 0 #b08d26,
    0 2px 0 #a38220,
    0 3px 0 #8f711c,
    0 4px 0 #7a6118,
    0 5px 0 #614d13,
    0 6px 1px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.5) !important;

  /* Animasi Goyang 3D (Gabungan swing dan float) */
  animation: swing3D 5s infinite ease-in-out !important;
}

/* Animasi khusus simbol & agar tidak ikut tebal (elegan) */
h1.intro-reveal span {
  display: inline-block;
  color: var(--gold);
  font-style: italic;
  font-family: "serif";
  text-shadow: none !important;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
  transform: translateZ(20px); /* Membuat '&' melayang di depan nama */
}

/* Keyframe Gerakan 3D yang Dinamis */
@keyframes swing3D {
  0%,
  100% {
    transform: translateY(0) rotateY(-10deg) rotateX(5deg);
  }
  50% {
    transform: translateY(-15px) rotateY(10deg) rotateX(-5deg);
  }
}

@keyframes float3D {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-10px) rotateX(5deg);
  }
}

.intro-reveal h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.8rem, 2vw, 1.1rem); /* Ukuran proporsional */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 8px; /* Jarak huruf lebar khas undangan mewah */
  color: var(--gold);
  margin-bottom: 5px;
  display: block;
  opacity: 0.9;

  /* Efek Gradasi Emas pada Teks */
  background: linear-gradient(to right, #b08d26, #f1d279, #b08d26);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Bayangan halus agar teks tidak 'tenggelam' */
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));

  /* Animasi napas (glow) */
  animation: cinematicGlow 3s infinite alternate ease-in-out;
}

/* Garis dekorasi kecil di kiri-kanan teks "The Wedding of" (Opsional tapi keren) */
.title-wrap h2::before,
.title-wrap h2::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 15px;
  opacity: 0.5;
}

@keyframes cinematicGlow {
  from {
    letter-spacing: 8px;
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0));
    opacity: 0.7;
  }
  to {
    letter-spacing: 10px; /* Teks seolah meregang pelan */
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    opacity: 1;
  }
}

.title-wrap {
  perspective: 1000px; /* Memberikan efek ruang untuk animasi 3D */
  margin-bottom: 20px;
}

.intro-reveal {
  display: block;
  will-change: transform, opacity;
}

.guest-box {
  margin: 40px 0;
  padding: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
/* --- CONTAINER ANIMASI GLOBAL (PASTI MUNCUL) --- */
/* --- CONTAINER ANIMASI GLOBAL --- */
.dynamic-elements {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100000 !important; /* Di atas konten, di bawah header */
  pointer-events: none;
  overflow: hidden;
}

/* --- STYLING BINTANG (GLOW) --- */
.glow-particle {
  position: absolute;
  background: #f1d279 !important; /* Emas terang */
  border-radius: 50%;
  box-shadow: 0 0 10px #d4af37;
}

/* Variasi Ukuran & Posisi Bintang */
.gp-1 {
  width: 3px;
  height: 3px;
  top: 15%;
  left: 10%;
  animation: twinkleDust 5s infinite !important;
}
.gp-2 {
  width: 5px;
  height: 5px;
  top: 45%;
  left: 85%;
  filter: blur(1px);
  animation: twinkleDust 7s infinite 1s !important;
}
.gp-3 {
  width: 2px;
  height: 2px;
  top: 75%;
  left: 20%;
  animation: twinkleDust 6s infinite 2s !important;
}
.gp-4 {
  width: 4px;
  height: 4px;
  top: 30%;
  left: 60%;
  filter: blur(1px);
  animation: twinkleDust 8s infinite 0.5s !important;
}
.gp-5 {
  width: 3px;
  height: 3px;
  top: 85%;
  left: 70%;
  animation: twinkleDust 9s infinite 1.5s !important;
}
.gp-6 {
  width: 6px;
  height: 6px;
  top: 10%;
  left: 40%;
  filter: blur(2px);
  animation: twinkleDust 10s infinite !important;
}

/* --- KEYFRAMES --- */
@keyframes twinkleDust {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  50% {
    transform: translate(30px, -20px) scale(1.2);
    opacity: 0.8;
  }
}

.panoramic-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.couple-full-img {
  position: absolute;
  width: 150%; /* Dibuat lebih lebar supaya bisa digeser */
  height: 100%;
  left: 0;

  /* --- TARO LINK FOTO GANDENGAN DI SINI --- */
  background-image: url("https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2070");

  background-size: cover; /* Agar foto menutupi seluruh layar */
  background-position: center; /* Mulai dari tengah */
  filter: brightness(70%); /* Biar teks putihnya nanti kebaca jelas */
  will-change: transform; /* Optimasi performa agar tidak lag saat geser */
}

.text-overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  padding: 40px;
  pointer-events: none;
}

/* Posisi awal info pria & wanita */
.groom-info {
  left: -20%;
  top: 30%;
  opacity: 0;
}
.bride-info {
  right: -20%;
  top: 30%;
  opacity: 0;
}

/* --- CONTAINER TEXT OVERLAY --- */
.couple-details {
  padding: 30px;
  background: rgba(
    0,
    0,
    0,
    0.2
  ); /* Gelap tipis agar teks kontras dengan foto */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  transform: translate(120px, -90px);
  max-width: 450px;
  margin: 0 auto;
}

.title-label {
  font-size: 0.8rem;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.8;
}

.couple-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.couple-name span {
  font-size: 1.2rem; /* Gelar dibuat lebih kecil agar nama utama menonjol */
  font-weight: 300;
  opacity: 0.7;
}

/* Garis Pembatas Emas */
.name-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 15px auto;
}

.parent-info {
  font-size: 0.9rem;
  color: #f4f4f4;
  line-height: 1.6;
  font-weight: 300;
}

.parent-info b {
  color: var(--gold);
  font-weight: 500;
}

.social-link {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.6;
  letter-spacing: 1px;
}

.top-decor {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px var(--gold));
}

/* ============================================================
   ULTIMATE MOBILE RESPONSIVE (FULL FIX)
   ============================================================ */
@media (max-width: 768px) {
  /* --- 1. HEADER (VERTICAL NAV & COMPACT) --- */
  .main-header {
    height: auto !important;
    padding: 10px 0;
    background: transparent !important;
    z-index: 10001;
  }

  .header-container {
    width: 92%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Sejajarkan ke atas */
  }

  /* Susun Tombol Musik & Tema ATAS-BAWAH */
  .header-left {
    /* flex-direction: column !important; */
    gap: 4px !important;
    margin-top: 12px;
    align-items: center;
  }

  .logo {
    display: block !important;
    margin-top: -2px; /* Tarik sedikit ke atas agar lebih rapat dengan tombol */
  }

  /* Ini bagian untuk mengecilkan teks logonya */
  .logo .initials {
    font-size: 14px !important; /* Request: Perkecil (sesuaikan angkanya jika mau lebih kecil lagi) */
    letter-spacing: 1px !important; /* Jarak huruf lebih rapat agar mungil */
    font-weight: 600 !important;
  }

  .header-control-item {
    gap: 2px !important;
  }

  .music-btn,
  .theme-btn {
    width: 32px !important; /* Request: Kecilkan */
    height: 32px !important;
    font-size: 0.75rem !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
  }

  /* Sembunyikan Label Teks & Tanggal */
  .control-label,
  .header-date {
    display: none !important;
  }

  /* Countdown di Kanan (Judul Muncul) */
  .header-countdown-group {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    scale: 0.75;
    transform-origin: right top;
  }

  .countdown-title {
    display: block !important;
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: var(--gold);
  }

  .header-countdown {
    gap: 4px;
  }

  .time-segment {
    min-width: 38px;
    padding: 4px 2px;
    background: rgba(212, 175, 55, 0.1);
  }

  /* --- 2. LOADER / COVER (GAMBAR KECIL) --- */
  .loader-container {
    flex-direction: column !important;
  }

  .loader-image-side {
    margin-top: 40px;
    height: 30vh !important; /* Dikecilkan */
    flex: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .luxury-image-container {
    width: 60% !important; /* Request: Gambar Awal Kecil */
    height: 80% !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .loader-text-side {
    flex: none !important;
    height: 55vh;
    padding: 20px 10px !important;
  }

  h1.intro-reveal {
    font-size: 2.5rem !important; /* Ukuran judul disesuaikan */
  }
  h2.intro-reveal {
    margin-top: 20px;
    font-size: 1rem !important; /* Ukuran judul disesuaikan */
  }

  .guest-box {
    padding: 3px;
  }

  /* --- 3. GAMBAR DI DALAM (PAGE 3, 4, DLL) --- */
  .content-wrapper {
    flex-direction: column !important;
    gap: 25px !important; /* Jarak antar elemen lebih rapat */
    padding-top: 90px; /* Supaya tidak ketabrak Header */
    width: 90%;
  }

  /* Request: Gambar di dalam dikecilkan juga */
  /* Request: Gambar di dalam dikecilkan dan dinaikkan */
  .image-box {
    width: 220px !important;
    height: 300px !important;
    /* margin: 0 auto !important; <--- Kita ganti ini */
    margin: -40px auto 0 !important; /* -40px menaikkan gambar ke atas */
    position: relative;
    z-index: 5;
  }

  .frame-line {
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
  }

  .text-content {
    width: 100% !important;
    text-align: center;
  }

  .text-content h1 {
    font-size: 1.8rem !important;
  }

  .context-text {
    font-size: 0.8rem !important;
    max-width: 100% !important;
    line-height: 1.6;
  }

  /* --- 4. PROFILE MEMPELAI (PAGE 2) --- */
  .couple-details {
    width: 85% !important;
    max-width: 280px !important;
    padding: 20px 15px !important;
    transform: none !important; /* Reset agar ke tengah */
    background: rgba(5, 5, 5, 0.7) !important;
    border-radius: 12px;
  }

  .text-overlay {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Paksa Center */
  }

  .couple-name {
    font-size: 1.4rem !important;
  }

  /* --- 5. NAVIGASI DOTS --- */
  .dot-nav {
    right: 8px !important;
    scale: 0.8;
  }

  .dot-label {
    display: none !important;
  }

  /* Form Wishbox */
  .wish-box {
    padding: 20px !important;
  }
  .wishes-text {
    display: none !important;
  }

  /* 2. Atur ulang wrapper agar konten terpusat */
  .panel.p-4 .content-wrapper {
    flex-direction: column-reverse; /* Form di atas, Header Wishes di bawah */
    justify-content: center;
    padding: 20px;
    gap: 20px;
  }

  /* 3. Rapikan Wish Box agar tidak terlalu lebar */
  .wish-box {
    width: 100% !important;
    max-width: 350px;
    padding: 5px !important;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  /* 4. Optimasi Input agar nyaman di jempol */
  .wish-input {
    width: 100%;
    font-size: 14px !important; /* Mencegah auto-zoom di iPhone */
    padding: 12px !important;
    margin-bottom: 10px;
  }

  /* 5. Batasi tinggi list doa agar tidak memakan layar */
  .wish-list-scroll {
    max-height: 180px !important;
  }

  /* 6. Atur ulang posisi Judul "Wishes" */
  .panel.p-4 .text-content {
    text-align: center;
    width: 100%;
  }

  .panel.p-4 .text-content h1 {
    font-size: 2.5rem !important;
    margin-bottom: 5px;
  }
}

.wish-display-container {
  margin-top: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 20px;
}

.wish-list-scroll {
  max-height: 250px; /* Batasi tinggi agar tetap rapi saat zoom */
  overflow-y: auto;
  padding-right: 10px;
  text-align: left;
}

/* Scrollbar Mewah Emas */
.wish-list-scroll::-webkit-scrollbar {
  width: 3px;
}
.wish-list-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

.wish-item {
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.wish-item b {
  color: var(--gold);
  font-size: 0.9rem;
  display: block;
}
.wish-item p {
  font-size: 0.8rem;
  margin: 5px 0 0;
  line-height: 1.4;
  opacity: 0.9;
}
