@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ========================================
   ELEVATED DESIGN SYSTEM
   ======================================== */
:root {
  /* Enhanced Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-display: 'Great Vibes', cursive;
  --font-elegant: 'Playfair Display', serif;
  --letter-spacing-regular: 3px;
  --letter-spacing-wide: 5px;
  --letter-spacing-tight: 1px;
  
  /* Sophisticated Color Palette */
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --gray-dark: #343a40;
  --accent-primary: #2c3e50;
  --accent-secondary: #34495e;
  --accent-light: #ecf0f1;
  --cream: #faf8f3;
  --charcoal: #2c2c2c;
  --silver: #bdc3c7;
  
  /* Enhanced Effects */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(44, 62, 80, 0.3);
  --border-radius: 8px;
  --border-radius-large: 16px;
  --border-radius-xl: 24px;
  
  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-text: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


*{
  font-family: var(--font-primary);
}

/* ========================================
   ELEVATED NAVIGATION
   ======================================== */
.navbar {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
  transition: var(--transition-smooth);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-regular);
  font-size: 1.8rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-smooth);
}

.navbar-brand:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(44, 62, 80, 0.3));
}

.nav-link {
  font-weight: 500;
  letter-spacing: var(--letter-spacing-tight);
  position: relative;
  transition: var(--transition-smooth);
  color: var(--charcoal) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

.nav-link:hover {
  color: var(--accent-primary) !important;
  transform: translateY(-2px);
}


/* ========================================
   ELEVATED HERO SECTION
   ======================================== */
.dark-opacity-section {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: white;
  animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

.title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  padding-top: 0.5rem;
  letter-spacing: var(--letter-spacing-regular);
  background: linear-gradient(135deg, #ffffff 0%, #ecf0f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
  text-align: center;
}

/* Fine-tune alignment of the & symbol */
.title::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
}


.subtitle {
  font-family: var(--font-elegant);
  font-weight: 400;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  letter-spacing: var(--letter-spacing-tight);
  background: linear-gradient(135deg, #ffffff 0%, #ecf0f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.subtitle-date{
  letter-spacing: var(--letter-spacing-regular);
  
}

.subtitle-date,
.subtitle-location {
  flex: 1;
  text-align: center;
}


/* ========================================
   ELEVATED CAROUSEL
   ======================================== */
.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0 auto;
}

.carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 2;
}

.carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
  z-index: 2;
}

.carousel-wrapper {
  overflow: hidden;
  height: 100%;
}

.carousel-track {
  display: flex;
  width: fit-content;
  will-change: transform;
  height: 100%;
}

.carousel-slide {
  flex: 0 0 400px;
  height: 100%;
  margin-right: 5px;
  overflow: hidden;
}

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

/* Image loading optimization */
.carousel-slide img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide img[loading="lazy"].loaded {
  opacity: 1;
}

/* Advanced lazy loading styles */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

img[loading="lazy"].loading {
  opacity: 0.3;
  filter: blur(2px);
}

img[loading="lazy"].loaded {
  opacity: 1;
  filter: none;
}

img[loading="lazy"].error {
  opacity: 0.5;
  filter: grayscale(100%);
}

/* Critical images should load immediately */
img[loading="eager"] {
  opacity: 1;
}

.carousel-controls {
  display: none;
}

/* ========================================
   GALLERY LIGHTBOX (for carousel images)
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  color: var(--gray-light);
  transform: scale(1.1);
}

.carousel-slide {
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
  mix-blend-mode: overlay;
}

.carousel-slide:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.carousel-slide:hover::before {
  opacity: 0.1;
}

.carousel-slide img {
  transition: var(--transition-smooth);
}

.carousel-slide:hover img {
  transform: scale(1.1);
}

/* ========================================
   ELEVATED INVITATION SECTION
   ======================================== */
.invitation-section {
  background: var(--cream);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.invitation-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-soft);
  z-index: 0;
}

.invitation-container {
  width: 70%!important;
  position: relative;
  z-index: 1;
}

.invitation-card {
  background: transparent;
  padding: 3rem 2rem;
  border-radius: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  transition: none;
}

.invitation-card:hover {
  transform: none;
  box-shadow: none;
}

.invitation-title {
  font-family: var(--font-display);
  font-size: 3rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-regular);
  text-align: left;
  position: relative;
  line-height: 1.2;
  padding-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.invitation-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}


.invitation-card button {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-tight);
  border: 2px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius-large);
  transition: var(--transition-bounce);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.invitation-card button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: var(--transition-smooth);
  z-index: -1;
}

.invitation-cta:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.invitation-cta:hover::before {
  left: 0;
}

.invitation-text {
  font-family: var(--font-elegant);
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: left;
  font-weight: 400;
  opacity: 0.9;
}

.invitation-text:last-child {
  margin-bottom: 0;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 350px;
    margin-right: 4px;
  }
}

@media (max-width: 768px) {
  .dark-opacity-section {
    height: 80vh;
  }

  .title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    padding-top: 0.3rem;
  }

  .subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    flex-direction: column;
    gap: 0.5rem;
  }

  .subtitle-date,
  .subtitle-location {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

  .subtitle-separator {
    display: none;
  }

  .invitation-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .wedding-section-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .wedding-countdown h2 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .wedding-countdown {
    min-height: 60vh;
  }

  .music-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .carousel-slide {
    flex: 0 0 300px;
    margin-right: 3px;
  }

  .footer-info {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .carousel-slide {
    flex: 0 0 250px;
    margin-right: 2px;
  }
}

@media (max-width: 768px) {
  .invitation-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .invitation-cta {
    padding: 0.8rem 2rem;
    margin-bottom: 1.5rem;
  }
  
  .invitation-text {
    font-size: 1rem;
  }
  
  .invitation-card {
    padding: 2rem 1.5rem;
  }
  
  .wedding-countdown-item {
    padding: 1.5rem 0.8rem;
  }
  
}

@media (max-width: 480px) {
  .dark-opacity-section {
    height: 40vh;
  }

  .title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    padding-top: 2rem;
  }

  .subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    flex-direction: column;
    gap: 0.3rem;
  }

  .subtitle-date,
  .subtitle-location {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }

  .subtitle-separator {
    display: none;
  }


  .wedding-section-title {
    font-size: 2.5rem!important;
  }

  .wedding-countdown h2 {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
  }

  .wedding-countdown {
    min-height: 50vh;
  }

  .music-title {
    font-size: 2.5rem!important;
  }
  
  .carousel-slide {
    flex: 0 0 200px;
    margin-right: 2px;
  }
  
  .invitation-section {
    padding: 4rem 0;
  }
  
  .invitation-cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .invitation-text {
    font-size: 1rem;
  }
  
  .invitation-card {
    padding: 1.5rem 1rem;
  }
  
  .wedding-countdown-item {
    padding: 1rem 0.5rem;
  }
  
  .wedding-timeline-text {
    padding: 1.5rem;
  }
  
  .wedding-timeline-text h3 {
    font-size: 1.2rem;
  }
  
  .wedding-timeline-text .lead {
    font-size: 1rem;
  }
  
  .music-subtitle {
    font-size: 1rem;
  }
  
  .music-header {
    margin-bottom: 3rem;
  }
  
  .wedding-rsvp-form {
    padding: 2rem 1.5rem;
  }
  
  .wedding-rsvp-form .wedding-rsvp-button {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .footer-info {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-item {
    font-size: 1rem;
  }
  
  .footer-title {
    font-size: 2rem;
  }
  
}

@media (max-width: 360px) {
  .carousel-slide {
    flex: 0 0 180px;
    margin-right: 1px;
  }
  
}

/* ========================================
   ELEVATED COUNTDOWN SECTION
   ======================================== */
.wedding-countdown {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.wedding-countdown .position-absolute {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.wedding-countdown img {
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.1s ease-out;
  filter: brightness(0.7) contrast(1.1);
}

/* Enhanced overlay for countdown */
.wedding-countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

/* Enhanced countdown content */
.wedding-countdown .position-relative {
  z-index: 2;
}

.wedding-countdown h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, #ffffff 0%, #ecf0f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-top: 0.5rem;
  line-height: 1.3;
  opacity: 0.9;
}


.wedding-countdown-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-large);
  padding: 2rem 1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.wedding-countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-soft);
  transition: var(--transition-smooth);
  z-index: -1;
}

.wedding-countdown-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.wedding-countdown-item:hover::before {
  left: 0;
}

.wedding-countdown-item .display-6 {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}


.wedding-countdown-item .text-uppercase {
  font-family: var(--font-elegant);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: var(--letter-spacing-tight);
}

/* Parallax zoom effect - starts at 1.1x scale and zooms to 1.5x */
.parallax-zoom {
  transform: scale(1.5);
}


/* ========================================
   ELEVATED SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.animate-scale.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ELEVATED SECTION SPACING
   ======================================== */
.wedding-story,
.music-section,
.wedding-rsvp {
  padding: 6rem 0;
  position: relative;
}

.wedding-story {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.wedding-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.02) 0%, rgba(52, 73, 94, 0.05) 100%);
  z-index: 0;
}

.music-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.music-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.02) 0%, rgba(52, 73, 94, 0.05) 100%);
  z-index: 0;
}

.music-container {
  position: relative;
  z-index: 1;
}

.music-header {
  text-align: center;
  margin-bottom: 4rem;
}

.music-title {
  font-family: var(--font-display);
  font-size: 3rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  position: relative;
  padding-top: 0.5rem;
  line-height: 1.3;
}

.music-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.music-header p {
  margin-top: 2rem;
  font-family: var(--font-elegant);
  font-size: 1.2rem;
  color: var(--charcoal);
  opacity: 0.8;
  font-style: italic;
}

.music-content {
  max-width: 800px;
  margin: 0 auto;
}

.spotify-embed {
  transition: var(--transition-smooth);
}

.spotify-embed:hover {
  transform: translateY(-10px);
}

.wedding-rsvp {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.wedding-rsvp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.02) 0%, rgba(52, 73, 94, 0.05) 100%);
  z-index: 0;
}

.wedding-rsvp .container {
  position: relative;
  z-index: 1;
}

.wedding-rsvp-form {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: none;
}

.wedding-rsvp-form:hover {
  transform: none;
  box-shadow: none;
}

.wedding-form-input {
  border: none;
  border-bottom: 2px solid rgba(44, 62, 80, 0.2);
  border-radius: 0;
  padding: 1rem 0;
  font-family: var(--font-elegant);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  background: transparent;
  backdrop-filter: none;
  color: var(--charcoal);
}

.wedding-form-input:focus {
  outline: none;
  border-bottom-color: var(--accent-primary);
  box-shadow: none;
  background: transparent;
}

.wedding-form-input::placeholder {
  color: var(--gray-medium);
  opacity: 0.6;
  font-style: italic;
}

.wedding-rsvp-form .wedding-rsvp-button {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: var(--letter-spacing-tight);
  border: 2px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-large);
  transition: var(--transition-bounce);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.wedding-rsvp-form .wedding-rsvp-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: var(--transition-smooth);
  z-index: -1;
}

.wedding-rsvp-form .wedding-rsvp-button:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.wedding-rsvp-form .wedding-rsvp-button:hover::before {
  left: 0;
}

.form-label {
  font-family: var(--font-elegant);
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* ========================================
   ELEVATED FOOTER SECTION
   ======================================== */
.footer-section {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 73, 94, 0.9) 100%);
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
}

.footer-content {
  text-align: center;
  padding: 3rem 0;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #ecf0f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
  line-height: 1.3;
}

.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-elegant);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-smooth);
}

.footer-item:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.footer-item i {
  color: var(--accent-light);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

/* ========================================
   ELEVATED SECTION TITLES
   ======================================== */
 .wedding-section-title {
  font-family: var(--font-display);
  font-size: 3rem!important;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
  position: relative;
  text-align: center;
  padding-top: 0.5rem;
  line-height: 1.3;
}

.wedding-section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* ========================================
   ELEVATED STORY SECTION
   ======================================== */
.wedding-story .container {
  position: relative;
  z-index: 1;
}

.wedding-timeline-image {
  position: relative;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
}

.wedding-timeline-image:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.wedding-timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.wedding-timeline-text {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-large);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(44, 62, 80, 0.1);
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  position: relative;
}

.wedding-timeline-text:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.wedding-timeline-text h3 {
  font-family: var(--font-elegant);
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.wedding-timeline-text h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
}

.wedding-timeline-text .lead {
  font-family: var(--font-elegant);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 0;
  opacity: 0.9;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top i {
  transition: var(--transition-smooth);
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ========================================
   IMAGE LOADING OPTIMIZATION
   ======================================== */

/* Image loading states */
img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img.loaded {
  opacity: 1;
}

/* Ensure critical images load immediately */
img[loading="eager"] {
  opacity: 1;
}

/* Picture element optimization */
picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

/* Smooth image transitions */
.carousel-slide img,
.wedding-timeline-image img {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

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

/* Loading placeholder for images */
.wedding-timeline-image {
  position: relative;
  overflow: hidden;
}

.wedding-timeline-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
  z-index: 1;
}

.wedding-timeline-image img.loaded {
  position: relative;
  z-index: 2;
}

.wedding-timeline-image img.loaded + ::before {
  display: none;
}

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