/* ==========================================================================
   KUDA & TERERAI - PREMIUM INTERACTIVE WEDDING INVITATION
   Core Stylesheet - assets/css/style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & TYPOGRAPHY IMPORTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Wedding Color Palette Variables */
  --olive-green: #6B705C;
  --deep-olive: #4F553F;
  --beige: #F3E9D2;
  --light-beige: #F8F1E3;
  --apricot: #E9A66C;
  --champagne-gold: #D4AF6A;
  --dark-gold: #B89045;
  --cream: #FFF9ED;
  --dark-brown: #3D352D;
  --white: #FFFFFF;

  /* Font Families */
  --font-serif: 'Playfair Display', Didot, 'Bodoni MT', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Layout Constants */
  --nav-height: 80px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--dark-brown);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Prevent overscroll bounce on iOS */
  overscroll-behavior: none;
  /* Safe-area insets for iPhone notch / Dynamic Island */
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  text-wrap: balance;
  /* Modern text wrapping guide */
}

a {
  color: var(--deep-olive);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--champagne-gold);
}

.letter-spacing-wide {
  letter-spacing: 0.15em;
}

.uppercase-label {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.85rem;
}

.italic {
  font-style: italic;
}

/* Inline SVG paper noise texture styling */
.bg-cream-texture {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--olive-green);
  border: 2px solid var(--cream);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--deep-olive);
}

/* --------------------------------------------------------------------------
   3. SECTION TYPOGRAPHY & DIVIDERS
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--champagne-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-heading {
  font-size: 2.75rem;
  color: var(--dark-brown);
  margin-bottom: 20px;
}

.section-subheading {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--olive-green);
  letter-spacing: 0.05em;
}

.gold-divider-center {
  height: 1px;
  width: 60px;
  background-color: var(--champagne-gold);
  margin: 25px auto;
  position: relative;
}

.gold-divider-center::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background-color: var(--champagne-gold);
  border-radius: 50%;
}

.border-gold {
  border: 1px solid rgba(212, 175, 106, 0.4);
}

/* Buttons */
.btn-gold {
  background-color: var(--champagne-gold);
  color: var(--white);
  border: 1px solid var(--champagne-gold);
  border-radius: 0;
  transition: all 0.4s ease;
  font-weight: 500;
}

.btn-gold:hover {
  background-color: var(--dark-gold);
  border-color: var(--dark-gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(184, 144, 69, 0.25);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--champagne-gold);
  border: 1px solid var(--champagne-gold);
  border-radius: 0;
  transition: all 0.4s ease;
  font-weight: 500;
}

.btn-outline-gold:hover {
  background-color: var(--champagne-gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 106, 0.2);
}

/* --------------------------------------------------------------------------
   4. WAX-SEAL OPENING SCREEN
   -------------------------------------------------------------------------- */
.opening-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  overflow: hidden;
  transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
}

.envelope-flap {
  position: absolute;
  top: 0;
  width: 50vw;
  height: 100vh;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  transition: transform 1.8s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.left-flap {
  left: 0;
  border-right: 1px solid rgba(212, 175, 106, 0.35);
  background: radial-gradient(circle at 100% 50%, var(--cream) 60%, var(--light-beige) 100%);
}

.right-flap {
  right: 0;
  border-left: 1px solid rgba(212, 175, 106, 0.35);
  background: radial-gradient(circle at 0% 50%, var(--cream) 60%, var(--light-beige) 100%);
}

.wax-seal-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10000;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease-out;
}

/* Realistic 3D Wax Seal Button */
.wax-seal {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 25px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wax-seal:hover {
  transform: scale(1.08);
}

.wax-seal:focus-visible {
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--champagne-gold);
}

.wax-seal-outer {
  width: 100%;
  height: 100%;
  border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
  /* Irregular organic edge */
  background: radial-gradient(circle at 35% 35%, var(--champagne-gold), var(--dark-gold) 65%, #9c732c 90%);
  box-shadow:
    inset 3px 3px 5px rgba(255, 255, 255, 0.4),
    inset -3px -3px 5px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.15),
    0 10px 25px rgba(61, 53, 45, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
}

.wax-seal-inner {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 35% 35%, var(--champagne-gold), var(--dark-gold) 75%);
  box-shadow:
    inset -2px -2px 5px rgba(255, 255, 255, 0.3),
    inset 2px 2px 5px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-seal .monogram {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -1px;
  /* Metallic relief look */
  text-shadow:
    1px 1px 1px rgba(255, 255, 255, 0.35),
    -1px -1px 2px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.wax-seal-label {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--dark-brown);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 5px;
}

.wax-seal-action {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--deep-olive);
  letter-spacing: 0.3em;
  margin-top: 10px;
  opacity: 0.8;
  animation: breathe 2s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   5. FLOATING CONTROLS & NAVIGATION
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--olive-green), var(--champagne-gold));
  z-index: 10002;
  transition: width 0.1s ease-out;
}

/* Music Control Widget */
.music-control-wrapper {
  position: fixed;
  bottom: max(30px, calc(20px + env(safe-area-inset-bottom, 0px)));
  right: 30px;
  z-index: 1001;
}

.btn-music-control {
  background: var(--cream);
  border: 1px solid rgba(212, 175, 106, 0.4);
  color: var(--dark-brown);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

.btn-music-control:hover {
  transform: scale(1.05);
  border-color: var(--champagne-gold);
  box-shadow: 0 6px 20px rgba(212, 175, 106, 0.15);
}

.btn-music-control.muted .icon-music {
  opacity: 0.4;
}

/* Music pulse waves visualization */
.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  position: absolute;
  bottom: 8px;
  height: 12px;
}

.music-waves span {
  display: block;
  width: 2px;
  background-color: var(--champagne-gold);
  animation: wave 1.2s ease-in-out infinite;
  transform-origin: bottom;
  height: 2px;
}

.music-waves span:nth-child(2) {
  animation-delay: 0.3s;
}

.music-waves span:nth-child(3) {
  animation-delay: 0.6s;
}

.music-waves span:nth-child(4) {
  animation-delay: 0.9s;
}

.btn-music-control.muted .music-waves span {
  animation: none;
  height: 2px;
  opacity: 0.4;
}

/* Floating Navigation Menu */
.invitation-nav-wrapper {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1002;
}

.btn-menu-toggle {
  background: var(--cream);
  border: 1px solid rgba(212, 175, 106, 0.4);
  color: var(--dark-brown);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-menu-toggle:hover {
  transform: scale(1.05);
  border-color: var(--champagne-gold);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: var(--dark-brown);
  transition: all 0.3s ease;
}

.btn-menu-toggle[aria-expanded="true"] .hamburger-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.btn-menu-toggle[aria-expanded="true"] .hamburger-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.invitation-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 50px;
  border-left: 1px solid rgba(212, 175, 106, 0.25);
}

.invitation-menu.active {
  right: 0;
}

.menu-links {
  list-style: none;
  padding: 0;
  width: 100%;
  text-align: center;
}

.menu-links li {
  margin-bottom: 25px;
}

.menu-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--dark-brown);
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--champagne-gold);
  transition: width 0.3s ease;
}

.menu-link:hover::after {
  width: 50px;
}

.menu-monogram {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--champagne-gold);
  margin-top: 40px;
  opacity: 0.6;
}

/* Scroll to Top */
.btn-scroll-top {
  position: fixed;
  bottom: max(95px, calc(85px + env(safe-area-inset-bottom, 0px)));
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 0;
  border: 1px solid rgba(212, 175, 106, 0.4);
  color: var(--dark-brown);
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-scroll-top:hover {
  transform: scale(1.05);
  border-color: var(--champagne-gold);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  background: var(--dark-brown);
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, rgba(61, 53, 45, 0.6), rgba(61, 53, 45, 0.85)), url('../img/hero/hero.webp');
  background-size: cover;
  background-position: center;
  transition: transform 8s ease-out;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  padding: 40px 20px;
}

.hero-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 5.5rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
  font-weight: 400;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.title-ampersand {
  font-size: 4rem;
  color: var(--champagne-gold);
  line-height: 0.8;
  display: block;
}

.hero-tagline {
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

.hero-date-box {
  background-color: rgba(61, 53, 45, 0.4);
  backdrop-filter: blur(5px);
  margin-top: 10px;
}

.hero-date {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--champagne-gold);
}

/* Scroll indicator animation */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
}

.scroll-arrow {
  display: block;
  width: 1px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: var(--champagne-gold);
  animation: scrollDown 2s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   7. OUR LOVE STORY
   -------------------------------------------------------------------------- */
.story-row {
  margin-bottom: 80px;
}

.story-content {
  padding: 20px;
}

.story-date {
  font-size: 0.75rem;
  color: var(--champagne-gold);
  font-weight: 500;
}

.story-title {
  font-size: 2rem;
  color: var(--dark-brown);
}

.story-text {
  color: var(--deep-olive);
  font-size: 0.95rem;
  text-align: justify;
}

.story-img-wrapper {
  padding: 15px;
}

.story-img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: var(--border-radius-sm);
  z-index: 2;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-img:hover {
  transform: scale(1.02);
}

.story-img-border-gold {
  position: absolute;
  top: 30px;
  right: 0px;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  border: 1px solid var(--champagne-gold);
  z-index: 1;
  pointer-events: none;
}

.story-img-border-gold.left-align {
  left: 0px;
  right: auto;
}

/* --------------------------------------------------------------------------
   8. COLOR PALETTE SWATCHES
   -------------------------------------------------------------------------- */
.palette-card {
  background: var(--cream);
  border: 1px solid rgba(212, 175, 106, 0.25);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  box-shadow: 0 4px 12px rgba(61, 53, 45, 0.03);
  transition: all 0.4s ease;
}

.palette-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 175, 106, 0.12);
  border-color: rgba(212, 175, 106, 0.5);
}

.swatch-color {
  width: 100%;
  height: 120px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 15px;
}

.swatch-details {
  padding: 5px 0;
}

.swatch-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  color: var(--dark-brown);
}

.swatch-hex {
  display: block;
  font-size: 0.75rem;
  color: var(--olive-green);
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   9. THE WEDDING DETAILS
   -------------------------------------------------------------------------- */
.details-card {
  background-color: var(--cream);
  transition: all 0.4s ease;
}

.details-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(61, 53, 45, 0.05);
  border-color: var(--champagne-gold) !important;
}

.details-icon-wrapper {
  color: var(--champagne-gold);
}

.details-title {
  font-size: 1.75rem;
  letter-spacing: 0.05em;
}

.details-list li {
  font-size: 0.9rem;
  color: var(--deep-olive);
}

.details-list strong {
  color: var(--dark-brown);
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  display: inline-block;
  width: 80px;
}

/* --------------------------------------------------------------------------
   10. LIVE COUNTDOWN
   -------------------------------------------------------------------------- */
.countdown-section {
  background: var(--dark-brown);
  padding: 120px 0;
  overflow: hidden;
}

.countdown-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(61, 53, 45, 0.8), rgba(61, 53, 45, 0.95)), url('../img/backgrounds/paper_texture.svg');
  background-size: cover;
  opacity: 0.95;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--champagne-gold);
  letter-spacing: 0.3em;
}

.countdown-title {
  font-size: 2.5rem;
}

.countdown-box {
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius-sm);
  min-width: 90px;
}

.countdown-number {
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
  display: block;
}

.countdown-unit {
  color: var(--champagne-gold);
  letter-spacing: 0.2em;
}

.countdown-separator {
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   11. WEDDING PROGRAMME TIMELINE
   -------------------------------------------------------------------------- */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background-color: rgba(212, 175, 106, 0.3);
}

.timeline-item {
  width: 100%;
  position: relative;
}

.timeline-time {
  width: 45%;
}

.time-stamp {
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--champagne-gold);
  font-weight: 500;
}

.timeline-badge-wrapper {
  width: 10%;
  z-index: 2;
}

.timeline-badge {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: var(--cream);
  border: 2px solid var(--champagne-gold);
  margin: 0 auto;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-badge {
  background-color: var(--champagne-gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(212, 175, 106, 0.5);
}

.timeline-content {
  width: 45%;
}

.event-title {
  font-size: 1.35rem;
  margin-bottom: 5px;
  color: var(--dark-brown);
}

.event-desc {
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   12. BRIDAL PARTY
   -------------------------------------------------------------------------- */
.bridal-avatar-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 8px;
}

.bridal-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, 0.2);
}

.avatar-border-gold {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--champagne-gold);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bridal-avatar-wrapper:hover .avatar-border-gold {
  transform: scale(1.04);
}

.bridal-role {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.bridal-name {
  font-size: 1.5rem;
  color: var(--dark-brown);
}

.bridal-section-subtitle {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.bridal-avatar-wrapper.small-avatar {
  width: 130px;
  height: 130px;
  padding: 5px;
}

.bridal-name-small {
  font-size: 1.15rem;
  margin-bottom: 2px;
  color: var(--dark-brown);
}

.bridal-role-small {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   13. DRESS CODE & SWATCHES
   -------------------------------------------------------------------------- */
.dress-code-text {
  font-size: 1.25rem;
  line-height: 1.6;
}

.dress-swatch {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--white);
}

/* --------------------------------------------------------------------------
   14. PORTFOLIO GALLERY
   -------------------------------------------------------------------------- */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  background: var(--light-beige);
}

.gallery-img {
  width: 100%;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.gallery-zoom-icon {
  font-size: 1.8rem;
  color: var(--white);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

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

.gallery-card:hover .gallery-zoom-icon {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   15. VENUE & GOOGLE MAPS
   -------------------------------------------------------------------------- */
.venue-info-box {
  background-color: var(--cream);
}

.venue-name {
  font-size: 2rem;
}

.sub-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-family: var(--font-sans);
  font-weight: 600;
}

.map-embed-wrapper {
  background-color: var(--cream);
}

.map-iframe-placeholder {
  width: 100%;
  height: 400px;
  background-color: var(--light-beige);
  border-radius: var(--border-radius-sm);
  border: 1px dashed rgba(212, 175, 106, 0.3);
}

/* --------------------------------------------------------------------------
   16. GIFT REGISTRY
   -------------------------------------------------------------------------- */
.registry-card {
  background-color: var(--cream);
  transition: all 0.4s ease;
}

.bank-details-wrapper {
  font-size: 0.9rem;
  color: var(--deep-olive);
  border-color: rgba(212, 175, 106, 0.2) !important;
}

/* --------------------------------------------------------------------------
   17. RSVP CALL TO ACTION
   -------------------------------------------------------------------------- */
.action-card {
  transition: all 0.4s ease;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(61, 53, 45, 0.05);
  border-color: var(--champagne-gold) !important;
}

.icon-gold {
  color: var(--champagne-gold);
}

/* --------------------------------------------------------------------------
   18. CINEMATIC CLOSING FOOTER
   -------------------------------------------------------------------------- */
.closing-section {
  background: var(--dark-brown);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.closing-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(61, 53, 45, 0.8), rgba(61, 53, 45, 0.95)), url('../img/hero/hero.webp');
  background-size: cover;
  background-position: center;
}

.closing-title {
  font-size: 2.2rem;
  letter-spacing: 0.15em;
  opacity: 0.9;
}

.closing-names {
  font-size: 3.5rem;
}

.closing-date {
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--champagne-gold);
}

.closing-monogram {
  font-size: 3rem;
  letter-spacing: -2px;
}

.z-index-2 {
  z-index: 2;
}

/* --------------------------------------------------------------------------
   19. LIGHTBOX COMPONENT
   -------------------------------------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(61, 53, 45, 0.95);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100vh;
  border-radius: var(--border-radius-sm);
  border: 3px solid var(--cream);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.lightbox-caption {
  color: var(--cream);
  margin-top: 15px;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 11002;
}

.lightbox-close:hover {
  color: var(--champagne-gold);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 15px;
  transition: color 0.3s ease;
  z-index: 11001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--champagne-gold);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* --------------------------------------------------------------------------
   20. FORMS CUSTOMIZATION
   -------------------------------------------------------------------------- */
.form-container,
.wishes-wall-container {
  background-color: var(--cream);
  position: relative;
}

.back-link {
  color: var(--deep-olive);
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.back-link:hover {
  color: var(--champagne-gold);
}

.form-heading {
  font-size: 2.25rem;
}

/* Custom Styled Input Fields */
.form-control,
.form-select {
  border: 1px solid rgba(212, 175, 106, 0.3);
  background-color: var(--cream);
  border-radius: 0;
  padding: 12px 16px;
  color: var(--dark-brown);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--white);
  border-color: var(--champagne-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.15);
  color: var(--dark-brown);
}

/* Custom styled radios */
.custom-radio .form-check-input {
  border-color: rgba(212, 175, 106, 0.5);
  cursor: pointer;
}

.custom-radio .form-check-input:checked {
  background-color: var(--champagne-gold);
  border-color: var(--champagne-gold);
}

/* Forms success overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cream);
  z-index: 10;
  padding: 40px;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(212, 175, 106, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishes-list-scroller {
  max-height: 480px;
  overflow-y: auto;
}

.wish-card {
  border-radius: var(--border-radius-sm);
  border-color: rgba(212, 175, 106, 0.2) !important;
}

.wish-icon i {
  line-height: 1;
}

.wish-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.wish-author {
  color: var(--dark-gold);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   21. PERSONALIZED GUEST INVITATION CARD
   -------------------------------------------------------------------------- */
.guest-stationery-card {
  perspective: 1000px;
  background-color: var(--cream);
  border-radius: var(--border-radius-sm);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(61, 53, 45, 0.05);
}

.guest-stationery-card:hover {
  transform: translateY(-5px);
  border-color: var(--champagne-gold) !important;
  box-shadow: 0 15px 35px rgba(212, 175, 106, 0.12);
}

.guest-stationery-card.revealed {
  transform: translateY(-8px) rotateX(4deg) rotateY(-2deg);
  border-color: var(--champagne-gold) !important;
  box-shadow:
    0 20px 45px rgba(212, 175, 106, 0.15),
    inset 0 0 15px rgba(212, 175, 106, 0.05);
  cursor: default;
}

.card-paper-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.guest-card-monogram {
  font-size: 2.2rem;
  letter-spacing: -2px;
  opacity: 0.85;
  user-select: none;
}

.reveal-prompt-state {
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.revealed-details-state {
  position: relative;
  z-index: 2;
}

.guest-revealed-name {
  font-size: 2.5rem;
  color: var(--dark-brown);
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  letter-spacing: 0.05em;
  font-weight: 500;
  line-height: 1.2;
}

.reveal-active .guest-revealed-name {
  animation: revealName 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.guest-revealed-message {
  color: var(--deep-olive);
  opacity: 0;
  transform: translateY(15px);
}

.reveal-active .guest-revealed-message {
  animation: revealMessage 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.reveal-active .btn {
  animation: revealMessage 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

.shimmer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--champagne-gold) 50%, transparent 100%);
  width: 80%;
  margin: 15px auto;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.8s ease 0.3s;
}

.reveal-active .shimmer-line {
  opacity: 0.8;
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   22. SCRATCH TO REVEAL DATE CARD
   -------------------------------------------------------------------------- */
.scratch-card-container {
  width: 90vw;
  max-width: 450px;
  height: 240px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  background-color: var(--light-beige);
}

.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: grab;
  touch-action: none;
  /* Crucial for mobile scroll prevention */
}

.scratch-canvas:active {
  cursor: grabbing;
}

.date-base-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  transition: background-color 0.8s ease;
}

.revealed-wedding-date {
  font-size: 2.75rem;
  color: var(--dark-brown);
  letter-spacing: 0.1em;
  font-weight: 500;
  transform: scale(0.9);
  opacity: 0.5;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
}

.reveal-active .revealed-wedding-date {
  transform: scale(1);
  opacity: 1;
  color: var(--dark-gold);
  /* Triggers glow and shimmer shine animation */
  animation: shineGoldDate 2s ease-in-out;
}

.reveal-active.date-revealed {
  background-color: var(--white);
}

.save-the-date-label,
.celebrate-message {
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
  transform: translateY(10px);
  opacity: 0;
}

.reveal-active .save-the-date-label,
.reveal-active .celebrate-message {
  opacity: 1;
  transform: translateY(0);
}