/* Enhanced Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: #000;
  overflow: hidden;
  padding: 100px 20px 40px;
}

/* Mobile: reduce top padding when navbar is hidden and use exact height */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: auto;
    padding: 0 20px;
  }
}

/* Video background */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

/* Strong dark overlay for better readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 2;
}

/* Hero content container - simplified, no backdrop-filter */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated entrance states - simplified */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
}

.hero-content.animate-in .hero-welcome {
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.hero-content.animate-in h1 {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.hero-content.animate-in .wedding-date {
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.hero-content.animate-in .hero-rsvp-btn {
  animation: fadeInUp 0.6s ease-out 0.7s forwards;
}

.hero-content.animate-in .countdown {
  animation: fadeInUp 0.6s ease-out 0.9s forwards; 
}

.hero-content.animate-in .hero-quick-info {
  animation: fadeInUp 0.6s ease-out 1.1s forwards;
}

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

/* Welcome text */
.hero-welcome {
  font-family: 'Lora', serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: #e5cd48;
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Names - Strong contrast with dark background */
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #F5E6D3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Date - Clean visibility */
.wedding-date {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  letter-spacing: 4px;
  font-weight: 600;
  text-transform: uppercase;
  color: #F5F5F5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* RSVP Button - Simplified */
.hero-rsvp-btn {
  display: inline-block;
  background: linear-gradient(135deg, #A8B8A0 0%, #8DA285 100%);
  color: #FFFFFF;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

.hero-rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 184, 160, 0.4);
}

.hero-rsvp-btn:active {
  transform: translateY(0);
}

/* Countdown - Compact inline style */
.countdown {
  text-align: center;
  margin-top: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #F5F5F5;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 58px;
  flex: 0 0 auto;
}

.time-unit span {
  font-weight: 700;
  color: #F5E6D3;
  font-size: 1.6rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
  margin-bottom: 3px;
}

.time-unit label {
  font-weight: 600;
  color: #F5F5F5;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Quick info - Hide on mobile, show on desktop */
.hero-quick-info {
  display: none;
}

/* Desktop - Show quick info and larger sizes */
@media (min-width: 768px) {
  .hero-content {
    max-width: 800px;
    padding: 50px 40px;
  }
  
  .hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
  }
  
  .countdown {
    gap: 1.5rem;
  }
  
  .time-unit {
    min-width: 85px;
    padding: 12px 18px;
  }
  
  .time-unit span {
    font-size: 2rem;
  }
  
  .time-unit label {
    font-size: 0.85rem;
  }
  
  .hero-quick-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .quick-info-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #ede32d;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 168, 138, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }
  
  .quick-info-link:hover {
    background: rgba(201, 168, 138, 0.15);
    border-color: rgba(201, 197, 138, 0.5);
    transform: translateY(-2px);
  }
}

.quick-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.quick-info-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.quick-info-label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .hero-welcome {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ================================
   WEDDING WEBSITE - STYLE.CSS
   Catherine & Oleksandr Wedding
   ================================ */

/* ================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ================================ */
:root {
  /* Color Palette */
  --primary-blush: #f7f9f7;
  --secondary-rose: #a8b8a0;
  --accent-gold: #b8860b;
  --soft-peach: #e8ede8;
  --dusty-rose: #9ca69c;
  --cream: #f8faf8;
  --warm-white: #fefffe;
  --romantic-pink: #7a8471;
  --soft-lavender: #9fb094;
  --charcoal: #2d3436;
  --soft-gray: #636e72;
  --light-gray: #f1f3f1;
  --error-red: #d63031;
  --success-green: #00b894;
  
  /* Typography */
  --font-display: 'Lora', 'Georgia', serif;
  --font-script: 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Poppins', sans-serif;
  
  /* Spacing System */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Effects & Shadows */
  --shadow-soft: 0 4px 20px rgba(44, 62, 80, 0.08);
  --shadow-medium: 0 8px 30px rgba(44, 62, 80, 0.12);
  --shadow-strong: 0 20px 40px rgba(44, 62, 80, 0.15);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ================================
   BASE STYLES & RESET
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  min-height: 100vh;
}

html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('../images/sunflower-field.webp'); */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* background-color: #FFD700; */
  filter: blur(3px);
  z-index: -1;
}

body {
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--charcoal);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================
   TYPOGRAPHY STYLES
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

.script-font {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--secondary-rose);
}

/* ================================
   LAYOUT UTILITIES
   ================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.hidden {
  display: none;
}

/* ================================
   ACCESSIBILITY & FOCUS STYLES
   ================================ */
button:focus, input:focus, a:focus {
  outline: 2px solid var(--secondary-rose);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================
   AUTHENTICATION MODAL
   ================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(247, 231, 206, 0.95), rgba(232, 180, 184, 0.95));
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn var(--transition-slow);
}

.modal-content {
  background: var(--warm-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  text-align: center;
  width: 90%;
  max-width: 500px;
  animation: slideUp 0.6s ease;
}

.modal-content h2 {
  color: var(--charcoal);
  margin-bottom: var(--spacing-md);
}

.modal-content p {
  color: var(--soft-gray);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.modal-content input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-medium);
  font-family: var(--font-body);
}

.modal-content input:focus {
  outline: none;
  border-color: var(--secondary-rose);
  box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.15);
}

.modal-content input.error {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.modal-content button {
  background: linear-gradient(135deg, var(--secondary-rose), var(--accent-gold));
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  font-family: var(--font-body);
  font-weight: 500;
  width: 100%;
}

.modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.modal-content button:active {
  transform: translateY(0);
}

#error-message {
  color: var(--error-red);
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
}

/* ================================
   NAVIGATION COMPONENT
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile: hide navbar at top of page */
@media (max-width: 768px) {
  .navbar {
    transform: translateY(-100%);
  }
  
  .navbar.navbar-visible {
    transform: translateY(0);
  }
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-title {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--romantic-pink);
  font-weight: 400;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  gap: 4px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--romantic-pink);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  position: relative;
  padding: var(--spacing-xs) 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--romantic-pink);
  transition: width var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--romantic-pink);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  width: 100%;
}

/* ================================
   SECTION LAYOUT
   ================================ */
section:not(.hero) {
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
}

section:nth-child(even) {
  /* background: rgba(255, 255, 255, 0.95); */
  backdrop-filter: blur(10px);
  /* margin: var(--spacing-xs) 0; */
  /* border-radius: var(--radius-md); */
}

section:nth-child(odd):not(.hero) {
  /* background: rgba(255, 255, 255, 0.95); */
  backdrop-filter: blur(10px);
  /* margin: var(--spacing-xs) 0; */
  /* border-radius: var(--radius-md); */
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.section-title {
  color: var(--romantic-pink);
  position: relative;
  display: inline-block;
  font-family: 'Playfair Display', var(--font-display), serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.section-subtitle {
  color: var(--charcoal);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-top: var(--spacing-md);
  font-family: var(--font-body);
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   STORY TIMELINE - ZIGZAG LAYOUT
   ================================ */
.story-content {
  max-width: 1200px;
  margin: 0 auto;
}

.story-timeline {
  position: relative;
  padding: var(--spacing-xl) 0;
}

/* Timeline line - default for mobile */
.story-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--romantic-pink), var(--accent-gold));
  transform: translateX(-50%);
}

/* Desktop: Center timeline line */
@media (min-width: 768px) {
  .story-timeline::before {
    left: 50%;
    width: 3px;
  }
}

/* Story Items - Desktop Zigzag Layout */
.story-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-lg);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
  align-items: center;
}

.story-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop: Odd items (text left, photo right) */
@media (min-width: 768px) {
  .story-item:nth-child(odd) {
    grid-template-areas: "text date photo";
  }
  
  .story-item:nth-child(odd) .story-text {
    grid-area: text;
    text-align: right;
  }
  
  .story-item:nth-child(odd) .story-date {
    grid-area: date;
  }
  
  .story-item:nth-child(odd) .story-photo {
    grid-area: photo;
  }
  
  /* Even items (photo left, text right) */
  .story-item:nth-child(even) {
    grid-template-areas: "photo date text";
  }
  
  .story-item:nth-child(even) .story-text {
    grid-area: text;
    text-align: left;
  }
  
  .story-item:nth-child(even) .story-date {
    grid-area: date;
  }
  
  .story-item:nth-child(even) .story-photo {
    grid-area: photo;
  }
}

/* Date Circle */
.story-date {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--romantic-pink);
  background: var(--warm-white);
  border: 3px solid var(--romantic-pink);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.story-date:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(168, 184, 160, 0.3);
  border-color: var(--accent-gold);
}

/* Story Text Content */
.story-text {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: all var(--transition-medium);
}

.story-text:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.story-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--romantic-pink);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.story-text p {
  line-height: 1.8;
  color: var(--charcoal);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* Story Photo Container */
.story-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-medium);
  background: var(--light-gray);
}

.story-photo:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-5px);
}

.story-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

/* Photo Caption Overlay */
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: var(--spacing-lg);
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.story-photo:hover .photo-caption {
  transform: translateY(0);
}

.photo-caption p {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-family: var(--font-body);
}

/* ================================
   CARD COMPONENTS
   ================================ */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.detail-card {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

/* Gradient top border */
.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #a8b8a0, #b8860b, #7a8471);
}

.detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(122, 132, 113, 0.2);
}

/* Card Icon */
.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #a8b8a0 0%, #8da285 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(168, 184, 160, 0.3);
  transition: all 0.3s ease;
}

.detail-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(168, 184, 160, 0.4);
}

.card-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Card Title */
.detail-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #7a8471;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Card Details */
.card-detail {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-detail:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 700;
  color: #b8860b;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}

.detail-value {
  color: #2d3436;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Ceremony & Reception combined card */
.ceremony-reception-card {
  grid-column: span 1;
}

/* Dress code card special styling */
.dress-code-card {
  background: linear-gradient(135deg, #f8faf8 0%, #ffffff 100%);
}

/* Timeline events for ceremony/reception times */
.timeline-events {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(168, 184, 160, 0.08);
  border-radius: 12px;
  flex-wrap: wrap;
}

.event-time {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 140px;
}

.time-badge {
  font-size: 1.4rem;
  font-weight: 700;
  color: #b8860b;
  font-family: 'Poppins', sans-serif;
}

.event-label {
  font-size: 0.95rem;
  color: #636e72;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dress code content styling */
.dress-code-content {
  text-align: center;
}

.dress-description {
  color: #636e72;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.dress-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.dress-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(168, 184, 160, 0.1), rgba(184, 134, 11, 0.05));
  border-radius: 12px;
  border-left: 3px solid #b8860b;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.dress-option:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(168, 184, 160, 0.15), rgba(184, 134, 11, 0.1));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dress-option::after {
  content: 'ⓘ';
  position: absolute;
  right: 1rem;
  color: #b8860b;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.dress-option:hover::after {
  opacity: 1;
}

.option-bullet {
  font-size: 1.2rem;
  color: #b8860b;
}

.option-text {
  font-size: 1.15rem;
  color: #2d3436;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.dress-note {
  color: #636e72;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(122, 132, 113, 0.05);
  border-radius: 8px;
}

/* Address styling */
.address-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(122, 132, 113, 0.2);
}

.address-line {
  color: #636e72;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

/* Map link button */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7a8471;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: rgba(168, 184, 160, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.map-link:hover {
  background: rgba(168, 184, 160, 0.2);
  transform: translateX(3px);
  color: #5d6d56;
}

.map-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Info Banner */
.info-banner {
  background: linear-gradient(135deg, #e8ede8 0%, #f1f3f1 100%);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 4rem;
  text-align: center;
  border: 1px solid rgba(122, 132, 113, 0.2);
}

.info-banner-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-banner-icon svg {
  width: 25px;
  height: 25px;
  fill: #7a8471;
}

.info-banner h4 {
  font-family: 'Lora', serif;
  color: #2d3436;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-banner p {
  color: #636e72;
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
}
.info-banner a {
  color: var(--secondary-rose);
  text-decoration: none;
  font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dress-modal {
  background: white;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #2d3436;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 2px solid rgba(122, 132, 113, 0.2);
}

.modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #7a8471;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: #636e72;
  font-size: 1.05rem;
  line-height: 1.6;
}

.modal-body {
  padding: 2rem;
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.modal-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3/4;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-image:hover img {
  transform: scale(1.05);
}

.modal-content-section {
  margin-bottom: 1.5rem;
}

.modal-content-section h4 {
  font-family: 'Lora', serif;
  color: #2d3436;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-content-section h4::before {
  content: '✦';
  color: #b8860b;
}

.modal-content-section p {
  color: #636e72;
  line-height: 1.7;
  font-size: 1.05rem;
}

.modal-content-section ul {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;
}

.modal-content-section li {
  color: #636e72;
  line-height: 1.7;
  font-size: 1.05rem;
  padding-left: 1.5rem;
  position: relative;
}

.modal-content-section li::before {
  content: '•';
  color: #b8860b;
  font-weight: bold;
  position: absolute;
  left: 0.5rem;
}

.example-note {
  background: rgba(168, 184, 160, 0.1);
  padding: 1rem;
  border-radius: 12px;
  border-left: 3px solid #a8b8a0;
  margin-top: 1.5rem;
}

.example-note p {
  color: #2d3436;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ================================
   ACCOMMODATIONS SECTION
   ================================ */
.accommodations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.accommodation-card {
  background: #ffffff;
  border: 2px solid var(--secondary-rose);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.accommodation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--romantic-pink);
}

.accommodation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.accommodation-header h3 {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--romantic-pink);
  margin: 0;
  font-weight: 400;
}

.accommodation-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.price {
  background: var(--accent-gold);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.expand-icon {
  width: 30px;
  height: 30px;
  background: var(--secondary-rose);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all var(--transition-fast);
}

.accommodation-card.expanded .expand-icon {
  transform: rotate(45deg);
  background: var(--romantic-pink);
}

.accommodation-summary {
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.accommodation-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium) ease;
}

.accommodation-card.expanded .accommodation-details {
  max-height: 1000px;
}

.details-content {
  padding-top: var(--spacing-md);
  border-top: 2px solid var(--light-gray);
  margin-top: var(--spacing-md);
}

.details-content p {
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--charcoal);
}

.details-content strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.details-content a {
  color: var(--romantic-pink);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.details-content a:hover {
  color: var(--accent-gold);
}

.details-content em {
  color: var(--soft-gray);
  font-style: italic;
}


/* ================================
   REGISTRY SECTION
   ================================ */
.registry-section {
  /* background: linear-gradient(135deg, var(--cream) 0%, var(--soft-peach) 100%); */
  padding: var(--spacing-2xl) 0;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.registry-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
  border: 1px solid rgba(168, 184, 160, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.registry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.registry-card.monetary-gift {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
}

.registry-icon {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.registry-icon img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.registry-content {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
}

.registry-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--spacing-sm);
}

.registry-content p {
  font-family: var(--font-body);
  color: var(--soft-gray);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.registry-details {
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.registry-details p {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
  color: var(--charcoal);
}

.registry-details p:last-child {
  margin-bottom: 0;
}

.registry-details strong {
  color: var(--secondary-rose);
  font-weight: 600;
}

.registry-actions {
  width: 100%;
}

.registry-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary-rose) 0%, var(--dusty-rose) 100%);
  color: var(--warm-white);
  text-decoration: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition-medium);
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.registry-btn:hover {
  background: linear-gradient(135deg, var(--dusty-rose) 0%, var(--secondary-rose) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.monetary-gift .registry-btn {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--secondary-rose) 100%);
}

.monetary-gift .registry-btn:hover {
  background: linear-gradient(135deg, var(--secondary-rose) 0%, var(--accent-gold) 100%);
}

.registry-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.registry-note {
  background: var(--warm-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary-rose);
  box-shadow: var(--shadow-soft);
}

.registry-note h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.registry-note p {
  font-family: var(--font-body);
  color: var(--soft-gray);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.registry-note p:last-child {
  margin-bottom: 0;
}

.registry-note a {
  color: var(--secondary-rose);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.registry-note a:hover {
  color: var(--dusty-rose);
}

.registry-note strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* ================================
   RSVP FORM
   ================================ */
.rsvp-section {
  background: linear-gradient(135deg, var(--soft-peach) 0%, var(--cream) 100%);
  padding: var(--spacing-xl) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-lg);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(10px);
}

.custom-rsvp-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-medium);
  background: var(--warm-white);
  color: var(--charcoal);
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-rose);
  box-shadow: 0 0 0 3px rgba(168, 184, 160, 0.15);
  background: var(--warm-white);
}

.form-group input:required:invalid {
  border-color: var(--error-red);
}

.form-group input:required:valid {
  border-color: var(--success-green);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--soft-gray);
  font-style: italic;
}

/* Dietary restrictions styling */
.dietary-checkboxes {
  margin-top: var(--spacing-sm);
}

.checkbox-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.checkbox-group:hover {
  background-color: var(--light-gray);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  margin-right: var(--spacing-xs);
  accent-color: var(--secondary-rose);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.dietary-label {
  display: block;
  margin-bottom: var(--spacing-md);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

#other-dietary-input {
  margin-top: var(--spacing-sm);
}

#other-dietary-input input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all var(--transition-medium);
  font-family: var(--font-body);
  background: var(--warm-white);
}

#other-dietary-input input:focus {
  outline: none;
  border-color: var(--secondary-rose);
  box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.15);
}

/* Form sections */
#dietary-restrictions-group,
#song-requests-group,
#special-message-group {
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--light-gray);
}

#additional-guests {
  margin-top: var(--spacing-xs);
  padding: var(--spacing-xs);
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--secondary-rose);
}

/* Submit button */
.rsvp-submit-btn {
  background: linear-gradient(135deg, var(--secondary-rose) 0%, var(--dusty-rose) 100%);
  color: var(--warm-white);
  border: none;
  padding: 18px 48px;
  border-radius: var(--radius-lg);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  margin-top: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.rsvp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, var(--dusty-rose) 0%, var(--secondary-rose) 100%);
}

.rsvp-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

/* RSVP success and info */
.rsvp-success-message {
  text-align: center;
  padding: var(--spacing-lg);
}

.success-content h3 {
  color: var(--secondary-rose);
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.success-content p {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: var(--spacing-sm);
}

/* .rsvp-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--light-gray);
} */

.rsvp-deadline,
.rsvp-contact {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
}

.rsvp-deadline p:first-child,
.rsvp-contact p:first-child {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--spacing-xs);
}

.deadline-note {
  font-size: 0.9rem;
  color: var(--soft-gray);
  font-style: italic;
}

.rsvp-contact a,
.rsvp-info a {
  color: var(--secondary-rose);
  text-decoration: none;
  font-weight: 500;
}

.rsvp-contact a:hover,
.rsvp-info a:hover {
  text-decoration: underline;
}

/* ================================
   PHOTO GALLERY
   ================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  grid-auto-rows: 350px; /* Base height for portrait photos */
}

.photo-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Landscape photos span two columns and are taller */
.photo-item.landscape {
  grid-column: span 2;
  grid-row: span 1;
  min-height: 300px;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all var(--transition-medium);
}

.photo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: var(--spacing-lg);
  text-align: center;
  transform: translateY(100%);
  transition: all var(--transition-medium);
}

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

.photo-overlay h4 {
  font-family: var(--font-script);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.photo-overlay p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* ================================
   LIGHTBOX
   ================================ */
.lightbox {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.lightbox-caption {
  text-align: center;
  color: white;
  margin-top: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lightbox-caption h4 {
  font-family: var(--font-script);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.lightbox-caption p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.lightbox-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-md);
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--soft-gray) 100%);
  color: var(--warm-white);
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.footer p {
  margin-bottom: var(--spacing-sm);
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

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

/* Animation utility classes */
.fade-in {
  animation: fadeIn 1s ease;
}

.slide-up {
  animation: slideUp 0.8s ease;
}

/* ================================
   RESPONSIVE DESIGN - MOBILE
   ================================ */
@media (max-width: 768px) {
  /* Navigation */
  .navbar {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .hamburger {
    display: flex !important;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-medium);
    z-index: 999;
  }
  
  .nav-menu.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-menu a {
    font-size: 1.1rem;
    padding: var(--spacing-sm) 0;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .nav-menu li:last-child a {
    border-bottom: none;
  }
  
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Countdown timer */
  .countdown {
    word-spacing: -0.2em;
    letter-spacing: -0.5px;
  }
  
  .time-unit label {
    margin-right: 0.3em;
  }

  /* Married celebration */
  .married-celebration h3 {
    font-size: 2rem !important;
  }
  
  .count-up-display {
    gap: 0.5rem !important;
  }
  
  .count-up-display .time-unit {
    min-width: 70px;
    padding: var(--spacing-sm);
  }
  
  .count-up-display .time-unit span {
    font-size: 1.5rem !important;
  }

  /* Story timeline - Mobile simplified layout */
  .story-timeline::before {
    left: 30px;
    width: 2px;
  }
  
  .story-item {
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    grid-template-areas: 
      "date text"
      "date photo" !important;
    gap: var(--spacing-md) !important;
    margin-bottom: var(--spacing-xl);
    align-items: flex-start !important;
  }
  
  .story-date {
    grid-area: date !important;
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
    margin-left: 0;
    align-self: flex-start !important;
  }
  
  .story-item .story-text {
    grid-area: text !important;
    text-align: left !important;
    margin: 0;
  }
  
  .story-item .story-photo {
    grid-area: photo !important;
    margin: 0;
  }
  
  .story-photo img {
    height: 280px;
  }

  /* Cards and grids */
  .details-grid {
    grid-template-columns: 1fr;
  }

  .accommodations-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .accommodation-card {
    padding: var(--spacing-md);
  }
  
  .accommodation-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .accommodation-meta {
    align-self: flex-end;
  }

  /* Registry */
  .registry-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .registry-card {
    padding: var(--spacing-md);
  }
  
  .registry-notes {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .registry-note {
    padding: var(--spacing-md);
  }

  /* RSVP form */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .rsvp-info {
    grid-template-columns: 1fr;
  }
  
  .rsvp-form-wrapper {
    padding: var(--spacing-md);
    margin: 0 var(--spacing-sm);
  }

  .checkbox-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }
  
  .checkbox-group {
    font-size: 0.85rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Photo gallery */
  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }
  
  .photo-item.landscape {
    grid-column: span 1; /* Landscape photos don't span on mobile */
    min-height: 250px;
  }
  
  .lightbox-content {
    padding: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  .lightbox-nav {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .lightbox-prev,
  .lightbox-next {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  /* Wedding Details Section - Mobile */
  .details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ceremony-reception-card {
    grid-column: span 1;
  }

  .timeline-events {
    flex-direction: column;
    gap: 1rem;
  }

  .event-time {
    min-width: auto;
  }

  .detail-card {
    padding: 2rem 1.5rem;
  }

  .detail-card h3 {
    font-size: 1.7rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .info-banner {
    padding: 1.5rem;
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  /* Wedding Details - Extra Small Screens */
  .detail-card {
    padding: 1.5rem 1.2rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .card-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .hero-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
    gap: var(--spacing-md);
  }
  
  .photo-item.landscape {
    min-height: 250px;
  }

  .checkbox-row {
    grid-template-columns: 1fr;
  }

  /* Enhanced Hero Responsive */
  .hero-content {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
  }

  .countdown {
    gap: 1rem;
  }

  .time-unit {
    min-width: 75px;
    padding: 12px 15px;
  }

  .time-unit span {
    font-size: 1.6rem;
  }

  .hero-quick-info {
    gap: 1rem;
  }

  .quick-info-link {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .countdown {
    gap: 0.3rem;
    flex-wrap: wrap;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .time-unit {
    min-width: 55px;
    padding: 6px 8px;
  }

  .time-unit span {
    font-size: 1.3rem;
  }

  .time-unit label {
    font-size: 0.65rem;
  }
  
  /* Story photos - smaller on small phones */
  .story-photo img {
    height: 240px;
  }
}

/* Very small screens - compact abbreviated version */
@media (max-width: 380px) {
  .countdown {
    gap: 0.25rem;
    max-width: 240px;
  }

  .time-unit {
    min-width: 52px;
    padding: 5px 6px;
  }

  .time-unit span {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  .time-unit label {
    font-size: 0.6rem;
    text-transform: uppercase;
  }

  /* Abbreviated labels for very small screens */
  #days + label::before { content: 'DD'; }
  #hours + label::before { content: 'HR'; }
  #minutes + label::before { content: 'MIN'; }
  #seconds + label::before { content: 'SEC'; }
  
  #days + label,
  #hours + label,
  #minutes + label,
  #seconds + label {
    font-size: 0;
  }
  
  #days + label::before,
  #hours + label::before,
  #minutes + label::before,
  #seconds + label::before {
    font-size: 0.58rem;
  }
}