/* ==========================================
   SAMRI & JOSSY'S WEDDING - Elegant Styles
   ========================================== */

/* CSS Variables */
:root {
  /* Colors - Elegant Wedding Palette */
  --primary: #b8860b;
  --primary-light: #daa520;
  --primary-dark: #8b6914;
  --secondary: #1a1a2e;
  --accent: #c9a227;
  --burgundy: #ddea97;
  --ivory: #fffff0;
  --cream: #faf9f6;
  --blush: #fce4ec;
  --rose-gold: #b76e79;
  --champagne: #f7e7ce;
  
  /* Text Colors */
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --text-muted: #999999;
  --gold:gold;
  /* Fonts */
  --font-display: 'Great Vibes', cursive;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Utility Classes */
.dnone {
  display: none !important;
}

.flipedx {
  transform: scaleY(-1);
  top: -1px;
  bottom: auto;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   FLOATING PETALS ANIMATION
   ========================================== */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #ddea97, #c5d980);
  border-radius: 150% 0 150% 0;
  opacity: 0.7;
  animation: fall linear infinite;
  filter: blur(0.5px);
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(110vh) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

/* ==========================================
   MUSIC TOGGLE
   ========================================== */
.music-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.4);
  transition: var(--transition-normal);
}

.music-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.music-toggle .music-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.music-toggle .music-off {
  display: none;
  font-size: 20px;
}

.music-toggle.paused .music-icon {
  display: none;
}

.music-toggle.paused .music-off {
  display: block;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition: var(--transition-normal);
}

.nav-menu.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition-normal);
}

.nav-menu.scrolled .nav-link {
  color: var(--text-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger Menu Button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu.scrolled .nav-burger span {
  background: var(--text-dark);
}

.nav-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Links Container */
.nav-links {
  display: flex;
  gap: 40px;
}

/* Main Actions (RSVP & Upload) */
.nav-main-actions {
  display: flex;
  gap: 20px;
  margin-left: 40px;
}

.nav-highlight {
  background: rgba(184, 134, 11, 0.2);
  padding: 8px 16px !important;
  border-radius: 25px;
  border: 1px solid rgba(184, 134, 11, 0.4);
}

.nav-highlight:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: 
    linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(80, 100, 50, 0.5)),
    url('/hero-bg.jpg') center 30%/cover;
  overflow: visible;
  padding-bottom: 120px;
  transition: background 0.5s ease-in-out;
}

.hero.gif-loaded {
  background: 
    linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(80, 100, 50, 0.5)),
    url('/wgif.gif') center 30%/cover;
}

/* Curved wave divider - elegant asymmetric style */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 10;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-wave path {
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

/* Section Wave Dividers */
.section-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 10;
  pointer-events: none;
}

.section-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-wave path {
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.section {
  position: relative;
  padding-bottom: 120px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px;
  animation: fadeInUp 1.5s ease-out;
}

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

.invitation-card {
  margin-bottom: 50px;
}

.save-date {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--champagne);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-out 0.3s both;
}

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

.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.couple-names .name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  color: white;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
}

.couple-names .name.bride {
  animation: slideInLeft 1s ease-out 0.5s both;
}

.couple-names .name.groom {
  animation: slideInRight 1s ease-out 0.5s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ampersand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.wedding-date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  animation: fadeIn 1s ease-out 0.8s both;
}

.wedding-date-display span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  letter-spacing: 3px;
}

.ornament {
  color: var(--primary);
  font-size: 1rem;
  animation: twinkle 2s ease-in-out infinite;
}

.ornament.right {
  animation-delay: 1s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.venue-teaser {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  animation: fadeIn 1s ease-out 1s both;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.countdown-item {
  text-align: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 90px;
}

.countdown-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  line-height: 1;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 500px;
}

.countdown-value.flip {
  animation: flipNumber 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes flipNumber {
  0% {
    transform: perspective(500px) rotateX(0deg) scale(1);
    text-shadow: 0 0 0 rgba(184, 134, 11, 0);
  }
  25% {
    transform: perspective(500px) rotateX(-20deg) scale(1.1);
    text-shadow: 0 5px 15px rgba(184, 134, 11, 0.5);
  }
  50% {
    transform: perspective(500px) rotateX(10deg) scale(1.15);
    text-shadow: 0 8px 25px rgba(184, 134, 11, 0.7);
  }
  75% {
    transform: perspective(500px) rotateX(-5deg) scale(1.05);
    text-shadow: 0 3px 10px rgba(184, 134, 11, 0.3);
  }
  100% {
    transform: perspective(500px) rotateX(0deg) scale(1);
    text-shadow: 0 0 0 rgba(184, 134, 11, 0);
  }
}

/* Continuous pulse animation for countdown items */
.countdown-item {
  animation: countdownPulse 2s ease-in-out infinite;
}

.countdown-item:nth-child(1) { animation-delay: 0s; }
.countdown-item:nth-child(3) { animation-delay: 0.5s; }
.countdown-item:nth-child(5) { animation-delay: 1s; }
.countdown-item:nth-child(7) { animation-delay: 1.5s; }

@keyframes countdownPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  color: var(--champagne);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

.countdown-separator {
  font-size: 2rem;
  color: var(--primary);
  align-self: center;
  padding-bottom: 20px;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 45px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(184, 134, 11, 0.4);
  transition: var(--transition-normal);
  animation: fadeInUp 1s ease-out 1.5s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(184, 134, 11, 0.5);
}

.cta-button svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-normal);
}

.cta-button:hover svg {
  transform: translateX(5px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeIn 1s ease-out 2s both;
}

.scroll-indicator span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ==========================================
   SECTIONS COMMON STYLES
   ========================================== */
.section {
  padding: var(--section-padding);
  position: relative;
  overflow: visible;
}

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

[data-aos] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].visible {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(60px);
}

[data-aos="fade-up"].visible {
  transform: translateY(0);
}

[data-aos="fade-down"] {
  transform: translateY(-60px);
}

[data-aos="fade-down"].visible {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-60px);
}

[data-aos="fade-right"].visible {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(60px);
}

[data-aos="fade-left"].visible {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
}

[data-aos="zoom-in"].visible {
  transform: scale(1);
}

[data-aos="flip-up"] {
  transform: perspective(500px) rotateX(30deg);
}

[data-aos="flip-up"].visible {
  transform: perspective(500px) rotateX(0);
}

/* Staggered delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }

/* Section header animations */
.section-header {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Event cards stagger */
.event-card {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.event-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.event-card:nth-child(1) { transition-delay: 0.1s; }
.event-card:nth-child(2) { transition-delay: 0.2s; }
.event-card:nth-child(3) { transition-delay: 0.3s; }

/* Gallery items stagger */
.gallery-item {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.3s; }

/* Couple showcase animation */
.couple-profile {
  opacity: 0;
  transition: all 0.8s ease;
}

.couple-profile.bride {
  transform: translateX(-80px);
}

.couple-profile.groom {
  transform: translateX(80px);
}

.couple-profile.visible {
  opacity: 1;
  transform: translateX(0);
}

.couple-heart {
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s ease 0.4s;
}

.couple-heart.visible {
  opacity: 1;
  transform: scale(1);
}

/* Story card animation */
.story-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease 0.2s;
}

.story-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form animation */
.rsvp-form {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.rsvp-form.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Photo CTA animation */
.photo-cta-card {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s ease;
}

.photo-cta-card.visible {
  opacity: 1;
  transform: scale(1);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header.light {
  color: white;
}

.section-header.light .section-subtitle,
.section-header.light .section-title {
  color: white;
}

.section-subtitle {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 2px;
}

.title-ornament {
  margin-top: 20px;
}

.title-ornament span {
  display: inline-block;
  color: var(--primary);
  font-size: 1.5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
}

/* ==========================================
   STORY SECTION
   ========================================== */
.story-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--champagne) 100%);
}

/* ========================================== */
/* CREATIVE COUPLE SHOWCASE */
/* ========================================== */

.couple-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.couple-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-image-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-ring {
  display: none;
}

.profile-image {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  /* Heart shape using clip-path */
  clip-path: path('M90 170 C30 130 0 80 0 50 C0 20 25 0 50 0 C70 0 85 15 90 30 C95 15 110 0 130 0 C155 0 180 20 180 50 C180 80 150 130 90 170 Z');
  overflow: hidden;
  border: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.05); }
  30% { transform: scale(1); }
  45% { transform: scale(1.05); }
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.couple-profile:hover .profile-image img {
  transform: scale(1.1);
}

.profile-info {
  background: white;
  padding: 25px 35px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  min-width: 220px;
}

.profile-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #daa520);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.profile-name {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--dark);
  margin: 0 0 5px;
}

.profile-surname {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 15px;
}

.profile-quote {
  font-family: var(--font-body);
  font-size: 1rem;
  color:#b8860b;
  font-style: italic;
  margin: 0 0 15px;
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.social-btn:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-3px);
}

/* Heart Connector */
.couple-heart {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.heart-pulse {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: heartbeat 1.5s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(231, 76, 60, 0.4);
}

.heart-pulse svg {
  width: 40px;
  height: 40px;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  40% { transform: scale(1); }
  60% { transform: scale(1.1); }
}

.years-together {
  margin-top: 15px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
}

/* Story Card */
.story-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 60px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--burgundy), var(--gold));
}

.story-card-decor {
  position: absolute;
  font-size: 4rem;
  color: var(--champagne);
  opacity: 0.5;
}

.story-card-decor.left {
  top: 20px;
  left: 30px;
}

.story-card-decor.right {
  bottom: 20px;
  right: 30px;
  transform: rotate(180deg);
}

.story-quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.story-signature {
  margin-top: 25px;
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold);
}

@media (max-width: 900px) {
  .couple-showcase {
    flex-direction: column;
    gap: 40px;
  }
  
  .couple-heart {
    order: -1;
  }
  
  .story-card {
    padding: 40px 30px;
  }
  
  .story-quote {
    font-size: 1.2rem;
  }
}

.story-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

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

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

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

.timeline-item:nth-child(even) .timeline-content {
  padding-left: 50px;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 25px rgba(184, 134, 11, 0.3);
  z-index: 10;
}

.timeline-icon {
  font-size: 1.5rem;
}

.timeline-content {
  width: calc(50% - 30px);
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.timeline-year {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.timeline-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ==========================================
   DETAILS SECTION
   ========================================== */
.details-section {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(80, 100, 50, 0.75)), url(/location.jpg) center center / cover fixed;
  position: relative;
}

.details-section .section-header {
  color: var(--cream);
}

.details-section .section-subtitle {
  color: var(--gold);
}

.details-section .section-title {
  color: white;
}

/* Venue Showcase - Single Card Design */
.venue-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
}

.venue-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 50px 60px;
  max-width: 550px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.venue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -50%; }
  100% { left: 50%; }
}

.venue-card-inner {
  position: relative;
  z-index: 1;
}

/* Venue Label - Elegant line design */
.venue-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.venue-label-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

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

.venue-label-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
}

.venue-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.venue-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: white;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.venue-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.venue-day {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.venue-full-date {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: white;
  margin-top: 5px;
}

.venue-time, .venue-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.venue-time svg, .venue-location svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
}

.venue-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
  color: var(--gold);
  font-size: 1.2rem;
}

.venue-divider::before, .venue-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.6), transparent);
}

.venue-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Venue Directions - Elegant link style */
.venue-directions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

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

.venue-directions:hover::after {
  width: 100%;
}

.directions-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.directions-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
}

.venue-directions:hover .directions-icon {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--gold);
}

.directions-text {
  font-size: 1rem;
  letter-spacing: 1px;
}

.directions-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.venue-directions:hover .directions-arrow {
  transform: translateX(5px);
}

/* Mobile responsiveness for venue */
@media (max-width: 600px) {
  .venue-card {
    padding: 35px 25px;
    border-radius: 20px;
  }
  
  .venue-title {
    font-size: 1.8rem;
  }
  
  .venue-full-date {
    font-size: 1.4rem;
  }
  
  .venue-icon {
    font-size: 3rem;
  }
}

/* Legacy events-grid (keep for compatibility) */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.events-grid.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .events-grid.three-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .events-grid.three-columns {
    grid-template-columns: 1fr;
  }
}

.event-card {
  background: linear-gradient(135deg, var(--cream) 0%, white 100%);
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  border: 1px solid rgba(184, 134, 11, 0.2);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(30px);
}

.event-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

.event-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.event-icon svg {
  width: 35px;
  height: 35px;
  color: white;
}

/* Event Card Badge */
.event-badge {
  display: inline-block;
  background: var(--champagne);
  color: var(--dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-weight: 600;
}

.event-badge.special {
  background: linear-gradient(135deg, var(--gold), #daa520);
  color: white;
}

/* Event Time Big */
.event-time-big {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin: 15px 0;
}

/* Event Address */
.event-address {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Reception Card - Special Styling */
.event-card.reception {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.event-card.reception::before {
  content: '✨';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.event-card.reception .event-icon {
  background: linear-gradient(135deg, var(--gold), #daa520);
}

.event-card.reception .event-title {
  color: white;
}

.event-card.reception .event-time-big {
  color: var(--gold);
}

.event-card.reception .event-address {
  color: rgba(255, 255, 255, 0.7);
}

.event-card.reception .map-button {
  background: var(--gold);
  color: white;
}

.event-card.reception .map-button:hover {
  background: white;
  color: var(--gold);
}

.event-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.event-detail {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.event-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.event-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark);
}

.map-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: var(--transition-normal);
}

.map-button:hover {
  background: var(--primary);
  color: white;
}

.map-button svg {
  width: 18px;
  height: 18px;
}

/* Dress Code */
.dress-code {
  text-align: center;
  padding: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: white;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  max-width: 550px;
  margin: 0 auto;
}

.dress-code.visible {
  opacity: 1;
  transform: translateY(0);
}

.dress-code h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.dress-code p {
  font-size: 1.1rem;
  color: var(--champagne);
  margin-bottom: 25px;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition-normal);
  cursor: pointer;
}

.color-swatch:hover {
  transform: scale(1.2);
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
  background: #f7e7ce;
  overflow: visible;
  position: relative;
}

.gallery-section .gallery-wave {
  transform: rotate(180deg);
  bottom: -84px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease-out;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Show faces - 20% from top */
  transition: var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.8), rgba(80, 100, 50, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

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

.gallery-overlay span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* ==========================================
   RSVP SECTION
   ========================================== */
.rsvp-section {
  background: 
    linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(80, 100, 50, 0.9)),
    url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?w=1920') center/cover fixed;
  color: white;
}

.rsvp-deadline {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--champagne);
}

.rsvp-form {
  max-width: 700px;
  margin: 0 auto;
  opacity: 1;
  transition: var(--transition-slow);
}

.rsvp-form.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.form-group {
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--champagne);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--secondary);
  color: white;
}

/* Attendance Options */
.attendance-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.attendance-option {
  cursor: pointer;
}

.attendance-option input {
  display: none;
}

.option-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  transition: var(--transition-normal);
}

.attendance-option input:checked + .option-box {
  background: rgba(184, 134, 11, 0.3);
  border-color: var(--primary);
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.option-text {
  font-size: 0.85rem;
  text-align: center;
}

/* Conditional Fields */
.conditional-field {
  display: none;
}

.conditional-field.visible {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 12px;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(184, 134, 11, 0.4);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.button-loading {
  display: none;
}

.submit-button.loading .button-text {
  visibility: hidden;
}

.submit-button.loading .button-loading {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.success-message.visible {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 15px;
}

.success-message p {
  font-size: 1.1rem;
  color: var(--champagne);
}

/* ==========================================
   WISHES SECTION
   ========================================== */
.wishes-section {
  background: linear-gradient(180deg, var(--cream) 0%, white 100%);
  overflow: visible;
  position: relative;
}

.wishes-container {
  max-width: 900px;
  margin: 0 auto;
}

.wish-form {
  margin-bottom: 50px;
}

.wish-form .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.wish-form input,
.wish-form textarea {
  padding: 15px 20px;
  border: 2px solid rgba(184, 134, 11, 0.2);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-normal);
}

.wish-form input {
  flex: 1;
}

.wish-form input:focus,
.wish-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.wish-form textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

.wish-form button {
  padding: 15px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.wish-form button:hover {
  background: var(--primary-dark);
}

.wishes-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.wish-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  transition: var(--transition-normal);
}

.wish-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.wish-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 15px;
}

.wish-author {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--secondary);
  color: white;
  padding: 80px 0 30px;
  text-align: center;
}

.footer-content {
  margin-bottom: 50px;
}

.couple-monogram {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-date {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.footer-quote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.footer-hearts {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-hearts span {
  font-size: 1.5rem;
  color: var(--primary);
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.lightbox-close:hover {
  transform: rotate(90deg);
  color: var(--primary);
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 180px);
  }
  
  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }
  
  .nav-menu {
    padding: 12px 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    flex-wrap: nowrap;
  }
  
  /* Show hamburger button */
  .nav-burger {
    display: flex;
  }
  
  /* Hide nav links by default on mobile */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  .nav-links.open {
    max-height: 300px;
    padding: 15px 0;
  }
  
  .nav-links .nav-link {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-links .nav-link::after {
    display: none;
  }
  
  /* Main actions always visible */
  .nav-main-actions {
    margin-left: auto;
    gap: 10px;
  }
  
  .nav-main-actions .nav-link {
    font-size: 0.75rem;
    padding: 6px 12px !important;
  }
  
  .nav-highlight {
    font-size: 0.7rem;
  }
  
  .hero {
    padding-top: 80px;
  }
  
  .countdown {
    gap: 5px;
  }
  
  .countdown-item {
    padding: 15px 12px;
    min-width: 70px;
  }
  
  .countdown-value {
    font-size: 1.8rem;
  }
  
  .countdown-separator {
    font-size: 1.5rem;
  }
  
  .story-timeline::before {
    left: 30px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
  }
  
  .timeline-marker {
    left: 30px;
    position: relative;
    margin-bottom: 20px;
  }
  
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    width: 100%;
    text-align: left;
    padding: 25px;
    margin-left: 60px;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  
  .gallery-item.large,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .attendance-options {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .wish-form .form-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .couple-names {
    gap: 10px;
  }
  
  .countdown-item {
    padding: 12px 8px;
    min-width: 60px;
  }
  
  .countdown-value {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
  
  .cta-button {
    padding: 15px 30px;
    font-size: 0.9rem;
  }
  
  .event-card {
    padding: 35px 25px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PHOTO UPLOAD CTA SECTION
   ========================================== */
.photo-cta-section {
  background: 
    linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(80, 100, 50, 0.75)),
    url('/hero-bg.jpg') center 30%/cover;
  background-attachment: fixed;
  padding: 80px 0;
  position: relative;
}

.photo-cta-card {
  display: flex;
  align-items: center;
  gap: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-cta-content {
  flex: 1;
  color: white;
}

.photo-cta-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
}

.photo-cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.photo-cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
}

.photo-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.photo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
}

.photo-cta-btn svg {
  width: 20px;
  height: 20px;
}

.photo-cta-btn.primary {
  background: white;
  color: #667eea;
}

.photo-cta-btn.primary:hover {
  background: var(--champagne);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.photo-cta-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.photo-cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.photo-cta-qr {
  text-align: center;
}

.photo-cta-qr img {
  width: 180px;
  height: 180px;
  border-radius: 15px;
  background: white;
  padding: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.photo-cta-qr p {
  margin-top: 15px;
  color: white;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .photo-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 25px;
    gap: 40px;
  }
  
  .photo-cta-buttons {
    justify-content: center;
  }
  
  .photo-cta-content h2 {
    font-size: 2rem;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .nav-menu,
  .music-toggle,
  .petals-container,
  .scroll-indicator,
  .cta-button,
  .map-button,
  .rsvp-section,
  .wishes-section,
  .lightbox {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 50px;
    background: white !important;
    color: black !important;
  }
  
  .hero-content {
    color: black;
  }
  
  .couple-names .name {
    color: black;
    text-shadow: none;
  }
}

.flipedx{
  transform: rotate(180deg);
  bottom: -100px;
  top:auto !important;
}
.dnone{
  display: none;
}