/* ============================================
   ROMANTIC WATERCOLOR FLORAL THEME - ELMIN & RƏVANƏ
   Variant 1: Light Cream, Blush Pink, Eucalyptus & Gold
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg-cream: #fcfaf7;
  --bg-section-1: #fcfaf7;
  --bg-section-2: #f8f4ee;
  --bg-section-3: #f4eee5;
  --text-dark: #2d2426;
  --text-body: #5e5053;
  --text-muted: #8c7b7e;
  --gold: #c49a60;
  --gold-light: #dfc292;
  --gold-dark: #966f36;
  --blush: #df97a3;
  --blush-light: #f5dce0;
  --eucalyptus: #6b8471;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(196, 154, 96, 0.35);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Playfair Display', serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(223, 151, 163, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   FALLING ROSE PETALS & STARDUST CANVAS
   ============================================ */
#petalsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1010;
  pointer-events: none;
}

/* ============================================
   FULLSCREEN ROYAL ENVELOPE (ENTIRE VIEWPORT)
   ============================================ */
.fs-envelope-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  background: radial-gradient(circle at 50% 50%, #fffdf9 0%, #f6eee0 55%, #e9dcc9 100%);
  
  perspective: 1400px;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.85s;
}

.fs-envelope-screen.is-revealed {
  opacity: 0;
  transform: scale(1.03);
  -webkit-transform: scale(1.03);
  pointer-events: none;
  visibility: hidden;
}



.fs-envelope-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(350px, 80vw, 750px);
  height: clamp(350px, 80vw, 750px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 194, 146, 0.4) 0%, rgba(223, 151, 163, 0.15) 35%, transparent 60%);
  pointer-events: none;
  animation: ambientGlowPulse 5s ease-in-out infinite alternate;
}

@keyframes ambientGlowPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* ============================================
   GOLDEN BUTTERFLIES (FROM INSIDE ENVELOPE)
   ============================================ */
.fs-butterflies {
  position: fixed; /* Fixed so it overlays everything */
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 2000; /* Above EVERYTHING including the envelope (which is 1000) */
  pointer-events: none;
}

.butterfly-wrap {
  position: absolute;
  width: 70px;
  height: 50px;
  margin-top: -25px;
  margin-left: -35px;
  opacity: 0;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  perspective: 400px;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

/* Remove fake body elements since SVG already contains the body */
.butterfly-wrap::before, .butterfly-wrap::after {
  display: none;
}

.bf-wing {
  position: absolute;
  top: 0;
  width: 35px;
  height: 44px; /* Aspect ratio to fit 120/148 */
  background: transparent;
  /* SVG handles the styling internally */
}

.bf-wing-left {
  left: 0;
  transform-origin: right center;
  animation: flapLeft 0.5s ease-in-out infinite alternate;
}

.bf-wing-right {
  left: 0;
  transform-origin: right center;
  animation: flapRight 0.5s ease-in-out infinite alternate;
}

@keyframes flapLeft {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(70deg); }
}

@keyframes flapRight {
  0% { transform: scaleX(-1) rotateY(0deg); }
  100% { transform: scaleX(-1) rotateY(70deg); }
}

/* Flight Paths Triggered on Opening - Slower, longer flight */
.fs-butterflies.is-active .b-1 { animation: fly1 7.5s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.fs-butterflies.is-active .b-2 { animation: fly2 8.0s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: 0.2s; }
.fs-butterflies.is-active .b-3 { animation: fly3 7.2s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: 0.1s; }
.fs-butterflies.is-active .b-4 { animation: fly4 8.2s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: 0.3s; }
.fs-butterflies.is-active .b-5 { animation: fly5 7.8s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: 0.15s; }
.fs-butterflies.is-active .b-6 { animation: fly6 8.5s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: 0.35s; }

/* Increased distance using vw/vh for responsive massive flight arcs */
@keyframes fly1 {
  0% { opacity: 0; transform: scale(0.3) translate(0, 0) rotate(15deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5) translate(-40vw, -70vh) rotate(-30deg); }
}
@keyframes fly2 {
  0% { opacity: 0; transform: scale(0.3) translate(0, 0) rotate(-15deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.8) translate(45vw, -60vh) rotate(50deg); }
}
@keyframes fly3 {
  0% { opacity: 0; transform: scale(0.3) translate(0, 0) rotate(5deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2) translate(-25vw, -80vh) rotate(-15deg); }
}
@keyframes fly4 {
  0% { opacity: 0; transform: scale(0.3) translate(0, 0) rotate(35deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.9) translate(50vw, -40vh) rotate(70deg); }
}
@keyframes fly5 {
  0% { opacity: 0; transform: scale(0.3) translate(0, 0) rotate(-45deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.4) translate(-50vw, -30vh) rotate(-80deg); }
}
@keyframes fly6 {
  0% { opacity: 0; transform: scale(0.3) translate(0, 0) rotate(0deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: scale(2.0) translate(15vw, -90vh) rotate(25deg); }
}

.fs-envelope-inner {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1400px;
  cursor: pointer;
  z-index: 20;
}

/* Event Details on Envelope Body */
.fs-envelope-details {
  position: absolute;
  bottom: clamp(28px, 8vh, 65px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  width: 90%;
  max-width: 500px;
  z-index: 25;
}

.fs-envelope-badge {
  font-size: clamp(0.72rem, 2vw, 0.86rem);
  letter-spacing: 4.5px;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fs-envelope-names {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  font-style: italic;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.fs-envelope-date {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Top Triangular Flap of the Fullscreen Envelope */
.fs-flap-top {
  position: absolute;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  left: 0;
  width: 100%;
  height: 49%;
  top: 0;
  transform-origin: top center; -webkit-transform-origin: top center;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  z-index: 30;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-flap-svg {
  width: 100%;
  height: 100%;
  display: block;
}




/* 3D Wax Seal in Exact Center (SVG Filter-based) */
.fs-wax-seal {
  position: absolute;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 25vw, 180px);
  height: clamp(120px, 25vw, 180px);
  cursor: pointer;
  z-index: 40;
  transition: transform 0.45s ease, opacity 0.5s ease;
  animation: pulseSeal 3s infinite ease-in-out;
}

@keyframes pulseSeal {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.03); }
}

.fs-envelope-screen.is-opening .fs-wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.4); -webkit-transform: translate(-50%, -50%) scale(1.4);
  pointer-events: none;
}

/* Floating Re-open Button */
.reopen-envelope-fab {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--gold);
  color: var(--text-dark);
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



.reopen-envelope-fab:hover {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(196, 154, 96, 0.4);
  transform: translateY(-2px);
}

/* ============================================
   CORNER FLORAL BOUQUETS (FLUID PROPORTIONAL)
   ============================================ */
.corner-floral {
  position: fixed;
  width: clamp(90px, 18vw, 230px);
  aspect-ratio: 1 / 1;
  height: auto;
  pointer-events: none;
  z-index: 5;
  opacity: 0.95;
  filter: drop-shadow(0 12px 25px rgba(160, 120, 130, 0.12));
}

.corner-floral img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* TOP-LEFT: Mirrored horizontally so leaves cascade down left and along top */
.corner-tl {
  top: 0;
  left: 0;
  transform: scaleX(-1);
  animation: floralSwayLeft 7s ease-in-out infinite alternate;
}

/* TOP-RIGHT: Natural orientation so leaves cascade down right and along top */
.corner-tr {
  top: 0;
  right: 0;
  transform: none;
  animation: floralSwayRight 7s ease-in-out infinite alternate;
  animation-delay: -3.5s;
}

@keyframes floralSwayLeft {
  0% { transform: scaleX(-1) translateY(0) rotate(0deg); }
  100% { transform: scaleX(-1) translateY(clamp(4px, 1vw, 8px)) rotate(-1.5deg); }
}

@keyframes floralSwayRight {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(clamp(4px, 1vw, 8px)) rotate(1.5deg); }
}

/* ============================================
   HERO SECTION (FLUID PROPORTIONAL)
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 9vh, 100px) clamp(16px, 4vw, 30px);
  z-index: 2;
  background: radial-gradient(circle at 50% 30%, rgba(245, 220, 224, 0.45) 0%, rgba(252, 250, 247, 0.98) 70%);
}

.hero-watercolor-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(223, 151, 163, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(107, 132, 113, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 3;
  width: 100%;
  max-width: min(92vw, 850px);
  margin: 0 auto;
}

/* Wreath Container - Organic Flowers With Natural Outlines (Fluid & Proportional) */
.wreath-container {
  position: relative;
  width: clamp(200px, 62vw, 350px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto clamp(14px, 3vh, 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
}

.hero-wreath-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(180, 130, 140, 0.18));
  animation: wreathRotate 35s linear infinite;
  transform-origin: center center;
  pointer-events: none;
}

@keyframes wreathRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wreath-inner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wreath-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 10cqw, 2.15rem);
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: clamp(1px, 0.8cqw, 2.2px);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.hero-invite-text {
  font-family: var(--font-body);
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: clamp(3px, 0.5vw, 6px);
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: clamp(8px, 1.8vh, 15px);
  font-weight: 500;
}

.hero-names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.3rem, 7.5vw, 4.8rem);
  font-weight: 500;
  color: var(--text-dark);
  margin: 5px 0 clamp(8px, 2vh, 15px);
  min-height: 1.3em;
  line-height: 1.15;
}

.cursor {
  display: inline-block;
  color: var(--gold);
  animation: blink 0.8s infinite;
  font-style: normal;
  font-weight: 200;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 15px);
  margin: clamp(12px, 2.5vh, 20px) 0;
}

.divider-line {
  display: inline-block;
  width: clamp(35px, 9vw, 70px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-icon {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 3px;
}

.hero-date {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: clamp(1.5px, 0.3vw, 2px);
  color: var(--text-body);
  line-height: 2;
  font-weight: 400;
}

/* ---------- COUNTDOWN (LOVELA ORGANIC BLOBS - EXACT COPY) ---------- */
.countdown-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 30px);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.lovela-item {
  position: relative;
  width: clamp(75px, 15vw, 100px);
  height: clamp(75px, 15vw, 100px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.blob-bg {
  position: absolute;
  width: 60%;
  height: 60%;
  z-index: 1;
}

.blob-main {
  position: relative;
  width: 85%;
  height: 85%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.bg-pink { background-color: #f4dde1; }
.bg-green { background-color: #d3dbcf; }

/* Exact Secondary Blob Placements */
.pos-tr { top: 0px; right: 0px; }
.pos-br { bottom: 0px; right: 0px; }
.pos-tl { top: 0px; left: 0px; }

/* Asymmetrical Blob Shapes */
.shape-main-1 { border-radius: 55% 45% 40% 60% / 50% 50% 50% 50%; }
.shape-bg-1 { border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%; }

.shape-main-2 { border-radius: 45% 55% 60% 40% / 55% 40% 60% 45%; }
.shape-bg-2 { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }

.shape-main-3 { border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%; }
.shape-bg-3 { border-radius: 50% 50% 60% 40% / 60% 40% 50% 50%; }

.shape-main-4 { border-radius: 40% 60% 50% 50% / 45% 55% 45% 55%; }
.shape-bg-4 { border-radius: 30% 70% 50% 50% / 50% 30% 70% 50%; }

/* Typography */
.l-num {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 300;
  color: #3c433b;
  line-height: 1;
  letter-spacing: 0.5px;
}

.l-lbl {
  font-family: var(--font-body);
  font-size: clamp(9px, 1.5vw, 12px);
  font-weight: 400;
  color: #7c807b;
  margin-top: 4px;
  text-transform: capitalize;
}

/* Exact Line Art Placements */
.lovela-svg {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0.9;
}

.svg-1 {
  right: -15px;
  bottom: -10px;
  width: 60px;
  height: 60px;
  transform: rotate(-5deg);
}

.svg-2 {
  right: -20px;
  bottom: -15px;
  width: 65px;
  height: 65px;
  transform: rotate(10deg);
}

.svg-3 {
  right: -10px;
  bottom: -15px;
  width: 65px;
  height: 65px;
  transform: rotate(5deg);
}

.svg-4 {
  left: -15px;
  bottom: -10px;
  width: 60px;
  height: 60px;
  transform: rotate(-10deg);
}

@media (max-width: 768px) {
  .svg-1 { width: 50px; height: 50px; right: -8px; bottom: -8px; }
  .svg-2 { width: 55px; height: 55px; right: -12px; bottom: -12px; }
  .svg-3 { width: 55px; height: 55px; right: -8px; bottom: -12px; }
  .svg-4 { width: 50px; height: 50px; left: -10px; bottom: -8px; }
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-indicator {
  position: absolute;
  bottom: clamp(12px, 2.5vh, 25px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  z-index: 3;
}

.scroll-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding-left: 3px;
  color: var(--text-muted);
  font-weight: 500;
}

.scroll-arrow {
  animation: bounce-down 2s infinite;
  color: var(--gold);
  font-size: 13px;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   SECTIONS GENERAL (FLUID PROPORTIONAL)
   ============================================ */
.section-intro,
.section-time,
.section-location,
.section-gallery,
.section-closing {
  position: relative;
  padding: clamp(55px, 9vh, 100px) clamp(16px, 4vw, 30px);
  z-index: 2;
}

.section-intro { background: var(--bg-section-1); }
.section-time { background: var(--bg-section-2); }
.section-location { background: var(--bg-section-3); }
.section-gallery { background: var(--bg-section-1); }
.section-closing { background: var(--bg-section-2); }

/* ---------- SECTION TITLE ---------- */
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: clamp(30px, 6vh, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 15px);
}

.title-ornament {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  font-style: normal;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 15px);
  margin: clamp(30px, 5vh, 50px) 0 20px;
}

.divider-diamond {
  color: var(--gold);
  font-size: 9px;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-flower-ornament {
  text-align: center;
  margin-bottom: clamp(16px, 3vh, 25px);
}

.intro-divider-img {
  max-width: min(50vw, 200px);
  height: auto;
  opacity: 0.85;
}

.intro-greeting {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--gold-dark);
  margin-bottom: clamp(12px, 2.5vh, 20px);
}

.intro-text {
  text-align: center;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 2.1;
  color: var(--text-body);
  max-width: min(92vw, 650px);
  margin: 0 auto clamp(25px, 5vh, 40px);
}

.intro-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 15px);
  flex-wrap: wrap;
}

.intro-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 7vw, 4.5rem);
  color: var(--text-dark);
  font-weight: 500;
}

.intro-ampersand {
  font-family: var(--font-script);
  font-size: clamp(3rem, 7.5vw, 4.8rem);
  color: var(--blush);
}

/* ============================================
   TIME SECTION (CALLIGRAPHIC FRAMELESS)
   ============================================ */
.time-frameless {
  text-align: center;
  max-width: min(92vw, 650px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.time-frameless-day {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.8vw, 16px);
  letter-spacing: clamp(4px, 0.9vw, 8px);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: clamp(4px, 1vh, 8px);
}

.time-frameless-date-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.5vw, 30px);
  width: 100%;
  margin: clamp(4px, 1vh, 12px) 0;
}

.time-frameless-line {
  flex: 1;
  max-width: clamp(50px, 14vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.time-frameless-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(5.2rem, 15vw, 7.5rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 0.95;
  text-shadow: 0 4px 20px rgba(196, 154, 96, 0.18);
}

.time-frameless-month {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  letter-spacing: clamp(4px, 0.8vw, 7px);
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: clamp(16px, 3vh, 24px);
}

.time-frameless-hour-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--text-dark);
  font-weight: 500;
  padding: 6px 20px;
  border-bottom: 1px solid rgba(196, 154, 96, 0.3);
}

.time-frameless-clock-icon {
  color: var(--gold);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.time-frameless-note {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.5vw, 13.5px);
  color: var(--text-muted);
  letter-spacing: clamp(1.5px, 0.3vw, 2.5px);
  text-transform: uppercase;
  margin-top: clamp(14px, 2.5vh, 22px);
  font-weight: 500;
}

/* ---------- CTA BUTTON ---------- */
.section-cta {
  text-align: center;
  margin-top: clamp(24px, 4vh, 35px);
}

.btn-premium {
  display: inline-block;
  padding: clamp(12px, 2vh, 16px) clamp(28px, 5vw, 42px);
  background: linear-gradient(135deg, #c49a60 0%, #a87e45 100%);
  border: 1px solid var(--gold);
  border-radius: 30px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(11px, 1.3vw, 12px);
  letter-spacing: clamp(1.5px, 0.3vw, 2px);
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 8px 25px rgba(196, 154, 96, 0.35);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-premium:hover {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  box-shadow: 0 12px 35px rgba(196, 154, 96, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-premium:hover::before {
  left: 100%;
}

/* ============================================
   LOCATION SECTION (FLUID PROPORTIONAL)
   ============================================ */
.location-info {
  text-align: center;
  margin-bottom: clamp(24px, 4vh, 35px);
}

.location-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 6px;
}

.location-hall {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  letter-spacing: clamp(2px, 0.5vw, 4px);
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.location-address {
  font-size: clamp(13.5px, 1.8vw, 15px);
  color: var(--text-body);
  line-height: 1.8;
}

/* ============================================
   MINIMALIST LUXURY VECTOR MAP
   ============================================ */
.custom-map-wrapper {
  max-width: min(92vw, 780px);
  margin: 0 auto 20px;
  border-radius: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(196, 154, 96, 0.4);
  box-shadow: 0 12px 35px rgba(160, 130, 135, 0.10), 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  background: #ffffff;
}

.custom-map-wrapper:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 45px rgba(196, 154, 96, 0.22);
  transform: translateY(-2px);
}

.custom-map-container {
  display: block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.custom-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Radar pulse animation on map pin */
@keyframes map-pulse-anim {
  0% {
    r: 10px;
    opacity: 0.9;
  }
  100% {
    r: 45px;
    opacity: 0;
  }
}

.map-pulse-ring-1 {
  animation: map-pulse-anim 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.map-pulse-ring-2 {
  animation: map-pulse-anim 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.8s;
}

.map-pulse-ring-3 {
  animation: map-pulse-anim 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 1.6s;
}

/* ============================================
   GALLERY SECTION (FLUID PROPORTIONAL)
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  max-width: min(94vw, 1000px);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: clamp(10px, 1.6vw, 16px);
  cursor: pointer;
  background: #ffffff;
  padding: 8px;
  border: 1px solid rgba(196, 154, 96, 0.25);
  box-shadow: 0 10px 30px rgba(160, 130, 135, 0.1);
  transition: var(--transition);
}

.gallery-item:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(196, 154, 96, 0.22);
}

.gallery-img {
  width: 100%;
  height: clamp(200px, 32vh, 280px);
  background-size: cover;
  background-position: center;
  border-radius: clamp(6px, 1vw, 10px);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  top: 8px;
  border-radius: 10px;
  background: linear-gradient(179.9deg, transparent 40%, rgba(45, 36, 38, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* ============================================
   CLOSING SECTION (FLUID PROPORTIONAL)
   ============================================ */
.section-closing {
  --closing-bg: #f6f3ee;
  position: relative;
  padding: clamp(20px, 4vh, 40px) 0 clamp(55px, 9vh, 85px);
  background: var(--closing-bg);
  z-index: 2;
  text-align: center;
}

.closing-infinity-stage {
  position: relative;
  width: clamp(250px, 70vw, 450px);
  margin: 0 auto 15px auto;
  aspect-ratio: 16 / 9;
  background: var(--closing-bg);
  border-radius: 8px; /* give it a slightly soft edge if desired, or 0 */
  overflow: hidden;
}

.closing-infinity-video {
  display: block;
  width: min(100%, 980px);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto;
  border: 0;
  outline: 0;
  background-color: var(--closing-bg);
  pointer-events: none;
  box-shadow: none;
  vertical-align: top;
  mix-blend-mode: darken;
}

/* Opaque cream lid — hides any premature video frame */
.closing-infinity-cover {
  position: absolute;
  inset: 0;
  background: var(--closing-bg);
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.closing-infinity-stage.is-animating .closing-infinity-cover {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .closing-infinity-stage.is-animating .closing-infinity-cover {
    opacity: 0;
    transition: none;
  }
}

.section-closing .container {
  background: transparent;
}

.closing-text {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-body);
  line-height: 2;
  margin-bottom: 15px;
}

.closing-text strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  color: var(--text-dark);
  font-weight: 600;
}

.closing-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--gold-dark);
  margin-top: 15px;
  opacity: 0.85;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 15, 18, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--gold);
  transform: rotate(90deg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
  background: #f1ebd0;
  background: linear-gradient(179.9deg, #f4eee5 0%, #ece4d8 100%);
  border-top: 1px solid rgba(196, 154, 96, 0.2);
  padding: 30px 20px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.footer-section p {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
/* Ultra small devices (iPhone SE / Galaxy Fold / under 360px) */
@media (max-width: 360px) {
  .flip-card {
    width: 48px;
  }

  .flip-number {
    font-size: 1.35rem;
  }

  .countdown-label {
    font-size: 7.5px;
    letter-spacing: 1px;
  }
}

/* Landscape / short-height mobile screens */
@media (max-height: 550px) and (orientation: landscape) {
  .hero-section {
    padding: 30px 15px;
    min-height: auto;
  }

  .wreath-container {
    width: clamp(150px, 42vh, 220px);
    margin-bottom: 10px;
  }

  .hero-names {
    font-size: clamp(1.8rem, 6vh, 2.5rem);
    margin: 5px 0;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ============================================
   WOW FEATURE 2: GOLD FOIL SHIMMER ANIMATION
   ============================================ */
.hero-names,
.section-title,
.wreath-monogram,
.time-frameless-number {
  position: relative;
  background: linear-gradient(120deg, var(--text-dark) 0%, var(--gold-dark) 40%, #edd39a 50%, var(--gold-dark) 60%, var(--text-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 7s ease-in-out infinite;
}

.wreath-monogram {
  background: linear-gradient(120deg, #966f36 0%, #c49a60 35%, #fff0cc 50%, #c49a60 65%, #966f36 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 5s ease-in-out infinite;
}

@keyframes goldShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ============================================
   GALLERY SECTION: 3D POLAROID ART GALLERY
   ============================================ */
.polaroid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(22px, 3.5vw, 32px);
}

.polaroid-card {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  padding: 12px 12px 18px;
  box-shadow: 
    0 12px 35px rgba(140, 110, 115, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  cursor: pointer;
}

.polaroid-card:hover {
  box-shadow: 
    0 20px 50px rgba(196, 154, 96, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Golden Washi Tape on Polaroid Top */
.polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 18px;
  background: linear-gradient(135deg, rgba(220, 185, 125, 0.85) 0%, rgba(196, 154, 96, 0.85) 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 1px;
  z-index: 3;
}

.polaroid-photo {
  position: relative;
  width: 100%;
  height: clamp(220px, 34vh, 290px);
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

.polaroid-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.polaroid-card:hover .polaroid-glare {
  opacity: 1;
}

.polaroid-caption {
  text-align: center;
  padding-top: 14px;
}

.caption-title {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text-dark);
}

.caption-quote {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  color: var(--gold-dark);
  margin-top: 2px;
}

/* Ribbon Banner Styles */
.banner-date-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.ribbon-banner-svg {
  width: 100%;
  height: auto;
  display: block;
}

.banner-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #5a4634;
  margin-top: 1rem;
  text-transform: uppercase;
}

/* Custom Image Ribbon Overlay */
.custom-ribbon-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
}

.birds-ribbon-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  z-index: 1;
  position: relative;
}

.ribbon-text-patch {
  position: absolute;
  top: 33%;
  left: 29%;
  width: 42%;
  height: 28%;
  background: var(--bg-section-2);
  transform: rotate(-3deg);
  border-radius: 6px;
  z-index: 2;
}

.ribbon-subtext-patch {
  position: absolute;
  top: 73%;
  left: 35%;
  width: 30%;
  height: 15%;
  background: var(--bg-section-2);
  z-index: 2;
}

.ribbon-date-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #231F20;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.ribbon-subtext-text {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 2px;
  color: #5a4634;
  text-transform: uppercase;
  z-index: 3;
}

.banner-date-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.ribbon-banner-svg {
  width: 100%;
  height: auto;
  display: block;
}


/* ========== MAP SECTION ========== */
.section-map {
  padding: 80px 20px;
  background-color: var(--bg-cream);
  text-align: center;
}
.map-wrapper {
  margin-top: 30px;
  border: 8px solid #fff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(196, 154, 96, 0.15);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
  filter: grayscale(20%) sepia(15%);
}
