/* ============================================================
   Irfan & Mohsena Wedding Invitation — Complete Stylesheet
   ============================================================ */

/* ======================
   1. CSS Custom Properties
   ====================== */
:root {
  --radius: 0.625rem;
  --background: #faf6ee;
  --paper: #fbf4e8;
  --foreground: #172846;
  --card: #fdfaf4;
  --primary: #142c55;
  --primary-foreground: #faf6ee;
  --secondary: #bfdcef;
  --muted: #ede7db;
  --muted-foreground: #405870;
  --accent: #c99d4e;
  --gold: #c99d4e;
  --gold-soft: #dcc188;
  --dusty-blue: #99bdd3;
  --border: #dccfbc;
  --input: #e5ddd0;
  --ring: #c99d4e;
  --shadow-paper: 0 30px 60px -30px rgba(45,71,114,0.25),
                  0 8px 24px -12px rgba(45,71,114,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', 'Pinyon Script', cursive;
  --font-sans: 'Cormorant SC', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}

/* ======================
   2. Base Reset
   ====================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga", "dlig", "kern";
}
img, video, svg, canvas { display: block; max-width: 100%; height: auto; vertical-align: middle; }
button, input, select, textarea { font: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: 0.01em; }
ul, ol { list-style: none; }

/* ======================
   3. Font Utility Classes
   ====================== */
.font-script { font-family: var(--font-script); }
.font-display { font-family: var(--font-display); }
.font-caps { font-family: var(--font-sans); letter-spacing: 0.22em; text-transform: uppercase; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* ======================
   4. Intro Overlay
   ====================== */
.intro-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: black; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1000ms ease-in-out;
}
.intro-overlay.hidden { opacity: 0; pointer-events: none; }
.intro-overlay video { width: 100%; height: 100%; object-fit: cover; }
.tap-label {
  position: absolute; bottom: 4rem; left: 50%; transform: translateX(-50%);
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; font-family: var(--font-sans);
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; white-space: nowrap;
  pointer-events: none;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ======================
   5. Ambient Layer — Birds
   ====================== */
.ambient-layer {
  position: fixed; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 10; user-select: none; -webkit-user-select: none;
}
.bird { position: absolute; width: 2.5rem; height: 2.5rem; }
.bird svg { width:100%; height:100%; color: rgba(201,157,78,0.6); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08)); }

@keyframes fly-lr {
  0% { transform: translate3d(-10vw,var(--fly-y-start,0),0) rotate(5deg) scale(var(--bird-scale,1)); opacity:0; }
  10% { opacity:0.75; } 90% { opacity:0.75; }
  100% { transform: translate3d(110vw,var(--fly-y-end,0),0) rotate(-5deg) scale(var(--bird-scale,1)); opacity:0; }
}
@keyframes fly-rl {
  0% { transform: translate3d(110vw,var(--fly-y-start,0),0) rotate(-5deg) scaleX(-1) scale(var(--bird-scale,1)); opacity:0; }
  10% { opacity:0.75; } 90% { opacity:0.75; }
  100% { transform: translate3d(-10vw,var(--fly-y-end,0),0) rotate(5deg) scaleX(-1) scale(var(--bird-scale,1)); opacity:0; }
}
.animate-fly-lr { animation: fly-lr var(--fly-duration,15s) linear infinite; animation-delay: var(--fly-delay,0s); }
.animate-fly-rl { animation: fly-rl var(--fly-duration,15s) linear infinite; animation-delay: var(--fly-delay,0s); }

@keyframes flap-side-front { 0%,100% { transform: rotate(25deg); } 50% { transform: rotate(-25deg); } }
@keyframes flap-side-back { 0%,100% { transform: rotate(15deg); } 50% { transform: rotate(-35deg); } }
.animate-flap-front { transform-origin: 32px 30px; animation: flap-side-front var(--flap-duration,0.6s) ease-in-out infinite; }
.animate-flap-back { transform-origin: 30px 28px; animation: flap-side-back var(--flap-duration,0.6s) ease-in-out infinite; }

/* ======================
   6. Ambient Layer — Petals
   ====================== */
.petal { position: absolute; top: -50px; }
.petal.small svg, .petal svg { width: 1rem; height: 1rem; }
.petal.large svg { width: 1.25rem; height: 1.25rem; }
.petal.primary svg { color: var(--primary); }
.petal.secondary svg { color: var(--secondary); }

@keyframes fall-drift {
  0% { transform: translate3d(0,-10vh,0) rotate(0) rotateY(0) scale(var(--petal-scale,1)); opacity:0; }
  10% { opacity: var(--petal-opacity,0.45); }
  90% { opacity: var(--petal-opacity,0.45); }
  100% { transform: translate3d(var(--petal-drift,100px),110vh,0) rotate(360deg) rotateY(180deg) scale(var(--petal-scale,1)); opacity:0; }
}
.animate-petal { animation: fall-drift var(--petal-duration,15s) linear infinite; animation-delay: var(--petal-delay,0s); }

/* ======================
   7. Float Animations
   ====================== */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out 3s infinite; }
.animate-float-slow { animation: float 8s ease-in-out infinite; }

/* ======================
   8. Scroll Reveal
   ====================== */
.reveal {
  opacity: 0; transition: all 1000ms ease-out; will-change: transform, opacity;
}
.reveal.from-top { transform: translateY(-2.5rem); }
.reveal.from-bottom { transform: translateY(2.5rem); }
.reveal.from-left { transform: translateX(-2.5rem); }
.reveal.from-right { transform: translateX(2.5rem); }
.reveal.scale-in { transform: scale(0.95); }
.reveal.visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

/* ======================
   9. Section Backgrounds
   ====================== */
.section-bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
.section-bg.mobile { display: block; }
.section-bg.desktop { display: none; }
.section-bg.top { object-position: top; }

/* ======================
   10. Common Decorative Elements
   ====================== */
.divider-line {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  width: 9rem; margin: 0.25rem auto; opacity: 0.8;
}
.divider-line.small { width: 9rem; }
.divider-line.ornate { width: 12rem; gap: 0.375rem; }
.divider-line.tiny { width: 6rem; gap: 0.5rem; }
.divider-line .line-left {
  height: 0.5px; flex: 1;
  background: linear-gradient(to right, transparent, var(--gold));
}
.divider-line .line-right {
  height: 0.5px; flex: 1;
  background: linear-gradient(to left, transparent, var(--gold));
}
.divider-line .heart-icon { color: var(--gold); font-size: 10px; }
.divider-line .diamond-icon { color: var(--gold); font-size: 8px; }
.divider-line .ornate-center { color: var(--gold); font-size: 8px; display: flex; align-items: center; gap: 0.25rem; }
.divider-line .ornate-center .tiny-heart { font-size: 6px; }

.section-ornament { color: var(--gold); font-size: 0.875rem; margin-bottom: 0.5rem; }
.section-ornament.small { font-size: 0.875rem; opacity: 0.8; margin-bottom: 0.5rem; }

.section-title {
  font-family: var(--font-display); font-size: 1.875rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
}
.section-subtitle {
  font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.15em;
  font-weight: 600; color: var(--primary); margin-top: 1rem;
  text-transform: uppercase;
}

.heart-vine-divider { margin-top: 0.5rem; display: flex; align-items: center; justify-content: center; opacity: 0.85; }
.heart-vine-divider svg { width: 8rem; height: auto; color: var(--gold); }
.heart-vine-divider.small svg { width: 8rem; }

.gold-amp { color: var(--gold); font-weight: 300; font-style: italic; text-transform: lowercase; }

/* Deckled card effect */
.deckled {
  box-shadow: var(--shadow-paper); background: var(--paper);
  clip-path: polygon(0% 2%,3% 0%,12% 1.2%,25% .3%,40% 1.4%,55% .2%,72% 1.5%,88% .4%,98% 1.8%,100% 5%,99% 20%,100% 38%,98.5% 55%,100% 72%,99% 88%,98% 98%,90% 99.6%,75% 98.6%,60% 99.8%,45% 98.8%,28% 99.6%,12% 98.7%,2% 99.5%,0% 95%,1% 78%,.2% 60%,1.5% 42%,.3% 25%,1.2% 10%);
}

/* ======================
   11. Hero Section
   ====================== */
.hero-section {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem; text-align: center;
  user-select: none; overflow: hidden; isolation: isolate;
}
.hero-monogram { flex: none; padding-top: 1rem; }
.monogram-wrap { transition: transform 0.5s; }
.monogram-img { height: 7rem; width: 7rem; object-fit: contain; }

.hero-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 0.25rem 0; width: 100%; max-width: 28rem;
}
.hero-title {
  line-height: 1.2; display: flex; align-items: center;
  justify-content: center; gap: 0.25rem 1rem; flex-wrap: wrap; padding: 0 1rem;
}
.hero-name { color: var(--foreground); font-size: 2.25rem; letter-spacing: 0.025em; font-weight: 400; }
.hero-weds { color: var(--gold); font-size: 1.5rem; font-weight: 300; font-style: italic; text-transform: lowercase; padding: 0 0.25rem; }
.hero-subtitle-wrap { display: flex; flex-direction: column; align-items: center; }
.hero-subtitle { letter-spacing: 0.25em; color: var(--foreground); font-size: 0.75rem; font-weight: 600; }

/* Save the Date Card */
.save-the-date-wrap { position: relative; width: 100%; max-width: 280px; margin: 0.25rem auto; }
.save-the-date-card {
  position: relative; width: 100%; aspect-ratio: 5/2;
  border-radius: 0.75rem; overflow: hidden;
  border: 1px solid rgba(201,157,78,0.3); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  touch-action: none;
}
.save-the-date-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 1rem; text-align: center;
}
.save-date-label { font-size: 0.5rem; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 0.25rem; }
.save-date-value { font-size: 1.5rem; color: var(--foreground); line-height: 1; margin: 0.25rem 0; }
.save-date-location { font-size: 0.45rem; letter-spacing: 0.2em; color: var(--muted-foreground); }
.scratch-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: grab; transition: opacity 0.5s ease-in-out;
  z-index: 5;
}
.scratch-canvas:active {
  cursor: grabbing;
}

/* Countdown */
.countdown-wrapper {
  width: 100%; transition: all 1000ms ease-out;
  opacity: 0; transform: translateY(-0.5rem);
  max-height: 0; overflow: hidden; pointer-events: none; margin-top: 0;
}
.countdown-wrapper.visible {
  opacity: 1; transform: translateY(0);
  max-height: 500px; pointer-events: auto;
}
.countdown-header {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-bottom: 0.5rem; user-select: none;
}
.countdown-header .countdown-label { color: var(--gold); font-size: 0.65rem; letter-spacing: 0.25em; }
.countdown-ornament { color: var(--gold); font-size: 0.875rem; opacity: 0.8; }

.countdown-box {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 1rem; width: 100%; max-width: 280px; margin: 0.25rem auto;
}
.countdown-vine { display: none; user-select: none; transform: translateY(-0.25rem); }
.countdown-vine .vine-svg { width: 2rem; height: 5rem; color: rgba(201,157,78,0.6); }

.countdown-units {
  flex: 1; width: 100%; display: flex; align-items: center; justify-content: center;
  padding: 0.75rem 0.25rem; border: 1px solid rgba(201,157,78,0.3);
  background: rgba(255,255,255,0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 0.75rem; user-select: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.countdown-unit { flex: 1; display: flex; flex-direction: column; align-items: center; }
.countdown-number { font-size: 1.5rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--foreground); }
.countdown-unit-label { font-size: 0.45rem; letter-spacing: 0.1em; color: var(--gold); margin-top: 0.5rem; }
.countdown-sep { height: 2rem; width: 0.5px; background: rgba(201,157,78,0.3); flex-shrink: 0; }

.countdown-tagline {
  color: var(--foreground); font-size: 1.25rem; margin-top: 0.75rem;
  user-select: none; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.tagline-ornament { font-size: 0.75rem; }

/* Hero Footer */
.hero-footer {
  flex: none; display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 24rem; padding-bottom: 0.5rem;
}
.hero-footer-text {
  margin: 0.625rem 0; color: var(--foreground);
  font-size: 0.875rem; letter-spacing: 0.025em;
  max-width: 280px; font-weight: 400; line-height: 1.5;
}

/* ======================
   12. Families Section
   ====================== */
.families-section {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 2.5rem 1rem; text-align: center; user-select: none;
  overflow: hidden; isolation: isolate; background: white;
}
.families-header { flex: none; width: 100%; padding-top: 1rem; }
.families-vine-icon { width: 1.25rem; height: 2rem; color: var(--gold); margin: 0 auto 0.25rem; }
.families-pretitle { font-size: 0.55rem; letter-spacing: 0.3em; color: var(--primary); font-weight: 600; }
.families-title {
  margin-top: 0.25rem; font-size: 1.5rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--primary); font-weight: 500; line-height: 1.3;
}
.families-title-script {
  display: block; font-family: var(--font-script); color: var(--gold);
  font-size: 1.875rem; font-style: italic; text-transform: capitalize;
  margin-top: 0.125rem; font-weight: 400; letter-spacing: 0;
}
.families-sub-ornament { color: var(--gold); font-size: 0.75rem; margin-top: 0.25rem; opacity: 0.8; }

/* Family Grid */
.families-grid {
  flex: 1; display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem; align-items: center; width: 100%; max-width: 440px;
  padding: 0 0.25rem; padding-top: 0;
}
.family-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0.25rem; }
.family-name { font-size: 1.875rem; color: var(--primary); line-height: 1; font-style: italic; font-weight: 400; }
.family-name-divider { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin: 0.5rem 0; opacity: 0.7; }
.family-name-divider .line-left, .family-name-divider .line-right {
  height: 0.5px; width: 1.5rem; background: linear-gradient(to right, transparent, var(--gold));
}
.family-name-divider .line-right { background: linear-gradient(to left, transparent, var(--gold)); }
.tiny-diamond { color: var(--gold); font-size: 6px; }
.family-relation-label { font-size: 0.4rem; letter-spacing: 0.2em; color: var(--muted-foreground); margin-bottom: 0.25rem; font-weight: 600; }
.family-relation-label.sibling-label { margin-top: 0.75rem; }
.family-parents { font-size: 0.65rem; color: var(--primary); letter-spacing: 0.025em; line-height: 1.5; text-transform: uppercase; font-weight: 600; }
.family-siblings { font-size: 0.6rem; color: var(--muted-foreground); letter-spacing: 0.025em; line-height: 1.4; text-transform: uppercase; font-weight: 600; }
.family-ornament { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin-top: 0.75rem; color: var(--gold); font-size: 8px; opacity: 0.7; }

/* Family Center Monogram */
.family-center {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; align-self: stretch;
  min-height: 160px; position: relative; user-select: none; padding: 0 0.25rem;
}
.family-center-line {
  width: 1px; flex: 1;
}
.family-center-line.top { background: linear-gradient(to bottom, transparent, rgba(201,157,78,0.75)); }
.family-center-line.bottom { background: linear-gradient(to top, transparent, rgba(201,157,78,0.75)); }
.monogram-center-wrap { margin: 0.5rem 0; transform: scale(0.9); transition: transform 0.3s; }
.monogram-center { height: 5rem; width: 5rem; object-fit: contain; }

/* Families Footer */
.families-footer { width: 100%; margin-top: 1.5rem; padding-bottom: 1rem; text-align: center; }
.families-footer-text { font-size: 0.55rem; letter-spacing: 0.25em; color: var(--primary); line-height: 1.6; font-weight: 600; }
.families-footer-script { color: var(--gold); font-size: 1.5rem; font-style: italic; line-height: 1; margin-top: 0.25rem; font-weight: 400; }

/* ======================
   13. Our Story Section
   ====================== */
.story-section {
  position: relative; isolation: isolate; min-height: 100vh;
  overflow: hidden; padding: 4rem 1.5rem; background: var(--paper);
}
.story-container { position: relative; max-width: 42rem; margin: 0 auto; text-align: center; }
.story-title { font-size: 1.875rem; color: var(--primary); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.story-divider { margin-top: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: var(--gold); }
.story-divider .line-left { height: 1px; width: 3rem; background: linear-gradient(to right, transparent, var(--gold)); }
.story-divider .line-right { height: 1px; width: 3rem; background: linear-gradient(to left, transparent, var(--gold)); }
.story-ornament { font-size: 0.875rem; }
.story-subtitle { margin-top: 0.75rem; font-style: italic; font-size: 0.875rem; color: var(--muted-foreground); }

/* Carousel */
.carousel-wrapper { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.carousel-container { position: relative; width: 85%; max-width: 20rem; user-select: none; cursor: grab; }
.carousel-container:active { cursor: grabbing; }
.carousel-track {
  position: relative; transition: transform 0.5s; transform: rotate(-1.5deg);
  filter: drop-shadow(0 20px 25px rgba(0,0,0,0.1));
}
.carousel-track:hover { transform: rotate(0deg); }
.carousel-slide {
  width: 100%; height: auto; object-fit: contain;
  user-select: none; pointer-events: none;
  transition: opacity 300ms ease;
}
.carousel-slide:not(:first-child) {
  position: absolute; inset: 0; width: 100%; height: auto;
}
.carousel-slide { opacity: 0; }
.carousel-slide.active { opacity: 1; position: relative; }

.carousel-dots { margin-top: 1rem; display: flex; justify-content: center; gap: 0.375rem; }
.carousel-dot {
  height: 6px; width: 6px; border-radius: 50%; background: var(--gold-soft);
  transition: background 0.2s; cursor: pointer; border: none;
}
.carousel-dot.active { background: var(--primary); }

.carousel-prev, .carousel-next {
  flex-shrink: 0; display: grid; place-items: center;
  height: 2.25rem; width: 2.25rem; border-radius: 50%;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-soft); color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); cursor: pointer; transition: background 0.2s;
}
.carousel-prev:hover, .carousel-next:hover { background: white; }
.carousel-prev svg, .carousel-next svg { width: 1rem; height: 1rem; }

/* Story Quote Card */
.story-quote-card {
  max-width: 280px; padding: 1rem; margin: 2.5rem auto 0; user-select: none;
  border: 1px solid rgba(201,157,78,0.2); transform: rotate(0.5deg); text-align: center;
}
.quote-vine { width: 1rem; height: 1rem; color: var(--gold); margin: 0 auto 0.375rem; opacity: 0.8; }
.quote-text { color: var(--gold); font-size: 0.875rem; font-style: italic; font-weight: 400; }
.quote-heart { color: var(--gold); font-size: 10px; margin-top: 0.375rem; opacity: 0.8; }

/* ======================
   14. Schedule Section
   ====================== */
.schedule-section {
  position: relative; isolation: isolate; min-height: 100vh;
  padding: 5rem 1.5rem; background: #e7ebf0; overflow: hidden;
}
.schedule-container {
  position: relative; max-width: 42rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; padding-top: 2rem;
}
.schedule-header { text-align: center; margin-bottom: 1rem; }
.schedule-card-wrap { width: 100%; max-width: 420px; position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; margin-top: 0.5rem; padding: 0 1rem; }
.schedule-card { width: 100%; display: flex; justify-content: center; }
.schedule-card-img { width: 100%; max-height: 65vh; height: auto; object-fit: contain; user-select: none; }

/* ======================
   15. Wedding Section
   ====================== */
.wedding-section {
  position: relative; isolation: isolate; min-height: 100vh;
  background: #e7ebf0; overflow: hidden;
}
.wedding-container {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 16rem 1rem 5rem; text-align: center;
}
.wedding-header { margin-bottom: 3rem; }
.wedding-date { text-align: center; margin-top: 1rem; z-index: 10; }
.wedding-date-text { font-size: 1.125rem; color: var(--primary); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
 
.wedding-content-img-wrap {
  position: relative; width: 12rem; height: 12rem;
  display: flex; align-items: center; justify-content: center;
  margin: 1.5rem 0 0; z-index: 10; overflow: hidden;
}
.wedding-content-img {
  position: absolute; width: 500px; max-width: none;
  object-fit: cover; pointer-events: none; mix-blend-mode: lighten; opacity: 0.9;
  top: 50%; left: 50%; transform: translate(-50%, -52%);
  clip-path: inset(42% 0 43% 0);
}
 
.wedding-details { text-align: center; z-index: 10; margin-top: 1.5rem; }
.wedding-title { font-size: 3.75rem; color: var(--primary); font-weight: 400; line-height: 1; }
.wedding-time {
  margin-top: 1rem; display: flex; align-items: center; justify-content: center;
  gap: 1rem; color: var(--primary); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.1em;
}
.time-line { height: 1px; width: 1.5rem; background: var(--gold); }
.wedding-venue-label { margin-top: 1rem; font-size: 1.875rem; color: var(--gold); font-weight: 400; }
.wedding-venue-link {
  margin-top: 0.25rem; font-size: 0.875rem; color: var(--primary); letter-spacing: 0.1em;
  line-height: 1.6; font-weight: 600; display: block; transition: color 0.2s;
}
.wedding-venue-link:hover { color: var(--gold); }
 
/* Bible Verse */
.wedding-verse { text-align: center; margin-top: 2rem; margin-bottom: 2rem; z-index: 10; }
.verse-quotes { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.verse-quote-mark { color: var(--gold); font-size: 1.25rem; font-style: italic; font-family: serif; }
.wedding-verse-text { font-family: serif; font-style: italic; color: var(--primary); font-size: 0.875rem; max-width: 20rem; margin: 0 auto; }
.wedding-verse-ref { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--primary); font-weight: 700; margin-top: 0.5rem; }
.verse-heart { color: var(--gold); font-size: 10px; margin-top: 0.25rem; }

/* ======================
   16. Reception Section
   ====================== */
.reception-section {
  position: relative; isolation: isolate; min-height: 100vh;
  background: #e7ebf0; overflow: hidden;
}
.reception-container {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 6rem 1rem 5rem;
}
.reception-header { text-align: center; margin-bottom: 2rem; }
.reception-content-wrap {
  position: relative; width: 100%; margin-top: 3.75rem;
  max-width: 500px; display: flex; align-items: center; justify-content: center;
  z-index: 10; filter: drop-shadow(0 25px 25px rgba(0,0,0,0.15));
}
.filter-svg { position: absolute; }
.reception-content-img { width: 100%; height: auto; object-fit: contain; user-select: none; }

/* ======================
   17. RSVP Section
   ====================== */
.rsvp-section {
  position: relative; min-height: 100vh; padding: 4rem 1rem;
  isolation: isolate; display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
.rsvp-map-wrapper {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.rsvp-map-wrapper.mobile { display: block; }
.rsvp-map-wrapper.mobile .section-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
.map-overlay-link {
  position: absolute; z-index: 2; display: block; cursor: pointer;
}
.nellore-link {
  left: 15%; top: 37%; width: 45%; height: 8%;
}
.sullurupeta-link {
  left: 20%; top: 72%; width: 45%; height: 8%;
}
.rsvp-card-wrap {
  position: relative; width: 340px; height: 650px; margin-top: 3rem;
  display: flex; flex-direction: column; align-items: center;
}
.rsvp-card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: drop-shadow(0 20px 25px rgba(0,0,0,0.15)); z-index: 0;
}
.rsvp-card-content {
  position: absolute; inset: 0; z-index: 10; width: 100%; height: 100%;
  padding: 6rem 2rem 195px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.rsvp-monogram { display: flex; flex-direction: column; align-items: center; color: #1a2c5b; }
.rsvp-initials { font-size: 1.125rem; letter-spacing: 0.25em; font-weight: 300; line-height: 1; }
.rsvp-flourish { color: #1a2c5b; margin-top: 0.375rem; opacity: 0.8; width: 48px; height: 12px; }
.rsvp-title { margin-top: 0.125rem; font-size: 1.5rem; color: #1a2c5b; letter-spacing: 0.2em; line-height: 1; }
.rsvp-heart { margin-top: 0.125rem; margin-bottom: 0.375rem; color: #c0a062; font-size: 0.75rem; }

/* RSVP Form */
.rsvp-form { text-align: left; width: 100%; }
.rsvp-form .form-group { margin-bottom: 0.375rem; }
.form-label { font-size: 0.55rem; font-weight: 600; color: #1a2c5b; letter-spacing: 0.08em; text-align: left; display: block; margin-bottom: 0.125rem; }
.rsvp-input {
  width: 100%; border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(26,44,91,0.6); background: transparent;
  padding: 0.375rem 0.625rem; font-family: serif; font-size: 11px; color: #1a2c5b;
  transition: border-color 0.2s; outline: none;
}
.rsvp-input::placeholder { color: rgba(26,44,91,0.5); }
.rsvp-input:focus { border-color: #c0a062; }
.rsvp-input.error { border-color: #e40014; }

.rsvp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.rsvp-option {
  border-radius: calc(var(--radius) - 2px); border: 1px solid rgba(26,44,91,0.6);
  padding: 0.375rem 0.5rem; font-size: 11px; letter-spacing: 0.025em;
  color: #1a2c5b; cursor: pointer; transition: all 0.2s; text-align: center; background: transparent;
}
.rsvp-option:hover { background: rgba(26,44,91,0.05); }
.rsvp-option.selected { background: #1a2c5b; color: white; border-color: #1a2c5b; }
.rsvp-option.error { border-color: #e40014; }

.rsvp-submit {
  width: 100%; border-radius: 9999px; background: #1a2c5b;
  padding: 0.375rem 0; font-size: 0.52rem; letter-spacing: 0.18em;
  color: white; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.375rem; border: none;
}
.rsvp-submit:hover { background: rgba(26,44,91,0.9); }
.rsvp-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.rsvp-submit svg { opacity: 0.8; color: white; }

/* RSVP Footer */
.rsvp-footer { margin-top: 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 3rem; position: relative; z-index: 10; }
.rsvp-tagline { font-size: 1.875rem; color: #1a2c5b; font-style: italic; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.rsvp-footer-heart { margin: 0.5rem 0 1.5rem; color: #c0a062; font-size: 0.75rem; }
.rsvp-directions {
  margin-top: 0.5rem; border-radius: 9999px; border: 1px solid rgba(192,160,98,0.4);
  padding: 0.625rem 2rem; font-size: 0.65rem; letter-spacing: 0.15em;
  color: #c0a062; transition: background 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(253,251,247,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.rsvp-directions:hover { background: rgba(192,160,98,0.1); }

/* RSVP Success */
.rsvp-success { text-align: center; color: #1a2c5b; padding: 1rem 0; }
.rsvp-success-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.rsvp-success h3 { font-family: var(--font-script); font-size: 1.5rem; margin-bottom: 0.25rem; }
.rsvp-success p { font-family: var(--font-display); font-size: 0.875rem; }

/* Shake animation for form validation */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ======================
   17b. Responsive — Mobile only (RSVP footer alignment)
   ====================== */
@media (max-width: 767px) {
  .rsvp-section { justify-content: flex-start; padding-top: 3rem; }
  .rsvp-footer { margin-top: 1rem; }
  .rsvp-tagline { font-size: 1.4rem; }
}

/* ======================
   18. Responsive — 768px+
   ====================== */
@media (min-width: 768px) {
  .section-bg.mobile { display: none; }
  .rsvp-map-wrapper.mobile { display: none; }
  .section-bg.desktop { display: block; }

  /* Hero */
  .hero-section { padding: 0.5rem 1rem; }
  .hero-monogram { padding-top: 1.5rem; }
  .monogram-wrap { transform: scale(1.25); }
  .hero-content { justify-content: center; padding: 3rem 0; max-width: 42rem; }
  .hero-name { font-size: 4.5rem; }
  .hero-weds { font-size: 3rem; }
  .hero-subtitle { font-size: 1rem; }
  .save-the-date-wrap { max-width: 420px; }
  .save-date-value { font-size: 2.25rem; }
  .save-date-label { font-size: 0.65rem; }
  .save-date-location { font-size: 0.55rem; }
  .countdown-box { max-width: 520px; gap: 1rem; }
  .countdown-vine { display: block; }
  .countdown-units { padding: 1.25rem 1.5rem; border-radius: 1rem; }
  .countdown-number { font-size: 3rem; }
  .countdown-unit-label { font-size: 0.65rem; }
  .countdown-sep { height: 3rem; }
  .countdown-tagline { font-size: 1.875rem; margin-top: 1rem; }
  .hero-footer { padding-bottom: 4rem; }
  .hero-footer-text { font-size: 1.125rem; max-width: 360px; margin: 1rem 0; }
  .divider-line { width: 15rem; }

  /* Families */
  .families-section { padding: 2.5rem 1rem; }
  .families-header { padding-top: 3rem; }
  .families-pretitle { font-size: 0.75rem; }
  .families-title { font-size: 2.25rem; }
  .families-title-script { font-size: 3rem; }
  .families-grid { max-width: 640px; gap: 1.5rem; }
  .family-name { font-size: 3rem; }
  .family-relation-label { font-size: 0.45rem; }
  .family-parents { font-size: 0.875rem; }
  .family-siblings { font-size: 0.75rem; }
  .family-center { min-height: 220px; }
  .monogram-center-wrap { transform: scale(1.25); }
  .families-footer-text { font-size: 0.65rem; }
  .families-footer-script { font-size: 2.25rem; }

  /* Story */
  .story-title { font-size: 3rem; }
  .story-subtitle { font-size: 1rem; }
  .carousel-wrapper { gap: 1.5rem; }
  .carousel-container { max-width: 24rem; }

  /* Schedule */
  .section-title { font-size: 3rem; }
  .section-subtitle { font-size: 0.875rem; }
  .schedule-card-wrap { max-width: 28rem; padding: 0; }

  /* Wedding */
  .wedding-container { padding: 8.5rem 1rem 5rem; }
  .wedding-header { margin-bottom: 2rem; }
  .wedding-date { margin-top: 2rem; }
  .wedding-date-text { font-size: 1.25rem; }
  .wedding-content-img-wrap { width: 14rem; height: 14rem; margin-top: 2.5rem; }
  .wedding-content-img { width: 600px; }
  .wedding-details { margin-top: 2.5rem; }
  .wedding-title { font-size: 4.5rem; }
  .heart-vine-divider svg { width: 10rem; }
  .wedding-time { font-size: 1.25rem; }
  .wedding-venue-label { font-size: 2.25rem; }
  .wedding-venue-link { font-size: 1rem; }
  .wedding-verse { margin-top: 3.5rem; }
  .wedding-verse-text { font-size: 1rem; }

  /* Reception */
  .reception-container { padding-top: 6rem; }
  .reception-content-wrap { max-width: 520px; margin-top: 5rem; }

  /* RSVP */
  .rsvp-card-wrap { width: 440px; height: 840px; }
  .rsvp-card-content { padding: 9.25rem 3.5rem 255px; }
  .rsvp-initials { font-size: 1.25rem; }
  .rsvp-title { font-size: 1.875rem; }
  .rsvp-form .form-group { margin-bottom: 0.5rem; }
  .form-label { font-size: 0.6rem; }
  .rsvp-input { padding: 0.5rem 0.875rem; font-size: 0.75rem; }
  .rsvp-option { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  .rsvp-submit { padding: 0.625rem 0; font-size: 0.6rem; }
  .rsvp-tagline { font-size: 1.875rem; }
}

/* ======================
   19. Reduced Motion
   ====================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ======================
   20. Music Toggle Button
   ====================== */
.music-toggle {
  position: fixed;
  bottom: 5px;
  right: 5px;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(20, 44, 85, 0.9);
  color: #faf6ee;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 157, 78, 0.4);
  transition: transform 0.2s, opacity 0.3s;
  cursor: pointer;
}
.music-toggle:hover {
  transform: scale(1.05);
}
.music-toggle.hidden {
  display: none;
}
.music-toggle svg {
  display: block;
}
.music-toggle svg.hidden {
  display: none;
}

@media (min-width: 768px) {
  .music-toggle {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

