/* ==========================================================================
   Surya Prakash & Kavya - Royal Wedding Invitation
   Luxury Design System & Responsive Stylesheet
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-ivory: #FDFBF7;
  --bg-cream: #F9F0E0;
  --bg-cream-translucent: rgba(249, 240, 224, 0.92);
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-dark: #0D1B2A;
  
  --gold-primary: #C5A059;
  --gold-light: #E7D39F;
  --gold-deep: #99732B;
  --gold-gradient: linear-gradient(135deg, #ECC880 0%, #C5A059 40%, #99732B 80%, #ECC880 100%);
  --gold-shimmer: linear-gradient(90deg, rgba(236,200,128,0.2) 0%, rgba(255,255,255,0.7) 50%, rgba(236,200,128,0.2) 100%);
  
  --royal-navy: #0A192F;
  --royal-navy-light: #172A45;
  --royal-blue: #1B3B6F;
  --burgundy: #5A0F1B;
  --burgundy-dark: #3E0811;
  
  --text-dark: #2B2118;
  --text-muted: #6A5140;
  --text-light: #FDFBF7;
  --border-gold: rgba(197, 160, 89, 0.35);
  
  /* Typography */
  --font-serif-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-romantic: 'Great Vibes', cursive;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', 'Outfit', sans-serif;
  
  /* Shadow & Radii */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 10px 30px rgba(197, 160, 89, 0.25);
  --shadow-deep: 0 20px 45px rgba(13, 27, 42, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   ENVELOPE UNBOXING EXPERIENCE (HERO OVERLAY)
   ========================================================================== */

#envelopeOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #FFF8EC 0%, #F5E6CC 70%, #EBD5B3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.envelope-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: floatEnvelope 4s ease-in-out infinite;
}

@keyframes floatEnvelope {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.envelope-art {
  width: auto;
  max-width: 100%;
  max-height: 52vh;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(80, 50, 20, 0.25));
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.envelope-container:hover .envelope-art {
  transform: scale(1.02);
}

.monogram-seal-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(90, 15, 27, 0.4));
  animation: sealGlow 3s ease-in-out infinite alternate;
}

@keyframes sealGlow {
  0% { filter: drop-shadow(0 4px 10px rgba(197, 160, 89, 0.5)); }
  100% { filter: drop-shadow(0 8px 20px rgba(197, 160, 89, 0.85)); }
}

.envelope-seal-initials {
  position: absolute;
  font-family: var(--font-serif-heading);
  font-size: 18px;
  font-weight: 700;
  color: #FFF2D1;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.envelope-title-tag {
  margin-top: 14px;
  text-align: center;
}

.envelope-subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 4px;
}

.envelope-couplename {
  font-family: var(--font-romantic);
  font-size: 32px;
  color: var(--gold-deep);
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.tap-cue-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: tapCuePulse 2.2s ease-in-out infinite;
}

.tap-cue-label {
  font-family: var(--font-serif-heading);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.tap-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--gold-deep);
  border-top: 2px solid var(--gold-deep);
  transform: rotate(-45deg);
  animation: chevronBounce 1.8s infinite ease-in-out;
}

@keyframes chevronBounce {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); opacity: 0.6; }
  50% { transform: rotate(-45deg) translate(3px, -3px); opacity: 1; }
}

@keyframes tapCuePulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Video Transition Overlay */
#envelopeVideoWrap {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

#envelopeVideoWrap.video-active {
  opacity: 1;
  pointer-events: all;
}

#envelopeVideoWrap.video-fadeout {
  opacity: 0;
  transition: opacity 1.2s ease;
}

#envelopeVideo {
  width: 100%;
  max-width: 460px;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   FLOATING AUDIO CONTROLLER
   ========================================================================== */

#audioBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--burgundy) 0%, #3a0811 100%);
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(90, 15, 27, 0.4), 0 0 15px rgba(197, 160, 89, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#audioBtn.visible {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

#audioBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(90, 15, 27, 0.5), 0 0 20px rgba(197, 160, 89, 0.6);
}

#audioBtn svg {
  width: 24px;
  height: 24px;
  fill: #FFF4DC;
  transition: transform 0.2s ease;
}

/* Pulse animation around audio button when playing */
#audioBtn.playing::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  opacity: 0;
  animation: audioRipple 2s infinite ease-out;
}

@keyframes audioRipple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   AMBIENT BACKGROUND & CANVAS
   ========================================================================== */

.ambient-bg-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.1) brightness(1.05);
}

.ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(253, 251, 247, 0.75) 0%, rgba(249, 240, 224, 0.90) 80%, rgba(244, 230, 208, 0.96) 100%);
}

#sparkleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   MAIN INVITATION WRAPPER & LAYOUT
   ========================================================================== */

.invitation-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

/* Gold Gradient Text */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Common Header */
.section-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold-primary);
}

.section-title {
  font-family: var(--font-serif-heading);
  font-size: 34px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Card Styling */
.luxury-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-subtle), var(--shadow-gold);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

/* Corner Ornaments */
.card-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold-primary);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
}
.card-corner.tl { top: 12px; left: 12px; border-width: 1.5px 0 0 1.5px; }
.card-corner.tr { top: 12px; right: 12px; border-width: 1.5px 1.5px 0 0; }
.card-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1.5px 1.5px; }
.card-corner.br { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }

/* ==========================================================================
   HERO / WELCOME SECTION
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 40px 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invitation-crest {
  margin-bottom: 20px;
  position: relative;
}

.crest-ring {
  width: 105px;
  height: 105px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.25);
  background: radial-gradient(circle at center, rgba(255, 248, 235, 0.9) 0%, rgba(245, 230, 204, 0.6) 100%);
}

.crest-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--gold-light);
  border-radius: 50%;
  animation: rotateSlow 40s linear infinite;
}

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

.crest-initials {
  font-family: var(--font-serif-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sacred-shloka {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.hero-subheading {
  font-family: var(--font-serif-heading);
  font-size: 14px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 15px;
  font-weight: 500;
}

.couple-names-wrap {
  margin: 10px 0 20px;
}

.groom-name, .bride-name {
  font-family: var(--font-serif-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--royal-navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: block;
}

.name-connector {
  font-family: var(--font-romantic);
  font-size: 64px;
  color: var(--gold-primary);
  display: block;
  margin: -10px 0;
  line-height: 1;
}

.wedding-dates-badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-gold);
  padding: 8px 24px;
  border-radius: 30px;
  margin: 15px 0 25px;
}

.badge-date {
  font-family: var(--font-serif-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dark);
}

.badge-dot {
  width: 5px;
  height: 5px;
  background: var(--gold-primary);
  border-radius: 50%;
}

.hero-blessing-quote {
  font-family: var(--font-body);
  font-size: 22px;
  font-style: italic;
  max-width: 600px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 25px;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.8;
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ==========================================================================
   LIVE COUNTDOWN TIMER
   ========================================================================== */

.countdown-section {
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 22px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.12);
  position: relative;
  overflow: hidden;
}

.countdown-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.countdown-num {
  font-family: var(--font-serif-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--royal-navy);
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ==========================================================================
   WEDDING BOARDING PASS / PASSPORT TICKET
   ========================================================================== */

.boarding-pass-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  perspective: 1000px;
}

.boarding-pass {
  background: linear-gradient(135deg, #0A192F 0%, #102A45 60%, #172A45 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(231, 211, 159, 0.4);
  box-shadow: 0 25px 50px rgba(10, 25, 47, 0.35), 0 0 30px rgba(197, 160, 89, 0.2);
  overflow: hidden;
  display: flex;
  position: relative;
}

/* Decorative Gold Foil Stripe */
.boarding-pass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.ticket-main {
  flex: 1;
  padding: 35px 35px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(231, 211, 159, 0.3);
  padding-bottom: 18px;
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticket-logo-text {
  font-family: var(--font-serif-heading);
  font-size: 15px;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
}

.ticket-flight-no {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
}

.ticket-passenger-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}

.ticket-val-large {
  font-family: var(--font-serif-heading);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.ticket-flight-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(231, 211, 159, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.flight-point {
  text-align: center;
}

.flight-code {
  font-family: var(--font-serif-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.flight-city {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
}

.flight-route-line {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 16px;
}

.route-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
}

.route-dash {
  flex: 1;
  height: 1px;
  border-top: 1px dashed var(--gold-light);
  opacity: 0.5;
}

.flight-plane-icon {
  margin: 0 8px;
  color: var(--gold-primary);
  font-size: 16px;
  animation: planeFloat 3s ease-in-out infinite;
}

@keyframes planeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(5deg); }
}

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

.ticket-grid-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ticket-val {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Tear Line / Stub Divider */
.ticket-tear-line {
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(231, 211, 159, 0.4) 0, rgba(231, 211, 159, 0.4) 6px, transparent 6px, transparent 12px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.notch-top, .notch-bottom {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--bg-cream);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.notch-top { top: -12px; }
.notch-bottom { bottom: -12px; }

/* Stub Side */
.ticket-stub {
  width: 220px;
  background: rgba(0, 0, 0, 0.15);
  padding: 35px 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.stub-title {
  font-family: var(--font-serif-heading);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.stub-barcode {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 55px;
  width: 100%;
  opacity: 0.85;
}

.bar {
  background: #FFFFFF;
  height: 100%;
}

.stub-seat {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   SCHEDULE OF EVENTS / TIMELINE
   ========================================================================== */

.timeline-container {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-deep), var(--gold-light));
  transform: translateX(-50%);
  opacity: 0.45;
}

.timeline-card {
  position: relative;
  width: calc(50% - 30px);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.timeline-card.left {
  align-self: flex-start;
  text-align: right;
}

.timeline-card.right {
  align-self: flex-end;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 32px;
  width: 20px;
  height: 20px;
  background: var(--gold-gradient);
  border: 3px solid var(--bg-cream);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
  z-index: 2;
}

.timeline-card.left .timeline-node {
  right: -41px;
}

.timeline-card.right .timeline-node {
  left: -41px;
}

.event-badge {
  display: inline-block;
  background: rgba(90, 15, 27, 0.08);
  color: var(--burgundy);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(90, 15, 27, 0.2);
}

.event-title {
  font-family: var(--font-serif-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--royal-navy);
  margin-bottom: 6px;
  line-height: 1.2;
}

.event-datetime {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-card.left .event-datetime {
  justify-content: flex-end;
}

.event-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   LOCATION & VENUE
   ========================================================================== */

.venue-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.venue-icon-wrap {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.25) 0%, rgba(197, 160, 89, 0.05) 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
}

.venue-name {
  font-family: var(--font-serif-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--royal-navy);
  letter-spacing: 0.05em;
}

.venue-address {
  font-family: var(--font-body);
  font-size: 21px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.5;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 30px;
  border: 1.5px solid var(--gold-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(197, 160, 89, 0.12);
  transform: translateY(-2px);
}

/* Embedded Map Preview */
.map-embed-container {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  margin-top: 15px;
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   COUPLE PHOTO GALLERY
   ========================================================================== */

.single-gallery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gallery-featured-card {
  width: 100%;
  max-width: 620px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 45px rgba(13, 27, 42, 0.12), 0 0 30px rgba(197, 160, 89, 0.22);
  border: 1px solid var(--border-gold);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-featured-card:hover {
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.18), 0 0 35px rgba(197, 160, 89, 0.35);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-gold);
  background: #E8DEC8;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item.single-featured-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.75) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: opacity 0.3s ease;
}

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

.gallery-caption {
  font-family: var(--font-romantic);
  font-size: 26px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Lightbox Modal */
#lightboxModal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

#lightboxModal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightboxImg {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold-light);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 34px;
  cursor: pointer;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   ETIQUETTE & SPECIAL NOTES
   ========================================================================== */

.etiquette-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.etiquette-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.etiquette-icon {
  font-size: 32px;
  color: var(--gold-deep);
}

.etiquette-title {
  font-family: var(--font-serif-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--royal-navy);
}

.etiquette-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   RSVP SECTION & FORM
   ========================================================================== */

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.form-input, .form-select, .form-textarea {
  font-family: var(--font-body);
  font-size: 18px;
  padding: 14px 18px;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 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-primary);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.3);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.radio-label:hover {
  background: rgba(197, 160, 89, 0.08);
}

.radio-label input[type="radio"]:checked + span {
  font-weight: 700;
  color: var(--burgundy);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

/* RSVP Success Modal */
#rsvpSuccessModal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

#rsvpSuccessModal.active {
  opacity: 1;
  pointer-events: all;
}

.rsvp-modal-card {
  background: #FFFFFF;
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.rsvp-modal-icon {
  font-size: 54px;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

/* ==========================================================================
   FOOTER / BLESSINGS
   ========================================================================== */

.footer-section {
  text-align: center;
  padding: 50px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-monogram {
  font-family: var(--font-serif-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 3px;
}

.footer-quote {
  font-family: var(--font-body);
  font-size: 22px;
  font-style: italic;
  color: var(--text-muted);
  max-width: 500px;
}

.footer-couple {
  font-family: var(--font-romantic);
  font-size: 44px;
  color: var(--royal-navy);
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(106, 81, 64, 0.7);
  margin-top: 20px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATIONS)
   ========================================================================== */

@media screen and (max-width: 768px) {
  body {
    font-size: 17px;
  }

  .invitation-wrapper {
    padding: 25px 15px 60px;
    gap: 50px;
  }

  .section-title {
    font-size: 28px;
  }

  .groom-name, .bride-name {
    font-size: 40px;
  }

  .name-connector {
    font-size: 48px;
    margin: -6px 0;
  }

  .hero-blessing-quote {
    font-size: 19px;
  }

  .countdown-grid {
    gap: 10px;
  }

  .countdown-box {
    padding: 16px 6px;
  }

  .countdown-num {
    font-size: 32px;
  }

  .countdown-label {
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  /* Boarding Pass Mobile Stacking */
  .boarding-pass {
    flex-direction: column;
  }

  .ticket-main {
    padding: 26px 20px 20px;
  }

  .ticket-val-large {
    font-size: 21px;
  }

  .ticket-flight-path {
    padding: 12px 14px;
  }

  .flight-code {
    font-size: 20px;
  }

  .ticket-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticket-tear-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(to right, rgba(231, 211, 159, 0.4) 0, rgba(231, 211, 159, 0.4) 6px, transparent 6px, transparent 12px);
  }

  .notch-top {
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .notch-bottom {
    right: -12px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .ticket-stub {
    width: 100%;
    padding: 24px 20px 24px;
    gap: 16px;
  }

  /* Timeline Mobile */
  .timeline-container::before {
    left: 20px;
  }

  .timeline-card {
    width: calc(100% - 45px);
    align-self: flex-end !important;
    text-align: left !important;
  }

  .timeline-card .timeline-node {
    left: -33px !important;
    right: auto !important;
  }

  .timeline-card .event-datetime {
    justify-content: flex-start !important;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16/10;
  }

  /* Etiquette Mobile */
  .etiquette-grid {
    grid-template-columns: 1fr;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }
}
