/* ==========================================================================
   ROYAL MARATHA BESPOKE WEDDING INVITATION — STYLESHEET
   Features: 3D Wax Seal Envelope, Canvas Scratch-Off, Sound Equalizer,
   Paithani Royal Heritage & Devanagari Calligraphy
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root Variables & Typography
   -------------------------------------------------------------------------- */
:root {
  --royal-maroon: #2A0912;
  --royal-wine: #3C1620;
  --royal-burgundy-dark: #1A050B;
  --royal-gold: #D4AF37;
  --royal-gold-light: #F8E7B4;
  --royal-gold-bright: #FFD700;
  --royal-gold-dark: #8B6508;
  --royal-haldi: #F5A623;
  --royal-peacock: #0B2B26;
  --royal-silk: #FAF7F2;
  --royal-cream: #F5EFEB;
  --royal-ink: #17140F;
  --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  --gold-border: 1px solid rgba(212, 175, 55, 0.4);
  
  --font-marathi-display: 'Rozha One', 'Noto Serif Devanagari', serif;
  --font-marathi-title: 'Yatra One', 'Noto Serif Devanagari', cursive;
  --font-royal-serif: 'Cinzel', serif;
  --font-editorial-serif: 'Cormorant Garamond', serif;
  --font-devanagari-body: 'Noto Serif Devanagari', serif;
}

/* --------------------------------------------------------------------------
   1. Interactive 3D Envelope Overlay Screen
   -------------------------------------------------------------------------- */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at center, #2E0E17 0%, #150307 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1),
              visibility 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 1.5rem 1rem;
}

.envelope-screen.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Ambient Floating Dust / Bokeh on Envelope Screen */
.envelope-ambient {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(212, 175, 55, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(3px 3px at 80px 120px, rgba(212, 175, 55, 0.25), transparent);
  background-size: 150px 150px;
  pointer-events: none;
  animation: ambientFloat 20s linear infinite;
}

@keyframes ambientFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-150px); }
}

.envelope-lead-text {
  text-align: center;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.envelope-shloka {
  font-family: var(--font-marathi-display);
  color: var(--royal-gold-light);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.envelope-subtitle {
  font-family: var(--font-royal-serif);
  color: rgba(250, 247, 242, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Royal Stage Triptych (Fills Desktop Screen with Zero Empty Gaps) */
.royal-stage-triptych {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.royal-side-profile-card {
  flex: 0 0 250px;
  background: rgba(42, 9, 18, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

.royal-side-profile-card:hover {
  transform: translateY(-5px);
  border-color: var(--royal-gold);
}

.royal-side-arch {
  width: 100%;
  height: 280px;
  border-radius: 130px 130px 14px 14px;
  overflow: hidden;
  border: 2px solid var(--royal-gold);
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.royal-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.royal-side-role {
  font-family: var(--font-royal-serif);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--royal-gold-light);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.royal-side-name-marathi {
  font-family: var(--font-marathi-display);
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.royal-side-desc {
  font-family: var(--font-devanagari-body);
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.75);
  line-height: 1.4;
}

/* 3D Envelope Wrapper */
.envelope-3d-box {
  width: 100%;
  max-width: 380px;
  height: 530px;
  position: relative;
  perspective: 1200px;
  z-index: 2;
  margin: 0 auto;
}

.envelope-card {
  width: 100%;
  height: 100%;
  position: relative;
  background: #2D0813;
  border-radius: 16px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.2);
  border: 2px solid rgba(212, 175, 55, 0.6);
  overflow: visible;
  cursor: pointer;
}

/* Back Wall of Envelope Pocket */
.envelope-back {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #3F121F 0%, #20050D 100%);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.envelope-back::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  pointer-events: none;
}

/* Inner Letter Card (Hidden inside until opened) */
.envelope-letter {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: #FAF7F2;
  border-radius: 12px;
  padding: 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #17140F;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
  z-index: 2;
}

.envelope-screen.opened .envelope-letter {
  transform: translateY(-130px) scale(1.04);
  z-index: 12;
}

.letter-monogram {
  font-family: var(--font-royal-serif);
  font-size: 1.8rem;
  color: var(--royal-wine);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.letter-shloka {
  font-family: var(--font-marathi-display);
  font-size: 0.95rem;
  color: var(--royal-gold-dark);
  margin-bottom: 1rem;
}

.letter-names {
  font-family: var(--font-editorial-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--royal-wine);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.letter-date {
  font-family: var(--font-royal-serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 0.8rem;
}

/* Front Pocket of Envelope: Covers bottom 65% of letter completely */
.envelope-pocket-front {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 330px;
  background: linear-gradient(0deg, #25060F 0%, #350D19 75%, #421321 100%);
  clip-path: polygon(0 50px, 50% 170px, 100% 50px, 100% 100%, 0 100%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.5);
  z-index: 5;
  pointer-events: none;
}

/* Front Top Flap (Folds Open in 3D) */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 275px;
  background: linear-gradient(180deg, #4A1626 0%, #350D19 80%, #20060E 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 1.2s ease;
  z-index: 10;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(212, 175, 55, 0.5);
}

.envelope-flap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.35);
  border-right: 1px solid rgba(212, 175, 55, 0.35);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

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

/* 3D Wax Seal Button (Seals top flap to front pocket) */
.wax-seal-wrapper {
  position: absolute;
  top: 235px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.wax-seal-wrapper:hover {
  transform: translateX(-50%) scale(1.08);
}

.envelope-screen.opened .wax-seal-wrapper {
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
}

/* Wax Seal Outer Pill & Glow */
.wax-seal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E5C158 0%, #B38728 50%, #6E4F0A 100%);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.4),
    inset 0 3px 6px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 240, 180, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #2A0912;
  position: relative;
  user-select: none;
  animation: sealPulse 2.5s infinite ease-in-out;
}

@keyframes sealPulse {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 45px rgba(212, 175, 55, 0.75);
  }
}

.wax-seal-inner-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px dashed rgba(42, 9, 18, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wax-seal-symbol {
  font-family: var(--font-marathi-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.wax-seal-names {
  font-family: var(--font-royal-serif);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.wax-seal-tap-hint {
  margin-top: 0.8rem;
  text-align: center;
  font-family: var(--font-royal-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--royal-gold-light);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  white-space: nowrap;
  animation: bounceHint 2s infinite ease-in-out;
}

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

/* Prominent Bottom Action Bar on Envelope Screen */
.envelope-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  z-index: 20;
}

.btn-royal-open {
  background: var(--gold-gradient);
  color: #1A050B;
  font-family: var(--font-royal-serif);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 180, 0.8);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-royal-open:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.btn-royal-explore {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--royal-gold-light);
  font-family: var(--font-devanagari-body);
  font-size: 0.85rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-royal-explore:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #FFFFFF;
  border-color: var(--royal-gold);
}

@media (max-width: 959px) {
  .royal-side-profile-card {
    display: none;
  }
}

/* Wax Seal Outer Pill & Glow */
.wax-seal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E5C158 0%, #B38728 50%, #6E4F0A 100%);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.4),
    inset 0 3px 6px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 240, 180, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #2A0912;
  position: relative;
  user-select: none;
  animation: sealPulse 2.5s infinite ease-in-out;
}

@keyframes sealPulse {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 45px rgba(212, 175, 55, 0.75);
  }
}

.wax-seal-inner-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px dashed rgba(42, 9, 18, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wax-seal-symbol {
  font-family: var(--font-marathi-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.wax-seal-names {
  font-family: var(--font-royal-serif);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.wax-seal-tap-hint {
  margin-top: 0.8rem;
  text-align: center;
  font-family: var(--font-royal-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--royal-gold-light);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  white-space: nowrap;
  animation: bounceHint 2s infinite ease-in-out;
}

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

/* Skip Button at bottom of envelope */
.envelope-skip-btn {
  position: absolute;
  bottom: 1.5rem;
  background: transparent;
  border: none;
  color: rgba(250, 247, 242, 0.5);
  font-family: var(--font-devanagari-body);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.4rem 1rem;
  text-decoration: underline;
  transition: color 0.3s;
}

.envelope-skip-btn:hover {
  color: var(--royal-gold-light);
}

/* --------------------------------------------------------------------------
   2. Floating Audio Controller & Equalizer
   -------------------------------------------------------------------------- */
.audio-controller-btn {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 9999;
  background: rgba(42, 9, 18, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--royal-gold-light);
  font-family: var(--font-royal-serif);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.audio-controller-btn:hover {
  transform: scale(1.05);
  border-color: var(--royal-gold);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
}

.soundwave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.soundwave-bars span {
  width: 2.5px;
  background: var(--royal-gold);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-controller-btn.playing .soundwave-bars span:nth-child(1) {
  animation: eqBar 1.1s ease-in-out infinite;
}
.audio-controller-btn.playing .soundwave-bars span:nth-child(2) {
  animation: eqBar 0.8s ease-in-out infinite 0.2s;
}
.audio-controller-btn.playing .soundwave-bars span:nth-child(3) {
  animation: eqBar 1.3s ease-in-out infinite 0.4s;
}

@keyframes eqBar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* --------------------------------------------------------------------------
   3. Interactive "Scratch to Reveal" Section
   -------------------------------------------------------------------------- */
.scratch-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #FAF7F2 0%, #F5EFEB 100%);
  position: relative;
  text-align: center;
}

.scratch-header-wrap {
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.scratch-kicker {
  display: inline-block;
  font-family: var(--font-marathi-display);
  color: var(--royal-wine);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.scratch-main-title {
  font-family: var(--font-editorial-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--royal-ink);
  margin-bottom: 0.6rem;
}

.scratch-subtitle {
  font-family: var(--font-devanagari-body);
  font-size: 0.95rem;
  color: rgba(23, 20, 15, 0.7);
}

/* The Scratch Card Box */
.scratch-card-box {
  width: 100%;
  max-width: 440px;
  min-height: 480px;
  margin: 0 auto;
  position: relative;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(60, 22, 32, 0.12), 0 0 0 1px rgba(212, 175, 55, 0.35);
  overflow: hidden;
  user-select: none;
}

/* The Revealed Content (Underneath the Canvas) */
.scratch-revealed-content {
  position: absolute;
  inset: 0;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #FFFDF9 0%, #FAF2E6 100%);
  border-radius: 24px;
  z-index: 1;
}

.reveal-seal {
  font-family: var(--font-marathi-display);
  font-size: 1.1rem;
  color: var(--royal-gold-dark);
  margin-bottom: 0.6rem;
}

.reveal-title {
  font-family: var(--font-marathi-display);
  font-size: 1.7rem;
  color: var(--royal-wine);
  margin-bottom: 0.3rem;
}

.reveal-date-badge {
  background: var(--royal-wine);
  color: var(--royal-gold-light);
  font-family: var(--font-royal-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(60, 22, 32, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.reveal-day-marathi {
  font-family: var(--font-marathi-display);
  font-size: 1.15rem;
  color: var(--royal-ink);
  margin-bottom: 0.2rem;
}

.reveal-muhurat-time {
  font-family: var(--font-marathi-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--royal-wine);
  margin-bottom: 1rem;
}

.reveal-venue {
  font-family: var(--font-devanagari-body);
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  width: 100%;
}

.btn-calendar-link,
.btn-whatsapp-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-calendar-link {
  background: var(--royal-gold);
  color: #1A050B;
}

.btn-calendar-link:hover {
  background: #E5C158;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.35);
}

.btn-whatsapp-share {
  background: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp-share:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
}

/* The HTML5 Canvas Overlay (Scratch Layer) */
.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: grab;
  touch-action: none;
  border-radius: 24px;
  transition: opacity 0.6s ease;
}

.scratch-canvas:active {
  cursor: grabbing;
}

.scratch-canvas.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Real-time Countdown to Shubh Muhurat
   -------------------------------------------------------------------------- */
.countdown-section {
  padding: 4rem 1.5rem;
  background: var(--royal-maroon);
  color: var(--royal-silk);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.countdown-kicker {
  font-family: var(--font-marathi-display);
  font-size: 1.1rem;
  color: var(--royal-gold-light);
  margin-bottom: 0.5rem;
}

.countdown-title {
  font-family: var(--font-royal-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  color: #FFFFFF;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.countdown-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  min-width: 110px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  position: relative;
  transition: transform 0.3s ease;
}

.countdown-pill:hover {
  transform: translateY(-4px);
  border-color: var(--royal-gold);
}

.countdown-number {
  font-family: var(--font-royal-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--royal-gold-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.countdown-label-marathi {
  font-family: var(--font-marathi-display);
  font-size: 0.85rem;
  color: #FAF7F2;
  margin-bottom: 2px;
}

.countdown-label-en {
  font-family: var(--font-royal-serif);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
}

/* --------------------------------------------------------------------------
   5. Couple Lookbook / Photo Carousel
   -------------------------------------------------------------------------- */
.lookbook-section {
  padding: 5rem 1.5rem;
  background: #FAF7F2;
  text-align: center;
}

.lookbook-carousel-wrap {
  max-width: 900px;
  margin: 2.5rem auto 0;
  position: relative;
}

.lookbook-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lookbook-track::-webkit-scrollbar {
  display: none;
}

.lookbook-slide {
  flex: 0 0 320px;
  scroll-snap-align: center;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1rem 1rem 1.5rem;
  border: 1px solid rgba(23, 20, 15, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.lookbook-slide:hover {
  transform: translateY(-5px);
}

.lookbook-img-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.lookbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.lookbook-caption-marathi {
  font-family: var(--font-marathi-display);
  font-size: 1.05rem;
  color: var(--royal-wine);
  margin-bottom: 0.2rem;
}

.lookbook-caption-sub {
  font-family: var(--font-editorial-serif);
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   6. Paithani Arch Frames & Traditional Elements
   -------------------------------------------------------------------------- */
.arch-frame {
  border-radius: 140px 140px 16px 16px;
  overflow: hidden;
  border: 2px solid var(--royal-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* --------------------------------------------------------------------------
   7. Responsive Mobile Optimizations
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .envelope-3d-box {
    max-width: 320px;
    height: 480px;
  }
  
  .wax-seal-wrapper {
    top: 195px;
  }
  
  .wax-seal {
    width: 78px;
    height: 78px;
  }
  
  .wax-seal-inner-ring {
    width: 64px;
    height: 64px;
  }
  
  .wax-seal-symbol {
    font-size: 1.2rem;
  }
  
  .countdown-pill {
    min-width: 70px;
    padding: 0.8rem 0.6rem;
  }
  
  .countdown-number {
    font-size: 1.8rem;
  }
  
  .lookbook-slide {
    flex: 0 0 280px;
  }
}

/* --------------------------------------------------------------------------
   8. Ceremony Location Direct Map Chip & Dramatic Trending Tags
   -------------------------------------------------------------------------- */
.ceremony-map-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.45rem 1rem;
  background: rgba(60, 22, 32, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  color: var(--royal-crimson);
  font-family: var(--font-royal-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ceremony-map-chip:hover {
  background: var(--royal-crimson);
  color: #FAF7F2;
  border-color: var(--royal-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(60, 22, 32, 0.2);
}

.couple-trend-tag {
  display: inline-block;
  font-family: 'Rozha One', serif;
  font-size: 0.95rem;
  color: var(--royal-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* --------------------------------------------------------------------------
   9. 3D WebGL Experience Styling
   -------------------------------------------------------------------------- */
.hud-3d-controller {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}

.hud-3d-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 5, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hud-3d-badge:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--royal-gold);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.45);
}

.hud-3d-gem {
  font-size: 1rem;
  animation: pulseGem 2s infinite ease-in-out;
}

@keyframes pulseGem {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #D4AF37); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px #FFE082); }
}

.hud-3d-text {
  font-family: var(--font-royal-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: #FAF7F2;
  letter-spacing: 0.06em;
}

.hud-3d-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6EE7B7;
  background: rgba(110, 231, 183, 0.15);
  border: 1px solid rgba(110, 231, 183, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

/* Interactive 3D Rings Showcase in Couple Section */
.threejs-rings-box {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 1rem;
  margin: 0 auto;
}

.threejs-rings-container {
  width: 280px;
  height: 280px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, rgba(60, 22, 32, 0.04) 65%, transparent 75%);
  box-shadow: inset 0 0 35px rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.threejs-rings-hint {
  font-family: var(--font-devanagari-body);
  font-size: 0.78rem;
  color: #777;
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   10. Luxury Editorial Hero Slideshow & Typography (Vogue Wedding Caliber)
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0E070A;
}

.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
  animation: kenBurnsZoom 16s infinite alternate ease-in-out;
}

@keyframes kenBurnsZoom {
  0% {
    transform: scale(1.0) translate(0%, 0%);
  }
  100% {
    transform: scale(1.08) translate(-1.2%, -1%);
  }
}

/* Navigation bar contrast fix when over dark hero */
.site-nav:not(.scrolled) {
  background: linear-gradient(180deg, rgba(14, 6, 10, 0.85) 0%, rgba(14, 6, 10, 0.35) 60%, transparent 100%) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.site-nav:not(.scrolled) .nav-logo {
  color: #FAF7F2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.site-nav:not(.scrolled) .nav-links a,
.site-nav:not(.scrolled) .nav-link {
  color: #FAF7F2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.site-nav:not(.scrolled) .nav-links a:hover,
.site-nav:not(.scrolled) .nav-link:hover {
  color: #D4AF37 !important;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    radial-gradient(ellipse at center 35%, rgba(15, 7, 11, 0.05) 0%, rgba(15, 7, 11, 0.35) 60%, rgba(15, 7, 11, 0.85) 100%),
    linear-gradient(to bottom, rgba(15, 7, 11, 0.75) 0%, rgba(15, 7, 11, 0.12) 25%, rgba(15, 7, 11, 0.2) 55%, rgba(15, 7, 11, 0.92) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  padding: 0 1.5rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-heritage-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-devanagari);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: #FAF7F2;
  margin-bottom: 0.8rem;
  padding: 0.45rem 1.6rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  background: rgba(14, 6, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-names-wrap {
  margin: 0.2rem auto 0.6rem;
}

.hero-name-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.95;
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  text-wrap: balance;
}

.hero-name-part {
  display: inline-block;
  background: linear-gradient(180deg, #FFFFFF 15%, #FAF2DE 60%, #E8C975 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.92));
  letter-spacing: -0.01em;
  font-style: italic;
}

.hero-amp-editorial {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  color: #D4AF37;
  opacity: 0.9;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
  display: inline-block;
}

.hero-dramatic-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem auto 1.2rem;
  padding: 0.5rem 1.8rem;
  background: rgba(20, 6, 12, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.hero-dramatic-ribbon .ribbon-text {
  font-family: 'Rozha One', serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: #F8E7B2;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-dramatic-ribbon .ribbon-flower {
  font-size: 1.1rem;
  animation: gentlePulse 2.5s infinite ease-in-out;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.2); opacity: 1; }
}

.hero-meta-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 0.4rem;
  padding: 0.65rem 2rem;
  background: rgba(20, 6, 12, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}

.hero-meta-item .meta-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.hero-meta-item .meta-val {
  font-family: var(--font-royal-serif);
  font-size: 0.96rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.hero-meta-item .highlight-gold {
  color: #F3C950;
}

.meta-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
}

/* Hero Slide Controls / Indicator Pills */
.hero-slide-controls {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20, 8, 14, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.hero-dot {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transition: all 0.35s ease;
}

.hero-dot .dot-index {
  font-weight: 700;
  font-size: 0.7rem;
}

.hero-dot .dot-title {
  display: none;
}

.hero-dot:hover {
  color: #FAF7F2;
  background: rgba(212, 175, 55, 0.18);
}

.hero-dot.active {
  background: var(--royal-crimson);
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 4px 15px rgba(60, 22, 32, 0.5);
}

.hero-dot.active .dot-title {
  display: inline-block;
}

.hero-mobile-face-clearance {
  display: none;
}

.hero-bottom-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Hide floating tech HUD everywhere to preserve wedding aesthetics */
.hud-3d-controller {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Mobile-First Luxury Editorial Layout (Viewport <= 768px)
   Leaves couple faces 100% unobstructed, anchors text to bottom with clean scrim
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #hero {
    height: 100svh !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    padding: calc(env(safe-area-inset-top, 0px) + 52px) 0.8rem calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Scrim on mobile: Protects top and bottom, keeps center 30%-55% fully clear & bright */
  .hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      to bottom,
      rgba(14, 5, 10, 0.72) 0%,
      rgba(14, 5, 10, 0.22) 16%,
      rgba(14, 5, 10, 0.0) 28%,
      rgba(14, 5, 10, 0.0) 54%,
      rgba(14, 5, 10, 0.62) 72%,
      rgba(14, 5, 10, 0.92) 90%,
      rgba(14, 5, 10, 0.98) 100%
    ) !important;
    pointer-events: none;
  }

  .hero-content {
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 2;
    position: relative;
  }

  /* Top Sacred Tag - safely above hair and faces */
  .hero-heritage-tag {
    font-size: 0.74rem !important;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem !important;
    margin: 0.2rem auto 0 !important;
    gap: 0.35rem;
    background: rgba(14, 6, 10, 0.65) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    white-space: nowrap;
    max-width: 94vw;
  }

  /* The Clear Window Spacer - keeps couple's faces, smiles, and eyes completely free from text! */
  .hero-mobile-face-clearance {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 26vh;
    max-height: 46vh;
    width: 100%;
    pointer-events: none;
  }

  /* Bottom Deck - all typography anchored neatly at bottom third */
  .hero-bottom-deck {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 3;
    margin-bottom: 2rem !important;
  }

  .hero-names-wrap {
    margin: 0 auto 0.2rem !important;
  }

  .hero-name-editorial {
    font-size: clamp(2.1rem, 8.8vw, 2.9rem) !important;
    line-height: 1.05 !important;
    gap: 0.25rem 0.6rem !important;
    margin: 0.1rem 0 !important;
  }

  .hero-amp-editorial {
    font-size: clamp(1.35rem, 4.5vw, 1.9rem) !important;
  }

  /* Ribbon: Proud Marathi text, single clean line, elegant and compact */
  .hero-dramatic-ribbon {
    margin: 0.25rem auto 0.55rem !important;
    padding: 0.32rem 0.95rem !important;
    gap: 0.4rem !important;
    background: rgba(20, 6, 12, 0.75) !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    max-width: 95vw;
  }

  .hero-dramatic-ribbon .ribbon-text {
    font-size: clamp(0.85rem, 3.6vw, 1.05rem) !important;
    letter-spacing: 0.03em;
  }

  /* Date, Venue, Muhurat - sleek unified glass capsule */
  .hero-meta-capsule {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-evenly !important;
    width: 100% !important;
    max-width: 360px !important;
    padding: 0.45rem 0.75rem !important;
    gap: 0.4rem !important;
    margin-top: 0.1rem !important;
    background: rgba(18, 5, 11, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
  }

  .hero-meta-item .meta-label {
    font-size: 0.52rem !important;
    letter-spacing: 0.12em !important;
  }

  .hero-meta-item .meta-val {
    font-size: 0.78rem !important;
    letter-spacing: 0.02em !important;
    margin-top: 0.1rem;
    white-space: nowrap;
  }

  .meta-sep {
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
  }

  /* Slide switcher controls - pinned neatly at the bottom edge */
  .hero-slide-controls {
    bottom: 8px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    padding: 0.2rem 0.45rem !important;
    gap: 0.2rem !important;
    background: rgba(15, 5, 10, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    width: max-content !important;
  }

  .hero-dot {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.66rem !important;
  }

  .hero-dot .dot-index {
    font-size: 0.62rem !important;
  }

  /* Audio button & hamburger positioning on mobile */
  .audio-controller-btn {
    top: 0.8rem !important;
    right: 3.8rem !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.7rem !important;
    background: rgba(30, 8, 15, 0.88) !important;
  }

  .audio-controller-btn span:last-child {
    display: none !important;
  }

  .site-nav {
    padding: 0.75rem 1rem !important;
  }

  .hamburger {
    display: block !important;
    top: 0.9rem !important;
    right: 1rem !important;
    z-index: 105;
  }

  .site-nav:not(.scrolled) .hamburger span {
    background-color: #FAF7F2 !important;
  }
}

@media (max-width: 480px) {
  .hero-name-editorial {
    font-size: clamp(1.95rem, 8vw, 2.5rem) !important;
  }

  .hero-dramatic-ribbon {
    padding: 0.28rem 0.8rem !important;
  }

  .hero-dramatic-ribbon .ribbon-text {
    font-size: 0.82rem !important;
  }

  .hero-meta-capsule {
    padding: 0.35rem 0.5rem !important;
    gap: 0.3rem !important;
  }

  .hero-meta-item .meta-label {
    font-size: 0.48rem !important;
  }

  .hero-meta-item .meta-val {
    font-size: 0.72rem !important;
  }

  .scratch-card-box {
    min-height: 420px !important;
  }
}


