/* 
   Styles for Risma & Helmi Wedding Invitation
   Theme: Creative Javanese Modern Matcha Strawberry (Gen-Z Editorial Aesthetic)
   Colors: Matcha Green, Strawberry Pink, Warm Ivory, Deep Forest Text
*/

/* ----------------------------------------------------
   1. RESET & VARIABLE SYSTEM
---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette - Matcha & Strawberry */
  --matcha-dark: #3F503B;
  --matcha-medium: #7A9A75;
  --matcha-light: #D0E0CC;
  --matcha-cream: #F0F5EE;
  
  --strawberry-accent: #D58B93;
  --strawberry-dark: #A35760;
  --strawberry-light: #FAF0F1;
  
  --gold-accent: #D4AF37;
  --gold-light: #FAF3DE;
  
  --bg-cream: #FCFAF7; /* Stationery warm cream background */
  --text-forest: #253A2B;
  --text-muted: #566D5B;
  --white: #ffffff;
  
  /* Minimalist Borders & Shadows */
  --card-border-pink: 1.5px solid var(--strawberry-accent);
  --card-border-green: 1.5px solid var(--matcha-medium);
  --card-shadow: 0 16px 45px rgba(63, 80, 59, 0.06);
  
  /* Fonts */
  --font-serif-header: 'Cinzel', serif;
  --font-serif-title: 'Playfair Display', serif;
  --font-cursive: 'Great Vibes', cursive;
  --font-serif-detail: 'Cormorant Garamond', serif;
  --font-sans: 'Manrope', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-forest);
  background-color: #E2ECE9; /* Soft grey-green backdrop for desktop viewport padding */
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--matcha-medium);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--strawberry-accent);
}

/* ----------------------------------------------------
   2. VIEWPORT PAGE LAYOUT & STATIONERY OVERLAYS
---------------------------------------------------- */
.water-lilies-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('./assets/matcha_strawberry_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  opacity: 0.95;
  /* Super subtle parang batik watermark overlay on the body */
  background-blend-mode: overlay;
}

.water-lilies-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(252, 250, 247, 0.85); /* Smooth tint overlay for high readability */
  z-index: -1;
}

/* Sparkles Canvas overlay */
.sparkles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  color: var(--strawberry-accent);
  font-family: sans-serif;
  pointer-events: none;
  opacity: 0;
  z-index: 201;
  text-shadow: 0 0 5px rgba(213, 139, 147, 0.5);
  animation: floatUpSparkle 4.5s linear infinite;
}

.petal-drift {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--matcha-medium);
  border-radius: 50% 0 50% 50%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 201;
  animation: petalFall 9s linear infinite;
}

@keyframes floatUpSparkle {
  0% { transform: translateY(0) scale(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translateY(-300px) scale(1.2) rotate(360deg); opacity: 0; }
}

@keyframes petalFall {
  0% { transform: translate(0, -10vh) rotate(0deg); opacity: 0.8; }
  100% { transform: translate(60px, 105vh) rotate(360deg); opacity: 0; }
}

/* Page container: Centered stationery card layout with padded margins for wisteria frames */
.page-container {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 60px 42px 90px 42px; /* Left/right spacing for floral overlays */
  position: relative;
  box-shadow: 0 25px 75px rgba(37, 58, 43, 0.12);
  background-color: var(--bg-cream);
  overflow: hidden;
  border-left: 2px solid var(--matcha-light);
  border-right: 2px solid var(--matcha-light);
}

/* Stationary Framing Overlays - Slow swaying wind animation */
.frame-decor {
  position: absolute;
  pointer-events: none;
  z-index: 90;
}

.top-garland {
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  transform-origin: top center;
  animation: swayTop 10s ease-in-out infinite alternate;
}
.bottom-garland {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  transform-origin: bottom center;
}
.left-floral {
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  transform-origin: top left;
  animation: swayWindLeft 7s ease-in-out infinite alternate;
}
.right-floral {
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  transform-origin: top right;
  animation: swayWindRight 7s ease-in-out infinite alternate 1s;
}

.frame-decor svg {
  width: 100%;
  height: 100%;
}

@keyframes swayWindLeft {
  0% { transform: rotate(0deg) skewX(0deg); }
  100% { transform: rotate(1deg) skewX(0.5deg); }
}

@keyframes swayWindRight {
  0% { transform: rotate(0deg) skewX(0deg); }
  100% { transform: rotate(-1deg) skewX(-0.5deg); }
}

@keyframes swayTop {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(1.04); }
}

/* ----------------------------------------------------
   3. SCALLOPED COVER SCREEN
---------------------------------------------------- */
.envelope-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-cream);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 20px;
}

.envelope-wrapper.is-open {
  opacity: 0;
  pointer-events: none;
}

/* The vertical cover postcard in center */
.cover-card {
  width: 100%;
  max-width: 360px;
  height: 86vh;
  max-height: 570px;
  background: var(--bg-cream);
  border: 1px solid var(--matcha-light);
  border-radius: 140px 140px 24px 24px; /* Arch shaped outer postcard */
  padding: 8px;
  box-shadow: 0 25px 65px rgba(63, 80, 59, 0.15);
  position: relative;
  overflow: hidden;
}

.cover-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1.5px solid var(--strawberry-accent);
  border-radius: 134px 134px 18px 18px;
  pointer-events: none;
  z-index: 3;
}

.cover-watercolor-bg {
  width: 100%;
  height: 100%;
  background-image: url('./assets/matcha_strawberry_bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 132px 132px 16px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

.cover-watercolor-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(252, 250, 247, 0.2); /* Muted overlay for cover text clarity */
  z-index: 1;
}

/* Central white box with green leaf border outline */
.cover-text-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px dashed var(--matcha-medium);
  border-radius: 90px 90px 12px 12px;
  padding: 48px 24px 36px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(37,58,43,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.cover-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: bold;
}

.cover-title {
  font-family: var(--font-serif-title);
  font-size: 2.1rem;
  color: var(--matcha-dark);
  line-height: 1.15;
  font-weight: bold;
  letter-spacing: 1px;
}

.cover-line {
  width: 44px;
  height: 1px;
  background: var(--strawberry-accent);
  margin: 18px 0;
}

.cover-to {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cover-recipient {
  font-family: var(--font-serif-title);
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--strawberry-dark);
  margin-bottom: 24px;
}

.btn-buka {
  background: var(--matcha-dark);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(63, 80, 59, 0.3);
  transition: var(--transition-smooth);
}
.btn-buka:hover {
  background: var(--matcha-medium);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(63, 80, 59, 0.4);
}

/* ----------------------------------------------------
   4. SLIDE-UP ENVELOPE TRANSITION OVERLAY
---------------------------------------------------- */
.env-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1100;
  background: rgba(37, 58, 43, 0.25);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.env-transition-overlay.active {
  display: flex;
  opacity: 1;
}

.env-transition-box {
  width: 310px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  background: var(--matcha-dark);
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  transform: translateY(100vh);
  transition: transform 1.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.env-transition-overlay.animate-up .env-transition-box {
  transform: translateY(0);
}

/* Envelope folds */
.env-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--matcha-dark);
  border-radius: 8px;
  z-index: 1;
}

.env-front {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 4;
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%, 50% 55%);
  background: #334430; /* Front panel overlay shade */
  border-radius: 8px;
}

.env-flap {
  position: absolute;
  width: 100%;
  height: 55%;
  top: 0;
  left: 0;
  z-index: 5;
  background: #465842;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top;
  transition: transform 0.8s ease 0.9s;
}

.env-transition-overlay.animate-open .env-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.env-letter {
  position: absolute;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  left: 10px;
  top: 10px;
  background: #FCFAF6;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transform: translateY(0);
  transition: transform 1.2s ease 1.5s;
  padding: 22px 10px;
  text-align: center;
  border-top: 4px solid var(--strawberry-accent);
}

.env-transition-overlay.animate-open .env-letter {
  transform: translateY(-82%) scale(1.05);
  z-index: 10;
}

.env-letter-logo {
  font-family: var(--font-serif-header);
  font-size: 1.4rem;
  color: var(--strawberry-accent);
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

.env-letter p {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Ribbon seal */
.env-seal-ribbon {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--strawberry-accent);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: opacity 0.5s ease 0.7s;
}

.env-transition-overlay.animate-open .env-seal-ribbon {
  opacity: 0;
}

/* ----------------------------------------------------
   5. SECTIONS COMMON STYLING
---------------------------------------------------- */
.section {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-serif-header);
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--strawberry-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
  font-weight: bold;
}

.section-title {
  font-family: var(--font-serif-title);
  font-size: 1.8rem;
  color: var(--matcha-dark);
  margin-bottom: 8px;
  text-align: center;
  font-weight: bold;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Postcard-style layout panels */
.panel {
  width: 100%;
  border-radius: 20px;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(63, 80, 59, 0.08);
}

/* Arch Card Portal Window shape */
.arch-card {
  border-radius: 140px 140px 24px 24px !important;
}

/* Light Card Panels */
.card-light {
  background: var(--white);
  border: 1px solid var(--matcha-light);
}

/* Dark Card Panels (Matcha Green theme card) */
.card-dark {
  background: var(--matcha-dark);
  border: none;
  color: var(--white);
}

/* Outline Card Panels */
.card-outline {
  background: transparent;
  border: 1.5px dashed var(--strawberry-accent);
}

/* ----------------------------------------------------
   6. CARD 1: HERO & ILLUSTRATION (Arch Portal)
---------------------------------------------------- */
.hero-card-section {
  padding-top: 10px;
}

.card-illustration-wrapper {
  width: 100%;
  aspect-ratio: 1.05;
  border-radius: 124px 124px 12px 12px; /* Inner arch frame for illustration */
  overflow: hidden;
  margin-bottom: 20px;
  border: 1.5px solid rgba(255,255,255,0.08);
}

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

.card-text-center {
  text-align: center;
}

.illustration-tagline {
  font-family: var(--font-serif-title);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 8px;
  font-style: italic;
}

.illustration-hashtag {
  font-size: 0.85rem;
  color: var(--strawberry-accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: bold;
}

.illustration-date {
  font-family: var(--font-serif-header);
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  font-weight: bold;
}

/* ----------------------------------------------------
   7. CARD 2: GREETING & GUEST DETAILS
---------------------------------------------------- */
.gunungan-icon-wrapper {
  width: 32px;
  height: 40px;
  margin: 0 auto 16px auto;
  opacity: 0.8;
}
.gunungan-icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.guest-title {
  font-family: var(--font-cursive);
  font-size: 2.8rem;
  color: var(--matcha-dark);
  font-weight: normal;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.1;
}

.guest-greet-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4px;
}

.guest-name-badge {
  font-family: var(--font-serif-title);
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--strawberry-accent);
  text-align: center;
  margin-bottom: 20px;
}

.guest-lead-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ----------------------------------------------------
   8. CARD 3: QURAN VERSE CARD
---------------------------------------------------- */
.quran-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--matcha-dark);
  margin-bottom: 12px;
  line-height: 2;
  direction: rtl;
  text-align: center;
}

.quran-translation {
  font-family: var(--font-serif-detail);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-forest);
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: center;
}

.quran-source {
  font-family: var(--font-serif-header);
  font-size: 0.7rem;
  color: var(--strawberry-accent);
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
}

/* ----------------------------------------------------
   9. EDITORIAL OVERLAPPING COUPLE SECTIONS
---------------------------------------------------- */
.couple-card-editorial {
  padding-bottom: 24px;
}

/* Aksara Jawa calligraphy background watermark */
.aksara-watermark {
  position: absolute;
  top: 40px;
  right: 15px;
  font-size: 5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.05); /* Soft glowing watermark behind photos */
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.arch-frame-wrapper {
  width: 100%;
  max-width: 240px;
  height: 270px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Minimalist Arch Window frame */
.arch-frame {
  width: 100%;
  height: 100%;
  border-radius: 120px 120px 0 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  background: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}

.arch-frame.style-strawberry {
  border-bottom: 3.5px solid var(--strawberry-accent);
}
.arch-frame.style-matcha {
  border-bottom: 3.5px solid var(--matcha-medium);
}

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

/* Overlapping detail card overlapping the photo frame */
.couple-info-card-overlay {
  background: var(--white);
  color: var(--text-forest);
  border: 1px solid var(--matcha-light);
  border-radius: 16px;
  padding: 24px 20px;
  margin-top: -65px; /* Negative margin pulls card over the arch image */
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(63, 80, 59, 0.1);
  text-align: center;
}

.role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.badge-strawberry {
  background-color: var(--strawberry-light);
  color: var(--strawberry-dark);
}
.badge-matcha {
  background-color: var(--matcha-cream);
  color: var(--matcha-dark);
}

.name-display {
  font-family: var(--font-serif-title);
  font-size: 1.35rem;
  color: var(--matcha-dark) !important; /* Forces dark green color over dark card parent */
  margin-bottom: 6px;
  font-weight: bold;
}

.parents-display {
  font-family: var(--font-serif-detail);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.bio-display {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.instagram-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--strawberry-dark);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}
.instagram-tag:hover {
  color: var(--matcha-medium);
}

/* ----------------------------------------------------
   10. CARD 6: EVENT DETAILS CARD
---------------------------------------------------- */
.card-header-title {
  font-family: var(--font-serif-title);
  font-size: 1.45rem;
  color: var(--matcha-dark);
  text-align: center;
  margin-bottom: 24px;
  font-weight: bold;
}

.event-details-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.event-block-title {
  font-family: var(--font-serif-title);
  font-size: 1.15rem;
  color: var(--matcha-dark);
  margin-bottom: 4px;
  font-weight: bold;
}

.event-block-time {
  font-family: var(--font-serif-header);
  font-size: 0.9rem;
  color: var(--strawberry-dark);
  font-weight: bold;
  letter-spacing: 1px;
}

.event-block-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-divider-line {
  width: 50px;
  height: 1px;
  background: var(--matcha-light);
  margin: 4px auto;
}

.event-venue-box {
  background: var(--bg-cream);
  border: 1px solid var(--matcha-light);
  padding: 12px 16px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.5;
}

.map-iframe-container {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--matcha-light);
  margin-bottom: 16px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----------------------------------------------------
   11. CARD 7: DRESS CODE & HASHTAG CARD
---------------------------------------------------- */
.dresscode-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.color-bubbles-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.color-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 4px 8px rgba(78, 100, 74, 0.08);
}
.bubble-matcha { background-color: var(--matcha-medium); }
.bubble-strawberry { background-color: var(--strawberry-accent); }
.bubble-cream { background-color: var(--gold-light); }

.color-bubble-labels {
  font-size: 0.72rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--matcha-dark);
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hashtag-block {
  text-align: center;
  border-top: 1px dashed var(--matcha-light);
  padding-top: 20px;
}
.hashtag-block p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hashtag-badge {
  display: inline-block;
  background-color: var(--strawberry-light);
  color: var(--strawberry-dark);
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
}

/* ----------------------------------------------------
   12. CARD 8: GALLERY CARD (Arch layout wrapper)
---------------------------------------------------- */
.gallery-title-white {
  font-family: var(--font-serif-title);
  font-size: 1.45rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
}

.prewedding-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.gallery-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-cell:hover .gallery-img {
  transform: scale(1.06);
}

/* ----------------------------------------------------
   13. CARD 9: RSVP FORM CARD
---------------------------------------------------- */
.rsvp-form-minimal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--matcha-dark);
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--matcha-light);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--bg-cream);
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--strawberry-accent);
}

.rsvp-radio-choices {
  display: flex;
  gap: 10px;
}

.radio-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  background: var(--bg-cream);
  border: 1.5px solid var(--matcha-light);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

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

.custom-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.radio-card input[type="radio"]:checked + .custom-circle {
  border-color: var(--strawberry-accent);
}
.radio-card input[type="radio"]:checked + .custom-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--strawberry-accent);
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: var(--strawberry-accent);
  background: var(--strawberry-light);
}

.choice-text {
  font-size: 0.8rem;
  color: var(--text-forest);
}

/* ----------------------------------------------------
   14. CARD 10: WISH BOARD CARD
---------------------------------------------------- */
.wishes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-item {
  padding: 14px;
  background: var(--bg-cream);
  border-radius: 12px;
  border: 1px solid var(--matcha-light);
  margin-bottom: 8px;
}

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

.wish-sender-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wish-name {
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--matcha-dark);
}

.wish-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}
.wish-badge.present {
  background-color: var(--matcha-light);
  color: var(--matcha-dark);
}
.wish-badge.absent {
  background-color: var(--strawberry-light);
  color: var(--strawberry-dark);
}

.wish-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.wish-content {
  font-size: 0.82rem;
  color: var(--text-forest);
  line-height: 1.4;
}

/* ----------------------------------------------------
   15. CARD 11: WEDDING GIFT CARD
---------------------------------------------------- */
.gift-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.gift-box-minimal {
  background: var(--bg-cream);
  border: 1px solid var(--matcha-light);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.gift-bank-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.gift-account-number-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.gift-account {
  font-size: 1.2rem;
  font-family: monospace;
  color: var(--matcha-dark);
}

.btn-copy-account {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--strawberry-dark);
  cursor: pointer;
  text-decoration: underline;
  font-weight: bold;
}

.gift-account-holder {
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--text-forest);
}

.gift-shipping-address {
  font-size: 0.85rem;
  color: var(--text-forest);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ----------------------------------------------------
   16. CARD 12: CLOSING CARD
---------------------------------------------------- */
.closing-card-text {
  text-align: center;
  margin-top: 20px;
}

.closing-title-white {
  font-family: var(--font-serif-title);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: bold;
}

.closing-body-text {
  font-size: 0.82rem;
  color: #ECE6DB;
  margin-bottom: 16px;
}

.closing-salutation {
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--strawberry-accent);
  margin-bottom: 16px;
}

.closing-names-cursive {
  font-family: var(--font-cursive);
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1;
}

/* ----------------------------------------------------
   17. BUTTONS & UI INTERACTIVES
---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  text-align: center;
}

.btn-primary {
  background: var(--strawberry-accent);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 10px rgba(213, 139, 147, 0.3);
}
.btn-primary:hover {
  background: var(--strawberry-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(213, 139, 147, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--matcha-dark);
  border: 1.5px solid var(--matcha-medium);
}
.btn-secondary:hover {
  background: var(--matcha-cream);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ----------------------------------------------------
   18. MOBILE FLOATING DOCK BAR
---------------------------------------------------- */
.mobile-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 68px;
  background: rgba(250, 248, 245, 0.96);
  border-top: 1.5px solid var(--matcha-light);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -8px 24px rgba(78, 100, 74, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  width: 20%;
  height: 100%;
  transition: var(--transition-smooth);
}

.dock-icon {
  font-size: 1.15rem;
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

.dock-label {
  font-size: 0.58rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dock-item:hover,
.dock-item.active {
  color: var(--matcha-dark);
}

.dock-item:hover .dock-icon,
.dock-item.active .dock-icon {
  transform: translateY(-4px) scale(1.1);
  color: var(--strawberry-accent);
}

/* ----------------------------------------------------
   19. FLOATING MUSIC WIDGET
---------------------------------------------------- */
.music-widget {
  position: fixed;
  bottom: 84px;
  right: calc(50% - 230px);
  z-index: 110;
  transition: var(--transition-smooth);
}

@media (max-width: 500px) {
  .music-widget {
    right: 16px;
  }
}

.music-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--matcha-light);
  box-shadow: 0 4px 12px rgba(78, 100, 74, 0.12);
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-smooth);
}
.music-button:hover {
  transform: scale(1.1);
}

.music-icon-static {
  font-size: 1.1rem;
}

.music-wave {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 18px;
  height: 18px;
}

.music-wave span {
  display: inline-block;
  width: 2px;
  background: var(--strawberry-accent);
  border-radius: 1px;
}

.music-widget.playing .music-wave {
  display: flex;
}
.music-widget.playing .music-icon-static {
  display: none;
}

.music-widget.playing .music-wave span:nth-child(1) { height: 30%; animation: bounceWave 0.6s infinite alternate; }
.music-widget.playing .music-wave span:nth-child(2) { height: 100%; animation: bounceWave 0.9s infinite alternate 0.15s; }
.music-widget.playing .music-wave span:nth-child(3) { height: 60%; animation: bounceWave 0.7s infinite alternate 0.05s; }
.music-widget.playing .music-wave span:nth-child(4) { height: 80%; animation: bounceWave 0.8s infinite alternate 0.1s; }

@keyframes bounceWave {
  0% { height: 15%; }
  100% { height: 100%; }
}

/* ----------------------------------------------------
   20. LIGHTBOX MODAL FOR GALLERY
---------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 58, 43, 0.97);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.lightbox-close:hover {
  color: var(--strawberry-accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
  color: var(--strawberry-accent);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ----------------------------------------------------
   21. RSVP MODAL
---------------------------------------------------- */
.rsvp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 58, 43, 0.7);
  z-index: 1500;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.rsvp-modal.active {
  display: flex;
  opacity: 1;
}

.rsvp-modal-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: var(--white);
  padding: 36px 24px;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  border: 1.5px solid var(--matcha-light);
}

.rsvp-modal.active .rsvp-modal-card {
  transform: scale(1);
}

.rsvp-modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: heartBeat 1.2s infinite;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.rsvp-modal-card h3 {
  font-family: var(--font-serif-title);
  font-size: 1.35rem;
  color: var(--matcha-dark);
  margin-bottom: 8px;
  font-weight: bold;
}

.rsvp-modal-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ----------------------------------------------------
   22. TOAST & NOTIFICATION SYSTEM
---------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(37, 58, 43, 0.95);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid var(--matcha-light);
  animation: toastFadeIn 0.3s forwards, toastFadeOut 0.3s forwards 2.5s;
}

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

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

/* ----------------------------------------------------
   23. ANIMATION KEYFRAMES
---------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal-visible {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(20px);
}

/* ----------------------------------------------------
   24. ACCESSIBILITY RULES & MEDIA QUERIES
---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .water-lilies-bg {
    animation: none !important;
  }
  .sparkle, .petal-drift {
    display: none !important;
  }
}
