/* Luxury Wedding Invitation Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&family=Pinyon+Script&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  --color-emerald-deep: #0B251E;
  --color-emerald-dark: #061713;
  --color-emerald-card: #0F3128;
  --color-emerald-surface: #143F34;
  --color-gold-base: #D4AF37;
  --color-gold-light: #F3E5AB;
  --color-gold-deep: #9C7A38;
  --color-cream-base: #F4F1EA;
  --color-cream-soft: #FAF8F5;
  --color-cream-muted: #D5CEBF;
}

/* Hide any Netlify injected badge, feedback drawer, or iframe */
#netlify-drawer-root,
#netlify-feedback-badge,
[data-netlify-drawer],
[id*="netlify"],
[class*="netlify-drawer"],
iframe[src*="netlify"],
iframe[title*="Netlify"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-emerald-deep);
  color: var(--color-cream-base);
  font-family: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 20%, #12382e 0%, #0b251e 60%, #061713 100%);
  min-height: 100vh;
}

/* Typography Utility */
.font-serif-luxury {
  font-family: 'Cormorant Garamond', serif;
}

.font-script {
  font-family: 'Pinyon Script', cursive;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* Gold Gradient Effects */
.gold-text-gradient {
  background: linear-gradient(135deg, #FFF3C4 0%, #D4AF37 50%, #AA7C11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-border {
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.gold-border-double {
  border: 3px double rgba(212, 175, 55, 0.45);
}

.gold-shadow {
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.18);
}

.gold-glow {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
}

/* Shimmer animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.gold-shimmer {
  background: linear-gradient(90deg, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0.4) 50%, rgba(212,175,55,0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

/* Stationery Card Texture & Frames */
.paper-stationery {
  background-color: #0E2E25;
  background-image: radial-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  position: relative;
}

.paper-stationery::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  pointer-events: none;
  border-radius: inherit;
}

.corner-ornament {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(212, 175, 55, 0.7);
  pointer-events: none;
}
.corner-tl { top: 16px; left: 16px; border-top: 2px solid; border-left: 2px solid; }
.corner-tr { top: 16px; right: 16px; border-top: 2px solid; border-right: 2px solid; }
.corner-bl { bottom: 16px; left: 16px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-br { bottom: 16px; right: 16px; border-bottom: 2px solid; border-right: 2px solid; }

/* ==================================================== */
/* GATEFOLD ENTRANCE ANIMATION (FROM USER VIDEO)        */
/* ==================================================== */
.gatefold-perspective {
  perspective: 1400px;
  transform-style: preserve-3d;
}

.gatefold-door {
  background: radial-gradient(circle at 50% 30%, #154539 0%, #0c2b23 60%, #061713 100%);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.gatefold-left {
  transform-origin: left center;
  border-right: 1px solid rgba(212, 175, 55, 0.45);
}

.gatefold-right {
  transform-origin: right center;
  border-left: 1px solid rgba(212, 175, 55, 0.45);
}

/* Realistic Silk Ribbon Bow Styling */
.ribbon-bow-wrapper {
  cursor: pointer;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.65));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ribbon-bow-wrapper:hover {
  transform: scale(1.06);
}

.ribbon-bow-wrapper:active {
  transform: scale(0.96);
}

/* Sound Wave Equalizer Bars */
.sound-bar {
  width: 3px;
  border-radius: 2px;
  background-color: var(--color-gold-base);
  animation: pulseBar 1.2s ease-in-out infinite alternate;
}
.sound-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.sound-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 18px; animation-delay: 0.4s; }
.sound-bar:nth-child(5) { height: 8px; animation-delay: 0.15s; }

@keyframes pulseBar {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1.2); opacity: 1; }
}

.paused .sound-bar {
  animation-play-state: paused;
  transform: scaleY(0.3);
  opacity: 0.4;
}

/* Timeline Vertical connector */
.timeline-stem {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0.7) 20%, rgba(212,175,55,0.7) 80%, rgba(212,175,55,0.1) 100%);
}

@media (min-width: 768px) {
  .timeline-stem-center {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Floating Golden Particles Canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #061713;
}
::-webkit-scrollbar-thumb {
  background: #9c7a38;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* VIP Seat Pass Card styling */
.vip-pass-card {
  background: radial-gradient(circle at 30% 20%, #154539 0%, #0c2b23 60%, #061713 100%);
  border: 2px solid #d4af37;
  position: relative;
  overflow: hidden;
}

.vip-pass-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  pointer-events: none;
  border-radius: inherit;
}

/* ==================================================== */
/* REALISTIC 3D WAX SEAL & ENVELOPE STATIONERY          */
/* ==================================================== */

/* Rich 3D Sealing Wax Medallion */
.wax-seal-real {
  width: 92px;
  height: 92px;
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  z-index: 25;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wax-seal-real:hover {
  transform: translate(-50%, -50%) scale(1.07);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 16px rgba(212, 175, 55, 0.45));
}

.wax-seal-real:active {
  transform: translate(-50%, -50%) scale(0.96);
}

/* Outer molten wax droplet ring */
.wax-seal-body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 32% 28%, #FFE599 0%, #D4AF37 30%, #A37D1E 65%, #694C0B 100%);
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.6),
    inset 0 -5px 10px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Realistic wax spill/droplet irregular rim */
.wax-seal-body::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 46% 54% 52% 48% / 48% 52% 48% 52%;
  background: radial-gradient(circle at 30% 30%, #E8C15A 0%, #B88E28 50%, #7A5710 100%);
  z-index: -1;
  box-shadow: 
    0 6px 14px rgba(0, 0, 0, 0.55),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -4px 6px rgba(0, 0, 0, 0.5);
}

/* Inner stamped medallion impression */
.wax-seal-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #9E771B 0%, #C9A233 45%, #7D5B0F 100%);
  border: 1.5px solid rgba(255, 240, 180, 0.6);
  box-shadow: 
    inset 0 4px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 4px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Beaded circular ring inside seal */
.wax-seal-inner::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 245, 205, 0.6);
  pointer-events: none;
}

/* Raised gold embossed monogram text */
.wax-seal-monogram {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #FFF6D6;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 -1px 1px rgba(255, 255, 255, 0.4);
  line-height: 1;
  z-index: 2;
}

.wax-seal-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F3E5AB;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  margin-top: 2px;
  z-index: 2;
}

/* Crack burst flash on unsealing */
.wax-seal-crack {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 100, 0.9) 0%, rgba(212, 175, 55, 0.6) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

/* Envelope Container & 3D Lighting */
.luxe-env-box {
  --env-w: min(90vw, 380px);
  position: relative;
  width: var(--env-w);
  height: calc(var(--env-w) * 0.68);
  perspective: 1200px;
  cursor: pointer;
  margin-top: 2vh;
}

/* Realistic Envelope Pocket & Velvet Liner */
.luxe-env-back {
  position: absolute;
  inset: 0;
  background: #EFE8DA;
  border-radius: 8px;
  z-index: 1;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(212, 175, 55, 0.35);
  overflow: hidden;
}

/* Deep Emerald Damask Interior Liner */
.luxe-env-liner {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 30%, #154539 0%, #0B251E 70%, #061713 100%);
  background-image: 
    radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px),
    radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 16px 16px, 8px 8px;
  background-position: 0 0, 8px 8px;
  z-index: 2;
}

/* Inner Letter Card pulling upward */
.luxe-env-card {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 6%;
  bottom: 6%;
  z-index: 3;
  background: radial-gradient(ellipse at 50% 40%, #103328 0%, #0B251E 75%, #061713 100%);
  border: 1px solid #D4AF37;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-shadow: 
    0 0 0 4px #0B251E,
    0 0 0 5px rgba(212, 175, 55, 0.5),
    0 12px 30px rgba(0, 0, 0, 0.6);
}

.luxe-env-card-ornament {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: rgba(212, 175, 55, 0.1);
}

/* Front folded triangles */
.luxe-env-front {
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: 8px;
  background: linear-gradient(175deg, #FAF7F0 0%, #EDE5D5 60%, #E3D9C4 100%);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 
    inset 0 -2px 6px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(212, 175, 55, 0.25);
  pointer-events: none;
}

/* Top triangular flap (Physically opens upward in 3D) */
.luxe-env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56%;
  z-index: 20;
  background: linear-gradient(185deg, #FCFAF4 0%, #F5EFE0 65%, #E8DFC8 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: filter 0.3s ease;
}

.luxe-env-flap::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.luxe-env-flap::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 98%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, transparent 85%, rgba(212, 175, 55, 0.5) 100%);
  pointer-events: none;
}

/* Dress Code Visual Cards */
.attire-card {
  background: radial-gradient(circle at 50% 20%, #103328 0%, #0B251E 80%, #061713 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.attire-card:hover {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 15px 35px -8px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

