/* ============================================================
   FRESCO ITALIAN MEDITERRANEAN WEDDING INVITATION SUITE
   Tailored for Ritik & Vaibhavi's Wedding
   Mobile-First Ultra-Responsive Architecture
   ============================================================ */

@import url('https://use.typekit.net/jzm0juw.css');
@import url('https://fonts.googleapis.com/css2?family=Antic+Didone&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&family=Reenie+Beanie&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --bg-cream: #faf8f2;
  --bg-secondary: #f4efe2;
  --text-olive: #3d4928;
  --text-olive-light: rgba(61, 73, 40, 0.75);
  --text-olive-muted: rgba(61, 73, 40, 0.55);
  --olive-dark: #2f381f;
  --gold-accent: #c5a059;
  --gold-light: #e8d7a5;
  --border-color: rgba(61, 73, 40, 0.18);
  
  --font-display: "Antic Didone", "Playfair Display", "Cormorant Garamond", serif;
  --font-body: "Antic Didone", "Cormorant Garamond", Georgia, serif;
  --font-script: "parfumerie-script", "Reenie Beanie", cursive;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-olive);
  font-family: var(--font-body);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-cream);
  color: var(--text-olive);
  line-height: 1.5;
  position: relative;
}

body.envelope-active {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  touch-action: none;
}

/* ============================================================
   ENVELOPE OPENING OVERLAY
   ============================================================ */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope-overlay.fading {
  opacity: 0;
  pointer-events: none;
}

.envelope-overlay.hidden {
  display: none;
}

.envelope-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.envelope-poster {
  z-index: 1;
}

.envelope-video {
  z-index: 2;
}

.envelope-prompt {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  animation: pulseGentle 2.2s infinite ease-in-out;
}

.envelope-prompt-btn {
  padding: 12px 28px;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-olive);
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes pulseGentle {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.95;
  }
  50% {
    transform: translateX(-50%) scale(1.04);
    opacity: 1;
  }
}

/* ============================================================
   FLOATING AUDIO TOGGLE
   ============================================================ */
.audio-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 73, 40, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: var(--text-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.audio-toggle-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
}

.audio-toggle-btn.playing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.6);
  animation: audioRipple 2s infinite ease-out;
}

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

/* ============================================================
   HERO SECTION (SLIDE 1 - ROYAL HAVELI WITH MOVING BOUGAINVILLEA)
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #faf5ed;
}

.hero-painting-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-painting-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-moving-branch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  pointer-events: none;
  transform-origin: 0% 0%;
  animation: branchSway 6.5s ease-in-out infinite alternate;
}

@keyframes branchSway {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(1.4deg) scale(1.012) translateY(2px);
  }
  100% {
    transform: rotate(-0.8deg) scale(0.995) translateY(-1px);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Centered cleanly on the torn parchment paper */
  padding-top: clamp(235px, 29vh, 275px);
  padding-bottom: 70px;
  padding-left: 20px;
  padding-right: 20px;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

@media (max-height: 720px) {
  .hero-content {
    padding-top: 215px;
    padding-bottom: 40px;
  }
  .hero-names {
    font-size: 2.3rem !important;
    margin-bottom: 8px !important;
  }
  .hero-weds {
    font-size: 1.3rem !important;
    margin: 2px 0 !important;
  }
  .hero-subtitle {
    font-size: 9px !important;
    margin-bottom: 8px !important;
  }
  .hero-date-box {
    margin: 8px 0 !important;
  }
  .hero-day {
    font-size: 2.5rem !important;
  }
  .hero-location-tag {
    margin-top: 8px !important;
  }
  .hero-venue-name {
    font-size: 1.45rem !important;
  }
}

.hero-content.revealed {
  opacity: 1;
}

.hero-names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.6vw, 3.6rem);
  line-height: 0.95;
  color: var(--text-olive);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero-weds {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1;
  margin: 4px 0;
  color: var(--gold-accent);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-olive);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto 12px;
  font-weight: 500;
}

.hero-date-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 12px;
  color: var(--text-olive);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.hero-date-sprig {
  position: absolute;
  top: 50%;
  width: 34px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.hero-date-sprig.left {
  left: -52px;
  transform: translateY(-50%) rotate(-105deg);
}

.hero-date-sprig.right {
  right: -52px;
  transform: translateY(-50%) scaleX(-1) rotate(105deg);
}

.hero-month {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.9;
  padding-left: 0.32em;
}

.hero-day {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 8vw, 3.6rem);
  line-height: 1;
  margin: 1px 0;
  color: var(--text-olive);
}

.hero-day-name {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 3px;
  padding-left: 0.26em;
}

.hero-year {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.38em;
  opacity: 0.9;
  margin-top: 3px;
  padding-left: 0.38em;
  font-weight: 500;
}

.hero-location-tag {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-olive);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  opacity: 0.85;
  margin-top: 14px;
  margin-bottom: 2px;
}

.hero-venue-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 400;
  color: var(--text-olive);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
}

.hero-scroll-btn {
  position: absolute;
  bottom: clamp(14px, 2.8vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(250, 248, 242, 0.85);
  border: 1px solid rgba(61, 73, 40, 0.15);
  color: var(--text-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounceDown 2s infinite ease-in-out;
}

.hero-scroll-btn:hover {
  background: #ffffff;
  transform: translateX(-50%) translateY(3px);
}

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

/* ============================================================
   COUNTDOWN SECTION (INTEGRATED INTO IMPASTO OIL PAINTING)
   ============================================================ */
.countdown-section {
  position: relative;
  padding: 80px 20px 60px;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-cream);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--text-olive);
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.2rem;
  }
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-olive-light);
  margin-bottom: 20px;
}

/* Authentic Impasto Frame Container */
.countdown-frame-wrap {
  position: relative;
  aspect-ratio: 1038 / 1515;
  width: 88vw;
  min-width: 300px;
  max-width: 440px;
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.countdown-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Calligraphic Days inside the frame */
.countdown-days-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 15.5%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.countdown-days-num {
  font-family: var(--font-script);
  font-size: clamp(4.6rem, 16vw, 7.2rem);
  line-height: 0.9;
  color: var(--text-olive);
  font-weight: 400;
}

.countdown-days-label {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-olive-light);
  margin-top: -6px;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* Calligraphic Subunits inside frame */
.countdown-subunits-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.countdown-subunit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.countdown-subunit-num {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 8vw, 3.4rem);
  line-height: 0.95;
  color: var(--text-olive);
}

.countdown-subunit-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-olive-light);
  margin-top: -4px;
  font-style: italic;
}

/* ============================================================
   OUR STORY SECTION (SLIDE 2 - CLOUD IMPASTO PAINTING)
   ============================================================ */
.our-story-section {
  position: relative;
  padding: 85px 20px 100px;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-cream);
  width: 100%;
  box-sizing: border-box;
}

.our-story-clouds {
  position: absolute;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0.88;
  animation: floatClouds 24s infinite ease-in-out alternate;
}

@keyframes floatClouds {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-48%) translateY(-8px) scale(1.02);
  }
  100% {
    transform: translateX(-52%) translateY(4px) scale(1);
  }
}

.our-story-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.our-story-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.1;
  color: var(--text-olive);
  margin-bottom: 16px;
}

.our-story-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 4vw, 1.32rem);
  font-style: italic;
  color: var(--gold-accent);
  margin-top: -6px;
  margin-bottom: 26px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .our-story-title {
    font-size: 3.6rem;
  }
}

.our-story-text {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 3.5vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-olive);
  margin-bottom: 16px;
  word-wrap: break-word;
}

.our-story-highlight {
  font-family: var(--font-display);
  font-size: clamp(1.04rem, 3.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--olive-dark);
  margin: 26px auto 20px;
  padding: 16px 20px;
  background: rgba(254, 252, 247, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.05);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .our-story-text {
    font-size: 1.2rem;
  }
}

.our-story-signature {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 6.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--gold-accent);
  margin-top: 26px;
  display: inline-block;
}

/* ============================================================
   WELCOME MESSAGE
   ============================================================ */
.welcome-section {
  position: relative;
  padding: 55px 20px 65px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.floral-divider {
  display: block;
  max-width: 170px;
  width: 55%;
  margin: 0 auto 26px;
  opacity: 0.75;
}

.welcome-lead {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 14px;
  font-weight: 500;
}

.welcome-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  line-height: 1.8;
  color: var(--text-olive);
  font-style: italic;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ============================================================
   SANGEET & HALDI SCREEN (TRADITIONAL COURTYARD PAINTING)
   ============================================================ */
body.modal-open {
  overflow: hidden !important;
}

.sangeet-haldi-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(55px, 7.5vh, 75px) 16px 40px;
  box-sizing: border-box;
  background-color: #f7f3ea;
}

.sangeet-haldi-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 1;
}

.sangeet-haldi-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Frosted glass header card for optimal legibility over foliage */
.events-header-card {
  width: 100%;
  max-width: 350px;
  background: rgba(254, 252, 247, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 160, 89, 0.48);
  border-radius: 20px;
  padding: 15px 18px 13px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(50, 35, 15, 0.08);
  box-sizing: border-box;
  text-align: center;
}

.events-screen-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8c5d1a;
  margin-bottom: 4px;
  font-weight: 700;
  display: block;
}

.events-screen-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6.2vw, 2.45rem);
  line-height: 1.15;
  color: #1a2c1d;
  font-weight: 500;
  margin: 0 0 4px;
}

.events-screen-hint {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13.5px;
  color: #4a3c2c;
  margin: 0;
}

/* Event Boxes Grid */
.events-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* Vaibhavi's 2 events: smaller compact side-by-side tiles */
.events-boxes-grid.events-count-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 320px;
  gap: 10px;
}

/* Small Box Type Tile */
.event-tile-box {
  background: rgba(254, 252, 247, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.42);
  border-radius: 16px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(50, 35, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  outline: none;
  font-family: inherit;
  color: inherit;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.event-tile-box:hover,
.event-tile-box:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 140, 70, 0.22);
  border-color: rgba(180, 140, 70, 0.8);
  background: rgba(255, 254, 250, 0.94);
}

.tile-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 237, 222, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.tile-emoji {
  font-size: 18px;
  line-height: 1;
}

.tile-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #243527;
  line-height: 1.2;
  margin: 0 0 5px;
}

.tile-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #785924;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(245, 238, 224, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.32);
  border-radius: 12px;
  padding: 3px 8px;
  margin-bottom: 6px;
}

.tile-tap-hint {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #927546;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Event Detail Modal */
.event-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.event-modal-card {
  position: relative;
  background: rgba(255, 254, 250, 0.98);
  border: 1.5px solid rgba(197, 160, 89, 0.55);
  border-radius: 24px;
  padding: 28px 20px 24px;
  width: 100%;
  max-width: 360px;
  max-height: 88vh;
  overflow-y: auto;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-modal-backdrop.active .event-modal-card {
  transform: scale(1) translateY(0);
}

.event-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(240, 233, 219, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: #554433;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.event-modal-close:hover {
  background: rgba(230, 220, 200, 1);
  transform: scale(1.08);
}

.event-modal-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f7f1e3;
  border: 1.5px solid rgba(197, 160, 89, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.event-modal-emoji {
  font-size: 24px;
  line-height: 1;
}

.event-modal-tagline {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c601e;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.2vw, 1.95rem);
  color: #243527;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 10px;
}

.event-modal-time-badge {
  display: inline-block;
  background: rgba(244, 238, 226, 0.95);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #3b2f1e;
  margin-bottom: 12px;
}

.event-modal-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: #4f4234;
  font-style: italic;
  margin: 0 0 16px;
}

.event-modal-venue-box {
  background: rgba(250, 246, 238, 0.92);
  border: 1px solid rgba(197, 160, 89, 0.38);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  text-align: left;
}

.event-modal-venue-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.venue-pin-icon {
  font-size: 18px;
  line-height: 1.3;
}

.venue-header-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a692f;
  font-weight: 600;
  margin: 0 0 2px;
}

.modal-venue-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #223425;
  margin: 0 0 2px;
}

.modal-venue-city {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #635745;
  margin: 0;
}

.btn-modal-maps {
  display: block;
  width: 100%;
  padding: 8px 12px;
  box-sizing: border-box;
  background: #243527;
  color: #f7f3ea !important;
  text-decoration: none;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-modal-maps:hover {
  background: #17241a;
  transform: translateY(-1px);
}

.event-modal-dress {
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: #7b5b24;
  background: rgba(246, 240, 228, 0.7);
  border-radius: 12px;
  padding: 6px 12px;
  display: inline-block;
  margin-top: 2px;
}

.event-item-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.event-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-icon {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.18));
}

.event-item-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #946820;
  margin-bottom: 4px;
  font-weight: 500;
}

.event-item-name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  line-height: 1.2;
  color: #243317;
  margin-bottom: 6px;
}

.event-item-desc {
  font-family: var(--font-body);
  font-size: clamp(0.96rem, 3.4vw, 1.05rem);
  line-height: 1.6;
  color: #384628;
  font-style: italic;
  max-width: 320px;
  margin: 0 auto 10px;
}

.event-meta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.event-timing-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #855b1a;
  border-bottom: 1px solid rgba(133, 91, 26, 0.4);
  padding-bottom: 3px;
  font-weight: 500;
}

/* Dress Code Badge across all events */
.event-dress-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #855b1a;
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.26);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
  margin-top: 2px;
}

.shaadi-dress-code {
  color: #8a3c5a;
  background: rgba(138, 60, 90, 0.09);
  border-color: rgba(138, 60, 90, 0.28);
  margin-top: 10px;
}

/* ============================================================
   SHAADI & RECEPTION SCREEN (ROYAL MANDAP PAINTING)
   ============================================================ */
.shaadi-reception-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(70px, 11vh, 100px) 20px 40px;
  box-sizing: border-box;
  background-color: #faf5ee;
}

.shaadi-reception-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 1;
}

.shaadi-reception-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: rgba(255, 253, 250, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(215, 180, 125, 0.45);
  border-radius: 18px;
  padding: 24px 18px 22px;
  box-shadow: 0 10px 30px rgba(60, 20, 30, 0.09);
  box-sizing: border-box;
}

.shaadi-screen-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.2vw, 2.9rem);
  line-height: 1.15;
  color: #381622;
  margin-bottom: 8px;
}

.shaadi-screen-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3.6vw, 1.12rem);
  line-height: 1.65;
  color: #4a2734;
  font-style: italic;
  max-width: 340px;
  margin: 0 auto 12px;
}

.shaadi-tag {
  color: #8a571c;
  border-color: rgba(138, 87, 28, 0.45);
}

/* Shaadi Venue Card inside Shaadi Content */
.shaadi-venue-card {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(215, 180, 125, 0.55);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.shaadi-venue-label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c5d22;
  font-weight: 600;
  margin: 0 0 4px;
}

.shaadi-venue-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #381622;
  margin: 0 0 2px;
}

.shaadi-venue-city {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #5d3545;
  margin: 0 0 12px;
}

.btn-maps-shaadi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  background: #381622;
  color: #faf5ee !important;
  text-decoration: none;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(56, 22, 34, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-maps-shaadi:hover {
  background: #230d15;
  transform: translateY(-2px);
}

/* ============================================================
   VENUE & MAPS SECTION
   ============================================================ */
.venue-section {
  position: relative;
  padding: 95px 24px;
  text-align: center;
  background-color: var(--bg-cream);
  overflow: hidden;
}

.venue-art {
  max-width: 150px;
  margin: 0 auto 22px;
  opacity: 0.92;
}

.venue-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--text-olive);
  margin-bottom: 8px;
}

.venue-address {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-olive-light);
  font-style: italic;
  max-width: 400px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--text-olive);
  color: #faf8f2;
  border: 1px solid var(--text-olive);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(61, 73, 40, 0.15);
}

.btn-maps:hover {
  background: #2b331c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 73, 40, 0.22);
}

/* ============================================================
   FOOTER (SACRED PHERAS & ROYAL ARCH PAINTING WITH MOVING LOTUS & FLAME)
   ============================================================ */
.footer-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 60px;
  box-sizing: border-box;
  background-color: #faf5ed;
}

.footer-painting-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.footer-painting-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.footer-moving-lotus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  pointer-events: none;
  transform-origin: 50% 0%;
  animation: lotusBreathe 6s ease-in-out infinite alternate;
}

@keyframes lotusBreathe {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.02) translateY(3px);
  }
  100% {
    transform: scale(0.99) translateY(-1px);
  }
}

.footer-moving-flame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 3;
  pointer-events: none;
  animation: flameFlicker 1.8s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% {
    opacity: 0.85;
    filter: drop-shadow(0 0 5px #ff6600) drop-shadow(0 0 12px #ffbb00);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px #ff4500) drop-shadow(0 0 22px #ffcc00);
  }
  100% {
    opacity: 0.9;
    filter: drop-shadow(0 0 7px #ff7700) drop-shadow(0 0 16px #ffa500);
  }
}

.footer-content {
  position: relative;
  z-index: 5;
  text-align: center;
  width: 100%;
  max-width: 360px;
  margin-top: -165px;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 18px !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.footer-invitation-lead {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8c601e;
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.footer-parents-names {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.5vw, 2.75rem);
  font-weight: 400;
  color: #243527;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.footer-names {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 7.5vw, 3.2rem);
  color: var(--text-olive);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  line-height: 0.95;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-weds {
  font-family: var(--font-script);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--gold-accent);
  margin: 3px 0;
}

.footer-date {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #855b1a;
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.8vw, 1.35rem);
  color: #3b4d37;
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.footer-hashtag {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: #8c601e;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* ============================================================
   FLOATING PETALS ANIMATION
   ============================================================ */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}

.falling-petal {
  position: absolute;
  top: -60px;
  opacity: 0.85;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

@keyframes petalFall {
  0% {
    top: -60px;
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    top: 105vh;
    opacity: 0;
  }
}

@keyframes petalSway {
  0% {
    transform: translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateX(45px) rotate(180deg);
  }
  100% {
    transform: translateX(-45px) rotate(360deg);
  }
}

/* ============================================================
   DEV / PREVIEW SWITCHER BAR (DISCREET & COLLAPSIBLE)
   ============================================================ */
.preview-switcher-bar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(61, 73, 40, 0.2);
  border-radius: 40px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  max-width: 96vw;
  overflow-x: auto;
  font-size: 9px;
}

/* Hide switcher bar on mobile by default so real wedding guests on DuckDNS see pure artwork */
@media (max-width: 768px) {
  .preview-switcher-bar {
    display: none;
  }
  body.show-preview .preview-switcher-bar {
    display: flex;
  }
}

.preview-switcher-bar::-webkit-scrollbar {
  display: none;
}

.preview-switcher-item {
  padding: 4px 10px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-olive-light);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.preview-switcher-item:hover {
  color: var(--text-olive);
  background: rgba(61, 73, 40, 0.08);
}

.preview-switcher-item.active {
  background: var(--text-olive);
  color: #faf8f2;
}
