/* ==========================================================================
   KIRTI & DEEPANSHU - ROYAL ENGAGEMENT INVITATION
   Luxury Indian Wedding Aesthetic & Mobile-First Design
   Matching Exact Reference Screenshots (Deckle Paper & Gold Calligraphy)
   ========================================================================== */

/* --- CSS VARIABLES & COLOR PALETTE --- */
:root {
  --color-ivory: #faf7f2;
  --color-cream: #f4ede1;
  --color-paper: #f7f2e9;
  --color-champagne: #ecdcc9;
  --color-blush: #fcf1ec;
  --color-blush-deep: #edd8cf;
  --color-sage: #889885;
  --color-burgundy: #6e1724;
  --color-burgundy-dark: #4d0d16;
  --color-charcoal: #2a2523;
  --color-text-body: #4e4036;
  --color-text-sub: #786455;

  /* Antique Metallic Gold & Warm Honey Gold */
  --gold-primary: #a6792c;
  --gold-light: #f5e4ad;
  --gold-rich: #cda142;
  --gold-dark: #7c5417;
  --gold-gradient: linear-gradient(135deg, #a6792c 0%, #edd898 30%, #94691e 50%, #fbeec5 75%, #885c18 100%);
  --gold-foil-text: linear-gradient(135deg, #885e17 0%, #c19639 30%, #f6e6b4 50%, #a6792c 75%, #764f10 100%);

  /* Shadows */
  --shadow-subtle: 0 4px 16px rgba(130, 100, 70, 0.08);
  --shadow-card: 0 10px 30px rgba(120, 85, 55, 0.12);
  --shadow-deep: 0 18px 46px rgba(90, 60, 40, 0.16);

  /* Typography */
  --font-script: 'Alex Brush', 'Allura', cursive;
  --font-script-alt: 'Great Vibes', cursive;
  --font-heading: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-hindi: 'Noto Serif Devanagari', 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;

  /* Layout */
  --app-max-width: 460px;
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #ede6da;
  overflow-x: hidden;
}

body {
  font-family: var(--font-serif);
  color: var(--color-charcoal);
  background: radial-gradient(circle at 50% 20%, #f8f3eb 0%, #ede5d7 55%, #e1d8c7 100%);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent scrolling while envelope is active */
body.envelope-active {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* --- FALLING ROSE PETALS CANVAS --- */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  z-index: 50;
  opacity: 0.82;
}

/* --- TOP FLOATING NAVIGATION BAR --- */
.top-nav-bar {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 0 16px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

/* Replay Envelope Pill */
.replay-envelope-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(166, 121, 44, 0.4);
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(110, 80, 50, 0.12);
  color: var(--gold-dark);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.4s ease, transform 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

body:not(.envelope-active) .replay-envelope-btn {
  opacity: 1;
  pointer-events: auto;
}

.replay-envelope-btn:hover, .replay-envelope-btn:active {
  background: #ffffff;
  border-color: var(--gold-primary);
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(166, 121, 44, 0.22);
}

/* Music Pill Controller */
.music-pill-wrapper {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.music-pill-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.music-pill-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 10px;
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(166, 121, 44, 0.4);
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(110, 80, 50, 0.12);
  color: var(--gold-dark);
  transition: all 0.25s ease;
}

.music-pill-btn:hover, .music-pill-btn:active {
  background: #ffffff;
  border-color: var(--gold-primary);
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(166, 121, 44, 0.22);
}

.music-disc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  animation: spinSlow 8s linear infinite;
  animation-play-state: paused;
}

.music-pill-btn.playing .music-disc-icon {
  animation-play-state: running;
}

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

.music-pill-text {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.2px;
  height: 11px;
}

.eq-bar {
  width: 2.2px;
  background: var(--gold-primary);
  border-radius: 2px;
  height: 3px;
  transition: height 0.2s ease;
}

.music-pill-btn.playing .bar-1 { animation: eqJump 0.8s ease-in-out infinite alternate; }
.music-pill-btn.playing .bar-2 { animation: eqJump 0.6s ease-in-out infinite 0.2s alternate; }
.music-pill-btn.playing .bar-3 { animation: eqJump 0.9s ease-in-out infinite 0.4s alternate; }

@keyframes eqJump {
  0% { height: 3px; }
  100% { height: 11px; }
}

/* ==========================================================================
   1. FIRST SCREEN: REALISTIC 3D ENVELOPE OPENING ANIMATION
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: 1000;
  background: linear-gradient(180deg, #cbc1af 0%, #d1c8b7 30%, #d8cfc3 70%, #dcd3c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin: 0;
}

.envelope-screen.opened {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

#wax-sparkle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

.envelope-outer-wrap {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100svh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.envelope-container {
  width: 100vw;
  max-width: 480px;
  aspect-ratio: 571 / 1024;
  height: auto;
  max-height: 100svh;
  max-height: 100dvh;
  position: relative;
  perspective: 1400px;
  -webkit-perspective: 1400px;
  transform-style: preserve-3d;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.envelope-img-fit {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  font-size: 0;
  color: transparent;
}

/* Layer 0: Pristine Original Closed Envelope (Zero artifacts in closed state) */
.envelope-closed-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.envelope-screen.opening .envelope-closed-layer {
  opacity: 0;
  visibility: hidden;
}

/* Layer 1: Interior Lining with seamless edge dissolve */
.envelope-interior-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
}

/* Layer 2: Invitation Card Preview Tucked Inside */
.envelope-card-preview {
  position: absolute;
  left: 6.8%;
  width: 86.4%;
  top: 15.4%;
  height: 67%;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(90, 60, 30, 0.25);
  opacity: 0;
  transition: transform 1.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
  transform: translateY(0);
}

.card-inner-art {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.card-preview-overlay {
  position: absolute;
  top: 24%;
  left: 12%;
  right: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.card-mini-title {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  font-weight: 600;
}

.card-mini-names {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin-top: 4px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card-mini-date {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--gold-primary);
  margin-top: 4px;
}

/* Envelope Open State: Card Slides UP */
.envelope-screen.opening .envelope-card-preview {
  opacity: 1;
  transform: translateY(-68%) scale(1.03);
}

/* Layer 3: Envelope Pocket (Left, Right, Bottom flaps) */
.envelope-pocket-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
}

/* Layer 4: 3D Top Flap */
.envelope-top-flap {
  position: absolute;
  left: 5.0788%;
  top: 14.9414%;
  width: 89.8424%;
  height: 34.9609%;
  transform-origin: top center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  z-index: 5;
  transition: transform 0.95s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.envelope-screen.opening .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1; /* Drops behind card when open */
}

.flap-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flap-front {
  z-index: 2;
  transform: rotateX(0deg);
}

.flap-back {
  z-index: 1;
  transform: rotateX(180deg);
}

.flap-img-fit {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* Layer 5: Royal Burgundy Wax Seal Monogram */
.wax-seal-wrapper {
  position: absolute;
  left: 49.91%;
  top: 49.7%;
  transform: translate(-50%, -50%);
  width: 31.87%;
  aspect-ratio: 182 / 174;
  z-index: 10;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wax-seal {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.wax-seal-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(245, 228, 173, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
  opacity: 0.6;
  animation: sealGlowPulse 2.8s ease-in-out infinite alternate;
}

@keyframes sealGlowPulse {
  0% { opacity: 0.4; transform: scale(0.98); }
  100% { opacity: 0.9; transform: scale(1.03); }
}

.envelope-screen.opening .wax-seal-wrapper {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.18) rotate(6deg);
  pointer-events: none;
}

/* Minimalist, Ultra-Professional Luxury Tap Prompt immediately below the Envelope bottom edge */
.envelope-tap-prompt {
  position: absolute;
  left: 50%;
  top: 86.2%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 15;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  user-select: none;
  white-space: nowrap;
  animation: promptGentlePulse 2.8s ease-in-out infinite;
}

.prompt-line {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 126, 68, 0.65) 40%, rgba(166, 126, 68, 0.85));
}

.envelope-tap-prompt .prompt-line:last-child {
  background: linear-gradient(90deg, rgba(166, 126, 68, 0.85), rgba(166, 126, 68, 0.65) 60%, transparent);
}

.prompt-text {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7d654d;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

@keyframes promptGentlePulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(0.99); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.01); }
}

.envelope-screen.opening .envelope-tap-prompt {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

/* ==========================================================================
   MAIN INVITATION WEBSITE CONTENT
   ========================================================================== */
.main-content {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  position: relative;
  background: transparent;
  min-height: 100vh;
  padding-bottom: 50px;
}

@media (min-width: 540px) {
  body {
    background: radial-gradient(circle at 50% 30%, #ede6d8 0%, #ded4c3 60%, #ccbfab 100%);
  }
  .main-content {
    box-shadow: 0 0 50px rgba(100, 75, 45, 0.16);
    background: #fbf7f0;
  }
}

.site-container {
  width: 100%;
  padding: 0 16px;
}

/* Subtle Scroll Animations */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

body.js-ready .fade-in-up:not(.in-view) {
  opacity: 0;
  transform: translateY(22px);
}

body.js-ready .fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   2. MAIN INVITATION HERO SECTION (Watercolor Arch Reference)
   ========================================================================== */
.section-hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #faf3e8 0%, #f4e8d8 70%, #ebdcc9 100%);
  padding: 8px 0;
}

.hero-card-container {
  width: 100%;
  max-width: var(--app-max-width);
  height: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 6px;
}

.arch-card-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  aspect-ratio: 576 / 1024;
  height: auto;
  max-height: 96svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(110, 75, 40, 0.16);
}

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

/* Overlaid Typography Inside Arch's Center */
.arch-text-content {
  position: absolute;
  top: 19%;
  left: 12%;
  right: 12%;
  bottom: 29.5%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.ceremony-badge {
  margin-bottom: 6px;
}

.ceremony-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: #7d5218;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}

.invitation-date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.date-num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #6a4616;
}

.date-sep {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.gold-ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 75%;
  margin: 4px 0;
}

.gold-ornament-divider.small {
  width: 60%;
  margin: 4px 0 8px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 121, 44, 0.45), transparent);
}

.divider-flower, .divider-heart {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

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

.couple-name {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.05;
  color: #7c4f10;
  background: linear-gradient(135deg, #7c4f10 0%, #b88628 35%, #59390a 70%, #d8a43f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.95));
  margin: 0;
}

.names-ampersand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: #8c601d;
  margin: -6px 0 -4px 0;
  line-height: 1;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
  color: #513e31;
  line-height: 1.35;
  max-width: 250px;
  margin-top: 4px;
}

.hero-hashtag-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 14px;
  margin-top: 6px;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid rgba(184, 134, 40, 0.35);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(130, 95, 45, 0.06);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--gold-dark);
  text-transform: none;
}

.hero-hash-sym {
  color: var(--gold-primary);
  font-weight: 700;
}

/* Subtle Animated Scroll-Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(254, 252, 248, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(166, 121, 44, 0.35);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(110, 80, 50, 0.1);
  color: var(--gold-dark);
  animation: scrollBob 2.2s ease-in-out infinite;
  transition: all 0.3s ease;
}

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

.scroll-indicator-text {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: #795e3f;
  text-transform: uppercase;
}

.scroll-arrow-down {
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   DECKLE PAPER CARD SHARED LAYOUT (Exact Match to Uploaded Screenshots)
   ========================================================================== */
.deckle-card-wrapper {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 560 / 803;
  height: auto;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(0 12px 28px rgba(135, 100, 70, 0.14));
}

.deckle-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  z-index: 1;
  pointer-events: none;
}

.deckle-card-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Script Title (Two hearts, one beautiful beginning / Event Details / With All Our Love) */
.deckle-script-title {
  font-family: var(--font-script);
  font-size: 2.25rem;
  font-weight: 400;
  color: #a47628;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   3. ROMANTIC WELCOME / LOVE STORY SECTION (EXACT SS: ref_story.jpg)
   ========================================================================= */
.section-story {
  padding: 40px 0 25px 0;
  position: relative;
}

.story-content-layout {
  padding: 22% 10% 16% 10%;
  justify-content: center;
}

.story-script-title {
  font-size: 2.15rem;
  line-height: 1.18;
  margin-bottom: 18px;
}

.deckle-hindi-text {
  font-family: var(--font-hindi);
  font-size: 1.02rem;
  font-weight: 500;
  color: #3d342d;
  line-height: 1.82;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.deckle-english-text {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 400;
  color: #4f443b;
  line-height: 1.58;
  margin-bottom: 0;
}

/* ==========================================================================
   4. LIVE COUNTDOWN SECTION (EXACT SS: ref_countdown.jpg)
   ========================================================================== */
.section-countdown {
  padding: 40px 0 35px 0;
  position: relative;
}

.countdown-minimal-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  padding: 10px 14px;
}

/* Heading: The Celebration Begins In */
.countdown-script-heading {
  font-family: var(--font-script);
  font-size: 2.85rem;
  font-weight: 400;
  color: #a47628;
  line-height: 1.15;
  margin-bottom: 26px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* 4 Digits & Labels Grid */
.countdown-clean-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin-bottom: 12px;
}

.countdown-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.countdown-digit {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 400;
  color: #a47628;
  line-height: 1;
  letter-spacing: 0.5px;
}

.countdown-tag {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.6px;
  color: #786a5e;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ==========================================================================
   5. EVENT DETAILS SECTION (EXACT SS: ref_details.jpg)
   ========================================================================== */
.section-details {
  padding: 25px 0 35px 0;
  position: relative;
}

.details-content-layout {
  padding: 16% 10% 11% 10%;
  justify-content: center;
}

.details-title {
  font-size: 2.65rem;
  margin-bottom: 3px;
}

.details-gold-hairline {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b88628, transparent);
  margin: 4px auto 14px auto;
}

.deckle-detail-block {
  margin-bottom: 10px;
}

.deckle-detail-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3.2px;
  color: #9c732c;
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.deckle-detail-val {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 400;
  color: #383029;
  line-height: 1.25;
}

.deckle-detail-val.venue-bold {
  font-weight: 600;
  font-size: 1.38rem;
  color: #2a221d;
}

.deckle-detail-subval {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: #4e433b;
  margin-top: 2px;
}

/* Action Buttons (Oval Outline Button matching Screenshot) */
.deckle-buttons-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 6px;
}

.deckle-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 22px;
  border: 1.2px solid #a47628;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #8c631e;
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(156, 117, 45, 0.08);
  width: 82%;
  max-width: 250px;
  text-decoration: none;
}

.deckle-outline-btn:hover, .deckle-outline-btn:active {
  background: rgba(255, 252, 246, 0.96);
  border-color: #7c5310;
  color: #5b3e08;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(156, 117, 45, 0.18);
}

.deckle-outline-btn.maps-btn {
  border-color: rgba(164, 118, 40, 0.55);
  background: rgba(255, 252, 246, 0.55);
}

/* ==========================================================================
   6. COUPLE PHOTO GALLERY (Uploaded Pictures ONLY)
   ========================================================================== */
.section-gallery {
  padding: 30px 0 35px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

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

.gallery-script-heading {
  font-family: var(--font-script);
  font-size: 2.7rem;
  font-weight: 400;
  color: #9c6f24;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.title-ornament span:not(.gem) {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 121, 44, 0.45), transparent);
}

.title-ornament .gem {
  color: var(--gold-primary);
  font-size: 0.8rem;
}

.gallery-subtext {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: #7a6655;
  margin-top: 6px;
}

.gallery-vertical-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 440px;
  margin: 0 auto;
}

.gallery-photo-card {
  background: #fbf7f1;
  border-radius: 18px;
  padding: 10px 10px 14px 10px;
  border: 1px solid rgba(166, 121, 44, 0.3);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.gallery-photo-card:hover, .gallery-photo-card:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.photo-frame-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ede5d7;
}

.photo-matting {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

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

.gallery-photo-card:hover .gallery-img {
  transform: scale(1.03);
}

.photo-tap-zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(254, 252, 248, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(166, 121, 44, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-photo-card:hover .photo-tap-zoom-hint {
  opacity: 1;
  transform: scale(1.08);
}

.photo-caption-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px 2px 8px;
  text-align: center;
}

.caption-flower {
  color: var(--gold-primary);
  font-size: 0.8rem;
  opacity: 0.7;
}

.photo-caption-text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 500;
  color: #554437;
  letter-spacing: 0.3px;
}

/* Gallery Hashtag Banner */
.hashtag-banner-wrap {
  margin: 36px auto 10px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.hashtag-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
}

.hashtag-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(250, 243, 230, 0.96));
  border: 1px solid rgba(184, 134, 40, 0.45);
  border-radius: 30px;
  box-shadow: 0 4px 18px rgba(130, 95, 45, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--gold-dark);
  text-transform: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.hashtag-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(130, 95, 45, 0.18);
  border-color: rgba(184, 134, 40, 0.7);
}

.hashtag-pill-btn:active {
  transform: scale(0.96);
}

.hashtag-hash {
  color: var(--gold-primary);
  font-weight: 700;
}

.hashtag-copy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-left: 2px;
}

.hashtag-copy-hint {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.84rem;
  color: #7d6854;
}

.hashtag-copied-toast {
  position: absolute;
  bottom: -32px;
  background: rgba(55, 40, 25, 0.92);
  color: #f7eedb;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.hashtag-copied-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   7. FINAL CLOSING SECTION
   ========================================================================== */
.section-closing {
  padding: 25px 0 10px 0;
  position: relative;
}

.closing-content-layout {
  padding: 24% 11% 16% 11%;
  justify-content: center;
}

.closing-swans-icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-script-title {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: #9c6f24;
  margin-bottom: 14px;
}

.closing-message-primary {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: #4b3d33;
}

.closing-couple-names {
  margin: 14px 0 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.closing-hashtag-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 12px 0;
}

.closing-hash-line {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 126, 68, 0.7));
}

.closing-hashtag-tag .closing-hash-line:last-child {
  background: linear-gradient(90deg, rgba(166, 126, 68, 0.7), transparent);
}

.closing-hash-val {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--gold-dark);
  text-transform: none;
}

.closing-name {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: #8c5d1b;
  background: var(--gold-foil-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.closing-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-primary);
}

.closing-message-secondary {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  color: #625043;
  line-height: 1.5;
  max-width: 290px;
  margin: 0 auto;
}

.closing-date-venue-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8a7360;
}

.closing-watermark {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #a49180;
  text-transform: uppercase;
  margin-top: 16px;
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX FOR PHOTO GALLERY
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  width: 94vw;
  max-width: 460px;
  height: 88vh;
  height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(254, 252, 248, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(254, 252, 248, 0.3);
  transform: scale(1.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(254, 252, 248, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s ease;
}

.lightbox-nav-btn.prev { left: -8px; }
.lightbox-nav-btn.next { right: -8px; }

.lightbox-nav-btn:hover, .lightbox-nav-btn:active {
  background: rgba(254, 252, 248, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-img-wrapper {
  max-width: 100%;
  max-height: 80vh;
  max-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  max-height: 72svh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  color: #f7eedb;
  text-align: center;
  padding: 12px 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   MOBILE-FIRST BREAKPOINTS & VIEWPORT OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 360px) {
  .couple-name {
    font-size: 2.9rem;
  }
  .arch-text-content {
    top: 18%;
    bottom: 30%;
  }
  .ceremony-label {
    font-size: 0.72rem;
    letter-spacing: 3px;
  }
  .hero-tagline {
    font-size: 0.88rem;
  }
  .deckle-script-title {
    font-size: 2.05rem;
  }
  .countdown-script-heading {
    font-size: 2.45rem;
  }
  .countdown-digit {
    font-size: 2.1rem;
  }
  .countdown-clean-grid {
    gap: 16px;
  }
  .countdown-col {
    min-width: 48px;
  }
}
