/* 
  Royal Javanese Wedding - Lingga & Vindy
  Theme: Jawa Klasik Premium (Ivory, Champagne Gold, Sogan Keraton, Deep Walnut, Janur Green)
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Shanlan';
  src: url('../assets/fonts/SHANLN__.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Shanlan Condensed';
  src: url('../assets/fonts/SHANLNC_.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Moodboard Color Palette */
  --c-bg: #c8ad85;
  --c-bg-card: #FFFFFF;
  --c-ivory: #F4F0E8;
  --c-gold: #D4B06A;
  --c-gold-light: #F4E7CB;
  --c-gold-dark: #8C5A1C;
  --c-sogan: #8C5A1C;
  --c-walnut: #3A2517;
  --c-footer-bg: #523724;
  --c-nude: #DCC6B8;
  --c-olive: #6D7662;
  --c-olive-dark: #4F5847;
  
  --c-text-primary: #2B2118;
  --c-text-secondary: #65584F;
  --c-text-muted: #8F8178;
  --c-border: rgba(212, 176, 106, 0.35);

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-royal: 'Cinzel', 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heritage: 'Shanlan', 'Playfair Display', serif;

  /* Shadows & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 4px 12px rgba(58, 37, 23, 0.05);
  --shadow-md: 0 10px 30px rgba(58, 37, 23, 0.08);
  --shadow-lg: 0 20px 50px rgba(58, 37, 23, 0.14);
  --shadow-gold: 0 8px 25px rgba(212, 176, 106, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* Global Fixed Wedding Background (Active Across All Sections) */
.global-wedding-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/wedding/gallery%20fix/Tiga.JPG.jpeg') no-repeat center center;
  background-size: cover;
  opacity: 0.5;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.global-wedding-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--c-bg) 75%, transparent) 0%,
    color-mix(in srgb, var(--c-bg) 60%, transparent) 40%,
    color-mix(in srgb, var(--c-bg) 90%, transparent) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Ensure all content sections sit above global background */
.hero-wedding,
.sacred-section,
.couple-section,
.events-section,
.timeline-section,
.gallery-section,
.rsvp-section,
.gift-section,
.wishes-section {
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--c-walnut);
  line-height: 1.3;
}

.font-script {
  font-family: var(--font-script);
}

.font-royal {
  font-family: var(--font-royal);
  letter-spacing: 2px;
}

.text-gold {
  color: var(--c-gold);
}

.text-sogan {
  color: var(--c-sogan);
}

.text-walnut {
  color: var(--c-walnut);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, #E6C887 0%, #D4B06A 50%, #B88E3E 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
  border: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 176, 106, 0.5);
  filter: brightness(1.05);
}

.btn-walnut {
  background: var(--c-walnut);
  color: #FFFFFF;
  border: 1px solid rgba(212, 176, 106, 0.3);
}

.btn-walnut:hover {
  background: #4F3420;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-gold {
  background: transparent;
  color: var(--c-sogan);
  border: 1.5px solid var(--c-gold);
}

.btn-outline-gold:hover {
  background: var(--c-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --- Section Titles & Dividers --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-royal);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-sogan);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  color: var(--c-walnut);
  font-family: var(--font-serif);
  margin-bottom: 16px;
}

.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
  max-width: 280px;
  height: 28px;
  perspective: 900px;
}

.floral-divider img,
.floral-divider svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-style: preserve-3d;
  filter: drop-shadow(0 2px 6px rgba(45, 30, 15, 0.45)) drop-shadow(0 0 10px rgba(248, 231, 190, 0.5)) brightness(1.15);
  animation: dividerFlip 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform, filter;
}

@keyframes dividerFlip {
  0%, 65% {
    transform: rotateY(0deg) scale(1);
    filter: drop-shadow(0 2px 6px rgba(45, 30, 15, 0.45)) drop-shadow(0 0 10px rgba(248, 231, 190, 0.5)) brightness(1.15);
  }
  80% {
    transform: rotateY(180deg) scale(1.04);
    filter: drop-shadow(0 4px 12px rgba(45, 30, 15, 0.6)) drop-shadow(0 0 22px rgba(254, 240, 205, 0.9)) brightness(1.35);
  }
  95%, 100% {
    transform: rotateY(360deg) scale(1);
    filter: drop-shadow(0 2px 6px rgba(45, 30, 15, 0.45)) drop-shadow(0 0 10px rgba(248, 231, 190, 0.5)) brightness(1.15);
  }
}

/* ==========================================================================
   1. COVER OVERLAY (INVITATION COVER) - ROYAL JAVANESE EMBOSSED CARD
   ========================================================================== */
#invitation-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #140C07;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px 16px;
}

.cover-backdrop {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/wedding/gallery%20fix/Tiga.JPG.jpeg') no-repeat center center;
  background-size: cover;
  opacity: 0.35;
  filter: blur(8px) contrast(1.1);
  transform: scale(1.06);
}

#invitation-cover.opened {
  transform: translateY(-100vh);
}

.cover-overlay-gradient {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(20, 13, 8, 0.6) 0%, rgba(10, 6, 3, 0.92) 100%);
  z-index: 2;
}

/* Royal Envelope Card Container */
.royal-cover-envelope {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 440px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: coverFloatIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes coverFloatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.royal-card-wrapper {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 4px 20px rgba(212, 176, 106, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: #F5ECE0;
}

.royal-card-bg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 1536;
  object-fit: cover;
}

.royal-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5.5%;
  height: 29%;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.royal-guest-box {
  margin-bottom: 16px;
  width: 100%;
  padding: 0 10px;
}

.royal-katur-label {
  font-family: var(--font-royal);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8C5F30;
  font-weight: 600;
  margin-bottom: 6px;
}

.royal-guest-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
  color: #2F2117;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
  word-wrap: break-word;
}

.btn-royal-open {
  background: linear-gradient(135deg, #BF572D 0%, #A84720 50%, #8E3612 100%);
  color: #FFFFFF;
  font-family: var(--font-royal);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 13px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(168, 71, 32, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulseTerracotta 2.5s infinite;
}

.btn-royal-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 71, 32, 0.6);
  background: linear-gradient(135deg, #D46638 0%, #BF572D 100%);
  color: #FFFFFF;
}

@keyframes pulseTerracotta {
  0% { box-shadow: 0 0 0 0 rgba(191, 87, 45, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(191, 87, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(191, 87, 45, 0); }
}

/* ==========================================================================
   FLOATING AUDIO & QUICK NAV
   ========================================================================== */
.floating-audio-btn {
  position: fixed;
  bottom: 12px;
  left: 20px;
  width: 46px;
  height: 46px;
  background: rgba(43, 33, 24, 0.85);
  border: 1.5px solid var(--c-gold);
  border-radius: 50%;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.floating-audio-btn:hover {
  transform: scale(1.1);
  background: var(--c-walnut);
}

.floating-audio-btn.playing i {
  animation: spinSlow 4s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Bottom Navigation Bar for Mobile */
.floating-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 176, 106, 0.4);
  box-shadow: 0 10px 35px rgba(58, 37, 23, 0.15);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 990;
}

.floating-nav a {
  color: var(--c-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.floating-nav a i {
  font-size: 1.1rem;
}

.floating-nav a:hover,
.floating-nav a.active {
  color: var(--c-walnut);
  background: rgba(212, 176, 106, 0.2);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-wedding {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-wedding-bg,
.hero-wedding-vignette {
  display: none;
}

.hero-gunungan-left,
.hero-gunungan-right {
  position: absolute;
  width: 280px;
  height: 420px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 2;
}

.hero-gunungan-left {
  left: -80px;
  top: 15%;
  transform: rotate(-10deg);
}

.hero-gunungan-right {
  right: -80px;
  top: 25%;
  transform: rotate(10deg);
}

.hero-wedding-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  margin: 0 auto;
}

.hero-top-crest {
  width: 220px;
  max-width: 80vw;
  height: auto;
  margin: 0 auto 24px;
}

.hero-pretitle {
  font-family: var(--font-royal);
  font-size: 0.9rem;
  letter-spacing: 6px;
  color: var(--c-sogan);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 500;
  color: var(--c-walnut);
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.hero-main-title .hero-name {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 500;
  color: var(--c-walnut);
}

.hero-main-title .hero-amp {
  font-family: var(--font-script);
  font-size: 5rem;
  color: #F8E7BE;
  text-shadow: 0 2px 10px rgba(45, 30, 15, 0.55), 0 0 18px rgba(212, 176, 106, 0.4);
  display: inline-block;
  margin: 0 16px;
  vertical-align: middle;
}

.hero-date-venue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hero-date-badge,
.hero-venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--c-border);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-walnut);
}

.hero-date-badge i,
.hero-venue-badge i {
  color: var(--c-gold);
  font-size: 0.8rem;
}

/* Countdown Timer */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.countdown-box {
  background: #FFFFFF;
  border: 1px solid rgba(212, 176, 106, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 84px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-sogan);
  line-height: 1;
}

.countdown-label {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-top: 6px;
}

/* ==========================================================================
   3. SACRED BLESSING (AYAT & QUOTE)
   ========================================================================== */
.sacred-section {
  padding: 80px 0;
  position: relative;
}

.blessing-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.blessing-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed rgba(212, 176, 106, 0.35);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.arabic-text {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.5rem;
  line-height: 2.2;
  color: var(--c-walnut);
  margin-bottom: 20px;
  direction: rtl;
}

.blessing-meaning {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--c-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.blessing-surah {
  font-family: var(--font-royal);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-sogan);
  letter-spacing: 2px;
}

/* ==========================================================================
   4. THE ROYAL COUPLE (MEMPELAI)
   ========================================================================== */
.couple-section {
  padding: 100px 0;
  position: relative;
}

.couple-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: stretch;
}

.couple-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.couple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold);
}

.couple-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 3px solid var(--c-gold);
  padding: 4px;
  background: #FAF7F2;
  overflow: hidden;
}

.couple-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.couple-role {
  font-family: var(--font-royal);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--c-sogan);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.couple-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--c-walnut);
  margin-bottom: 12px;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.couple-parents {
  font-size: 0.92rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.couple-parents strong {
  color: var(--c-walnut);
}

.couple-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-sogan);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 176, 106, 0.4);
  background: #FAF7F2;
  transition: all 0.2s ease;
  margin-top: auto;
}

.couple-ig:hover {
  background: var(--c-gold);
  color: #FFFFFF;
}

/* Center Full Portrait Frame */
.couple-center-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  align-self: center;
}

.portrait-arch {
  width: 290px;
  height: 440px;
  border-radius: 160px 160px 20px 20px;
  border: 5px solid var(--c-gold);
  padding: 8px;
  background: linear-gradient(180deg, #FAF7F2 0%, #FFFFFF 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.portrait-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 152px 152px 14px 14px;
}

.couple-ampersand-badge {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #E6C887 0%, #D4B06A 100%);
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 2rem;
  color: #2B2118;
  box-shadow: var(--shadow-md);
  z-index: 5;
}

/* ==========================================================================
   5. EVENT DETAILS (AKAD & RESEPSI)
   ========================================================================== */
.events-section {
  padding: 100px 0;
  position: relative;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 0;
}

.event-box {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold);
}

.event-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(212, 176, 106, 0.25);
  padding-bottom: 16px;
}

.event-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 176, 106, 0.15);
  border: 1px solid var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-sogan);
  font-size: 1.3rem;
}

.event-type-badge {
  font-family: var(--font-royal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-sogan);
  background: rgba(212, 176, 106, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.event-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--c-walnut);
  margin-bottom: 20px;
}

.event-detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.event-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.event-detail-row i {
  color: var(--c-gold);
  font-size: 1.1rem;
  margin-top: 4px;
}

.event-detail-info h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.event-detail-info p {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--c-walnut);
  line-height: 1.4;
}

.event-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Dresscode Card (Slide 2 & 4 Palette) */
.dresscode-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.dresscode-content {
  flex: 1;
  min-width: 280px;
}

.dresscode-content h4 {
  font-size: 1.4rem;
  color: var(--c-walnut);
  margin-bottom: 8px;
}

.dresscode-content p {
  color: var(--c-text-secondary);
  font-size: 0.95rem;
}

.palette-swatches {
  display: flex;
  align-items: center;
  gap: 14px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swatch-label {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   6. RUNDOWN TIMELINE ACARA
   ========================================================================== */
.timeline-section {
  padding: 90px 0;
  position: relative;
}

.timeline-container {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
}

.timeline-container {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold) 0%, rgba(212, 176, 106, 0.3) 100%);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.timeline-node {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(212, 176, 106, 0.2);
}

.timeline-node::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-sogan);
}

.timeline-content {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid rgba(212, 176, 106, 0.4);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-left: 48px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}

.timeline-icon-box {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: #FAF7F2;
  border: 1px solid rgba(212, 176, 106, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-sogan);
  font-size: 1.4rem;
}

.timeline-text {
  flex: 1;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-walnut);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--c-text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   7. MOODBOARD & GALLERY
   ========================================================================== */
.gallery-section {
  padding: 100px 0;
  position: relative;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--c-gold);
  color: #FFFFFF;
  border-color: var(--c-gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 340px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 176, 106, 0.2);
}

.gallery-item.featured {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(43, 33, 24, 0.8) 0%, rgba(43, 33, 24, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay h5 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.gallery-item-overlay span {
  font-size: 0.8rem;
  color: var(--c-gold-light);
  letter-spacing: 1px;
}

/* Denah Banner Card */
.denah-banner-card {
  margin-top: 48px;
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  gap: 24px;
  flex-wrap: wrap;
}

.denah-banner-info h4 {
  font-size: 1.35rem;
  color: var(--c-walnut);
  margin-bottom: 6px;
}

.denah-banner-info p {
  color: var(--c-text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   8. DIGITAL RSVP & ROYAL PASS
   ========================================================================== */
.rsvp-section {
  padding: 100px 0;
  position: relative;
}

.rsvp-container {
  max-width: 680px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.rsvp-form-group {
  margin-bottom: 20px;
}

.rsvp-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-walnut);
  margin-bottom: 8px;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
  width: 100%;
  padding: 13px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-text-primary);
  background: #FAF7F2;
  border: 1px solid rgba(212, 176, 106, 0.35);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.rsvp-input:focus,
.rsvp-select:focus,
.rsvp-textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 176, 106, 0.2);
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.attendance-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #FAF7F2;
  border: 1px solid rgba(212, 176, 106, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.attendance-option:hover {
  background: #FFFFFF;
  border-color: var(--c-gold);
}

.attendance-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: var(--c-sogan);
}

/* Royal Pass Ticket Result (html2canvas printable) */
.royal-ticket-view {
  display: none;
  text-align: center;
  padding-top: 10px;
}

.royal-ticket-view.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.royal-ticket-card {
  background: #FAF7F2;
  border: 2px solid var(--c-gold);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  margin: 20px auto 28px;
  position: relative;
  overflow: hidden;
  max-width: 480px;
}

.royal-ticket-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dashed rgba(212, 176, 106, 0.6);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

.royal-ticket-header {
  margin-bottom: 18px;
}

.ticket-crest {
  width: 95px;
  height: auto;
  margin: 0 auto 10px;
}

.ticket-tag {
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--c-sogan);
  text-transform: uppercase;
}

.ticket-guest-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--c-walnut);
  margin: 8px 0;
}

.ticket-qr-wrap {
  background: #FFFFFF;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid rgba(212, 176, 106, 0.3);
  margin-bottom: 14px;
}

.ticket-code {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--c-sogan);
}

.ticket-meta {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* ==========================================================================
   9. WEDDING GIFT / TANDA KASIH
   ========================================================================== */
.gift-section {
  padding: 100px 0;
  position: relative;
}

.gift-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

/* --- QRIS Digital Envelope --- */
.qris-gift-wrapper {
  width: 100%;
}

.qris-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qris-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.qris-card-header {
  margin-bottom: 22px;
}

.qris-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-royal);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  background: rgba(212, 176, 106, 0.12);
  border: 1px solid rgba(212, 176, 106, 0.35);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.qris-merchant-title {
  font-family: var(--font-royal);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-walnut);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.qris-nmid {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--c-text-secondary);
  letter-spacing: 0.5px;
}

.qris-nmid strong {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--c-walnut);
  letter-spacing: 1.5px;
}

.qris-image-frame {
  max-width: 330px;
  margin: 0 auto 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(212, 176, 106, 0.45);
  box-shadow: 0 6px 20px rgba(43, 33, 24, 0.08);
  background: #FFFFFF;
  padding: 8px;
}

.qris-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.qris-instructions {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-text-secondary);
  max-width: 440px;
  margin: 0 auto 24px;
}

.qris-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gift-card {
  background: linear-gradient(135deg, #3A2517 0%, #20140D 100%);
  border: 1px solid rgba(212, 176, 106, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.gift-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 176, 106, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.bank-logo {
  font-family: var(--font-royal);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--c-gold-light);
}

.bank-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #E6C887 0%, #D4B06A 100%);
  border-radius: 6px;
  opacity: 0.85;
}

.bank-acc-number {
  font-family: monospace;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.bank-acc-holder {
  font-size: 0.9rem;
  color: var(--c-gold-light);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.btn-copy-acc {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 176, 106, 0.5);
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-acc:hover {
  background: var(--c-gold);
  color: #2B2118;
}

/* ==========================================================================
   10. WISHES / BUKU TAMU
   ========================================================================== */
.wishes-section {
  padding: 90px 0;
  position: relative;
}

.wishes-container {
  max-width: 780px;
  margin: 0 auto;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.wishes-list::-webkit-scrollbar {
  width: 6px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(212, 176, 106, 0.4);
  border-radius: 3px;
}

/* ==========================================================================
   10.5. WEDDING CINEMATIC VIDEO SECTION
   ========================================================================== */
.video-section {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(212, 176, 106, 0.45);
  box-shadow: 0 16px 40px rgba(43, 33, 24, 0.22);
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000000;
}

.video-caption {
  text-align: center;
  margin-top: 18px;
  font-family: var(--font-royal);
  font-size: 0.88rem;
  letter-spacing: 2px;
  color: var(--c-sogan);
  text-transform: uppercase;
}

.wish-item {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-walnut);
}

.wish-time {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

.wish-text {
  font-size: 0.94rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.wedding-footer {
  background: var(--c-footer-bg, #523724);
  color: #FAF7F2;
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wedding-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #523724, #D4B06A, #E6C887, #D4B06A, #523724);
}

.footer-crest {
  width: 160px;
  max-width: 80vw;
  height: auto;
  margin: 0 auto 24px;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-names span {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--c-gold);
}

.footer-quote {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--c-gold-light);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.footer-copyright {
  border-top: 1px solid rgba(212, 176, 106, 0.2);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.6);
  letter-spacing: 1px;
}

/* ==========================================================================
   12. MODALS (LIGHTBOX & DENAH)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 12, 8, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #FAF7F2;
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 36px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(58, 37, 23, 0.08);
  border: none;
  font-size: 1.2rem;
  color: var(--c-walnut);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--c-walnut);
  color: #FFFFFF;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(43, 33, 24, 0.95);
  color: var(--c-gold-light);
  border: 1px solid var(--c-gold);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 100001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .couple-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .couple-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    min-height: 480px;
  }
  .couple-center-frame {
    order: -1;
  }
  .portrait-arch {
    width: 240px;
    height: 360px;
  }
  .events-grid,
  .gift-cards-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.featured {
    grid-column: span 2;
  }
  .timeline-container::before {
    left: 20px;
  }
  .timeline-node {
    left: 12px;
  }
  .timeline-content {
    margin-left: 44px;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
  .cover-content {
    padding: 36px 20px 48px;
    margin: auto 0;
  }
  .cover-crest {
    width: 140px;
    margin-bottom: 12px;
  }
  .cover-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
  }
  .cover-names {
    font-size: 2.1rem;
    margin-bottom: 12px;
  }
  .cover-names span {
    font-size: 2rem;
    margin: 0 6px;
  }
  .cover-guest-card {
    padding: 14px 20px;
    margin: 12px 0 20px;
    max-width: 330px;
  }
  .cover-guest-card .guest-prefix {
    font-size: 0.76rem;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
  }
  .cover-guest-card .guest-name {
    font-size: 1.18rem;
  }
  .cover-guest-card .guest-note {
    font-size: 0.72rem;
  }
  .btn-open-invite {
    padding: 13px 32px;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
  }
  .hero-wedding {
    padding: 50px 20px 60px;
    min-height: 85vh;
  }
  .hero-main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
    margin-bottom: 16px;
  }
  .hero-main-title .hero-name {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    line-height: 1.12;
    display: block;
  }
  .hero-main-title .hero-amp {
    font-family: var(--font-script);
    font-size: 4.2rem;
    line-height: 1;
    margin: 10px 0 4px;
    display: block;
  }
  .hero-date-venue {
    gap: 8px;
    margin-bottom: 26px;
  }
  .hero-date-badge,
  .hero-venue-badge {
    padding: 6px 14px;
    font-size: 0.76rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.featured {
    grid-column: span 1;
  }
  .dresscode-card {
    flex-direction: column;
    text-align: center;
  }
  .palette-swatches {
    justify-content: center;
    flex-wrap: wrap;
  }
  .countdown-box {
    min-width: 66px;
    padding: 12px 10px;
  }
  .countdown-num {
    font-size: 1.6rem;
  }
  .floating-audio-btn {
    bottom: 62px;
    left: 16px;
    width: 42px;
    height: 42px;
  }
  .timeline-container::before {
    display: none;
  }
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .timeline-node {
    display: none;
  }
  .timeline-content {
    margin-left: 0;
    padding: 16px 18px;
    width: 100%;
    gap: 14px;
  }
  .timeline-icon-box {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 1.2rem;
  }
  .timeline-title {
    font-size: 1.1rem;
  }
  .timeline-desc {
    font-size: 0.86rem;
  }
  .rsvp-container {
    padding: 32px 20px;
  }
}

/* Compact adaptation for short mobile viewports */
@media (max-height: 720px) {
  .royal-cover-envelope {
    max-width: 310px;
  }
  .royal-card-content {
    bottom: 5%;
    height: 30%;
  }
  .royal-guest-box {
    margin-bottom: 10px;
  }
  .royal-katur-label {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    margin-bottom: 3px;
  }
  .royal-guest-name {
    font-size: 1.05rem;
  }
  .btn-royal-open {
    padding: 9px 24px;
    font-size: 0.76rem;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .hero-wedding {
    padding: 38px 16px 45px;
    min-height: 80vh;
  }
  .hero-main-title .hero-name {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
  }
  .hero-main-title .hero-amp {
    font-family: var(--font-script);
    font-size: 3.9rem;
    margin: 8px 0 2px;
    transform: none;
  }
  .container {
    padding: 0 16px;
  }
  .royal-cover-envelope {
    max-width: 360px;
  }
  .royal-card-wrapper {
    border-radius: 22px;
  }
  .royal-card-content {
    padding: 0 18px;
    bottom: 5.2%;
    height: 30%;
  }
  .royal-guest-name {
    font-size: 1.15rem;
  }
  .btn-royal-open {
    padding: 10px 28px;
    font-size: 0.8rem;
  }
  .floating-audio-btn {
    bottom: 56px;
    left: 12px;
    width: 38px;
    height: 38px;
  }
  .floating-nav {
    bottom: 6px;
    bottom: max(6px, env(safe-area-inset-bottom, 6px));
    padding: 5px 8px;
    gap: 2px;
    width: calc(100% - 16px);
    max-width: 390px;
    justify-content: space-around;
  }
  .floating-nav a {
    padding: 4px 6px;
    font-size: 0.68rem;
    gap: 2px;
  }
  .floating-nav a i {
    font-size: 0.95rem;
  }
}
