/* Design Tokens - Mocha Theme */
:root {
  --bg-mocha: #3B2517;
  --bg-mocha-light: #5C3A24;
  --bg-creme: #FBF8F1;
  --bg-card: #FAF6EF;
  --gold-primary: #C7A24B;
  --gold-dark: #9A7B38;
  --gold-light: #D8BE84;
  --gold-pale: #F6EFDD;
  --text-dark: #3F362E;
  --text-mocha: #5C3A24;
  --text-muted: #857A6F;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-cinzel: 'Cinzel Decorative', serif;
  --font-script: 'Mea Culpa', 'Great Vibes', cursive;
  --font-heading: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-creme);
  color: var(--text-dark);
  font-family: var(--font-serif);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Fixed Flat-Lay Background (Matches Mocha Seal backdrop) */
.mocha-fixed-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(251, 248, 241, 0.35), rgba(251, 248, 241, 0.35)), url('assets/backdrop.jpg?v=2.0');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Global Gold Gradient Text Fill */
.gold-gradient {
  background: linear-gradient(135deg, #C7A24B 0%, #9A7B38 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Global Section Header Box */
.section-header-box {
  text-align: center;
  margin-bottom: 36px;
}

.section-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 3.5px;
  font-weight: 600;
  color: var(--gold-primary);
  display: block;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-heading {
  font-family: var(--font-cinzel);
  font-size: 2rem;
  letter-spacing: 5px;
  color: var(--text-mocha);
  font-weight: 600;
  text-transform: uppercase;
}

.section-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================
   1. ENTRANCE GATE OVERLAY (SLIDING DOORS)
   ========================================== */
.envelope-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-gold-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 20;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.door-left, .door-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 10;
  background-color: var(--bg-mocha);
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.door-left {
  left: 0;
  box-shadow: inset -15px 0 30px rgba(0,0,0,0.4);
}

.door-right {
  right: 0;
  box-shadow: inset 15px 0 30px rgba(0,0,0,0.4);
}

.door-texture {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    #5C3A24 0px,
    #765a47 18px,
    #5C3A24 36px,
    #3B2517 56px,
    #5C3A24 72px
  );
  opacity: 0.85;
}

.door-handle-left {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 120px;
  background: linear-gradient(to bottom, var(--gold-primary), var(--gold-light), var(--gold-primary));
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.5);
}

.door-handle-right {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 120px;
  background: linear-gradient(to bottom, var(--gold-primary), var(--gold-light), var(--gold-primary));
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.5);
}

.envelope-gate.gate-open .door-left { transform: translateX(-100%); }
.envelope-gate.gate-open .door-right { transform: translateX(100%); }
.envelope-gate.gate-open { opacity: 0; pointer-events: none; }

.door-seam-gold {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, rgba(216, 190, 132, 0.7) 15%, rgba(216, 190, 132, 0.95) 50%, rgba(216, 190, 132, 0.7) 85%, transparent 100%);
  z-index: 10;
  box-shadow: 0 0 12px rgba(216, 190, 132, 0.5);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.envelope-gate.gate-open .door-seam-gold {
  opacity: 0;
}

.gate-content {
  position: relative;
  z-index: 30;
  padding: 16px;
  width: 100%;
  max-width: 390px;
  text-align: center;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.envelope-gate.gate-open .gate-content {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
}

.gate-card {
  position: relative;
  background: linear-gradient(145deg, rgba(53, 33, 20, 0.96) 0%, rgba(36, 21, 12, 0.98) 100%), url('assets/line_art.jpg') center/cover no-repeat;
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(216, 190, 132, 0.6);
  border-radius: 26px;
  padding: 38px 26px 30px 26px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--bg-creme);
  max-width: 390px;
  margin: 0 auto;
  overflow: hidden;
}

.gate-inner-border {
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  border: 1px solid rgba(216, 190, 132, 0.35);
  pointer-events: none;
}

.gate-corner-ornament {
  position: absolute;
  font-size: 0.65rem;
  color: var(--gold-light);
  opacity: 0.7;
  pointer-events: none;
  line-height: 1;
}

.gate-tl { top: 12px; left: 12px; }
.gate-tr { top: 12px; right: 12px; }
.gate-bl { bottom: 12px; left: 12px; }
.gate-br { bottom: 12px; right: 12px; }

.gate-heart-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.gate-tagline {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: #D8BE84;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.gate-couple-names {
  font-family: var(--font-cinzel);
  color: var(--bg-creme);
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.gate-couple-names .name-line {
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.15;
  color: #FFFDF8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.gate-couple-names .name-and {
  font-family: var(--font-script);
  color: #E5CF98;
  font-size: 1.6rem;
  font-style: normal;
  text-transform: lowercase;
  margin: 1px 0;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gate-subtext {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(253, 251, 247, 0.9);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.wax-seal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #F5E6C4 0%, #D8BE84 45%, #B8964E 100%);
  color: #352114;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(216, 190, 132, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.wax-seal-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(216, 190, 132, 0.45);
}

.wax-seal-btn .inner-border {
  position: absolute;
  inset: 3px;
  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.gate-tap-hint {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-top: 18px;
  opacity: 0.85;
  animation: pulseHint 2.5s ease-in-out infinite alternate;
}

@keyframes pulseHint {
  0% { opacity: 0.6; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

.wax-seal-btn .shine-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-20deg);
  animation: shineLoop 3s infinite;
}

@keyframes shineLoop {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

/* ==========================================
   2. FALLING PETALS CANVAS & STICKY NAVBAR
   ========================================== */
.petals-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 90;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(199, 162, 75, 0.3);
  padding: 16px 28px;
  box-shadow: 0 4px 20px rgba(59, 37, 23, 0.05);
}

.nav-container {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-cinzel);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-mocha);
  text-decoration: none;
  letter-spacing: 2.5px;
  display: inline-flex;
  align-items: center;
}

.nav-logo .amp {
  font-family: var(--font-script);
  color: var(--gold-primary);
  font-size: 1.3rem;
  margin: 0 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-mocha);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================
   FLOATING BOTTOM-CORNER MUSIC PLAYER
   ========================================== */
.floating-music-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-music-container.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-music-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(59, 37, 23, 0.94) 0%, rgba(43, 27, 16, 0.97) 100%);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(216, 190, 132, 0.6);
  box-shadow: 0 10px 30px rgba(20, 8, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #F6EFDD;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.floating-music-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(20, 8, 16, 0.55), 0 0 20px rgba(216, 190, 132, 0.3);
  border-color: rgba(216, 190, 132, 0.9);
}

.floating-music-btn:active {
  transform: translateY(0) scale(0.96);
}

.floating-music-btn.is-playing {
  border-color: rgba(216, 190, 132, 0.85);
  box-shadow: 0 10px 30px rgba(20, 8, 16, 0.45), 0 0 16px rgba(216, 190, 132, 0.35);
}

.floating-music-btn.is-muted {
  opacity: 0.85;
  border-color: rgba(216, 190, 132, 0.4);
}

.music-disc {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(216, 190, 132, 0.15);
  border: 1px solid rgba(216, 190, 132, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.music-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-bars {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.floating-music-btn.is-playing .sound-bars {
  display: flex;
}

.floating-music-btn.is-playing .icon-muted {
  display: none;
}

.floating-music-btn.is-muted .sound-bars {
  display: none;
}

.floating-music-btn.is-muted .icon-muted {
  display: block;
}

.sound-bars .bar {
  width: 2.5px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: soundwave 1.2s ease-in-out infinite alternate;
}

.sound-bars .bar-1 { height: 6px; animation-delay: 0.1s; }
.sound-bars .bar-2 { height: 14px; animation-delay: 0.3s; }
.sound-bars .bar-3 { height: 9px; animation-delay: 0.2s; }

@keyframes soundwave {
  0% { height: 4px; }
  50% { height: 14px; }
  100% { height: 7px; }
}

.music-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.floating-music-btn.is-muted .music-label {
  color: rgba(246, 239, 221, 0.7);
}

/* ==========================================
   3. HERO SECTION (2-COLUMN GRID)
   ========================================== */
.main-content { max-width: 1150px; margin: 0 auto; padding: 30px 20px; }

.hero-section { padding: 20px 0 60px 0; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }

.hero-text-card {
  position: relative;
  background: #FFFDF8;
  border-radius: 36px;
  padding: 52px 38px;
  text-align: center;
  border: 1px solid rgba(199, 162, 75, 0.45);
  box-shadow: 0 25px 60px -15px rgba(59, 37, 23, 0.16);
}

.hero-inner-border {
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(199, 162, 75, 0.35);
  pointer-events: none;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 4.5px;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 14px;
}

.hero-couple-names {
  color: var(--text-mocha);
  line-height: 1.15;
  margin: 16px 0;
}

.hero-couple-names .name-line {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 3.3rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #3B2517;
}

.hero-couple-names .name-and {
  display: block;
  font-family: var(--font-script);
  color: var(--gold-primary);
  font-size: 2.2rem;
  margin: -4px 0;
  font-weight: 400;
  text-transform: none;
}

.hero-invite-text {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: 2px;
  line-height: 1.8;
  color: #5C4E43;
  text-transform: uppercase;
  max-width: 32ch;
  margin: 0 auto 20px auto;
}

.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.diamond-divider .line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.diamond-divider .diamond {
  color: var(--gold-primary);
  font-size: 0.7rem;
}

.hero-wedding-day {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #3B2517;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-wedding-venue {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.hero-wedding-location {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-footer-bar {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px dashed rgba(199, 162, 75, 0.35);
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 260px 260px 18px 18px;
  border: 1px solid rgba(199, 162, 75, 0.4);
  box-shadow: 0 30px 60px -34px rgba(70,40,30,0.45);
  background: #FFFDF8;
  overflow: hidden;
}

.inner-arch-border { position: absolute; inset: 10px; border-radius: 248px 248px 12px 12px; border: 1px solid rgba(199, 162, 75, 0.45); pointer-events: none; z-index: 10; }
.hero-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================
   4. COUNTDOWN BANNER (Exact Mocha Seal Spec)
   ========================================== */
.countdown-section {
  position: relative;
  background: linear-gradient(135deg, rgba(92, 58, 36, 0.88) 0%, rgba(59, 37, 23, 0.92) 100%), url('assets/line_art.jpg') center/cover no-repeat;
  color: #F6EFDD;
  padding: 60px 24px;
  text-align: center;
  border-radius: 20px;
  border-top: 1px solid rgba(216,190,132,0.45);
  border-bottom: 1px solid rgba(216,190,132,0.45);
  box-shadow: 0 20px 50px rgba(20,8,16,0.35);
  margin-bottom: 70px;
  overflow: hidden;
}

.countdown-inner-border { position: absolute; inset: 12px; border-radius: 12px; border: 1px solid rgba(216,190,132,0.32); pointer-events: none; }
.countdown-sub { font-family: var(--font-script); color: var(--gold-light); font-size: 2.6rem; display: block; }
.countdown-heading { font-family: var(--font-heading); font-weight: 600; font-size: 2.4rem; letter-spacing: 6px; text-transform: uppercase; color: #F6EFDD; margin-top: -6px; }

.countdown-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 32px 0; }
.countdown-divider .line { height: 1px; width: 50px; background: linear-gradient(90deg, transparent, rgba(216,190,132,0.9), transparent); }
.countdown-divider .star { color: var(--gold-primary); font-size: 0.8rem; }

.timer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 540px; margin: 0 auto 24px auto; }

.timer-card {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,253,248,0.17) 0%, rgba(255,253,248,0.045) 100%);
  border: 1px solid rgba(216,190,132,0.5);
  box-shadow: 0 16px 34px rgba(20,8,16,0.30), inset 0 1px 0 rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  padding: 8px;
}

.timer-val { font-family: var(--font-heading); font-weight: 600; font-size: 2.6rem; color: #FBF6EA; line-height: 1; }
.timer-line { height: 1px; width: 28px; background: rgba(216,190,132,0.7); margin: 8px 0; }
.timer-lbl { font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-light); }
.countdown-target { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 3px; color: rgba(246, 239, 221, 0.8); text-transform: uppercase; }

/* ==========================================
   5. OUR STORY SECTION (A Walk Through Time)
   ========================================== */
.story-section { margin-bottom: 70px; }

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: #FFFDF8;
  border: 1px solid rgba(199, 162, 75, 0.4);
  border-radius: 32px;
  padding: 44px 36px;
  box-shadow: 0 20px 50px -15px rgba(59, 37, 23, 0.12);
}

.story-photo-arch {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 18px 18px;
  border: 1px solid rgba(199, 162, 75, 0.4);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}

.story-photo-img { width: 100%; height: 100%; object-fit: cover; }

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-primary);
  min-width: 60px;
  letter-spacing: 1px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-mocha);
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.timeline-closing {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ==========================================
   6. THE DETAILS SECTION (Side-by-Side Arched Cards)
   ========================================== */
.details-section { margin-bottom: 70px; }

.details-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.detail-arch-card {
  position: relative;
  background: linear-gradient(145deg, rgba(62, 39, 24, 0.95) 0%, rgba(42, 25, 15, 0.98) 100%), url('assets/line_art.jpg') center/cover no-repeat;
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(216, 190, 132, 0.55);
  border-radius: 200px 200px 18px 18px;
  padding: 56px 28px 42px 28px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(20, 8, 16, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-arch-card .inner-arch-border {
  position: absolute;
  inset: 10px;
  border-radius: 190px 190px 10px 10px;
  border: 1px solid rgba(216, 190, 132, 0.35);
  pointer-events: none;
  z-index: 2;
}

.detail-arch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 56px rgba(20, 8, 16, 0.45), 0 0 20px rgba(216, 190, 132, 0.2);
  border-color: rgba(216, 190, 132, 0.85);
}

.detail-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(216, 190, 132, 0.5);
  background: rgba(216, 190, 132, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 3;
}

.detail-card-title {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
}

.detail-card-time {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #FFFDF8;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-mini-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 190, 132, 0.9), transparent);
  margin: 10px auto 16px auto;
  position: relative;
  z-index: 3;
}

.detail-card-venue {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(246, 239, 221, 0.88);
  letter-spacing: 1.5px;
  position: relative;
  z-index: 3;
}

.detail-card-sub {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  color: #D8BE84;
  margin-top: 6px;
  position: relative;
  z-index: 3;
}

/* ==========================================
   7. PHOTO GALLERY GRID
   ========================================== */
.gallery-section { margin-bottom: 70px; }

.mocha-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid rgba(199, 162, 75, 0.35);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: var(--bg-card);
  transition: transform 0.3s ease;
}

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

.item-tall-arch {
  border-radius: 140px 140px 16px 16px;
  aspect-ratio: 4 / 6;
}

.item-square {
  border-radius: 16px;
  aspect-ratio: 1 / 1;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================
   8. LOCATION SECTION
   ========================================== */
.venue-section { margin-bottom: 70px; }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 850px;
  margin: 0 auto 24px auto;
  align-items: center;
}

.location-info-card {
  background: #FFFDF8;
  border: 1px solid rgba(199, 162, 75, 0.4);
  border-radius: 200px 200px 24px 24px;
  padding: 44px 28px;
  text-align: center;
  box-shadow: 0 20px 50px -15px rgba(59, 37, 23, 0.12);
}

.loc-icon { font-size: 1.6rem; margin-bottom: 8px; }
.loc-venue-name { font-family: var(--font-cinzel); font-size: 1.3rem; color: var(--text-mocha); margin-bottom: 6px; }
.loc-address { font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-muted); margin-bottom: 12px; }
.loc-desc { font-family: var(--font-serif); font-size: 0.95rem; color: var(--text-dark); }

.location-map-card {
  border: 1px solid rgba(199, 162, 75, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.loc-action-box { text-align: center; margin-top: 20px; }

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #5C3A24 0%, #3B2517 100%);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(59, 37, 23, 0.3);
  transition: transform 0.2s ease;
}

.map-btn:hover { transform: translateY(-2px); }

/* ==========================================
   9. WILL YOU JOIN US (RSVP SECTION)
   ========================================== */
.rsvp-section { margin-bottom: 70px; }

.rsvp-arch-card {
  position: relative;
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(199, 162, 75, 0.4);
  border-radius: 340px 340px 32px 32px;
  padding: 130px 48px 54px 48px;
  max-width: 740px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(70,40,30,0.1);
  overflow: hidden;
}

.rsvp-arch-card .inner-arch-border {
  position: absolute;
  inset: 12px;
  border-radius: 328px 328px 24px 24px;
  border: 1px solid rgba(199, 162, 75, 0.35);
  pointer-events: none;
}

.rsvp-form {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 {
  flex: 1;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-mocha);
}

.form-input, .form-select, .form-textarea {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 12px 16px;
  border: 1px solid rgba(199, 162, 75, 0.45);
  border-radius: 12px;
  background: rgba(253, 251, 247, 0.95);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(199, 162, 75, 0.2);
  background: #FFFDF8;
}

.submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 36px;
  border: none;
  background: linear-gradient(135deg, #5C3A24 0%, #3B2517 100%);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 37, 23, 0.35);
  margin-top: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 37, 23, 0.45);
}

.rsvp-status { font-family: var(--font-sans); font-size: 0.75rem; text-align: center; margin-top: 8px; }

/* ==========================================
   10. BOTTOM MOCHA BANNER SECTION
   ========================================== */
.bottom-banner-section { margin-bottom: 40px; }

.bottom-mocha-card {
  position: relative;
  background: linear-gradient(135deg, rgba(92, 58, 36, 0.92) 0%, rgba(59, 37, 23, 0.95) 100%), url('assets/line_art.jpg') center/cover no-repeat;
  color: #F6EFDD;
  padding: 50px 36px 44px 36px;
  border-radius: 30px;
  text-align: center;
  border: 1.5px solid rgba(216, 190, 132, 0.55);
  box-shadow: 0 24px 50px rgba(20, 8, 16, 0.35);
  max-width: 780px;
  margin: 0 auto;
}

.bottom-date {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 6px;
  color: #FBF6EA;
  margin-bottom: 6px;
}

.bottom-names {
  font-family: var(--font-cinzel);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #FFFDF8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bottom-names .bottom-amp {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--gold-light);
  font-size: 1.9rem;
  font-weight: 400;
  margin: -2px 4px 0 4px;
}

.bottom-venue {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: rgba(246, 239, 221, 0.85);
  margin-bottom: 26px;
}

.bottom-contacts {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 6px;
}

.contact-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  white-space: nowrap;
  color: #FFFDF8;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.14) 0%, rgba(255, 253, 248, 0.05) 100%);
  border: 1.5px solid rgba(216, 190, 132, 0.55);
  backdrop-filter: blur(8px);
  padding: 11px 20px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 8, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-pill-btn:hover {
  background: linear-gradient(135deg, rgba(216, 190, 132, 0.25) 0%, rgba(216, 190, 132, 0.12) 100%);
  border-color: rgba(216, 190, 132, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 8, 16, 0.45), 0 0 18px rgba(216, 190, 132, 0.3);
  color: #FFFDF8;
}

.contact-icon {
  flex-shrink: 0;
  stroke: var(--gold-light);
  transition: transform 0.3s ease;
}

.contact-pill-btn:hover .contact-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ==========================================
   SITE FOOTER & DEVELOPER CREDIT
   ========================================== */
.site-footer {
  text-align: center;
  padding: 24px 20px 38px 20px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 50px;
  background: rgba(255, 253, 248, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 190, 132, 0.4);
  box-shadow: 0 4px 18px rgba(59, 37, 23, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.footer-glass-pill:hover {
  background: rgba(255, 253, 248, 0.72);
  border-color: rgba(216, 190, 132, 0.7);
  box-shadow: 0 6px 22px rgba(59, 37, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.footer-glass-pill .footer-text {
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-glass-pill .footer-brand {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--text-mocha);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-glass-pill:hover .footer-brand {
  color: var(--gold-dark);
}

.contact-role {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 2px;
}

.contact-number {
  color: #FFFDF8;
  letter-spacing: 1.5px;
  font-weight: 600;
}



/* ==========================================
   10. LUXURY SCROLL REVEAL & MOTION ANIMATIONS
   ========================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered Countdown Timer Flip-In */
.scroll-reveal .timer-card {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.active .timer-card:nth-child(1) { transition-delay: 0.10s; opacity: 1; transform: translateY(0) scale(1); }
.scroll-reveal.active .timer-card:nth-child(2) { transition-delay: 0.20s; opacity: 1; transform: translateY(0) scale(1); }
.scroll-reveal.active .timer-card:nth-child(3) { transition-delay: 0.30s; opacity: 1; transform: translateY(0) scale(1); }
.scroll-reveal.active .timer-card:nth-child(4) { transition-delay: 0.40s; opacity: 1; transform: translateY(0) scale(1); }

/* Staggered Our Story Milestones */
.scroll-reveal .timeline-item {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.active .timeline-item:nth-child(1) { transition-delay: 0.15s; opacity: 1; transform: translateX(0); }
.scroll-reveal.active .timeline-item:nth-child(2) { transition-delay: 0.30s; opacity: 1; transform: translateX(0); }
.scroll-reveal.active .timeline-item:nth-child(3) { transition-delay: 0.45s; opacity: 1; transform: translateX(0); }
.scroll-reveal.active .timeline-item:nth-child(4) { transition-delay: 0.60s; opacity: 1; transform: translateX(0); }

/* Staggered Event Cards */
.scroll-reveal .detail-arch-card {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.active .detail-arch-card:nth-child(1) { transition-delay: 0.18s; opacity: 1; transform: translateY(0) scale(1); }
.scroll-reveal.active .detail-arch-card:nth-child(2) { transition-delay: 0.35s; opacity: 1; transform: translateY(0) scale(1); }

/* Staggered Photo Gallery Items */
.scroll-reveal .gallery-item {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.active .gallery-item:nth-child(1) { transition-delay: 0.12s; opacity: 1; transform: translateY(0) scale(1); }
.scroll-reveal.active .gallery-item:nth-child(2) { transition-delay: 0.24s; opacity: 1; transform: translateY(0) scale(1); }
.scroll-reveal.active .gallery-item:nth-child(3) { transition-delay: 0.36s; opacity: 1; transform: translateY(0) scale(1); }
.scroll-reveal.active .gallery-item:nth-child(4) { transition-delay: 0.48s; opacity: 1; transform: translateY(0) scale(1); }

/* RSVP Arch Card Smooth Entrance */
.scroll-reveal .rsvp-arch-card {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.scroll-reveal.active .rsvp-arch-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================
   11. COMPREHENSIVE MOBILE RESPONSIVE SYSTEM
   ========================================== */
@media (max-width: 900px) {
  .hero-grid, .story-grid, .location-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .details-cards-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
  .mocha-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-text-card { order: 2; }
  .hero-photo-frame {
    order: 1;
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  /* Navigation */
  .navbar {
    padding: 10px 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-logo {
    font-size: 1.2rem;
  }
  .music-toggle {
    padding: 5px 10px;
    font-size: 0.6rem;
  }

  /* Mobile Backdrop (Custom 9:16 Vertical Flat-Lay) */
  .mocha-fixed-backdrop {
    background-image: linear-gradient(rgba(251, 248, 241, 0.30), rgba(251, 248, 241, 0.30)), url('assets/backdrop_mobile.jpg?v=2.0');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
  }

  /* Main Container */
  .main-content {
    padding: 16px 12px 40px 12px;
  }

  /* Header & Navigation on Mobile */
  .sticky-header {
    height: 52px;
    padding: 0 16px;
  }
  .header-logo {
    font-size: 1.05rem;
    letter-spacing: 1.5px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    padding: 6px 2px;
  }

  /* Gate Overlay on Mobile */
  .gate-content {
    padding: 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .gate-card {
    width: calc(100% - 24px);
    max-width: 360px;
    padding: 34px 18px 26px 18px;
    border-radius: 24px;
    margin: 0 auto;
  }
  .gate-tagline {
    font-size: 0.62rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
  }
  .gate-couple-names {
    margin: 0 0 12px 0;
    gap: 2px;
  }
  .gate-couple-names .name-line {
    font-size: clamp(1.75rem, 6vw, 2.1rem);
    line-height: 1.15;
  }
  .gate-couple-names .name-and {
    font-size: 1.45rem;
    margin: 0;
    line-height: 1.1;
  }
  .gate-subtext {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  .wax-seal-btn {
    padding: 13px 28px;
    font-size: 0.74rem;
    letter-spacing: 2px;
    min-height: 48px;
    width: 100%;
    max-width: 280px;
  }
  .gate-hint {
    font-size: 0.58rem;
    letter-spacing: 2.5px;
    margin-top: 14px;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 10px 0 35px 0;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
  }
  .hero-photo-frame {
    order: 1;
    width: 100%;
    max-width: 250px;
    aspect-ratio: 4 / 5;
    border-radius: 140px 140px 18px 18px;
    box-shadow: 0 16px 36px -10px rgba(59, 37, 23, 0.28);
    margin-bottom: -28px;
    z-index: 5;
  }
  .hero-photo-frame .inner-arch-border {
    border-radius: 132px 132px 12px 12px;
    inset: 7px;
  }
  .hero-text-card {
    order: 2;
    width: 100%;
    box-sizing: border-box;
    padding: 48px 18px 28px 18px;
    border-radius: 26px;
    background: #FFFDF8;
    border: 1px solid rgba(199, 162, 75, 0.45);
    box-shadow: 0 20px 50px -15px rgba(59, 37, 23, 0.16);
    position: relative;
    z-index: 1;
  }
  .hero-inner-border {
    inset: 8px;
    border-radius: 22px;
  }
  .hero-tagline {
    font-size: 0.65rem;
    letter-spacing: 3.5px;
    margin-bottom: 10px;
  }
  .hero-couple-names {
    margin: 10px 0;
  }
  .hero-couple-names .name-line {
    font-size: 2.6rem;
    letter-spacing: 1.5px;
  }
  .hero-couple-names .name-and {
    font-size: 1.8rem;
    margin: -2px 0;
  }
  .hero-invite-text {
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .hero-wedding-day {
    font-size: 1.05rem;
    letter-spacing: 2px;
  }
  .hero-wedding-venue {
    font-size: 0.74rem;
    letter-spacing: 1.5px;
  }
  .hero-wedding-location {
    font-size: 0.68rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
  }
  .hero-footer-bar {
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    padding-top: 14px;
  }

  /* Countdown Banner */
  .countdown-section {
    padding: 40px 14px;
    border-radius: 16px;
    margin-bottom: 50px;
  }
  .countdown-sub {
    font-size: 2rem;
  }
  .countdown-heading {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
  .timer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    max-width: 380px !important;
    margin: 0 auto 18px auto !important;
    width: 100% !important;
  }
  .timer-card {
    padding: 10px 4px !important;
    border-radius: 12px !important;
    aspect-ratio: 1 / 1.25 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .timer-val {
    font-size: 1.65rem !important;
    line-height: 1 !important;
    font-weight: 600 !important;
  }
  .timer-line {
    width: 18px !important;
    margin: 4px 0 !important;
    background: rgba(216,190,132,0.8) !important;
  }
  .timer-lbl {
    font-size: 0.55rem !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
  }
  .countdown-target {
    font-size: 0.62rem !important;
    letter-spacing: 2px !important;
  }

  /* Section Headings */
  .section-header-box {
    margin-bottom: 24px;
  }
  .section-sub {
    font-size: 0.62rem;
    letter-spacing: 2.5px;
  }
  .section-heading {
    font-size: 1.6rem;
    letter-spacing: 3px;
  }
  .section-desc {
    font-size: 0.9rem;
  }

  /* Story Section */
  .story-section {
    margin-bottom: 50px;
  }
  .story-grid {
    padding: 28px 16px;
    border-radius: 20px;
    gap: 24px;
  }
  .story-photo-arch {
    max-width: 260px;
    border-radius: 160px 160px 14px 14px;
  }
  .timeline-container {
    gap: 18px;
  }
  .timeline-item {
    gap: 12px;
  }
  .timeline-year {
    font-size: 1.15rem;
    min-width: 48px;
  }
  .timeline-title {
    font-size: 1.05rem;
  }
  .timeline-text {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Details Section */
  .details-section {
    margin-bottom: 50px;
  }
  .details-cards-grid {
    gap: 20px;
    max-width: 320px;
  }
  .detail-arch-card {
    padding: 46px 20px 32px 20px;
    border-radius: 160px 160px 18px 18px;
    aspect-ratio: auto;
  }
  .detail-arch-card .inner-arch-border {
    inset: 8px;
    border-radius: 152px 152px 12px 12px;
  }
  .detail-card-title {
    font-size: 0.74rem;
    letter-spacing: 2px;
  }
  .detail-card-time {
    font-size: 1.75rem;
  }
  .detail-card-venue {
    font-size: 0.7rem;
  }
  .detail-card-sub {
    font-size: 0.88rem;
  }

  /* Gallery Section */
  .gallery-section {
    margin-bottom: 50px;
  }
  .mocha-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .item-tall-arch {
    border-radius: 80px 80px 10px 10px;
  }
  .item-square {
    border-radius: 10px;
  }

  /* Location Section */
  .venue-section {
    margin-bottom: 50px;
  }
  .location-grid {
    gap: 20px;
  }
  .location-info-card {
    padding: 30px 16px;
    border-radius: 120px 120px 18px 18px;
  }
  .loc-venue-name {
    font-size: 1.15rem;
  }
  .loc-address {
    font-size: 0.68rem;
  }
  .loc-desc {
    font-size: 0.88rem;
  }
  .map-btn {
    padding: 12px 24px;
    font-size: 0.68rem;
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  /* RSVP Section */
  .rsvp-section {
    margin-bottom: 50px;
  }
  .rsvp-arch-card {
    padding: 40px 22px 34px 22px !important;
    border-radius: 28px !important;
    max-width: 100% !important;
    background: #FFFDF8 !important;
    border: 1px solid rgba(199, 162, 75, 0.45) !important;
    box-shadow: 0 20px 50px -15px rgba(59, 37, 23, 0.14) !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .rsvp-arch-card .inner-arch-border {
    inset: 8px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(199, 162, 75, 0.35) !important;
    pointer-events: none !important;
  }
  .rsvp-form {
    max-width: 100% !important;
    gap: 16px !important;
    position: relative !important;
    z-index: 10 !important;
  }
  .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .form-label {
    font-size: 0.65rem !important;
    letter-spacing: 2px !important;
    color: var(--text-mocha) !important;
    font-weight: 600 !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 14px !important;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    padding: 12px 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(199, 162, 75, 0.45) !important;
    background: #FAF6EF !important;
  }
  .submit-btn {
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 0.76rem !important;
    border-radius: 30px !important;
    margin-top: 6px !important;
  }

  /* Bottom Mocha Banner */
  .bottom-banner-section {
    margin-bottom: 24px;
  }
  .bottom-mocha-card {
    padding: 36px 16px;
    border-radius: 20px;
  }
  .bottom-date {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
  .bottom-names {
    font-family: var(--font-cinzel);
    font-size: 1.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .bottom-names .bottom-amp {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--gold-light);
    margin: -2px 3px 0 3px;
  }
  .bottom-venue {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
  }
  .bottom-contacts {
    flex-direction: column;
    gap: 10px;
  }
  .contact-pill-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    justify-content: center;
    font-size: 0.7rem;
    padding: 12px 18px;
    border-radius: 30px;
  }

  /* Mobile Floating Music Player: Minimalist, Subtle & Non-Distracting */
  .floating-music-container {
    bottom: 16px;
    right: 16px;
  }
  .floating-music-btn {
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 37, 23, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.2px solid rgba(216, 190, 132, 0.45);
    box-shadow: 0 6px 18px rgba(20, 8, 16, 0.3);
  }
  .floating-music-btn .music-label {
    display: none; /* Hide text label on mobile for clean, uncluttered look */
  }
  .music-disc {
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .floating-music-btn.is-playing {
    border-color: rgba(216, 190, 132, 0.7);
    box-shadow: 0 6px 18px rgba(20, 8, 16, 0.3), 0 0 10px rgba(216, 190, 132, 0.25);
  }
}

@media (max-width: 380px) {
  .hero-couple-names .name-line {
    font-size: 2.1rem;
  }
  .timer-val {
    font-size: 1.35rem;
  }
  .timer-lbl {
    font-size: 0.45rem;
  }
}
