/* ==========================================================================
   WEDDING ELEGANT - CINEMATIC ENVELOPE INVITATION STYLESHEET
   Style: Elegant, Luxurious, Vintage Modern, Romantic
   Colors: Ivory, Cream, Champagne Gold, Soft Brown, Maroon Wax Seal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&family=Pinyon+Script&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Root Color Palette & Variables --- */
:root {
  --bg-ivory: #FDFBF7;
  --bg-ivory-warm: #FAF5ED;
  --bg-cream: #F4EFE6;
  --bg-cream-dark: #EBE2D3;
  --paper-texture: #FBF8F2;

  --gold-primary: #C5A059;
  --gold-light: #E8D3A7;
  --gold-dark: #9A7732;
  --gold-shimmer: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);

  --text-primary: #3B3231;
  --text-muted: #6E615F;
  --text-light: #8C7C79;

  --maroon-seal: #8B1E24;
  --maroon-dark: #5C1014;

  --font-title-script: 'Great Vibes', 'Alex Brush', cursive;
  --font-script-accent: 'Pinyon Script', cursive;
  --font-serif-heading: 'Cinzel', 'Playfair Display', serif;
  --font-serif-body: 'Cormorant Garamond', Georgia, serif;
  --font-sans-meta: 'Montserrat', sans-serif;

  --shadow-lux: 0 20px 50px rgba(59, 50, 49, 0.12);
  --shadow-envelope: 0 30px 60px rgba(40, 30, 25, 0.35), 0 10px 20px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-ivory);
  color: var(--text-primary);
  font-family: var(--font-serif-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hide scrollbars during full envelope overlay lock */
body.locked {
  overflow: hidden;
  height: 100vh;
}

/* --- Film Grain & Vintage Glow Canvas Overlay --- */
.film-grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grainShift 0.2s steps(1) infinite;
}

@keyframes grainShift {
  0% {
    background-position: 0 0;
  }

  20% {
    background-position: -64px -48px;
  }

  40% {
    background-position: 32px -96px;
  }

  60% {
    background-position: -128px 64px;
  }

  80% {
    background-position: 64px 32px;
  }

  100% {
    background-position: -32px 96px;
  }
}

/* Floating Soft Petals Canvas */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* ==========================================================================
   HALAMAN PEMBUKA: CINEMATIC FULL SCREEN ENVELOPE OVERLAY
   ========================================================================== */

.opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1), transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), visibility 1.2s;
}

.opening-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.15);
}

/* Golden Hour Garden Blur Background */
.golden-hour-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(18, 14, 10, 0.45) 0%, rgba(40, 26, 15, 0.35) 40%, rgba(18, 14, 10, 0.6) 100%),
    radial-gradient(ellipse at 55% 25%, rgba(255, 195, 90, 0.35) 0%, rgba(220, 150, 60, 0.12) 40%, transparent 65%),
    radial-gradient(ellipse at 15% 70%, rgba(180, 120, 60, 0.2) 0%, transparent 50%),
    url('https://images.unsplash.com/photo-1519741497674-611481863552?q=90&w=2400&auto=format&fit=crop&sat=-20') center/cover no-repeat;
  filter: blur(3px) brightness(0.88) saturate(1.2);
  transform: scale(1.06);
  transition: transform 14s ease-out, filter 1s ease;
  will-change: transform;
}

.opening-overlay:hover .golden-hour-bg {
  transform: scale(1.1);
}

/* Secondary warm light vignette layer */
.golden-hour-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(10, 6, 4, 0.55) 100%);
  pointer-events: none;
}

/* Animated Sheer White Veil (Kain Transparan Tertiup Angin) */
.veil-overlay {
  position: absolute;
  bottom: -20%;
  left: -25%;
  width: 150%;
  height: 75%;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at 20% 95%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%),
    radial-gradient(ellipse at 80% 85%, rgba(255, 248, 235, 0.3) 0%, transparent 50%);
  filter: blur(18px);
  opacity: 0.9;
  transform-origin: bottom left;
  animation: floatVeil 16s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

/* Second veil layer for depth */
.veil-overlay-2 {
  position: absolute;
  bottom: -25%;
  right: -20%;
  width: 120%;
  height: 60%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at 70% 90%, rgba(255, 255, 255, 0.35) 0%, rgba(240, 230, 210, 0.12) 40%, transparent 70%);
  filter: blur(22px);
  opacity: 0.7;
  transform-origin: bottom right;
  animation: floatVeil2 20s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes floatVeil {
  0% {
    transform: rotate(0deg) translateY(0px) skewX(0deg) scaleX(1);
  }

  33% {
    transform: rotate(-2.5deg) translateY(-20px) skewX(-3deg) scaleX(1.03);
  }

  66% {
    transform: rotate(1.5deg) translateY(-35px) skewX(2deg) scaleX(0.98);
  }

  100% {
    transform: rotate(-1deg) translateY(-15px) skewX(-1.5deg) scaleX(1.02);
  }
}

@keyframes floatVeil2 {
  0% {
    transform: rotate(0deg) translateY(0px) scaleX(1);
  }

  40% {
    transform: rotate(2deg) translateY(-18px) scaleX(1.04);
  }

  100% {
    transform: rotate(-1.5deg) translateY(-30px) scaleX(0.97);
  }
}

/* Invitation Header Text Above Envelope */
.opening-header {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 25px;
  animation: fadeInDown 1.4s ease-out forwards;
}

.invited-text {
  font-family: var(--font-title-script);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #FFFFFF;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 225, 175, 0.5);
  letter-spacing: 1px;
  line-height: 1.1;
}

.invited-subtitle {
  font-family: var(--font-sans-meta);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   3D ENVELOPE MECHANICS
   ========================================================================== */

.envelope-wrapper {
  position: relative;
  z-index: 10;
  perspective: 1400px;
  width: min(88vw, 420px);
  aspect-ratio: 16/10;
  margin: 10px auto 30px;
  cursor: pointer;
  filter: drop-shadow(0 28px 40px rgba(20, 12, 8, 0.45)) drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25));
  transition: filter 0.6s ease;
}

.envelope-wrapper:hover {
  filter: drop-shadow(0 35px 50px rgba(20, 12, 8, 0.55)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

.envelope-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.envelope-wrapper:hover:not(.is-opening) .envelope-3d {
  transform: translateY(-10px) rotateX(5deg) rotateY(-1deg);
}

/* Envelope Back Pocket */
.envelope-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-cream-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-envelope);
  z-index: 1;
}

/* Inner Letter Card Inside Envelope */
.envelope-letter {
  position: absolute;
  top: 6%;
  left: 5%;
  width: 90%;
  height: 88%;
  background: var(--bg-ivory);
  background-image: radial-gradient(circle, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 6px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s 0.5s;
}

.letter-monogram {
  font-family: var(--font-title-script);
  font-size: clamp(2.6rem, 8vw, 4rem);
  color: var(--text-primary);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
  width: 100%;
}

.mono-g {
  transform: translateX(-10px);
}

.mono-i {
  transform: translateX(10px);
}

.monogram-amp {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.1em;
  color: var(--gold-primary);
  opacity: 0.9;
  display: inline-block;
  line-height: 1;
  padding: 0 4px;
}

/* Envelope Front Side Flaps (Left, Right, Bottom) */
.envelope-pocket {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: 6px;
}

.flap-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50% 0 50% 50%;
  border-color: transparent transparent transparent #EDE5D6;
}

.flap-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50% 50% 50% 0;
  border-color: transparent #F0E9DB transparent transparent;
}

.flap-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 50% 42% 50%;
  border-color: transparent transparent #F2EBD9 transparent;
}

/* 3D Top Flap with Triangular Fold */
.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  z-index: 4;
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flap-top-shape {
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, #FDFBF7 60%, #EFE8D7 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  /* Inner shadow at fold line */
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.14));
}

/* Wax Seal Maroon 3D Stamp */
.wax-seal {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 68px;
  height: 68px;
  background: radial-gradient(circle at 35% 35%, #A1232B 0%, #8B1E24 50%, #5C1014 100%);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(45, 10, 12, 0.55), inset 0 2px 5px rgba(255, 255, 255, 0.35), inset 0 -3px 8px rgba(0, 0, 0, 0.65);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.wax-seal-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 202, 101, 0.5);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

.wax-seal-emblem {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
}

/* White Lily Flower Corners (Bunga Lily Putih) */
.lily-flower {
  position: absolute;
  width: 85px;
  height: 85px;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.lily-top-left {
  top: -25px;
  left: -25px;
  transform: rotate(-20deg);
}

.lily-bottom-right {
  bottom: -25px;
  right: -25px;
  transform: rotate(155deg);
}

/* Open Invitation Action Button */
.btn-open-invitation {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5EFEB 100%);
  color: var(--text-primary);
  font-family: var(--font-sans-meta);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 50px;
  border: 1px solid var(--gold-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s ease;
  animation: pulseGlow 2.5s infinite alternate;
}

.btn-open-invitation:hover {
  transform: translateY(-3px) scale(1.03);
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(212, 175, 55, 0.4);
  border-color: var(--gold-primary);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0px rgba(212, 175, 55, 0);
  }

  100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.45);
  }
}

/* 3D OPENING ANIMATION ACTIVE STATES */
.envelope-wrapper.is-opening .envelope-top-flap {
  transform: rotateX(-180deg);
}

.envelope-wrapper.is-opening .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(60deg);
  transition: opacity 0.4s ease-out 0.1s, transform 0.5s ease-out 0.1s;
}

.envelope-wrapper.is-opening .envelope-letter {
  transform: translateY(-100%);
  z-index: 10;
  transition: transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s;
}

/* ==========================================================================
   FLOATING AUDIO CONTROL WIDGET
   ========================================================================== */

.music-control-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold-dark);
  transition: all 0.3s ease;
}

.music-control-btn:hover {
  transform: scale(1.1);
  border-color: var(--gold-primary);
}

.music-disc-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.5s linear;
}

.music-control-btn.playing .music-disc-icon {
  animation: spinDisc 4s linear infinite;
}

@keyframes spinDisc {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   MAIN INVITATION CONTAINER & SECTIONS
   ========================================================================== */

.main-invitation {
  opacity: 0;
  transition: opacity 1.2s ease 0.4s;
  min-height: 100vh;
}

.main-invitation.visible {
  opacity: 1;
}

/* Generic Section Container */
.wedding-section {
  padding: 90px 20px;
  position: relative;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.container-wide {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

/* Section Header Typography */
.section-tag {
  font-family: var(--font-sans-meta);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-align: center;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-title-script);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto 40px;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.divider-icon {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

/* Gold Floral Frame Corner Ornament SVG */
.gold-corner-ornament {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  opacity: 0.75;
}

.gold-corner-top-left {
  top: 20px;
  left: 20px;
}

.gold-corner-top-right {
  top: 20px;
  right: 20px;
  transform: scaleX(-1);
}

.gold-corner-bottom-left {
  bottom: 20px;
  left: 20px;
  transform: scaleY(-1);
}

.gold-corner-bottom-right {
  bottom: 20px;
  right: 20px;
  transform: scale(-1);
}

/* ==========================================================================
   HERO CARD SECTION (HERO LETTER)
   ========================================================================== */

.hero-letter-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(248, 237, 215, 0.6), transparent 70%),
    linear-gradient(to bottom, var(--bg-ivory), var(--bg-cream));
}

.hero-letter-card {
  background: var(--paper-texture);
  border: 1px solid rgba(197, 160, 89, 0.4);
  box-shadow: var(--shadow-lux);
  border-radius: var(--radius-md);
  padding: clamp(35px, 6vw, 65px) clamp(25px, 5vw, 55px);
  text-align: center;
  position: relative;
  max-width: 740px;
  width: 100%;
}

.bismillah-text {
  font-family: 'Traditional Arabic', 'Amiri', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--gold-dark);
  margin-bottom: 25px;
  direction: rtl;
  line-height: 1.6;
}

.hero-subhead {
  font-family: var(--font-sans-meta);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-couple-names {
  font-family: var(--font-title-script);
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  color: var(--text-primary);
  line-height: 1.25;
  margin: 15px 0 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.couple-name-line {
  display: block;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.hero-couple-amp-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 4px 0;
  position: relative;
}

.hero-couple-amp-wrapper::before,
.hero-couple-amp-wrapper::after {
  content: '';
  height: 1px;
  width: 45px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.6;
}

.hero-couple-amp {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--gold-dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 16px;
  line-height: 1;
  position: relative;
}

.hero-quran-verse {
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.hero-verse-source {
  display: block;
  font-style: normal;
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-top: 8px;
}

.hero-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 30px;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  margin-bottom: 35px;
}

.hero-date-day {
  font-family: var(--font-serif-heading);
  font-size: 1.3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hero-date-full {
  font-family: var(--font-sans-meta);
  font-size: 0.82rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.hero-buttons-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.btn-primary-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #FFFFFF;
  font-family: var(--font-sans-meta);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.3);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(184, 134, 11, 0.45);
  background: linear-gradient(135deg, #E6CA65 0%, #C5A059 100%);
}

.btn-outline-gold {
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans-meta);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 50px;
  border: 1px solid var(--gold-primary);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION 1: MEMPELAI (COUPLE PROFILES)
   ========================================================================== */

.couple-section {
  background: var(--bg-ivory);
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .couple-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.couple-card {
  text-align: center;
  background: var(--paper-texture);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 35px 25px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease;
}

.couple-card:hover {
  transform: translateY(-5px);
}

.couple-photo-wrapper {
  position: relative;
  width: 170px;
  height: 220px;
  margin: 0 auto 25px;
  border-radius: 100px 100px 20px 20px;
  overflow: hidden;
  border: 4px solid #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.couple-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.couple-card:hover .couple-photo-wrapper img {
  transform: scale(1.06);
}

.couple-name {
  font-family: var(--font-title-script);
  font-size: 2.8rem;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 5px;
}

.couple-full-name {
  font-family: var(--font-serif-heading);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.couple-parents {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.couple-instagram {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-sans-meta);
  font-size: 0.78rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.couple-instagram:hover {
  color: var(--gold-dark);
}

.couple-amp-separator {
  font-family: var(--font-title-script);
  font-size: 4rem;
  color: var(--gold-primary);
  text-align: center;
}

/* ==========================================================================
   SECTION 2: LOVE STORY TIMELINE
   ========================================================================== */

.story-section {
  background: var(--bg-cream);
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-primary), transparent);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 25px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 35px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    padding-right: 15px;
    text-align: left !important;
  }
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid var(--bg-cream);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 17px !important;
  }
}

.timeline-card {
  background: var(--paper-texture);
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 22px 25px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.timeline-year {
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-title-script);
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 3: COUNTDOWN WEDDING
   ========================================================================== */

.countdown-section {
  background: linear-gradient(135deg, #2D2524 0%, #1A1413 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-section .section-title {
  color: #FDFBF7;
}

.countdown-section .section-tag {
  color: var(--gold-light);
}

.countdown-timer-grid {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 25px);
  margin-top: 30px;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: clamp(15px, 3vw, 25px) clamp(10px, 2.5vw, 20px);
  border-radius: var(--radius-md);
  min-width: clamp(70px, 18vw, 110px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.countdown-number {
  font-family: var(--font-serif-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: #FCE8B3;
  line-height: 1;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.countdown-label {
  font-family: var(--font-sans-meta);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

/* ==========================================================================
   SECTION 4: DETAIL ACARA (AKAD & RESEPSI)
   ========================================================================== */

.events-section {
  background: var(--bg-ivory-warm);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.event-card {
  background: var(--paper-texture);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.event-badge {
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.event-title {
  font-family: var(--font-title-script);
  font-size: 3rem;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
}

.event-details-list {
  list-style: none;
  margin-bottom: 30px;
}

.event-detail-item {
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.event-detail-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.venue-name {
  font-family: var(--font-serif-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 4px;
}

.maps-embed-wrapper {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.maps-embed-wrapper iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* ==========================================================================
   SECTION 5: GALERI FOTO (CINEMATIC GALLERY)
   ========================================================================== */

.gallery-section {
  background: var(--bg-cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 37, 36, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: opacity 0.3s ease;
}

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

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 12, 12, 0.92);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #FFFFFF;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ==========================================================================
   SECTION 6: RSVP FORM
   ========================================================================== */

.rsvp-section {
  background: var(--bg-ivory);
}

.rsvp-card {
  background: var(--paper-texture);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-md);
  padding: clamp(30px, 5vw, 55px);
  box-shadow: var(--shadow-lux);
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 22px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-sans-meta);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: #FFFFFF;
  font-family: var(--font-serif-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* RSVP Success Confirmation Box */
.rsvp-success-message {
  display: none;
  text-align: center;
  padding: 30px 20px;
  background: rgba(197, 160, 89, 0.08);
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-sm);
  margin-top: 20px;
}

.rsvp-success-message.show {
  display: block;
  animation: fadeIn 0.6s ease;
}

/* ==========================================================================
   SECTION 7: WEDDING GIFT (DIGITAL ENVELOPE)
   ========================================================================== */

.gift-section {
  background: var(--bg-cream-dark);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.gift-card {
  background: var(--paper-texture);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-md);
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.bank-logo {
  font-family: var(--font-serif-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.account-number {
  font-family: var(--font-sans-meta);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin: 10px 0 4px;
}

.account-holder {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.btn-copy-acc {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-sans-meta);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-copy-acc:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #2D2524;
  color: #FCE8B3;
  font-family: var(--font-sans-meta);
  font-size: 0.82rem;
  letter-spacing: 1px;
  padding: 12px 26px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SECTION 8: UCAPAN & DOA TAMU (GUESTBOOK FEED)
   ========================================================================== */

.wishes-section {
  background: var(--bg-ivory);
}

.wishes-wall {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

/* Custom Scrollbar for Wishes Wall */
.wishes-wall::-webkit-scrollbar {
  width: 5px;
}

.wishes-wall::-webkit-scrollbar-track {
  background: var(--bg-cream);
  border-radius: 10px;
}

.wishes-wall::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 10px;
}

.wish-card {
  background: var(--paper-texture);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wish-author {
  font-family: var(--font-serif-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.wish-attendance {
  font-family: var(--font-sans-meta);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-dark);
}

.wish-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER / CLOSING SECTION
   ========================================================================== */

.wedding-footer {
  background: #1F1918;
  color: #FFFFFF;
  text-align: center;
  padding: 70px 20px 40px;
  position: relative;
}

.footer-names {
  font-family: var(--font-title-script);
  font-size: 3.5rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto 30px;
}

.footer-copyright {
  font-family: var(--font-sans-meta);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}