/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
  max-width: 100vw; /* Ensure body doesn't exceed viewport width */
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Lazy loading images */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[data-src].loaded {
  opacity: 1;
}

input, button, textarea, select {
  font: inherit;
}

/* CSS Custom Properties */
:root {
  /* Wedding Colors - Inspired by invitation sky blue palette */
  --color-primary: #87CEEB;           /* Sky Blue - main invitation color */
  --color-primary-dark: #4A90E2;      /* Deeper blue from invitation */
  --color-primary-light: #B8E2F2;     /* Light blue tint */
  --color-secondary: #6BB6FF;         /* Complementary light blue */
  --color-secondary-dark: #5A9BD4;    /* Deeper secondary */
  --color-accent: #ADD8E6;           /* Light blue accent */
  --color-coral: #87CEEB;            /* Replace coral with sky blue */
  --color-sage: #B0E0E6;             /* Powder blue instead of mint */
  --color-navy: #2C3E50;             /* Keep navy for contrast */
  --color-gold: #F0F8FF;             /* Alice blue instead of gold */
  
  /* Neutrals */
  --color-white: #FFFFFF;
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #EEEEEE;
  --color-gray-300: #E0E0E0;
  --color-gray-400: #BDBDBD;
  --color-gray-500: #9E9E9E;
  --color-gray-600: #757575;
  --color-gray-700: #616161;
  --color-gray-800: #424242;
  --color-gray-900: #212121;
  
  /* Semantic colors */
  --color-text: var(--color-gray-800);
  --color-text-light: var(--color-gray-600);
  --color-text-muted: var(--color-gray-500);
  --color-background: var(--color-white);
  --color-surface: var(--color-gray-50);
  --color-border: var(--color-gray-200);
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Playfair Display', Georgia, serif;
  --font-family-script: 'Dancing Script', 'Playfair Display', cursive;
  --font-family-elegant: 'Playfair Display', Georgia, serif;
  
  /* Enhanced Fluid Typography - Optimized for readability */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.813rem);
  --font-size-sm: clamp(0.875rem, 0.85rem + 0.25vw, 0.938rem);
  --font-size-base: clamp(0.938rem, 0.9rem + 0.25vw, 1rem);
  --font-size-lg: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.35rem + 0.8vw, 2rem);
  --font-size-3xl: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  --font-size-4xl: clamp(2rem, 1.75rem + 1.5vw, 3rem);
  --font-size-5xl: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --font-size-hero: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  
  /* Enhanced Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 12rem;
  
  /* Layout */
  --container-max-width: 1200px;
  --container-padding: clamp(1rem, 3vw, 2rem);
  --section-spacing: clamp(2rem, 4vw, 3.5rem);
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-width: 1px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Base styles */
body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  padding-top: 70px; /* Offset for fixed header */
}

/* Better text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Layout utilities */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-spacing) 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive grid */
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Components */
.card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  border: var(--border-width) solid transparent;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-gray-800);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-gray-100);
  text-decoration: none;
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-lg);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width) solid var(--color-border);
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.header.visible {
  transform: translateY(0);
}

.header.at-top {
  transform: translateY(-100%);
}

/* Header starts hidden in hero section */

/* Debug: Force header visible for troubleshooting (commented out)
.header.debug-visible {
  transform: translateY(0) !important;
} */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.nav-brand {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text);
}

.nav-menu {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  color: var(--color-text-light);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    flex-direction: column;
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-gray-800);
}

.hero-title {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-gray-700);
  margin-bottom: var(--space-2xl);
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.countdown-item {
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.countdown-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  display: block;
}

.countdown-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--space-xs);
}

/* Footer */
.footer {
  background: var(--color-surface);
  border-top: var(--border-width) solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none; }

/* =================== MODERN WEDDING DESIGN =================== */

/* Fullscreen Hero Section */
.hero-fullscreen {
  position: relative;
  height: 100vh;
  margin-top: -70px; /* Offset body padding-top to make truly fullscreen */
  width: 100vw;
  background:
    linear-gradient(135deg,
      rgba(44, 62, 80, 0.7) 0%,
      rgba(184, 226, 242, 0.3) 50%,
      rgba(44, 62, 80, 0.7) 100%),
    url('assets/images/couple-main.jpg') center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(184, 226, 242, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(247, 231, 206, 0.2) 0%, transparent 40%),
    linear-gradient(135deg, 
      rgba(44, 62, 80, 0.6) 0%, 
      rgba(184, 226, 242, 0.1) 50%,
      rgba(44, 62, 80, 0.6) 100%);
  animation: overlayShift 15s ease-in-out infinite;
}

@keyframes overlayShift {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.6; }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(184, 226, 242, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(247, 231, 206, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(135, 206, 235, 0.3) 0%, transparent 50%);
  animation: float 25s ease-in-out infinite;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--color-primary-light) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--color-secondary) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  animation: sparkle 30s linear infinite;
  opacity: 0.3;
  overflow: hidden;
}

@keyframes sparkle {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg); 
  }
  33% { 
    transform: translateY(-15px) translateX(10px) rotate(1deg); 
  }
  66% { 
    transform: translateY(5px) translateX(-5px) rotate(-0.5deg); 
  }
}

.hero-content-fullscreen {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.hero-text-content {
  max-width: 900px;
  text-align: center;
  color: var(--color-white);
}

.hero-badge-winter {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(184, 226, 242, 0.9);
  color: var(--color-navy);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: var(--space-xl);
  box-shadow: 0 10px 30px rgba(184, 226, 242, 0.3);
  backdrop-filter: blur(10px);
  animation: winterSparkle 3s ease-in-out infinite;
}

@keyframes winterSparkle {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(184, 226, 242, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(184, 226, 242, 0.5); }
}

.hero-title-large {
  font-family: var(--font-family-script);
  font-size: var(--font-size-hero);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-2xl);
  text-shadow:
    0 6px 12px rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(44, 62, 80, 0.3),
    0 0 30px rgba(255, 255, 255, 0.1);
  line-height: 1.2;
  letter-spacing: 0.05em;
  animation: titleGlow 4s ease-in-out infinite;
  font-style: italic;
}

@keyframes titleGlow {
  0%, 100% { 
    text-shadow: 
      0 4px 8px rgba(0, 0, 0, 0.3),
      0 8px 16px rgba(44, 62, 80, 0.2),
      0 0 20px rgba(184, 226, 242, 0.3);
  }
  50% { 
    text-shadow: 
      0 4px 8px rgba(0, 0, 0, 0.3),
      0 8px 16px rgba(44, 62, 80, 0.2),
      0 0 40px rgba(184, 226, 242, 0.6);
  }
}

.hero-subtitle-large {
  font-family: var(--font-family-elegant);
  font-size: var(--font-size-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-3xl);
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-style: italic;
  letter-spacing: 0.02em;
}

.venue-text {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  font-style: italic;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-family-heading);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-gray-700);
  margin-bottom: var(--space-3xl);
  line-height: 1.4;
}

/* Modern Countdown */
.countdown-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto var(--space-4xl);
}

.countdown-modern .countdown-item {
  background: 
    linear-gradient(145deg, 
      rgba(255, 255, 255, 0.95) 0%, 
      rgba(227, 244, 251, 0.9) 100%);
  padding: var(--space-xl);
  border-radius: 50% 20% 60% 40% / 40% 60% 30% 70%;
  box-shadow: 
    0 15px 40px rgba(184, 226, 242, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(184, 226, 242, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.countdown-modern .countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(184, 226, 242, 0.2), 
    transparent);
  transition: left 0.6s ease;
}

.countdown-modern .countdown-item:hover {
  transform: translateY(-8px) scale(1.05);
  border-radius: 40% 60% 50% 30% / 60% 40% 70% 50%;
  box-shadow: 
    0 25px 60px rgba(184, 226, 242, 0.4),
    0 10px 25px rgba(0, 0, 0, 0.15);
}

.countdown-modern .countdown-item:hover::before {
  left: 100%;
}

.countdown-modern .countdown-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.countdown-modern .countdown-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--space-xs);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-primary);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Modern Sections */
.section-modern {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  position: relative;
}

.section-alt {
  background:
    radial-gradient(circle at 10% 20%, rgba(135, 206, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(184, 226, 242, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.06) 0%, transparent 70%),
    linear-gradient(135deg,
      rgba(232, 245, 255, 0.3) 0%,
      rgba(225, 248, 255, 0.3) 100%);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(168, 196, 162, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(184, 226, 242, 0.1) 1px, transparent 1px);
  background-size: 100px 100px, 60px 60px;
  animation: backgroundFloat 40s linear infinite;
  opacity: 0.5;
}

@keyframes backgroundFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-4xl);
}

.section-title {
  font-family: var(--font-family-elegant);
  font-size: var(--font-size-4xl);
  background: linear-gradient(135deg,
    var(--color-navy) 0%,
    var(--color-primary) 50%,
    var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
  position: relative;
  text-align: center;
  animation: gradientShift 8s ease-in-out infinite;
  font-style: italic;
  letter-spacing: 0.01em;
  font-weight: 500;
}

@keyframes gradientShift {
  0%, 100% {
    background: linear-gradient(135deg,
      var(--color-navy) 0%,
      var(--color-primary) 50%,
      var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  50% {
    background: linear-gradient(135deg,
      var(--color-secondary) 0%,
      var(--color-accent) 50%,
      var(--color-sage) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 50%,
    var(--color-accent) 100%);
  border-radius: 10px;
  animation: underlineGlow 3s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(184, 226, 242, 0.5);
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.7);
    transform: translateX(-50%) scaleX(1.1);
  }
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Welcome Content */
.welcome-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.welcome-text p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

.welcome-text .highlight {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-primary);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-secondary), var(--color-sage));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: var(--space-4xl);
  position: relative;
}

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

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--color-white);
  border: 3px solid var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.timeline-content {
  width: 45%;
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 55%;
}

.timeline-time {
  display: inline-block;
  background: var(--color-sage);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Story Section */
.story-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.story-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--color-border);
}

.story-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.story-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.story-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gray-300);
}

.story-dot.active {
  background: var(--color-sage);
  box-shadow: 0 0 0 4px rgba(156, 175, 136, 0.2);
}

.story-line {
  width: 2px;
  height: 40px;
  background: var(--color-gray-300);
}

/* Forms */
.rsvp-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.rsvp-form {
  background: var(--color-white);
  padding: var(--space-3xl);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-base);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  font-size: var(--font-size-base);
  color: var(--color-text);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(100, 100, 100, 0.6);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(184, 226, 242, 0.6);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(184, 226, 242, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-input:focus::placeholder,
.form-textarea:focus::placeholder {
  transform: translateY(-8px);
  font-size: 0.85em;
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  border-color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
  transform: scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-dark) 100%);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: var(--color-white);
  transform: scale(1.05) translateY(-3px);
  box-shadow:
    0 15px 40px rgba(135, 206, 235, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-navy);
  border: 2px solid var(--color-primary);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--color-primary);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.btn-outline:hover {
  color: var(--color-white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(184, 226, 242, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.btn-outline:hover::before {
  width: 300%;
  height: 300%;
}

.btn-xl {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

/* Cards */
.accommodation-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.accommodation-card,
.contact-card {
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(227, 244, 251, 0.8) 100%);
  padding: var(--space-2xl);
  border-radius: 30% 70% 60% 40% / 40% 60% 70% 30%;
  box-shadow: 
    0 15px 40px rgba(184, 226, 242, 0.2),
    0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(184, 226, 242, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.accommodation-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-accent),
    var(--color-primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accommodation-card:hover,
.contact-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-radius: 60% 40% 50% 70% / 30% 60% 40% 50%;
  box-shadow: 
    0 25px 60px rgba(184, 226, 242, 0.3),
    0 10px 25px rgba(0, 0, 0, 0.12);
}

.accommodation-card:hover::before,
.contact-card:hover::before {
  opacity: 0.3;
}

.accommodation-distance {
  color: var(--color-sage);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.accommodation-contact {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* Gifts Section */
.gifts-content {
  max-width: 700px;
  margin: 0 auto;
}

.gift-message {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.gift-message p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

.bank-info {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--color-border);
}

.bank-info h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.bank-info p {
  font-family: monospace;
  background: var(--color-gray-50);
  padding: var(--space-sm);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-sm);
}

/* Navigation Updates */
.nav-menu {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-sage);
  text-decoration: none;
}

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

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

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Enhanced Mobile Responsivity */
@media (max-width: 768px) {
  :root {
    --font-size-3xl: clamp(1.5rem, 6vw, 2rem);
    --font-size-4xl: clamp(1.875rem, 7vw, 2.5rem);
    --font-size-5xl: clamp(2.25rem, 8vw, 3rem);
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .hero-actions .btn {
    width: 100%;
    min-height: 54px; /* Touch-friendly */
    font-size: var(--font-size-lg);
  }
  
  .countdown-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 400px;
  }
  
  .countdown-modern .countdown-item {
    padding: var(--space-lg);
    min-height: 100px;
  }
  
  .hero-image {
    max-height: 350px;
    border-radius: 40% 60% 50% 30%;
  }
  
  .announcement-placeholder {
    padding: var(--space-xl);
    border-radius: 30% 70% 40% 60% / 50% 50% 60% 40%;
  }
  
  /* Story sections mobile optimization */
  .story-photos {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  /* Remove conflicting mobile styles - using main responsive design */
  
  /* Cards mobile enhancement */
  .accommodation-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .accommodation-card,
  .contact-card {
    padding: var(--space-xl);
    border-radius: 25% 75% 50% 50% / 50% 50% 75% 25%;
  }
  
  /* Touch-friendly form elements */
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 48px;
    font-size: 16px; /* Prevent zoom on iOS */
    border-radius: 15px;
    border-width: 2px;
  }
  
  .btn {
    min-height: 48px;
    padding: var(--space-md) var(--space-lg);
    border-radius: 25px;
  }
  
  .btn-xl {
    min-height: 54px;
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--font-size-lg);
  }
  
  /* Navigation improvements */
  .nav-link {
    padding: var(--space-md);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Map buttons touch-friendly */
  .map-link .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Hotel links grid on mobile */
  .hotel-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
  }
  
  .hotel-link {
    padding: var(--space-md);
    text-align: center;
    border-radius: 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Large mobile / small tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .countdown-modern {
    grid-template-columns: repeat(4, 1fr);
    max-width: 700px;
  }
  
  .story-photos {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    gap: 2rem;
  }

  /* Force single column for 3 images on tablet */
  .story-photos:has(img:nth-child(3):last-child) {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  /* Keep 2 columns for exactly 2 images on tablet */
  .story-photos:has(img:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }
  
  .accommodation-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Advanced Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideInUp 0.8s ease-out;
}

/* Intersection Observer Classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================== NEW SECTIONS STYLES =================== */

/* Hero Images */
.couple-photo, .wedding-announcement {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.hero-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: 50% 20% 60% 40%;
  box-shadow: 
    0 20px 60px rgba(184, 226, 242, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gentleFloat 8s ease-in-out infinite;
}

.hero-image:hover {
  border-radius: 40% 60% 50% 20%;
  transform: scale(1.02) rotate(1deg);
  box-shadow: 
    0 30px 80px rgba(184, 226, 242, 0.6),
    0 15px 40px rgba(0, 0, 0, 0.15);
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(0.5deg); }
  66% { transform: translateY(4px) rotate(-0.3deg); }
}

.announcement-image {
  max-height: 350px;
  border-radius: 30% 70% 40% 60%;
  box-shadow: 0 15px 40px rgba(135, 206, 235, 0.3);
}

/* Wedding Announcement Placeholder */
.announcement-placeholder {
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.95) 0%, 
      rgba(227, 244, 251, 0.9) 100%);
  padding: var(--space-3xl);
  border-radius: 40% 60% 50% 80% / 60% 40% 80% 50%;
  box-shadow: 
    0 25px 80px rgba(184, 226, 242, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-align: center;
  border: 2px solid rgba(184, 226, 242, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.announcement-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg, 
    transparent 30%, 
    rgba(184, 226, 242, 0.1) 50%, 
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.announcement-placeholder:hover {
  transform: translateY(-5px) scale(1.02);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 70%;
  box-shadow: 
    0 35px 100px rgba(184, 226, 242, 0.4),
    0 15px 40px rgba(0, 0, 0, 0.15);
}

.announcement-placeholder h2 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-md);
}

.announcement-date {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.announcement-venue {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.announcement-decoration {
  font-size: var(--font-size-2xl);
  animation: heartbeat 2s ease-in-out infinite;
  display: inline-block;
  color: var(--color-primary);
  filter: drop-shadow(0 2px 4px rgba(135, 206, 235, 0.3));
}

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

/* Ceremony Section */
.ceremony-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.church-image, .celebration-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Photo Placeholders */
.photo-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-gray-800);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.photo-placeholder h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-gray-800);
}

.photo-placeholder p {
  color: var(--color-gray-600);
  font-style: italic;
}

.map-link {
  margin: var(--space-lg) 0;
}

/* Celebration Section */
.celebration-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.schedule {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

.schedule-item {
  display: flex;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item .time {
  font-weight: 600;
  color: var(--color-primary);
  min-width: 80px;
  margin-right: var(--space-lg);
}

.schedule-item .event {
  flex: 1;
}

/* Gift Registry */
.shared-table {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-2xl);
  text-align: center;
}

/* Accommodation Options */
.accommodation-options {
  display: grid;
  gap: var(--space-3xl);
}

.accommodation-option {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

.hotel-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.hotel-link {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-sage);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  transition: background var(--transition-base);
}

.hotel-link:hover {
  background: var(--color-primary);
  text-decoration: none;
}

/* Story Section */
.our-story {
  max-width: 900px;
  margin: 0 auto;
}

.story-part {
  margin-bottom: 5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.story-part p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

.story-part p strong {
  color: var(--color-primary);
  font-weight: 600;
}

.story-part h3 {
  text-align: center;
  margin: 4rem auto 2.5rem;
  font-family: var(--font-family-script);
  color: var(--color-primary);
  font-size: var(--font-size-3xl);
  font-style: italic;
  letter-spacing: 0.02em;
}

.story-photos {
  display: grid;
  gap: 2.5rem;
  margin: 3rem auto;
  padding: 0;
  justify-items: center;
  align-items: start;
  max-width: 100%;
}

/* Specific layouts based on number of images - LARGER SIZES */
.story-photos {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  max-width: 1200px;
}

/* Override for exactly 1 image - BIGGER */
.story-photos img:only-child {
  max-width: 550px;
  margin: 0 auto;
}

/* Override for exactly 2 images - BIGGER */
.story-photos:has(img:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

/* Override for exactly 3 images - BIGGER */
.story-photos:has(img:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
}

/* Fallback for browsers without :has() support */
@supports not (selector(:has(img))) {
  .story-photos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 900px;
  }
}

.story-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(135, 206, 235, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
  background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
  display: block;
  margin: 0;
  cursor: pointer;
}

/* Add subtle zoom icon overlay on hover */
.story-image::after {
  content: '🔍';
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.story-image:hover::after,
.story-image-large::after {
  content: '🔍';
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.story-image:hover::after,
.story-image-large:hover::after {
  opacity: 1;
}

.story-image:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 10px 25px rgba(135, 206, 235, 0.3);
  border-radius: 25px;
  filter: brightness(1.08) contrast(1.12) saturate(1.15);
}

.story-image:nth-child(even) {
  border-radius: 25px 5px 25px 5px;
}

.story-image:nth-child(even):hover {
  border-radius: 30px 10px 30px 10px;
  transform: scale(1.03) translateY(-8px) rotate(-1deg);
}

.story-image:nth-child(3n) {
  border-radius: 5px 25px 5px 25px;
}

.story-image:nth-child(3n):hover {
  border-radius: 10px 30px 10px 30px;
  transform: scale(1.03) translateY(-8px) rotate(1deg);
}

/* Image error states */
.story-image.error,
.story-image-large.error {
  background: linear-gradient(135deg,
    rgba(184, 226, 242, 0.1) 0%,
    rgba(184, 226, 242, 0.3) 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.story-image.error::before,
.story-image-large.error::before {
  content: "📷";
  font-size: 3rem;
  color: rgba(135, 206, 235, 0.6);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.image-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(135, 206, 235, 0.6);
  pointer-events: none;
  z-index: 1;
}

/* Lightbox for image enlargement */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

/* Prevent page scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

.story-photo-single, .story-photo-final {
  text-align: center;
  margin: 3rem auto;
  max-width: 600px;
  padding: 0 1rem;
}

.story-photo-single p, .story-photo-final p {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.6;
}

.story-image-large {
  width: 100%;
  max-width: 750px;
  height: auto;
  object-fit: contain;
  border-radius: 25px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 10px 30px rgba(135, 206, 235, 0.25);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.story-image-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(184, 226, 242, 0.1) 0%, 
    transparent 50%, 
    rgba(135, 206, 235, 0.1) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-image-large:hover {
  border-radius: 30px;
  transform: scale(1.02) translateY(-3px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.15),
    0 15px 40px rgba(135, 206, 235, 0.35);
  filter: brightness(1.08) contrast(1.12) saturate(1.15);
}

.story-image-large:hover::before {
  opacity: 1;
}

.gratitude {
  text-align: center;
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  margin: 4rem auto 3rem;
  font-weight: 600;
  font-family: var(--font-family-script);
  font-style: italic;
  max-width: 600px;
  padding: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(135, 206, 235, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ceremony-info,
  .celebration-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .story-photos {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 2rem;
    margin: 2rem auto;
  }

  .story-image {
    max-width: 100%;
    height: auto;
  }

  .story-image-large {
    max-width: 100%;
    height: auto;
  }

  /* Ensure single column on mobile */
  .story-photos:has(img:nth-child(2):last-child),
  .story-photos:has(img:nth-child(3):last-child) {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .story-photos img:only-child {
    max-width: 100%;
  }

  .story-part {
    padding: 0 1rem;
    margin-bottom: 3rem;
  }
  
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .schedule-item .time {
    min-width: auto;
    margin-right: 0;
    margin-bottom: var(--space-xs);
  }
  
  .hotel-links {
    justify-content: center;
  }
}

/* =================================================================
   FULLSCREEN HERO STYLES - WINTER THEME
   ================================================================= */

/* Fullscreen hero styles */
.hero-fullscreen {
  height: 100vh;
  margin-top: -70px; /* Offset body padding-top to make truly fullscreen */
  position: relative;
  background-image: url('../images/couple-main.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(44, 62, 80, 0.85) 25%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(44, 62, 80, 0.85) 75%,
    rgba(0, 0, 0, 0.8) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-content-fullscreen {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}


.hero-title-large {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  margin: 0 0 1rem 0;
  color: white;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.02em;
}

.hero-subtitle-large {
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  font-weight: 300;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
  margin: 0 0 3rem 0;
  letter-spacing: 0.1em;
}

.venue-text {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.5rem;
  display: block;
}

.countdown-fullscreen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.countdown-fullscreen .countdown-item {
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* Remove box styling completely */
.countdown-fullscreen .countdown-item::before {
  display: none;
}

.countdown-fullscreen .countdown-item:hover {
  transform: translateY(-3px);
}

.countdown-fullscreen .countdown-item:hover .countdown-number {
  color: var(--color-white);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(184, 226, 242, 0.3);
}

/* Add elegant separators between countdown items */
.countdown-fullscreen .countdown-item:not(:last-child)::after {
  content: ':';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 300;
}

/* Remove hover box effect */
.countdown-fullscreen .countdown-item:hover::before {
  display: none;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.countdown-fullscreen .countdown-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-white);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 0.9;
  font-family: var(--font-family-heading);
  letter-spacing: -0.02em;
}

.countdown-fullscreen .countdown-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-family: var(--font-family-primary);
}

.hero-actions-fullscreen {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-white:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.btn-outline-white:hover {
  color: white;
  border-color: var(--color-primary);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline-white:hover:before {
  width: 300%;
  height: 300%;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: white;
  text-align: center;
  animation: bounceArrow 2s infinite;
}


.scroll-indicator::after {
  content: "↓";
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Mobile optimizations for fullscreen hero */
@media (max-width: 768px) {
  .hero-fullscreen {
    background-attachment: scroll;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 10vh;
  }
  
  .hero-content-fullscreen {
    padding: 1rem;
    max-width: 100%;
    width: 100%;
  }
  
  .countdown-fullscreen {
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .countdown-fullscreen .countdown-item {
    flex: 0 1 auto;
  }

  .countdown-fullscreen .countdown-number {
    font-size: 2.5rem;
  }

  .countdown-fullscreen .countdown-label {
    font-size: 0.8rem;
  }

  /* Adjust separators on mobile */
  .countdown-fullscreen .countdown-item:not(:last-child)::after {
    right: -0.75rem;
    font-size: 1.5rem;
  }
  
  .hero-actions-fullscreen {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .btn-outline-white {
    width: 100%;
    max-width: 250px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* =================================================================
   CELEBRATION INFO CARD
   ================================================================= */

.celebration-info-card {
  background: var(--color-bg-subtle);
  border: 2px solid var(--color-primary-light);
  border-radius: 30px 10% 30px 10%;
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(184, 226, 242, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.celebration-info-card:hover {
  border-radius: 20% 30px 20% 30px;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(184, 226, 242, 0.25),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

.venue-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  animation: gentleFloat 4s ease-in-out infinite;
}

.celebration-info-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-xl);
}

.celebration-info-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
}

/* =================================================================
   SCROLL ANIMATIONS & STAGGERED EFFECTS
   ================================================================= */

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-animation {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-animation.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered delays for different elements */
.stagger-animation:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation:nth-child(6) { transition-delay: 0.6s; }

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.is-visible,
.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* =================================================================
   LOADING STATES & SMOOTH TRANSITIONS
   ================================================================= */

.countdown-loading {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.countdown-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

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

.countdown-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Countdown items visible by default, animate when loaded */
.countdown-fullscreen .countdown-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation states for smooth loading */
.countdown-fullscreen .countdown-item.initial {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
}

.countdown-item.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Smooth number transitions */
.countdown-number {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-number.updating {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.8);
}

/* Loading skeleton for form elements */
.form-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: loading-skeleton 2s infinite;
  border-radius: 25px;
  height: 50px;
  margin-bottom: 1rem;
}

@keyframes loading-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced button loading states */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-loading 1s linear infinite;
}

@keyframes button-loading {
  to {
    transform: rotate(360deg);
  }
}

/* Map Modal Styles */
.map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.map-modal-content {
  background: var(--color-white);
  border-radius: var(--border-radius-xl);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease;
}

.map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-primary-light);
}

.map-modal-header h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: var(--font-size-xl);
}

.map-modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--color-gray-600);
  padding: var(--space-sm);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.map-modal-close:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-800);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.map-modal-footer {
  padding: var(--space-xl);
  text-align: center;
  background: var(--color-gray-50);
}

.map-modal-footer p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 768px) {
  .map-modal-content {
    width: 95%;
    margin: var(--space-lg);
  }

  .map-container iframe {
    height: 300px;
  }

  .map-modal-header,
  .map-modal-footer {
    padding: var(--space-lg);
  }
}

/* Gift Registry Styles */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.gift-item {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.gift-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.gift-item.reserved {
  opacity: 0.7;
  border-color: var(--color-gray-300);
}

.gift-info {
  margin-bottom: var(--space-lg);
}

.gift-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-md);
}

.gift-name {
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-lg);
}

.gift-description {
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}

.gift-price {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.gift-url {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.gift-url:hover {
  text-decoration: underline;
}

.gift-actions {
  text-align: center;
}

.gift-reserved {
  display: inline-block;
  background: var(--color-gray-200);
  color: var(--color-gray-600);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.reserve-gift-btn {
  width: 100%;
}

.gift-empty,
.gift-error {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-text-light);
}

.loading-spinner {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .gifts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Enhanced Microinteractions */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 10px 30px rgba(135, 206, 235, 0.2),
    0 5px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(135, 206, 235, 0.1);
  transform: translateY(-5px);
}

.accommodation-card:hover,
.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.15),
    0 15px 30px rgba(135, 206, 235, 0.2);
}

/* Smooth scroll indicator animation */
.scroll-indicator {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Enhanced navigation hover */
.nav-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Interactive sections */
.section-modern {
  transition: all 0.6s ease;
}

.section-modern:hover {
  transform: translateY(-2px);
}

/* Enhanced button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Staggered animations for lists */
.stagger-animation {
  animation: fadeInUp 0.6s ease-out;
}

.stagger-animation:nth-child(2) { animation-delay: 0.1s; }
.stagger-animation:nth-child(3) { animation-delay: 0.2s; }
.stagger-animation:nth-child(4) { animation-delay: 0.3s; }
.stagger-animation:nth-child(5) { animation-delay: 0.4s; }
.stagger-animation:nth-child(6) { animation-delay: 0.5s; }

/* Alert boxes for RSVP and Gift Reservation responses */
.alert {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 2px solid #c3e6cb;
}

.alert-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 2px solid #f5c6cb;
}

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

/* Gift Registry Styles */
.gifts-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gift-item {
  background: white;
  border: 2px solid var(--color-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.gift-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(135, 206, 235, 0.2);
  transform: translateY(-2px);
}

.gift-item.reserved {
  opacity: 0.7;
  background: #f8f9fa;
}

.gift-info {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.gift-details {
  flex: 1;
}

.gift-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.gift-description {
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.gift-url {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 0.5rem;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.gift-url:hover {
  text-decoration: underline;
}

.gift-reservation-count {
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  margin-top: 0.5rem;
}

.gift-actions {
  display: flex;
  align-items: center;
}

.reserve-gift-btn {
  white-space: nowrap;
}

.gift-reserved {
  color: #6c757d;
  font-style: italic;
  font-size: 0.95rem;
}

.gift-empty,
.gift-error {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text);
}

.loading-spinner {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .gift-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .gift-actions {
    width: 100%;
  }

  .reserve-gift-btn {
    width: 100%;
  }
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-content {
  background: white;
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  transform: translateZ(0);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-text);
  font-family: var(--font-family-heading);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-gray-500);
  transition: color 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body {
  padding: 1.5rem;
}

.modal-gift-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.modal-actions .btn {
  min-width: 120px;
}

.btn-secondary {
  background: var(--color-gray-200);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-gray-300);
}

#reservation-result {
  margin-top: 1rem;
}

#reservation-result .alert {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 0;
}

/* Mobile modal adjustments */
@media (max-width: 480px) {
  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    max-width: 100%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h3 {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First Approach
   ============================================ */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --section-spacing: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section-modern {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  /* Better spacing for text content */
  p {
    margin-bottom: 1rem;
  }

  /* Stack all grids */
  .grid-2,
  .grid-3,
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Buttons take full width */
  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-actions-fullscreen {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions-fullscreen .btn {
    width: 100%;
  }

  /* Smaller countdown on mobile */
  .countdown-fullscreen {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

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

  .countdown-label {
    font-size: 0.75rem;
  }

  /* Tables scroll horizontally */
  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 0.5rem 0.25rem;
  }

  /* Story photos grid */
  .story-photos {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .story-image,
  .story-image-large {
    width: 100%;
    height: auto;
  }
}

/* Mobile (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  :root {
    --container-padding: 1.5rem;
    --section-spacing: 2.5rem;
  }

  .countdown-fullscreen {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .story-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --container-padding: 2rem;
    --section-spacing: 3rem;
  }

  .container {
    padding: 0 2rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-title-large {
    font-size: 2.5rem;
  }

  .story-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  :root {
    --container-padding: 2.5rem;
  }

  .container {
    max-width: 1140px;
  }
}

/* Large Desktop (1441px and up) */
@media (min-width: 1441px) {
  :root {
    --container-padding: 3rem;
  }

  .container {
    max-width: 1320px;
  }

  .section-modern {
    padding: 3.5rem 0;
  }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-fullscreen {
    min-height: auto;
    padding: 2rem 0;
  }

  .countdown-fullscreen {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .countdown-number {
    font-size: 2rem;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .nav-toggle,
  .btn,
  .scroll-indicator {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* Improved touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn,
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    padding: 1rem;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #0066CC;
    --color-text: #000000;
  }

  .btn {
    border: 2px solid currentColor;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Uncomment when ready for dark mode
  :root {
    --color-background: #1a1a1a;
    --color-text: #e0e0e0;
    --color-surface: #2a2a2a;
  }
  */
}
