/* ===================================================
   ROYAL NIKAH INVITATION - 9:16 PORTRAIT MASTER STYLESHEET
   Aiza Haniya & Hamza Idris
   =================================================== */

:root {
  /* Royal Color Palette */
  --maroon: #3B0710;
  --burgundy: #4A0812;
  --crimson: #7D1520;
  --wine: #5B1018;
  --gold: #C9A45C;
  --dark-gold: #8D6A2E;
  --bright-gold: #FFDF78;
  --light-gold: #FCE8B3;
  --champagne: #F3E5CF;
  --cream: #F8EBDD;
  --parchment: #FAF3E6;
  --white: #FFFFFF;

  /* Shadows & Glows */
  --gold-glow: 0 0 20px rgba(201, 164, 92, 0.45);
  --gold-glow-intense: 0 0 35px rgba(255, 223, 120, 0.7);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Card Dimension */
  --app-max-width: 440px;
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  background-color: #1a0105;
}

body {
  font-family: var(--font-body);
  color: var(--maroon);
  background: radial-gradient(ellipse at 50% 25%, #420610 0%, #1f0106 60%, #0d0003 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ===================================================
   9:16 MOBILE & TABLET RATIO OUTER FRAME
   Prevents desktop widescreen stretching, preserving authentic 9:16 ratio
   =================================================== */
.invite-outer-frame {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 0;
}

@media (min-width: 480px) {
  .invite-outer-frame {
    padding: 24px 16px 48px;
  }
}

.invite-card-device {
  width: 100%;
  max-width: var(--app-max-width);
  background-color: var(--parchment);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1.5px rgba(201, 164, 92, 0.55),
    var(--gold-glow);
}

@media (min-width: 480px) {
  .invite-card-device {
    border-radius: 20px;
  }
}

.invite-scroll-content {
  width: 100%;
  position: relative;
}

/* ===================================================
   METALLIC GOLD TEXT SHINE
   =================================================== */
.shimmer-text {
  background: linear-gradient(
    110deg,
    #B38728 0%,
    #FBF5B7 20%,
    #DAA520 40%,
    #AA771C 60%,
    #FBF5B7 80%,
    #B38728 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGold 5s linear infinite;
}

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

/* ===================================================
   FLOATING ROYAL MUSIC BUTTON
   =================================================== */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #5b1018 0%, #2e040b 100%);
  border: 1.5px solid var(--gold);
  color: var(--light-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), var(--gold-glow);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-cinematic);
}

.music-toggle.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.music-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.music-symbol {
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 0 8px var(--bright-gold);
}

.music-toggle.playing .music-symbol {
  animation: rotateNote 4s linear infinite;
}

.music-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}

.music-toggle.playing .music-ripple {
  animation: pulseRipple 2.2s infinite ease-out;
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes rotateNote {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
  100% { transform: rotate(0deg); }
}

/* ===================================================
   SECTION 1: 9:16 INTRO & CURTAIN VIDEO
   =================================================== */
.intro-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  background-color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.2s var(--ease-cinematic), visibility 1.2s;
}

.intro-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-visual {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.intro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(20, 1, 5, 0.6) 100%);
  pointer-events: none;
}

/* Pulsing Royal Hotspot */
.tap-hotspot {
  position: absolute;
  top: 59.2%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 230px;
  height: 75px;
  background: rgba(43, 4, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid var(--gold);
  border-radius: 40px;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(201, 164, 92, 0.7), inset 0 0 15px rgba(255, 223, 120, 0.3);
  animation: pulseSeal 2.4s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tap-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 45px rgba(255, 223, 120, 0.9);
}

.seal-outer-ring {
  position: absolute;
  inset: -5px;
  border-radius: 45px;
  border: 1px dashed rgba(255, 223, 120, 0.75);
  animation: rotateRing 14s linear infinite;
  pointer-events: none;
}

.seal-inner-core {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.seal-sparkle {
  color: var(--bright-gold);
  font-size: 0.85rem;
}

.seal-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--bright-gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 12px var(--gold);
}

@keyframes pulseSeal {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 25px rgba(201, 164, 92, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: 0 0 40px rgba(255, 223, 120, 0.9);
  }
}

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

/* 9:16 Video Player Layer */
.curtain-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  background-color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.curtain-video-layer.playing {
  opacity: 1;
  visibility: visible;
}

.curtain-video {
  width: 100%;
  max-width: var(--app-max-width);
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-light-leak {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 230, 160, 0.3) 0%, transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.curtain-video-layer.playing .video-light-leak {
  opacity: 1;
}

.video-skip-btn {
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 150;
  background: rgba(43, 4, 10, 0.85);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 8px 18px;
  color: var(--bright-gold);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), var(--gold-glow);
  transition: all 0.3s ease;
}

.video-skip-btn:hover {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--bright-gold);
}

/* ===================================================
   SECTION COMMON STYLES
   =================================================== */
.section {
  position: relative;
  width: 100%;
  padding: 48px 20px;
  text-align: center;
}

.gold-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark-gold);
  margin-bottom: 6px;
  display: inline-block;
}

.gold-badge.badge-light {
  color: var(--bright-gold);
  text-shadow: 0 0 10px rgba(201, 164, 92, 0.5);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--maroon);
  line-height: 1.2;
}

.section-title.text-light {
  color: var(--champagne);
}

.gold-ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 140px;
  margin: 12px auto 20px;
}

.gold-ornament-line .line-wing {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.gold-ornament-line .line-wing:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.gold-ornament-line .line-gem {
  color: var(--gold);
  font-size: 0.75rem;
}

/* Scroll reveal items */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease-cinematic), transform 0.85s var(--ease-cinematic);
  will-change: opacity, transform;
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   SECTION 2: HERO SECTION (NATURAL NON-OVERLAPPING FLORAL FLOW)
   =================================================== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-image: url('assets/hero-bg.png'), url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--champagne);
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43, 4, 10, 0.85) 0%,
    rgba(30, 2, 7, 0.88) 45%,
    rgba(30, 2, 7, 0.92) 80%,
    rgba(43, 4, 10, 0.98) 100%
  );
  z-index: 1;
}

/* Top Floral Header - Flush against top edge, never overlapping text */
.hero-floral-header {
  position: relative;
  width: 100%;
  line-height: 0;
  z-index: 5;
  pointer-events: none;
  margin-bottom: 0;
}

.floral-garland-top {
  width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

/* Hero Content - Cleanly spaced between garlands */
.hero-body-content {
  position: relative;
  z-index: 6;
  width: 100%;
  padding: 10px 18px;
  margin: auto 0;
  text-align: center;
}

/* Bismillah */
.bismillah-crest {
  margin-bottom: 10px;
}

.bismillah-arabic {
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Amiri', serif;
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  color: var(--bright-gold);
  line-height: 1.35;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 0 18px rgba(201, 164, 92, 0.6);
}

.bismillah-trans {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--light-gold);
  opacity: 0.9;
  margin-top: 3px;
}

.gold-filigree-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 130px;
  margin: 10px auto 14px;
}

.gold-filigree-divider .filigree-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.gold-filigree-divider .filigree-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.gold-filigree-divider .filigree-motif {
  color: var(--bright-gold);
  font-size: 0.8rem;
  letter-spacing: 3px;
}

.hero-invite-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  line-height: 1.85;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.name-block {
  margin: 2px 0;
}

.couple-name {
  font-family: var(--font-script);
  font-size: 3.9rem;
  font-weight: 400;
  line-height: 1.05;
  margin: 2px 0;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.9));
}

.parents-line {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--champagne);
  margin-top: 2px;
}

.kin-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--bright-gold);
  display: inline-block;
}

.parent-names {
  font-weight: 500;
  color: var(--light-gold);
}

.names-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 110px;
  margin: 4px auto;
}

.connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.connector-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.connector-amp {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--bright-gold);
  line-height: 1;
  text-shadow: 0 0 10px var(--gold);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  line-height: 1.7;
  color: var(--light-gold);
  text-transform: uppercase;
  margin-top: 8px;
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--bright-gold);
}

.scroll-beacon {
  width: 18px;
  height: 28px;
  border-radius: 9px;
  border: 1.5px solid var(--gold);
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.scroll-dot {
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background-color: var(--bright-gold);
  animation: beaconDrop 1.8s infinite ease-in-out;
}

@keyframes beaconDrop {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* Bottom Floral Footer - Flush against bottom edge */
.hero-floral-footer {
  position: relative;
  width: 100%;
  line-height: 0;
  z-index: 5;
  pointer-events: none;
  margin-top: 0;
}

.floral-garland-bottom {
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: cover;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 -4px 10px rgba(0, 0, 0, 0.4));
}

/* ===================================================
   SECTION 3: WELCOME
   =================================================== */
.welcome-section {
  background: linear-gradient(180deg, var(--parchment) 0%, #faebd7 100%);
  padding: 48px 18px;
}

.royal-card-inner {
  border: 1px solid rgba(201, 164, 92, 0.45);
  border-radius: 14px;
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 25px rgba(59, 7, 16, 0.08), inset 0 0 35px rgba(201, 164, 92, 0.1);
}

.section-floral-header {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 14px;
}

.floral-divider-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.welcome-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #3b1419;
  font-style: italic;
  max-width: 340px;
  margin: 0 auto 20px;
}

.welcome-signature-wrap {
  margin-top: 10px;
}

.signature-names {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--crimson);
  line-height: 1;
}

.signature-date {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--dark-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ===================================================
   SECTION 4: SCRATCH DATE (PRECISE 9:16 PROPORTIONS)
   =================================================== */
.scratch-section {
  background: linear-gradient(180deg, #faebd7 0%, #f0dcc5 100%);
  padding: 48px 16px 54px;
}

.scratch-guidance {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--burgundy);
  margin-bottom: 22px;
  font-weight: 500;
}

.scratch-card-container {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.scratch-stage {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  background-image: url('assets/scratch-card.png'), url('assets/scratch-card.jpg');
  background-size: 100% 100%;
  background-position: center;
  box-shadow: 
    0 12px 30px rgba(59, 7, 16, 0.25),
    0 0 0 1.5px rgba(201, 164, 92, 0.6),
    var(--gold-glow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.revealed-invitation-card {
  position: absolute;
  inset: 16px 20px;
  background: radial-gradient(circle, #fffdf8 0%, #f8eedf 100%);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: inset 0 0 20px rgba(201, 164, 92, 0.25);
  user-select: none;
}

.card-corner-decor {
  position: absolute;
  color: var(--gold);
  font-size: 0.65rem;
  line-height: 1;
}

.card-corner-decor.tl { top: 5px; left: 6px; }
.card-corner-decor.tr { top: 5px; right: 6px; }
.card-corner-decor.bl { bottom: 5px; left: 6px; }
.card-corner-decor.br { bottom: 5px; right: 6px; }

.revealed-intro {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--crimson);
  line-height: 1;
}

.revealed-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 2.5px;
  font-weight: 700;
  margin: 2px 0;
}

.revealed-gold-line {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 3px auto 5px;
}

.revealed-big-date {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--crimson);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.revealed-day-time {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--maroon);
  margin-top: 2px;
}

.revealed-venue-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--dark-gold);
  margin-top: 2px;
}

.revealed-seal {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 3px;
}

/* Canvas */
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.85s var(--ease-cinematic);
}

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

.sparkles-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.sparkle-burst {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bright-gold);
  box-shadow: 0 0 10px var(--bright-gold), 0 0 20px #fff;
  animation: popSparkle 0.85s ease-out forwards;
}

@keyframes popSparkle {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.8) rotate(90deg); opacity: 1; }
  100% { transform: scale(0.2) rotate(180deg); opacity: 0; }
}

/* ===================================================
   SECTION 5: OUR STORY (PORTRAIT SLIDER)
   ================================================== */
.story-section {
  background: linear-gradient(180deg, #f0dcc5 0%, var(--parchment) 100%);
  padding: 48px 16px 54px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--wine);
  margin-bottom: 22px;
}

.story-gallery {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.slider-viewport {
  width: 100%;
  border-radius: 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 35px rgba(59, 7, 16, 0.25), var(--gold-glow);
  background-color: var(--maroon);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.slider-viewport:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  transition: transform 0.5s var(--ease-cinematic);
  width: 100%;
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
}

.photo-card-frame {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-couple-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.7s ease;
}

.photo-card-frame:hover .slide-couple-img {
  transform: scale(1.04);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 2, 6, 0.92) 100%);
  color: var(--champagne);
  text-align: center;
}

.caption-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bright-gold);
  display: inline-block;
  margin-bottom: 2px;
}

.caption-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Nav arrows */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(43, 4, 10, 0.88);
  border: 1.5px solid var(--gold);
  color: var(--light-gold);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), var(--gold-glow);
  transition: all 0.25s ease;
}

.slider-nav-btn:hover {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--bright-gold);
}

.slider-nav-btn.prev { left: -14px; }
.slider-nav-btn.next { right: -14px; }

/* Dot indicators */
.slider-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 24px;
  border-radius: 5px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--bright-gold);
}

/* ===================================================
   SECTION 6: COUNTDOWN
   =================================================== */
.countdown-section {
  background-color: var(--maroon);
  color: var(--champagne);
  padding: 54px 16px 58px;
  position: relative;
  overflow: hidden;
}

.countdown-velvet-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(125, 21, 32, 0.45) 0%, rgba(20, 1, 5, 0.95) 100%);
  pointer-events: none;
}

.countdown-inner-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.countdown-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 28px auto 20px;
}

.time-tile {
  background: linear-gradient(180deg, #4a0812 0%, #2b040a 100%);
  border: 1.5px solid rgba(201, 164, 92, 0.55);
  border-radius: 10px;
  padding: 14px 4px;
  box-shadow: 
    0 8px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 223, 120, 0.3),
    0 0 14px rgba(201, 164, 92, 0.15);
}

.tile-digit {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--bright-gold);
  line-height: 1;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 223, 120, 0.5);
}

.tile-caption {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--champagne);
  display: block;
  margin-top: 6px;
  opacity: 0.9;
}

.countdown-celebration {
  display: none;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--bright-gold);
  padding: 18px 0;
  text-shadow: 0 0 18px var(--bright-gold);
}

.countdown-exact-date {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--light-gold);
}

/* ===================================================
   SECTION 7: TIMELINE
   =================================================== */
.timeline-section {
  background: linear-gradient(180deg, var(--parchment) 0%, #f7ecd9 100%);
  padding: 50px 16px 54px;
}

.timeline-scroll {
  position: relative;
  max-width: 360px;
  margin: 30px auto 0;
}

.timeline-gold-spine {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--crimson) 50%, var(--gold) 100%);
}

.timeline-entry {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateX(18px);
  transition: all 0.8s var(--ease-cinematic);
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-node {
  position: relative;
  z-index: 2;
  width: 38px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.node-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--parchment);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--shadow-gold);
  transition: all 0.3s ease;
}

.node-spark {
  color: var(--crimson);
  font-size: 0.65rem;
  line-height: 1;
}

.timeline-entry.visible .node-ring {
  background-color: var(--crimson);
  border-color: var(--bright-gold);
  transform: scale(1.15);
}

.timeline-entry.visible .node-spark {
  color: var(--bright-gold);
}

.timeline-parchment {
  background: #ffffff;
  border: 1px solid rgba(201, 164, 92, 0.45);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  flex-grow: 1;
  box-shadow: 0 4px 14px rgba(59, 7, 16, 0.08);
}

.timeline-parchment.highlighted-entry {
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, #ffffff 0%, #fffbf2 100%);
  box-shadow: 0 6px 20px rgba(59, 7, 16, 0.12), var(--gold-glow);
}

.entry-time {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--crimson);
  margin-bottom: 2px;
}

.entry-time.highlight-gold {
  color: var(--dark-gold);
}

.entry-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.2;
}

.entry-desc {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: #4d1d23;
  margin-top: 3px;
  line-height: 1.45;
}

/* ===================================================
   SECTION 8: VENUE
   =================================================== */
.venue-section {
  background: linear-gradient(180deg, #f7ecd9 0%, var(--parchment) 100%);
  padding: 50px 16px 56px;
}

.venue-grand-card {
  max-width: 360px;
  margin: 20px auto 0;
  border-radius: 14px;
  border: 1.5px solid var(--gold);
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(59, 7, 16, 0.2), var(--gold-glow);
}

.venue-photo-holder {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.venue-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.venue-grand-card:hover .venue-full-img {
  transform: scale(1.04);
}

.venue-banner-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(43, 4, 10, 0.88);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 4px 14px;
  color: var(--bright-gold);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  backdrop-filter: blur(4px);
}

.venue-details-wrap {
  padding: 22px 18px 24px;
  text-align: center;
}

.venue-hall-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 4px;
}

.venue-address-block {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: #3b1419;
  line-height: 1.5;
  margin-bottom: 20px;
}

.royal-gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--maroon) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 30px;
  padding: 12px 26px;
  color: var(--light-gold);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 5px 16px rgba(59, 7, 16, 0.35);
  transition: all 0.3s ease;
}

.royal-gold-button:hover {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--wine) 100%);
  color: var(--white);
  border-color: var(--bright-gold);
}

/* ===================================================
   SECTION 9: DRESS CODE
   =================================================== */
.dress-section {
  background: linear-gradient(180deg, var(--parchment) 0%, #faebd7 100%);
  padding: 50px 16px 54px;
}

.dress-guide-para {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--maroon);
  max-width: 350px;
  margin: 0 auto 10px;
}

.dress-note-para {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--crimson);
  max-width: 340px;
  margin: 0 auto 24px;
}

.palette-swatches-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.palette-swatch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.swatch-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(59, 7, 16, 0.25), 0 0 0 1.5px rgba(201, 164, 92, 0.6);
  transition: transform 0.25s ease;
}

.palette-swatch-box:hover .swatch-disc {
  transform: scale(1.12);
}

.swatch-title {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--maroon);
}

/* ===================================================
   SECTION 10: FESTIVITIES
   =================================================== */
.festivities-section {
  background: linear-gradient(180deg, #faebd7 0%, var(--parchment) 100%);
  padding: 52px 16px 58px;
}

.festivities-card-deck {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 360px;
  margin: 22px auto 0;
}

.royal-festivity-card {
  background: #ffffff;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(59, 7, 16, 0.08);
  transition: transform 0.3s ease;
}

.royal-festivity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(59, 7, 16, 0.16), var(--gold-glow);
}

.festivity-crest {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 3px;
}

.festivity-name {
  font-family: var(--font-script);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--crimson);
  line-height: 1.1;
  margin-bottom: 4px;
}

.festivity-meta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 4px;
}

.festivity-place {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-gold);
  margin-bottom: 6px;
}

.festivity-details {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: #55242b;
  margin-bottom: 14px;
  line-height: 1.45;
}

.festivity-maps-action {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--crimson);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  display: inline-block;
}

/* ===================================================
   SECTION 11: CLOSING (CLEAN RESIZED FLORAL FRAMING)
   =================================================== */
.closing-section {
  background: linear-gradient(180deg, var(--parchment) 0%, #fbf3e4 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.closing-floral-top-edge {
  width: 100%;
  line-height: 0;
  margin-bottom: 16px;
}

.closing-floral-bottom-edge {
  width: 100%;
  line-height: 0;
  margin-top: 16px;
}

.closing-card-core {
  padding: 10px 18px;
  max-width: 360px;
  margin: 0 auto;
}

.closing-heartfelt-msg {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--maroon);
  line-height: 1.75;
  margin-bottom: 20px;
}

.closing-ornate-box {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  padding: 22px 18px;
  margin-top: 14px;
  box-shadow: 0 6px 18px rgba(59, 7, 16, 0.08);
}

.box-quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #3b141a;
  margin-bottom: 6px;
}

.box-signature {
  font-family: var(--font-script);
  font-size: 3rem;
  line-height: 1;
}

/* ===================================================
   SECTION 12: FOOTER
   =================================================== */
.invite-footer {
  background: linear-gradient(180deg, var(--maroon) 0%, #150004 100%);
  color: var(--champagne);
  padding: 38px 16px 44px;
  text-align: center;
  position: relative;
  z-index: 10;
  width: 100%;
  border-top: 1.5px solid rgba(201, 164, 92, 0.5);
}

.footer-crest {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 5px;
  margin-bottom: 12px;
}

.footer-title {
  font-family: var(--font-script);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 6px;
}

.footer-calendar {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--champagne);
  margin-bottom: 6px;
  opacity: 0.9;
}

.footer-sentiment {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.9;
}

.footer-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

/* ===================================================
   FLOATING ROSE PETALS
   =================================================== */
.petals-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 80;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -30px;
  pointer-events: none;
  width: 15px;
  height: 18px;
  background: radial-gradient(circle at 35% 35%, #bd2032 0%, #7d1520 70%, #45040d 100%);
  border-radius: 50% 12% 50% 50%;
  opacity: 0.8;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  animation: floatPetal linear infinite;
  will-change: transform, opacity;
}

@keyframes floatPetal {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(106vh) rotate(540deg) scale(1.1);
    opacity: 0;
  }
}

/* ===================================================
   ACCESSIBILITY: REDUCED MOTION
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .petal {
    display: none !important;
  }
}
