/* =========================================================
   THE WEDDING OF RIFKI & AINUN - PREMIUM INVITATION STYLESHEET
   Design System: Forest Green, Gold, Botanical & Cream
   ========================================================= */

:root {
  --color-forest: #1e3a2b;
  --color-dark-green: #12241b;
  --color-sage: #4f6e57;
  --color-light-sage: #8fa996;
  --color-gold: #c69c3a;
  --color-gold-light: #f5e4a8;
  --color-gold-dark: #9a7322;
  --color-cream: #faf7f0;
  --color-cream-card: #fdfbf7;
  --color-cream-border: #e9e0d1;
  --color-text-dark: #2c3830;
  --color-text-muted: #627267;
  --color-card-bg: rgba(255, 255, 255, 0.94);
  --color-glass: rgba(255, 255, 255, 0.85);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-instrument: 'Instrument Serif', Georgia, serif;
  --font-wishes: 'Miss Fajardose', cursive;
  --font-title: 'Cinzel', serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(22, 38, 29, 0.12);
  --shadow-lg: 0 16px 36px rgba(22, 38, 29, 0.18);
  --shadow-gold: 0 4px 20px rgba(198, 156, 58, 0.35);

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: #0b1510;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(30, 58, 43, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(20, 36, 27, 0.9) 0%, transparent 40%),
    linear-gradient(180deg, #0d1a13 0%, #080f0c 100%);
  color: var(--color-text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
}

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

/* ==================== CONTAINER ==================== */
.invitation-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: #8bb34b;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6), 0 0 100px rgba(0, 0, 0, 0.4);
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for bottom nav */
}

/* Shared Layer Canvas (2362x4199 ratio) */
.layer-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2362 / 4199;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.layer-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

/* Floating Audio Player Widget */
.audio-control-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 900;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.audio-control-widget:hover {
  transform: scale(1.08);
}

.disc-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d2d2d 30%, #111111 60%, #1e3a2b 100%);
  border: 2px solid var(--color-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 12px rgba(198, 156, 58, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinDisc 6s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc.playing {
  animation-play-state: running;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-center {
  width: 18px;
  height: 18px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 9px;
}

.sound-wave {
  position: absolute;
  bottom: -6px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 10px;
}

.sound-wave span {
  width: 2px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 1px;
}

.vinyl-disc.playing + .sound-wave span:nth-child(1) { animation: wave 0.8s infinite ease-in-out; }
.vinyl-disc.playing + .sound-wave span:nth-child(2) { animation: wave 0.6s infinite ease-in-out 0.2s; }
.vinyl-disc.playing + .sound-wave span:nth-child(3) { animation: wave 0.9s infinite ease-in-out 0.1s; }
.vinyl-disc.playing + .sound-wave span:nth-child(4) { animation: wave 0.7s infinite ease-in-out 0.3s; }

@keyframes wave {
  0%, 100% { height: 3px; }
  50% { height: 10px; }
}

/* ==================== SECTION 1: COVER MODAL ==================== */
.cover-section {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #0d1a13;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.cover-section.unlocked {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-canvas {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 100vh;
  aspect-ratio: 2362 / 4199;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
  background: #7bb5d4;
  overflow: hidden;
}

/* 1. Sky with Smooth Slow Panning Animation */
.cover-sky-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.cover-sky-img {
  position: absolute;
  top: -5%;
  left: -20%;
  width: 140%;
  height: 110%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  animation: skySlowDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes skySlowDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  50% {
    transform: translate3d(-10%, -2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(5%, 0, 0) scale(1.02);
  }
}

/* 2. Monogram */
.cover-monogram {
  z-index: 5;
  animation: fadeInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* 3. Title */
.cover-title-invite {
  z-index: 6;
  animation: fadeInDown 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

/* 4. 'Rifki & Ainun' Banner Pop-Out Animation (Strictly Centered) */
.cover-banner-wrapper {
  position: absolute;
  top: 22.3%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 78.6%;
  z-index: 10;
  pointer-events: auto;
  animation: bannerPopIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.banner-popout-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(22, 38, 29, 0.22));
  animation: banner3DFloat 4.5s ease-in-out infinite 1.4s;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  cursor: pointer;
}

.banner-popout-img:hover {
  transform: scale(1.04) translateY(-4px);
  filter: drop-shadow(0 14px 28px rgba(22, 38, 29, 0.3)) drop-shadow(0 0 16px rgba(198, 156, 58, 0.35));
}

@keyframes bannerPopIn {
  0% {
    transform: scale(0.3) translateY(40px);
    opacity: 0;
  }
  65% {
    transform: scale(1.08) translateY(-6px);
    opacity: 1;
  }
  82% {
    transform: scale(0.97) translateY(2px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes banner3DFloat {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 8px 18px rgba(22, 38, 29, 0.22));
  }
  50% {
    transform: translateY(-5px);
    filter: drop-shadow(0 14px 26px rgba(22, 38, 29, 0.28)) drop-shadow(0 0 12px rgba(198, 156, 58, 0.25));
  }
}

/* 5. Characters & Grass */
.cover-couple-char {
  z-index: 12;
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.cover-grass {
  z-index: 14;
}

/* 7. Kepada Banner & Guest Display (Strictly Centered) */
.cover-guest-wrapper {
  position: absolute;
  top: 72.8%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 66%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 25;
  animation: guestFadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both;
}

.badge-kepada-img {
  width: 74px;
  max-width: 28%;
  height: auto;
  display: block;
  margin-bottom: 3px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s ease;
}

.badge-kepada-img:hover {
  transform: scale(1.06);
}

.guest-name-pill {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(198, 156, 58, 0.5);
  border-radius: 20px;
  padding: 4px 16px 5px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(22, 38, 29, 0.1), 0 1px 3px rgba(198, 156, 58, 0.15);
  width: auto;
  max-width: 100%;
}

.guest-prefix {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.7px;
  color: #607267;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
}

.guest-name {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-forest);
  letter-spacing: 0.4px;
  line-height: 1.25;
  margin: 1px 0;
  word-break: break-word;
}

.guest-suffix {
  display: block;
  font-size: 0.64rem;
  color: var(--color-gold-dark);
  font-style: italic;
  line-height: 1.2;
}

@keyframes guestFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. Disclaimer */
.cover-disclaimer {
  z-index: 26;
  animation: fadeIn 1.2s ease 0.75s both;
}

/* 9. 'Buka Undangan' Banner Button (Strictly Centered with Text) */
.cover-btn-wrapper {
  position: absolute;
  top: 88.6%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 44%;
  max-width: 205px;
  z-index: 35;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: btnFadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.85s both;
}

.open-invitation-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  animation: pulseOpenBtn 2.4s ease-in-out infinite;
}

.open-invitation-btn:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 16px rgba(198, 156, 58, 0.5));
}

.open-invitation-btn:active {
  transform: scale(0.96);
}

.btn-buka-bg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.16));
}

.btn-buka-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 100%;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-forest);
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@keyframes pulseOpenBtn {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 18px rgba(198, 156, 58, 0.5));
  }
}

@keyframes btnFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 10. Foreground Flowers */
.cover-flowers-fg {
  z-index: 30;
  pointer-events: none;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ==================== SECTION 2: HERO ==================== */
.hero-section {
  position: relative;
  background-color: #a4be60;
  overflow: hidden;
}

.hero-canvas {
  width: 100%;
  position: relative;
  background-color: #a4be60;
  overflow: hidden;
}

/* 1. Hero Sky with Smooth Slow Panning Animation (Same as Page 1) */
.hero-sky-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-sky-img {
  position: absolute;
  top: -5%;
  left: -20%;
  width: 140%;
  height: 110%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  animation: skySlowDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* 2. Hero Monogram RA */
.hero-monogram {
  z-index: 5;
  animation: fadeInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

/* 3. 'The Wedding Of' Title (Pop Out, Strictly Centered at Top: 13.5%) */
.hero-title-wrapper {
  position: absolute;
  top: 13.5%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 28%;
  max-width: 135px;
  z-index: 15;
  pointer-events: auto;
  animation: heroPopIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero-title-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

/* 4. 'Rifki & Ainun' Banner (Pop Out & 3D Float, Strictly Centered at Top: 18.2%) */
.hero-banner-wrapper {
  position: absolute;
  top: 18.2%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 70%;
  max-width: 340px;
  z-index: 16;
  pointer-events: auto;
  animation: heroPopIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(22, 38, 29, 0.22));
  animation: banner3DFloat 4.5s ease-in-out infinite 1.6s;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  cursor: pointer;
}

.hero-banner-img:hover {
  transform: scale(1.04) translateY(-4px);
  filter: drop-shadow(0 14px 28px rgba(22, 38, 29, 0.3)) drop-shadow(0 0 16px rgba(198, 156, 58, 0.35));
}

/* 5. '5 November 2026' Date (Pop Out, Strictly Centered at Top: 38.2% - does not overlap couple) */
.hero-date-wrapper {
  position: absolute;
  top: 38.2%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 36%;
  max-width: 175px;
  z-index: 17;
  pointer-events: auto;
  animation: heroPopIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.hero-date-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

/* 6. Grass Backdrop (Behind the couple) */
.hero-grass {
  z-index: 6;
}

/* 7. Sitting Couple & Sleeping Cats Illustration (In front of grass backdrop) */
.hero-couple-sitting {
  z-index: 10;
  animation: heroCouplePopIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s both;
}

@keyframes heroCouplePopIn {
  0% {
    transform: scale(0.7) translateY(40px);
    opacity: 0;
  }
  65% {
    transform: scale(1.03) translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 8. Scroll Down Pill Button (Positioned at Top: 77.5% below sleeping cats, on top of grass) */
.hero-scroll-wrapper {
  position: absolute;
  top: 77.5%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 6.2%;
  max-width: 30px;
  z-index: 22;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s ease, filter 0.25s ease;
  animation: heroPopIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

.hero-scroll-wrapper:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(198, 156, 58, 0.5));
}

.hero-scroll-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
  animation: scrollPillBounce 2s ease-in-out infinite 2s;
}

@keyframes scrollPillBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* 9. Foreground Flowers (Above grass, softly blended at bottom) */
.hero-flowers {
  z-index: 15;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, rgba(0, 0, 0, 0.6) 82%, transparent 94%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, rgba(0, 0, 0, 0.6) 82%, transparent 94%);
}

/* Hero Pop In Animation */
@keyframes heroPopIn {
  0% {
    transform: scale(0.3) translateY(30px);
    opacity: 0;
  }
  65% {
    transform: scale(1.08) translateY(-5px);
    opacity: 1;
  }
  85% {
    transform: scale(0.97) translateY(2px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ==================== SECTION 3: QUOTE (AR-RUM 21) ==================== */
.quote-section {
  position: relative;
  background: transparent;
  margin-top: -24%; /* Organic jagged grass blades overlap bottom of hero with no seams */
  z-index: 18;
}

.quote-canvas {
  width: 100%;
  position: relative;
  background: transparent;
}

.quote-banner-img {
  z-index: 5;
}

/* ==================== SECTION 4: MEMPELAI ==================== */
.profile-section {
  position: relative;
  width: 100%;
  margin-top: -34%; /* Seamless grass continuation right under Ar-Rum quote box */
  z-index: 20;
  background: transparent;
}

.profile-canvas {
  width: 100%;
  position: relative;
  background: transparent;
}

/* ==================== SECTION 5: COUNTDOWN ==================== */
.countdown-section {
  position: relative;
  background: transparent;
  margin-top: -78%; /* Seamlessly overlaps section 4 grass meadow, concealing background completely */
  z-index: 22;
}

.countdown-canvas {
  width: 100%;
  position: relative;
}

.countdown-widget {
  position: absolute;
  top: 57%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-50%);
  width: 74%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
}

.countdown-timer-grid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.timer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.timer-number {
  display: block;
  font-family: var(--font-instrument);
  font-size: 2.2rem;
  font-weight: 400;
  color: #3d1a24;
  line-height: 1;
  letter-spacing: 0.5px;
}

.timer-colon {
  font-family: var(--font-instrument);
  font-size: 1.9rem;
  font-weight: 400;
  color: #3d1a24;
  line-height: 1;
  margin-top: -4px;
  padding: 0 1px;
}

.timer-label {
  display: block;
  font-family: var(--font-instrument);
  font-size: 0.72rem;
  font-weight: 400;
  color: #5a2835;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.countdown-date-subtext {
  font-family: var(--font-instrument);
  font-size: 0.95rem;
  font-weight: 400;
  color: #3d1a24;
  letter-spacing: 0.5px;
  margin-top: 8px;
  text-align: center;
}

/* ==================== SECTION 6: ACARA (UNIFIED TALL CANVAS) ==================== */
.event-section {
  position: relative;
  width: 100%;
  margin-top: -50.5%; /* Overlaps slightly with bottom edge of batik to eliminate background seam */
  background: #fbf9f4;
  z-index: 23;
}

.event-canvas-tall {
  width: 100%;
  aspect-ratio: 2362 / 8396;
  position: relative;
  overflow: hidden;
}

.event-bg-tall {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-block-inner {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
}

.akad-block-inner {
  top: 0;
}

.resepsi-block-inner {
  top: 38.5%; /* Raised up so it leaves ample space for flowers underneath, exactly matching master reference */
}

.event-banner-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.event-map-hotspot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: block;
}

.gmap-btn-img {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gmap-btn-img:hover {
  filter: brightness(1.08) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* ==================== SECTION 7: LOVE STORY (UNIFIED TALL CANVAS) ==================== */
.story-section {
  position: relative;
  background: transparent;
  width: 100%;
  margin-top: -42%; /* Overlaps smoothly onto blooming flowers of Resepsi with exact master reference spacing */
  z-index: 24;
}

.story-canvas-tall {
  width: 100%;
  aspect-ratio: 2362 / 10453;
  position: relative;
  overflow: hidden;
}

.story-bg-paper {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.story-stamp {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

/* ==================== SECTION 8: RSVP & WISHES ==================== */
.rsvp-section {
  position: relative;
  background: transparent;
  width: 100%;
  margin-top: -20%; /* Grass blades overlap onto bottom of story scrapbook seamlessly without covering text */
  z-index: 26; /* Sits ON TOP of Gift section so grass tips drape over pink batik */
}

.wishes-bg-grass {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.rsvp-content-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
  padding: 55px 20px 35px;
}

.wishes-title-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wishes-sticker-img {
  width: 82%;
  max-width: 285px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.wishes-script-title {
  font-family: var(--font-wishes);
  font-size: 5rem;
  color: #ffffff;
  line-height: 0.9;
  text-shadow: 0 3px 12px rgba(22, 45, 20, 0.45);
}

.wishes-banner-pill {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--color-forest);
  border-radius: var(--radius-pill);
  padding: 3px 14px;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wishes-banner-pill span {
  font-family: var(--font-instrument);
  font-size: 0.88rem;
  color: var(--color-forest);
  letter-spacing: 0.3px;
}

.wishes-monogram-img {
  width: 32px;
  height: auto;
  margin: 8px auto 0;
  display: block;
  opacity: 0.85;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.rsvp-form-card {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.rsvp-form .form-group {
  margin-bottom: 10px;
}

.rsvp-form .form-control {
  width: 100%;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font-instrument);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  outline: none;
  box-sizing: border-box;
}

.rsvp-form .form-control::placeholder {
  color: #777777;
  font-family: var(--font-instrument);
}

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

.attendance-ribbon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
}

.attendance-ribbon-block .ribbon-text {
  background: #ffffff;
  padding: 4px 18px;
  font-family: var(--font-instrument);
  font-size: 0.95rem;
  color: var(--color-forest);
  letter-spacing: 0.3px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.attendance-options {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.attendance-btn {
  flex: 1;
  cursor: pointer;
}

.attendance-btn input[type="radio"] {
  display: none;
}

.attendance-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--color-forest);
  padding: 10px 4px;
  border-radius: var(--radius-pill);
  font-family: var(--font-instrument);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.attendance-btn input[type="radio"]:checked + .attendance-pill {
  background: var(--color-forest);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 45, 29, 0.35);
}

.btn-submit-rsvp {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--color-forest) 0%, #294c39 100%);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  font-family: var(--font-instrument);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 45, 29, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-submit-rsvp:hover {
  background: linear-gradient(135deg, #13241b 0%, var(--color-forest) 100%);
  transform: translateY(-2px);
}

/* Wishes Board */
.wishes-board {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
}

.wishes-list::-webkit-scrollbar {
  width: 4px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.wish-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wish-item .wish-author-line {
  font-family: var(--font-instrument);
  font-size: 0.98rem;
  color: var(--color-forest);
  margin-bottom: 2px;
}

.wish-item .wish-text {
  font-family: var(--font-instrument);
  font-size: 0.92rem;
  color: #444444;
  line-height: 1.35;
}

/* ==================== SECTION 9: GIFT & CLOSING ==================== */
.gift-section {
  position: relative;
  background: transparent;
  margin-top: -14%; /* Pink batik background tucks under RSVP grass blades seamlessly */
  z-index: 24; /* Underneath RSVP section (z-index: 26) so grass tips drape on top of pink batik */
  padding-bottom: 0;
}

.gift-canvas {
  width: 100%;
  aspect-ratio: 2362 / 3594;
  position: relative;
}

.gift-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Illustrated Bank Slots on Right Half of Pink Batik (Single Mandiri Bubble) */
.gift-slots-wrapper {
  position: absolute;
  top: 14%;
  right: 5%;
  width: 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.gift-slot-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1115 / 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-bubble-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.gift-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 86%;
  padding: 4px 0;
}

.slot-bank-header {
  margin-bottom: 2px;
}

.slot-bank-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.8px;
}

.slot-bank-name.mandiri {
  color: #003d79;
}

.slot-account-number {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: #1a2b20;
  letter-spacing: 0.8px;
  line-height: 1.2;
}

.slot-account-holder {
  font-size: 0.65rem;
  color: #4a5c4e;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.btn-slot-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--color-forest);
  color: var(--color-forest);
  border-radius: var(--radius-pill);
  padding: 2.5px 14px;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-slot-copy:hover {
  background: var(--color-forest);
  color: #ffffff;
  transform: scale(1.05);
}

/* ==================== CLOSING MONOGRAM & FOOTER CREDIT ==================== */
.closing-monogram-wrapper {
  position: absolute;
  top: 79.3%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.closing-monogram-img {
  width: 38px;
  height: auto;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.5));
  pointer-events: auto;
  transition: transform 0.3s ease;
}

.closing-monogram-img:hover {
  transform: scale(1.08);
}

.closing-credit-wrapper {
  position: absolute;
  bottom: 3.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  z-index: 10;
}

.closing-credit-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  font-weight: 500;
}

.closing-credit-text a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.6);
  padding-bottom: 1px;
  transition: all 0.2s ease;
}

.closing-credit-text a:hover {
  border-bottom-style: solid;
  color: #fff9e6;
  opacity: 0.9;
}

.closing-prayer {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.closing-salutation {
  font-size: 0.72rem;
  color: var(--color-gold-light);
  margin-bottom: 8px;
}

.family-greet {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #cfdcd3;
}

.couple-sign-names {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--color-gold-light);
  margin: 4px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.family-names {
  font-size: 0.72rem;
  color: #b5c7bc;
}

.footer-credit {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  width: 100%;
}

.footer-date {
  color: var(--color-gold);
  margin-top: 2px;
}

/* ==================== BADGE UTILITY ==================== */
.section-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.badge-line {
  height: 1px;
  width: 35px;
  background: var(--color-gold);
}

.badge-text {
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
}

.section-badge.light .badge-text {
  color: var(--color-gold-light);
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 56px;
  background: rgba(18, 36, 27, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(198, 156, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 800;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.bottom-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8da696;
  text-decoration: none;
  font-size: 0.62rem;
  gap: 3px;
  transition: all 0.2s ease;
  padding: 4px 8px;
}

.nav-item i {
  font-size: 0.95rem;
}

.nav-item.active,
.nav-item:hover {
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast-notification {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--color-forest);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 99999;
}

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

/* ==================== ANIMATIONS ON SCROLL ==================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Pop-Out Dynamic Scroll Animation for Mempelai, Stamps, Banners */
.pop-out-scroll {
  opacity: 0;
  transform: scale(0.86) translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

.pop-out-scroll.in-view {
  opacity: 1;
  transform: scale(1) translateY(0);
}
