:root {
  /* Color Palette */
  --color-blush-bg: #F5DCD8;
  --color-blush-light: #FBEDEA;
  --color-gold: #C9A227;
  --color-gold-light: #E8C874;
  --color-gold-deep: #9C7A1E;
  --color-pearl: #FDF8F2;
  --color-mint: #A9C8B0;
  --color-rose: #E8A0A8;
  --color-text-dark: #4A2C2A;
  --color-text-muted: #8A6A5E;

  /* Typography */
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s ease-in-out;
}

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

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

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

/* Lock scroll during entrance screen overlay */
body.entrance-active {
  overflow: hidden !important;
  touch-action: none !important;
}

/* Cinematic Entrance Screen Overlay */
.entrance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1), transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.entrance-overlay.fade-out {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

/* Desktop & Tablet Video Behavior: Centered, Native Aspect Ratio */
.entrance-video {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Mobile Screen Video Behavior: Edge-to-Edge Fill */
@media (max-width: 768px) {
  .entrance-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}

/* Interactive Tap Controls Overlay */
.entrance-controls {
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10010;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.entrance-controls.hidden-controls {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  pointer-events: none;
}

/* Ultra-Modern Glassmorphic Circular Tap Button */
.tap-start-btn {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(232, 200, 116, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(232, 200, 116, 0.4), 0 0 50px rgba(232, 200, 116, 0.2);
  outline: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tap-start-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(232, 200, 116, 0.65), 0 0 65px rgba(232, 200, 116, 0.35);
}

/* Expanding Touch Ripple Rings */
.ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 116, 0.6);
  pointer-events: none;
}

.ring-1 {
  width: 76px;
  height: 76px;
  animation: rippleExpand 2.2s infinite ease-out;
}

.ring-2 {
  width: 76px;
  height: 76px;
  animation: rippleExpand 2.2s infinite ease-out 0.8s;
}

@keyframes rippleExpand {
  0% {
    width: 76px;
    height: 76px;
    opacity: 0.8;
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
  }
}

/* Tapping Hand Icon Motion */
.tap-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tap-hand-icon {
  font-size: 2rem;
  animation: softTapMotion 1.5s infinite ease-in-out;
  display: inline-block;
}

@keyframes softTapMotion {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(0.92);
  }
}

/* Glowing White Uppercase Text */
.tap-btn-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #FFFFFF;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.5);
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* Ambient Particles */
#ambient-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold-light);
  border-radius: 50%;
  opacity: 0.6;
  animation: floatUp linear infinite;
  box-shadow: 0 0 4px var(--color-gold);
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* Section Structure */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Section Background Images (Centered for each section) */
#hero { background-image: url('Assets/bg_hero_desktop.webp'); }
#countdown { background-image: url('Assets/bg1_desktop.webp'); }
#couple {
  background-image: url('Assets/bg2_desktop.webp');
  padding-bottom: calc(4rem + 40px);
}
#invitation { background-image: url('Assets/bg3_desktop.webp'); }
#story { background-image: url('Assets/bg1_desktop.webp'); }
#events { background-image: url('Assets/bg2_desktop.webp'); }
#location { background-image: url('Assets/bg3_desktop.webp'); }
#gallery { background-image: url('Assets/bg1_desktop.webp'); }
#rsvp { background-image: url('Assets/bg2_desktop.webp'); }

@media (max-width: 640px) {
  #hero { background-image: url('Assets/bg_hero_mobile.webp'); }
  #countdown { background-image: url('Assets/bg1_mobile.webp'); }
  #couple { background-image: url('Assets/bg2_mobile.webp'); }
  #invitation { background-image: url('Assets/bg3_mobile.webp'); }
  #story { background-image: url('Assets/bg1_mobile.webp'); }
  #events { background-image: url('Assets/bg2_mobile.webp'); }
  #location { background-image: url('Assets/bg3_mobile.webp'); }
  #gallery { background-image: url('Assets/bg1_mobile.webp'); }
  #rsvp { background-image: url('Assets/bg2_mobile.webp'); }
}

.section-divider {
  width: 100%;
  height: 35px;
  background-image: url('Assets/Gold_flower.webp');
  background-size: 35px 35px;
  background-repeat: space;
  margin-top: -17px;
  margin-bottom: -18px;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 2.5rem 2rem;
  background: rgba(253, 248, 242, 0.82);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0; /* For scroll animation */
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.section-title {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--color-gold-deep);
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Typography Helpers */
.text-center { text-align: center; }

/* 1. Hero Section */
#hero {
  padding: 0;
  justify-content: flex-start;
}

.hero-content {
  text-align: center;
  margin-top: 6vh;
  z-index: 10;
  position: relative;
  transform: translateY(35px);
}

.eyebrow {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: #4A2C2A;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(255, 255, 255, 0.85);
}

.couple-names {
  font-family: var(--font-script);
  font-size: 5.2rem;
  line-height: 1.1;
  color: #521822;
  text-shadow: 0 0 20px rgba(253, 248, 242, 0.95), 0 2px 8px rgba(74, 21, 33, 0.2);
  letter-spacing: 1px;
}

.ampersand {
  color: var(--color-gold-deep);
  font-size: 4.4rem;
  padding: 0 10px;
  text-shadow: 0 0 12px rgba(232, 200, 116, 0.5);
}

.tagline {
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin: 0.8rem 0 0.5rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.9);
}

.date-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-gold-deep);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(3px);
}

.hero-image-wrapper {
  position: absolute;
  bottom: 20px;
  width: 100%;
  max-width: 532px;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.couple-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  color: var(--color-gold);
  width: 30px;
  height: 30px;
  animation: bounce 2s infinite;
  z-index: 30;
  cursor: pointer;
  pointer-events: auto;
}

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

/* Mobile Responsive Optimization for Hero Section */
@media (max-width: 768px) {
  .title-ornament {
    display: none;
  }

  #hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem 3rem;
    gap: 16px; /* Vertical gap between text content and couple image (max 20px) */
    position: relative;
  }

  .hero-content {
    margin-top: 0;
    transform: none;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
  }

  .eyebrow {
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    margin-bottom: 0.5rem;
  }

  .couple-names {
    font-size: 3.4rem;
    line-height: 1.15;
  }

  .ampersand {
    font-size: 2.8rem;
    padding: 0 4px;
  }

  .tagline {
    font-size: 1.02rem;
    margin: 0.5rem auto 0;
    max-width: 90%;
  }

  .hero-image-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .couple-image {
    max-height: 40vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .scroll-indicator {
    bottom: 42px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(74, 44, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .scroll-indicator svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 2rem 0.8rem 2.5rem;
    gap: 12px; /* Vertical gap max 20px on small screens */
  }

  .hero-content {
    margin-top: 0;
    transform: none;
    padding: 0 0.5rem;
  }

  .eyebrow {
    font-size: 0.82rem;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
  }

  .couple-names {
    font-size: 2.8rem;
  }

  .ampersand {
    font-size: 2.3rem;
    padding: 0 2px;
  }

  .tagline {
    font-size: 0.95rem;
    margin-top: 0.4rem;
  }

  .hero-image-wrapper {
    max-width: 280px;
    max-height: 36vh;
  }

  .couple-image {
    max-height: 36vh;
  }

  .scroll-indicator {
    width: 40px;
    height: 40px;
  }

  .scroll-indicator svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile view for short screens (mobile screen height < 800px) - 15% reduction for couple image & +20px scroll indicator shift */
@media (max-width: 768px) and (max-height: 799px) {
  .hero-image-wrapper {
    max-width: 272px;
    max-height: 34vh;
  }
  .couple-image {
    max-height: 34vh;
  }
  .scroll-indicator {
    bottom: 62px;
  }
}

@media (max-width: 480px) and (max-height: 799px) {
  .hero-image-wrapper {
    max-width: 238px;
    max-height: 30.6vh;
  }
  .couple-image {
    max-height: 30.6vh;
  }
  .scroll-indicator {
    bottom: 58px;
  }
}

/* Mobile view for tall screens (mobile screen height >= 800px) */
@media (max-width: 768px) and (min-height: 800px) {
  #hero {
    gap: 60px;
  }
  .hero-content,
  .hero-image-wrapper {
    transform: translateY(-45px);
  }
  .scroll-indicator {
    bottom: 72px;
  }
}

/* Mobile view for screen height 800px - 900px */
@media (max-width: 768px) and (min-height: 800px) and (max-height: 900px) {
  .eyebrow {
    font-size: 0.98rem;
  }
  .couple-names {
    font-size: 3.7rem;
  }
  .ampersand {
    font-size: 3.05rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
}

/* Mobile view for extra tall screens (mobile screen height >= 900px) */
@media (max-width: 768px) and (min-height: 900px) {
  .eyebrow {
    font-size: 1.05rem;
  }
  .couple-names {
    font-size: 4.0rem;
  }
  .ampersand {
    font-size: 3.3rem;
  }
  .tagline {
    font-size: 1.15rem;
  }
}

/* 2. Countdown Timer & Scratch Card */
#countdown .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#countdown .section-title {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  margin-top: 1rem;
  margin-bottom: 1.4rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
  position: relative;
}

.timer-title {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  margin-top: 2.8rem;
  margin-bottom: 1.4rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
  position: relative;
}

.timer-container {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.timer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
}

.timer-box {
  position: relative;
  background: linear-gradient(145deg, #FFFFFF 0%, #FDF8F2 100%);
  border: 2px solid transparent;
  background-image: linear-gradient(#FFFFFF, #FDF8F2), linear-gradient(135deg, #E8C874 0%, #9C7A1E 50%, #E8C874 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  min-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 18px rgba(156, 122, 30, 0.12), inset 0 0 10px rgba(232, 200, 116, 0.12);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.timer-box::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 9px;
  pointer-events: none;
}

.timer-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 24px rgba(122, 28, 40, 0.14), 0 0 18px rgba(232, 200, 116, 0.35);
}

.timer-box span {
  font-size: 2.6rem;
  font-weight: 700;
  color: #7A1C28;
  font-family: var(--font-serif);
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(201, 162, 39, 0.2);
}

.timer-box label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold-deep);
  margin-top: 0.3rem;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(201, 162, 39, 0.3);
  width: 100%;
  text-align: center;
}

#confettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.scratch-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

#shavingsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

.scratch-instruction {
  font-size: 1rem;
  color: var(--color-gold-deep);
  margin-bottom: 0.8rem;
  font-style: italic;
  font-weight: 500;
}

.scratch-card-container {
  position: relative;
  width: 320px;
  height: 170px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(122, 28, 40, 0.12), 0 0 25px rgba(201, 162, 39, 0.18);
  background: var(--color-pearl);
  border: 2px solid transparent;
  background-image: linear-gradient(#FDF8F2, #FDF8F2), linear-gradient(135deg, #E8C874, #9C7A1E, #E8C874);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

@media (min-width: 768px) {
  .scratch-card-container {
    width: 440px;
    height: 180px;
  }
}

#scratchCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: crosshair;
  transition: opacity 0.5s ease;
}

.reveal-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  z-index: 1;
}

.save-date {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--color-gold-deep);
  margin-bottom: 0.2rem;
}

.full-date {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.3rem;
}

.reveal-message {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Mobile Responsive Optimization for Countdown Timer & Scratch Card Section */
@media (max-width: 768px) {
  #countdown .section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .scratch-card-container {
    width: 320px;
    max-width: 90vw;
    height: 160px;
  }

  .save-date {
    font-size: 1.95rem;
  }

  .full-date {
    font-size: 1.05rem;
  }

  .reveal-message {
    font-size: 0.88rem;
  }

  .timer-title {
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .timer-grid {
    gap: 10px;
  }

  .timer-box {
    min-width: 68px;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
  }

  .timer-box span {
    font-size: 2.1rem;
  }

  .timer-box label {
    font-size: 0.64rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  #countdown .section-title {
    font-size: 2.1rem;
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
  }

  .scratch-card-container {
    width: 290px;
    max-width: 92vw;
    height: 148px;
  }

  .save-date {
    font-size: 1.7rem;
  }

  .full-date {
    font-size: 0.95rem;
  }

  .reveal-message {
    font-size: 0.82rem;
  }

  .timer-title {
    font-size: 2.1rem;
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .timer-grid {
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
  }

  .timer-box {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.45rem 0.3rem;
    border-radius: 8px;
  }

  .timer-box span {
    font-size: 1.7rem;
  }

  .timer-box label {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
  }
}

/* Mobile view for tall screens > 800px (Countdown Timer & Scratch Card Section) */
@media (max-width: 768px) and (min-height: 801px) {
  #countdown .section-title {
    font-size: 2.85rem;
  }

  .save-date {
    font-size: 2.15rem;
  }

  .full-date {
    font-size: 1.15rem;
  }

  .reveal-message {
    font-size: 0.95rem;
  }

  .timer-title {
    font-size: 2.85rem;
  }

  .timer-box span {
    font-size: 2.35rem;
  }

  .timer-box label {
    font-size: 0.7rem;
  }
}

/* 3. Meet the Couple */
#couple .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#couple .section-title {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
  position: relative;
}

.couple-grid {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .couple-grid {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.person-card {
  position: relative;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 1.4rem 1.2rem 1.2rem;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06), 0 4px 15px rgba(201, 162, 39, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
}

.person-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(232, 200, 116, 0.5);
  box-shadow: 0 16px 45px rgba(122, 28, 40, 0.12), 0 0 25px rgba(232, 200, 116, 0.25);
}

.card-badge {
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 100%);
  color: #FDF8F2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.3rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(122, 28, 40, 0.25);
}

.portrait-frame {
  position: relative;
  width: 165px;
  height: 165px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #E8C874 0%, #9C7A1E 50%, #E8C874 100%);
  box-shadow: 0 8px 24px rgba(156, 122, 30, 0.25);
  overflow: hidden;
}

.couple-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  transition: transform 0.5s ease;
}

.person-card:hover .couple-portrait {
  transform: scale(1.08);
}

.person-name {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: #7A1C28;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
}

.person-desc {
  font-size: 0.95rem;
  font-style: italic;
  color: #FFFDF9;
  margin-bottom: 0.8rem;
  line-height: 1.5;
  padding: 0 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.75);
}

.lineage-box {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  border: 1px dashed rgba(201, 162, 39, 0.45);
  border-radius: 14px;
  padding: 0.6rem 1rem;
  width: 100%;
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.family-icon {
  font-size: 1rem;
}

.parents {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin: 0;
}

.blessing-btn {
  background: linear-gradient(135deg, #FDF8F2 0%, #FBEDEA 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: 50px;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #7A1C28;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: visible;
}

.blessing-btn:hover {
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 100%);
  color: #FDF8F2;
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(122, 28, 40, 0.3);
}

.blessing-btn:active {
  transform: scale(0.96);
}

.couple-center-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  text-align: center;
}

.emblem-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF, #FDF8F2);
  border: 2px solid #E8C874;
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  animation: floatSlow 3.5s ease-in-out infinite;
}

.emblem-monogram {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: #7A1C28;
  margin-top: 0.4rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
}

.emblem-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold-deep);
  font-weight: 600;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Mobile Responsive Optimization for Meet the Couple Section */
@media (max-width: 768px) {
  #couple {
    padding-top: calc(4rem + 30px);
  }

  #couple .section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .couple-grid {
    gap: 1.4rem;
  }

  .person-card {
    max-width: 310px;
    width: 92%;
    padding: 1.2rem 1rem;
    border-radius: 16px;
  }

  .card-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.7rem;
  }

  .portrait-frame {
    width: 140px;
    height: 140px;
    margin: 0 auto 0.7rem;
  }

  .person-name {
    font-size: 2.1rem;
    margin-bottom: 0.2rem;
  }

  .person-desc {
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
    padding: 0 0.4rem;
  }

  .blessing-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
  }

  .couple-center-divider {
    padding: 0.3rem 0;
  }

  .emblem-ring {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  #couple .section-title {
    font-size: 2.1rem;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
  }

  .couple-grid {
    gap: 1.1rem;
  }

  .person-card {
    max-width: 290px;
    width: 94%;
    padding: 1rem 0.8rem;
    border-radius: 14px;
  }

  .card-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.8rem;
    letter-spacing: 1.2px;
    margin-bottom: 0.6rem;
  }

  .portrait-frame {
    width: 125px;
    height: 125px;
    margin: 0 auto 0.6rem;
  }

  .person-name {
    font-size: 1.85rem;
    margin-bottom: 0.15rem;
  }

  .person-desc {
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
    padding: 0 0.2rem;
  }

  .blessing-btn {
    padding: 0.48rem 1rem;
    font-size: 0.8rem;
  }

  .couple-center-divider {
    padding: 0.2rem 0;
  }

  .emblem-ring {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

/* Mobile view for tall screens > 800px (Meet the Couple Section) */
@media (max-width: 768px) and (min-height: 801px) {
  #couple .section-title {
    font-size: 2.85rem;
  }
}

/* Floating heart animation keyframes */
.floating-heart {
  position: absolute;
  pointer-events: none;
  font-size: 1.4rem;
  animation: floatHeartUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  z-index: 99;
}

@keyframes floatHeartUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-40px) scale(1.3) rotate(-15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.6) rotate(15deg);
  }
}

/* 4. Invitation Message */
#invitation .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

.ornamental-icon {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}

.ganesh-icon {
  width: 102px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(122, 28, 40, 0.35));
  transition: transform 0.3s ease;
}

.ganesh-icon:hover {
  transform: scale(1.05);
}

#invitation .gold-divider {
  width: 80%;
  max-width: 320px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFFDF9, transparent);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  margin: 1.5rem auto;
}

.invitation-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

.invitation-intro {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #FFFDF9;
  font-weight: 500;
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.75);
}

.invitation-couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.invitation-name {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
}

.invitation-parents {
  font-size: 1.12rem;
  font-weight: 600;
  color: #7A1C28;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.95), 0 0 15px rgba(255, 255, 255, 0.85);
}

.invitation-with {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: #7A1C28;
  margin: 0.3rem 0;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
}

.invitation-quote {
  font-size: 1.22rem;
  font-style: italic;
  color: #FFFDF9;
  max-width: 650px;
  margin: 1.8rem auto 0;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.75);
}

/* Mobile Responsive Optimization for Invitation Message Section */
@media (max-width: 768px) {
  .ganesh-icon {
    width: 78px;
  }

  #invitation .gold-divider {
    margin: 1rem auto;
    width: 75%;
    max-width: 240px;
  }

  .invitation-content {
    padding: 0 0.8rem;
  }

  .invitation-intro {
    font-size: 1.08rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .invitation-couple {
    gap: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .invitation-name {
    font-size: 2.6rem;
    margin-bottom: 0.15rem;
  }

  .invitation-parents {
    font-size: 0.95rem;
  }

  .invitation-with {
    font-size: 2.0rem;
    margin: 0.2rem 0;
  }

  .invitation-quote {
    font-size: 1.02rem;
    margin: 1.2rem auto 0;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .ganesh-icon {
    width: 68px;
  }

  #invitation .gold-divider {
    margin: 0.8rem auto;
    width: 70%;
    max-width: 200px;
  }

  .invitation-content {
    padding: 0 0.5rem;
  }

  .invitation-intro {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .invitation-couple {
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .invitation-name {
    font-size: 2.2rem;
    margin-bottom: 0.1rem;
  }

  .invitation-parents {
    font-size: 0.86rem;
  }

  .invitation-with {
    font-size: 1.7rem;
    margin: 0.15rem 0;
  }

  .invitation-quote {
    font-size: 0.92rem;
    margin: 1rem auto 0;
    line-height: 1.5;
  }
}

/* Mobile view for screen height 700px - 800px (Invitation Message Section) */
@media (max-width: 768px) and (min-height: 700px) and (max-height: 800px) {
  .invitation-intro {
    font-size: 1.18rem;
  }

  .invitation-name {
    font-size: 2.9rem;
  }

  .invitation-parents {
    font-size: 1.04rem;
  }

  .invitation-with {
    font-size: 2.25rem;
  }

  .invitation-quote {
    font-size: 1.12rem;
  }
}

/* Mobile view for screen height > 800px (Invitation Message Section) */
@media (max-width: 768px) and (min-height: 801px) {
  .invitation-intro {
    font-size: 1.28rem;
  }

  .invitation-name {
    font-size: 3.2rem;
  }

  .invitation-parents {
    font-size: 1.10rem;
  }

  .invitation-with {
    font-size: 2.45rem;
  }

  .invitation-quote {
    font-size: 1.20rem;
  }
}

/* 5. Our Story - Stepper Navigator */
#story .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#story .section-title {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
  position: relative;
}

.story-subtitle {
  font-size: 1.15rem;
  font-style: italic;
  color: #FFFDF9;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Stepper Navigator Bar */
.stepper-navigator {
  position: relative;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.stepper-line-bg {
  position: absolute;
  top: 23px;
  left: 55px;
  right: 55px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  z-index: 1;
}

.stepper-line-progress {
  position: absolute;
  top: 23px;
  left: 55px;
  height: 3px;
  background: linear-gradient(90deg, #E8C874, #9C7A1E);
  box-shadow: 0 0 12px rgba(232, 200, 116, 0.8);
  border-radius: 3px;
  z-index: 2;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.stepper-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.stepper-step {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.35s ease;
  opacity: 0.75;
  outline: none;
  padding: 0;
}

.stepper-step:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.stepper-step.active {
  opacity: 1;
  transform: translateY(-3px) scale(1.06);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF8F2 100%);
  border: 2px solid rgba(232, 200, 116, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.35s ease;
}

.stepper-step.active .step-icon {
  border-color: #9C7A1E;
  background: linear-gradient(135deg, #FFFFFF, #FBEDEA);
  box-shadow: 0 0 22px rgba(232, 200, 116, 0.7), 0 0 12px rgba(122, 28, 40, 0.35);
  transform: scale(1.12);
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFDF9;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.5);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.stepper-step.active .step-label {
  color: #FFFDF9;
  text-shadow: 0 2px 8px rgba(122, 28, 40, 0.7);
  font-weight: 700;
}

@media (max-width: 580px) {
  .step-label {
    display: none;
  }
  .stepper-navigator {
    margin-bottom: 1.5rem;
  }
}

/* Single Active Story Slide Wrapper */
.story-display-wrapper {
  max-width: 560px;
  margin: 0 auto;
  min-height: 220px;
  position: relative;
}

.story-slide {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.story-slide.hidden {
  display: none;
}

.story-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
  animation: slideFadeUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Story Card Inside Display */
.story-card {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08), 0 4px 18px rgba(201, 162, 39, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.story-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(232, 200, 116, 0.5);
  box-shadow: 0 18px 48px rgba(122, 28, 40, 0.14), 0 0 25px rgba(232, 200, 116, 0.28);
}

.story-tag {
  display: inline-block;
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 100%);
  color: #FDF8F2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.32rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(122, 28, 40, 0.25);
}

.story-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 220px;
  margin: 0.6rem auto 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(232, 200, 116, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 15px rgba(232, 200, 116, 0.2);
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

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

.story-title {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: #7A1C28;
  margin-bottom: 0.3rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
}

.story-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #FFFDF9;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
}

.memory-btn {
  background: linear-gradient(135deg, #FDF8F2 0%, #FBEDEA 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #7A1C28;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.2), 0 2px 8px rgba(122, 28, 40, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: visible;
  outline: none;
}

.memory-btn:hover {
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 100%);
  color: #FDF8F2;
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(122, 28, 40, 0.35);
}

.memory-btn:active {
  transform: scale(0.96);
}

/* Stepper Navigation Controls */
.stepper-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stepper-counter {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFDF9;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.5);
  background: rgba(122, 28, 40, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stepper-btn {
  background: linear-gradient(135deg, #FDF8F2 0%, #FBEDEA 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #7A1C28;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.15);
  outline: none;
}

.stepper-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 100%);
  color: #FDF8F2;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(122, 28, 40, 0.3);
}

.stepper-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Mobile Responsive Optimization for Our Story Section */
@media (max-width: 768px) {
  #story .section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
  }

  .story-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
    padding: 0 0.8rem;
  }

  .stepper-navigator {
    margin: 0 auto 1.6rem;
    padding: 0 0.8rem;
  }

  .stepper-line-bg,
  .stepper-line-progress {
    top: 20px;
    left: 30px;
    right: 30px;
  }

  .step-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .step-label {
    font-size: 0.72rem;
  }

  .story-card {
    max-width: 90%;
    margin: 0 auto;
    padding: 1.4rem 1.1rem;
    border-radius: 16px;
  }

  .story-tag {
    font-size: 0.65rem;
    padding: 0.25rem 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.7rem;
  }

  .story-img-wrapper {
    height: 170px;
    margin: 0.5rem auto 0.8rem;
    border-radius: 12px;
  }

  .story-title {
    font-size: 2.1rem;
    margin-bottom: 0.2rem;
  }

  .story-desc {
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
    line-height: 1.55;
  }

  .memory-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.84rem;
  }

  .stepper-controls {
    gap: 1rem;
    margin-top: 1.3rem;
  }

  .stepper-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
  }

  .stepper-counter {
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  #story .section-title {
    font-size: 2.1rem;
    margin-top: 0.3rem;
    margin-bottom: 0.15rem;
  }

  .story-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
  }

  .stepper-navigator {
    margin: 0 auto 1.2rem;
    padding: 0 0.5rem;
  }

  .stepper-line-bg,
  .stepper-line-progress {
    top: 18px;
    left: 24px;
    right: 24px;
  }

  .step-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .story-card {
    max-width: 94%;
    padding: 1.1rem 0.85rem;
    border-radius: 14px;
  }

  .story-tag {
    font-size: 0.6rem;
    padding: 0.2rem 0.8rem;
    letter-spacing: 1.2px;
    margin-bottom: 0.5rem;
  }

  .story-img-wrapper {
    height: 140px;
    margin: 0.4rem auto 0.6rem;
    border-radius: 10px;
  }

  .story-title {
    font-size: 1.85rem;
    margin-bottom: 0.15rem;
  }

  .story-desc {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }

  .memory-btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.78rem;
  }

  .stepper-controls {
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .stepper-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
  }

  .stepper-counter {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Mobile view for tall screens > 800px (Our Story Section) */
@media (max-width: 768px) and (min-height: 801px) {
  #story .section-title {
    font-size: 2.85rem;
  }

  .story-subtitle {
    font-size: 1.08rem;
  }

  .story-img-wrapper {
    height: 195px;
  }

  .story-tag {
    font-size: 0.72rem;
  }

  .story-title {
    font-size: 2.4rem;
  }

  .story-desc {
    font-size: 0.96rem;
  }

  .memory-btn {
    font-size: 0.9rem;
  }

  .stepper-btn {
    font-size: 0.88rem;
  }

  .stepper-counter {
    font-size: 0.88rem;
  }
}

/* 6. Events Schedule */
#events {
  padding-top: calc(4rem + 35px);
  padding-bottom: calc(4rem + 35px);
}

#events .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#events .section-title {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
}

.events-subtitle {
  font-size: 1.15rem;
  font-style: italic;
  color: #FFFDF9;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  justify-items: center;
}

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

/* Base Event Card Style */
.event-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  padding: 1.4rem 1.2rem 1.3rem;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(201, 162, 39, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.event-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(232, 200, 116, 0.7);
}

/* 🎨 UNIQUE EVENT VIBE COLORS */

/* 1. Ring Ceremony Vibe: Royal Sapphire Blue & Gold */
.ring-vibe {
  background: linear-gradient(135deg, rgba(20, 42, 70, 0.88) 0%, rgba(35, 65, 105, 0.92) 100%);
  box-shadow: 0 14px 40px rgba(15, 32, 55, 0.3), 0 0 20px rgba(70, 130, 200, 0.2);
}
.ring-vibe:hover {
  box-shadow: 0 20px 50px rgba(15, 32, 55, 0.4), 0 0 30px rgba(70, 130, 200, 0.4);
}

/* 2. Mehndi Vibe: Vibrant Emerald Green & Gold */
.mehndi-vibe {
  background: linear-gradient(135deg, rgba(16, 58, 42, 0.88) 0%, rgba(28, 86, 62, 0.92) 100%);
  box-shadow: 0 14px 40px rgba(12, 45, 32, 0.3), 0 0 20px rgba(46, 160, 110, 0.2);
}
.mehndi-vibe:hover {
  box-shadow: 0 20px 50px rgba(12, 45, 32, 0.4), 0 0 30px rgba(46, 160, 110, 0.4);
}

/* 3. Haldi Vibe: Radiant Turmeric Gold & Amber */
.haldi-vibe {
  background: linear-gradient(135deg, rgba(82, 60, 8, 0.88) 0%, rgba(122, 88, 12, 0.92) 100%);
  box-shadow: 0 14px 40px rgba(60, 45, 5, 0.3), 0 0 20px rgba(220, 160, 20, 0.25);
}
.haldi-vibe:hover {
  box-shadow: 0 20px 50px rgba(60, 45, 5, 0.4), 0 0 30px rgba(230, 175, 25, 0.45);
}

/* 4. Sangeet Vibe: Glitz & Glamour Royal Magenta Ruby */
.sangeet-vibe {
  background: linear-gradient(135deg, rgba(78, 16, 44, 0.88) 0%, rgba(115, 25, 65, 0.92) 100%);
  box-shadow: 0 14px 40px rgba(55, 10, 30, 0.3), 0 0 20px rgba(200, 50, 120, 0.25);
}
.sangeet-vibe:hover {
  box-shadow: 0 20px 50px rgba(55, 10, 30, 0.4), 0 0 30px rgba(220, 60, 140, 0.4);
}

/* 5. Wedding Ceremony Vibe: Sacred Kundan Crimson & Gold */
.wedding-vibe {
  background: linear-gradient(135deg, rgba(92, 18, 28, 0.90) 0%, rgba(130, 26, 40, 0.94) 100%);
  box-shadow: 0 14px 40px rgba(65, 10, 18, 0.35), 0 0 20px rgba(220, 60, 75, 0.3);
}
.wedding-vibe:hover {
  box-shadow: 0 20px 50px rgba(65, 10, 18, 0.45), 0 0 30px rgba(235, 75, 90, 0.5);
}

/* 6. Reception Vibe: Opulent Champagne Gold & Diamond Silver */
.reception-vibe {
  background: linear-gradient(135deg, rgba(52, 42, 28, 0.88) 0%, rgba(82, 68, 46, 0.92) 100%);
  box-shadow: 0 14px 40px rgba(35, 28, 18, 0.3), 0 0 20px rgba(212, 180, 120, 0.25);
}
.reception-vibe:hover {
  box-shadow: 0 20px 50px rgba(35, 28, 18, 0.4), 0 0 30px rgba(225, 195, 135, 0.45);
}

/* Inner Card Elements */

.event-icon-frame {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF8F2 100%);
  border: 2px solid #E8C874;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15), 0 0 12px rgba(232, 200, 116, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover .event-icon-frame {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 6px 20px rgba(232, 200, 116, 0.7);
}

.event-emoji {
  font-size: 1.8rem;
}

.event-name {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: #FFFDF9;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(232, 200, 116, 0.5);
}

.event-detail-item {
  font-size: 0.92rem;
  color: #FFFDF9;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

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

.detail-icon {
  font-size: 0.95rem;
}

.event-theme-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #E8C874;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  background: rgba(232, 200, 116, 0.12);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px dashed rgba(232, 200, 116, 0.4);
}

.event-reminder-btn {
  background: linear-gradient(135deg, #FDF8F2 0%, #FBEDEA 100%);
  border: 1.5px solid #E8C874;
  border-radius: 50px;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7A1C28;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
}

.event-reminder-btn:hover {
  background: linear-gradient(135deg, #E8C874 0%, #9C7A1E 100%);
  color: #1A1A1A;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(232, 200, 116, 0.4);
}

.event-reminder-btn:active {
  transform: scale(0.96);
}

/* Mobile Responsive Optimization for Events Schedule Section (2 Columns Grid) */
@media (max-width: 768px) {
  #events .section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 0.2rem;
  }

  .event-card {
    max-width: 100%;
    padding: 0.85rem 0.5rem 0.8rem;
    border-radius: 14px;
  }

  .event-icon-frame {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.4rem;
  }

  .event-emoji {
    font-size: 1.3rem;
  }

  .event-name {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .event-detail-item {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    gap: 4px;
  }

  .detail-icon {
    font-size: 0.75rem;
  }

  .event-theme-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    margin-top: 0.3rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
  }

  .event-reminder-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  #events .section-title {
    font-size: 2.1rem;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 0.1rem;
  }

  .event-card {
    padding: 0.75rem 0.4rem 0.7rem;
    border-radius: 12px;
  }

  .event-icon-frame {
    width: 38px;
    height: 38px;
    margin: 0 auto 0.3rem;
  }

  .event-emoji {
    font-size: 1.15rem;
  }

  .event-name {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }

  .event-detail-item {
    font-size: 0.68rem;
    margin-bottom: 0.18rem;
    gap: 3px;
  }

  .detail-icon {
    font-size: 0.68rem;
  }

  .event-theme-tag {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .event-reminder-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
    gap: 3px;
  }
}

/* Mobile view for tall screens > 800px (Events Schedule Section) */
@media (max-width: 768px) and (min-height: 801px) {
  #events .section-title {
    font-size: 2.85rem;
  }
}

/* 7. Venue & Location */
#location {
  padding-top: calc(4rem + 35px);
  padding-bottom: calc(4rem + 35px);
}

#location .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#location .section-title {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
}

.venue-subtitle {
  font-size: 1.15rem;
  font-style: italic;
  color: #FFFDF9;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
}

.venue-name {
  font-family: var(--font-script);
  font-size: 2.9rem;
  color: #7A1C28;
  line-height: 1.1;
  margin-top: calc(1rem + 30px);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
}

.venue-address {
  font-size: 1.05rem;
  font-weight: 500;
  color: #FFFDF9;
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Venue Highlights Grid */
.venue-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.highlight-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: #E8C874;
  background: rgba(122, 28, 40, 0.3);
  border: 1px solid rgba(232, 200, 116, 0.5);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.highlight-pill:hover {
  transform: scale(1.05);
  background: rgba(122, 28, 40, 0.45);
}

/* Kundan Map Frame */
.map-wrapper {
  max-width: 620px;
  margin: 0 auto 1.8rem;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #E8C874;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 18px rgba(232, 200, 116, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.map-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28), 0 0 25px rgba(232, 200, 116, 0.5);
}

.map-wrapper iframe {
  display: block;
}

/* Directions Button */
.venue-actions {
  display: flex;
  justify-content: center;
}

.directions-btn {
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 100%);
  border: 1.5px solid #E8C874;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #FDF8F2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(122, 28, 40, 0.35);
  transition: all 0.35s ease;
  outline: none;
}

.directions-btn:hover {
  background: linear-gradient(135deg, #E8C874 0%, #9C7A1E 100%);
  color: #1A1A1A;
  transform: scale(1.06);
  box-shadow: 0 8px 25px rgba(232, 200, 116, 0.5);
}

.directions-btn:active {
  transform: scale(0.96);
}

/* Mobile Responsive Optimization for Venue & Location Section */
@media (max-width: 768px) {
  #location .section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
  }

  .venue-name {
    font-size: 2.3rem;
    margin-top: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .venue-address {
    font-size: 0.92rem;
    margin-bottom: 1rem;
    padding: 0 0.8rem;
  }

  .venue-highlights {
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
  }

  .highlight-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }

  .map-wrapper {
    max-width: 92%;
    margin: 0 auto 1.2rem;
    border-radius: 14px;
  }

  .map-wrapper iframe {
    height: 260px;
  }

  .directions-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 480px) {
  #location .section-title {
    font-size: 2.1rem;
    margin-top: 0.3rem;
    margin-bottom: 0.15rem;
  }

  .venue-name {
    font-size: 1.95rem;
    margin-top: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .venue-address {
    font-size: 0.84rem;
    margin-bottom: 0.8rem;
    padding: 0 0.5rem;
  }

  .venue-highlights {
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0 0.2rem;
  }

  .highlight-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.7rem;
  }

  .map-wrapper {
    max-width: 95%;
    margin: 0 auto 1rem;
    border-radius: 12px;
  }

  .map-wrapper iframe {
    height: 220px;
  }

  .directions-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.78rem;
  }
}

/* Mobile view for tall screens > 800px (Venue & Location Section) */
@media (max-width: 768px) and (min-height: 801px) {
  #location .section-title {
    font-size: 2.85rem;
  }

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

  .venue-address {
    font-size: 1.02rem;
  }

  .highlight-pill {
    font-size: 0.82rem;
  }

  .directions-btn {
    font-size: 0.94rem;
  }
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
}

.parking-note {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 0.9rem;
}

/* 8. Gallery / Photos - 3D Coverflow Carousel */
#gallery .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#gallery .section-title {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
}

.gallery-subtitle {
  font-size: 1.12rem;
  font-style: italic;
  color: #FFFDF9;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
}

.coverflow-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverflow-container {
  perspective: 1200px;
  position: relative;
  width: 100%;
  max-width: 880px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: pan-y;
}

.coverflow-slide {
  position: absolute;
  width: 270px;
  height: 370px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #FFFDF9;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.55s ease, box-shadow 0.55s ease, border-color 0.55s ease;
  transform-style: preserve-3d;
}

/* Active Center Slide Style */
.coverflow-slide.active {
  border: 3px solid #E8C874;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45), 0 0 35px rgba(232, 200, 116, 0.65), 0 0 15px rgba(122, 28, 40, 0.35);
}

.coverflow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Subtle Dark Caption Overlay at Bottom */
.slide-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(15, 5, 8, 0.92) 0%, rgba(15, 5, 8, 0.6) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.coverflow-slide.active .slide-caption-overlay {
  opacity: 1;
}

.slide-caption-title {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #E8C874;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 2px;
}

.slide-caption-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: #FFFDF9;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Coverflow Navigation Buttons */
.coverflow-nav-btn {
  background: linear-gradient(135deg, #FDF8F2 0%, #FBEDEA 100%);
  border: 1.5px solid #E8C874;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: #7A1C28;
  cursor: pointer;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  outline: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.coverflow-nav-btn.prev-btn {
  left: -10px;
}
.coverflow-nav-btn.next-btn {
  right: -10px;
}

.coverflow-nav-btn:hover {
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 100%);
  color: #FDF8F2;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 22px rgba(122, 28, 40, 0.4);
}

.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.coverflow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(232, 200, 116, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.coverflow-dot.active {
  background: #E8C874;
  width: 26px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(232, 200, 116, 0.7);
}

/* Mobile Responsive Optimization for Gallery Section */
@media (max-width: 768px) {
  #gallery .section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
  }

  .gallery-subtitle {
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
    padding: 0 0.8rem;
  }

  .coverflow-container {
    height: 340px;
  }

  .coverflow-slide {
    width: 215px;
    height: 295px;
    border-radius: 16px;
  }

  .slide-caption-title {
    font-size: 1.4rem;
  }

  .slide-caption-sub {
    font-size: 0.75rem;
  }

  .coverflow-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .coverflow-nav-btn.prev-btn { left: -4px; }
  .coverflow-nav-btn.next-btn { right: -4px; }

  .coverflow-dots {
    gap: 6px;
    margin-top: 1.2rem;
  }

  .coverflow-dot {
    width: 8px;
    height: 8px;
  }

  .coverflow-dot.active {
    width: 22px;
  }
}

@media (max-width: 480px) {
  #gallery .section-title {
    font-size: 2.1rem;
    margin-top: 0.3rem;
    margin-bottom: 0.15rem;
  }

  .gallery-subtitle {
    font-size: 0.86rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
  }

  .coverflow-container {
    height: 300px;
  }

  .coverflow-slide {
    width: 185px;
    height: 255px;
    border-radius: 14px;
  }

  .slide-caption-title {
    font-size: 1.2rem;
  }

  .slide-caption-sub {
    font-size: 0.68rem;
  }

  .coverflow-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 1.0rem;
  }

  .coverflow-nav-btn.prev-btn { left: -2px; }
  .coverflow-nav-btn.next-btn { right: -2px; }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-img {
    max-width: 95%;
    max-height: 80vh;
    border-radius: 12px;
  }
}

/* Mobile view for tall screens > 800px (Gallery Section) */
@media (max-width: 768px) and (min-height: 801px) {
  #gallery .section-title {
    font-size: 2.85rem;
  }

  .gallery-subtitle {
    font-size: 1.08rem;
  }

  .slide-caption-title {
    font-size: 1.6rem;
  }

  .slide-caption-sub {
    font-size: 0.82rem;
  }
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 18px;
  border: 2.5px solid #E8C874;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(232, 200, 116, 0.4);
  object-fit: contain;
  animation: zoomIn 0.35s ease forwards;
}

@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.close-lightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #FFFDF9;
  font-size: 42px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.close-lightbox:hover {
  color: #E8C874;
  transform: scale(1.2) rotate(90deg);
}

/* 9. RSVP Section */
#rsvp .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#rsvp .section-title {
  font-family: var(--font-script);
  font-size: 3.3rem;
  color: #7A1C28;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
}

.rsvp-subtitle {
  font-size: 1.12rem;
  font-style: italic;
  color: #FFFDF9;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Opulent RSVP Glassmorphism Card */
.rsvp-glass-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  padding: 2.6rem 2.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16), 0 4px 20px rgba(201, 162, 39, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.rsvp-glass-card:hover {
  border-color: rgba(232, 200, 116, 0.65);
  box-shadow: 0 22px 60px rgba(122, 28, 40, 0.16), 0 0 35px rgba(232, 200, 116, 0.25);
}

.form-group {
  margin-bottom: 1.4rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: #7A1C28;
  margin-bottom: 0.45rem;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
}

.input-icon {
  font-size: 1rem;
  margin-right: 4px;
}

/* Input, Select, Textarea Styling */
.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 253, 249, 0.94);
  border: 1.5px solid rgba(232, 200, 116, 0.6);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: #2D1A1E;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
  outline: none;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
  color: #9E7D84;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #7A1C28;
  background: #FFFDF9;
  box-shadow: 0 0 14px rgba(232, 200, 116, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

.select-wrapper {
  position: relative;
}

/* Custom Styled Radio Toggle Pills */
.toggle-options {
  display: flex;
  gap: 0.9rem;
}

.toggle-pill {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.toggle-pill input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.toggle-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.6rem;
  background: rgba(255, 253, 249, 0.9);
  border: 1.5px solid rgba(232, 200, 116, 0.6);
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #7A1C28;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  text-shadow: none;
}

.toggle-pill:hover span {
  border-color: #E8C874;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 200, 116, 0.3);
}

.accept-pill input:checked ~ span {
  background: linear-gradient(135deg, #1C5A38 0%, #2E8B57 100%);
  color: #FFFDF9;
  border-color: #E8C874;
  box-shadow: 0 6px 20px rgba(28, 90, 56, 0.4), 0 0 12px rgba(232, 200, 116, 0.5);
}

.decline-pill input:checked ~ span {
  background: linear-gradient(135deg, #7A1C28 0%, #A52A3A 100%);
  color: #FFFDF9;
  border-color: #E8C874;
  box-shadow: 0 6px 20px rgba(122, 28, 40, 0.4), 0 0 12px rgba(232, 200, 116, 0.5);
}

/* Wax Seal Royal Submit Button */
.btn-royal-submit {
  width: 100%;
  padding: 0.95rem 1.8rem;
  margin-top: 0.6rem;
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 50%, #7A1C28 100%);
  background-size: 200% auto;
  border: 1.5px solid #E8C874;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFDF9;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(122, 28, 40, 0.38), 0 0 15px rgba(232, 200, 116, 0.3);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
}

.btn-royal-submit:hover {
  background-position: right center;
  transform: translateY(-2px) scale(1.02);
  border-color: #FFFDF9;
  box-shadow: 0 12px 30px rgba(122, 28, 40, 0.45), 0 0 25px rgba(232, 200, 116, 0.6);
}

.btn-royal-submit:active {
  transform: translateY(0) scale(0.98);
}

/* RSVP Success Card */
.rsvp-success {
  padding: 1.5rem 1rem;
  text-align: center;
  animation: slideFadeUp 0.5s ease forwards;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: pulse 1.5s infinite ease-in-out;
}

.success-title {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: #7A1C28;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
}

.success-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #FFFDF9;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(122, 28, 40, 0.5);
}

/* Mobile Responsive Optimization for RSVP Section */
@media (max-width: 768px) {
  #rsvp .section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
  }

  .rsvp-subtitle {
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
    padding: 0 0.8rem;
  }

  .rsvp-glass-card {
    max-width: 92%;
    padding: 1.8rem 1.4rem;
    border-radius: 20px;
  }

  .form-group {
    margin-bottom: 1.1rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
  }

  .form-group input[type="text"],
  .form-group select,
  .form-group textarea {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .toggle-options {
    gap: 0.6rem;
  }

  .toggle-pill span {
    padding: 0.65rem 0.4rem;
    font-size: 0.84rem;
  }

  .btn-royal-submit {
    padding: 0.75rem 1.4rem;
    font-size: 0.92rem;
  }

  .success-title {
    font-size: 1.9rem;
  }

  .success-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #rsvp .section-title {
    font-size: 2.1rem;
    margin-top: 0.3rem;
    margin-bottom: 0.15rem;
  }

  .rsvp-subtitle {
    font-size: 0.86rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
  }

  .rsvp-glass-card {
    max-width: 95%;
    padding: 1.3rem 0.95rem;
    border-radius: 16px;
  }

  .form-group {
    margin-bottom: 0.9rem;
  }

  .form-group label {
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
  }

  .form-group input[type="text"],
  .form-group select,
  .form-group textarea {
    padding: 0.6rem 0.75rem;
    font-size: 0.84rem;
    border-radius: 10px;
  }

  .toggle-options {
    gap: 0.4rem;
  }

  .toggle-pill span {
    padding: 0.58rem 0.3rem;
    font-size: 0.78rem;
  }

  .btn-royal-submit {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
  }

  .success-title {
    font-size: 1.65rem;
  }

  .success-text {
    font-size: 0.84rem;
  }
}

/* Mobile view for tall screens > 800px (RSVP Section) */
@media (max-width: 768px) and (min-height: 801px) {
  #rsvp .section-title {
    font-size: 2.85rem;
  }

  .rsvp-subtitle {
    font-size: 1.08rem;
  }

  .form-group label {
    font-size: 0.98rem;
  }

  .form-group input[type="text"],
  .form-group select,
  .form-group textarea {
    font-size: 0.98rem;
  }

  .toggle-pill span {
    font-size: 0.92rem;
  }

  .btn-royal-submit {
    font-size: 1.02rem;
  }

  .success-title {
    font-size: 2.1rem;
  }

  .success-text {
    font-size: 0.98rem;
  }
}

.hidden { display: none !important; }

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

/* 10. Blessings & Footer */
#footer .section-container {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

#footer {
  min-height: auto;
  padding: 4.5rem 1rem 3rem;
  background: linear-gradient(180deg, #FDF3F4 0%, #F8D5D8 45%, #ECA6AC 100%);
  border-top: 2px solid #E8C874;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.06);
}

.blessing-text {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: #7A1C28;
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}

.footer-names {
  font-family: var(--font-script);
  font-size: 4.2rem;
  color: #7A1C28;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(201, 162, 39, 0.4), 0 0 20px rgba(255, 255, 255, 0.9);
}

.made-with-love {
  font-size: 1.05rem;
  color: #5C3238;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.shubhsites-link {
  color: #7A1C28;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.shubhsites-link:hover {
  color: #9C7A1E;
  text-shadow: 0 0 10px rgba(232, 200, 116, 0.6);
}

.footer-border {
  width: 100%;
  max-width: 500px;
  height: 2px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent 0%, #C9A227 50%, transparent 100%);
  opacity: 0.7;
}

.copyright {
  font-size: 0.88rem;
  color: #7D5C62;
  letter-spacing: 0.5px;
}

/* Mobile Responsive Optimization for Blessings & Footer Section */
@media (max-width: 768px) {
  #footer {
    padding: 3rem 1rem 2rem;
  }

  .blessing-text {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
  }

  .footer-names {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
  }

  .made-with-love {
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
  }

  .footer-border {
    max-width: 260px;
    margin: 0 auto 1.2rem;
  }

  .copyright {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  #footer {
    padding: 2.2rem 0.8rem 1.8rem;
  }

  .blessing-text {
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
  }

  .footer-names {
    font-size: 2.6rem;
    margin-bottom: 0.4rem;
  }

  .made-with-love {
    font-size: 0.84rem;
    margin-bottom: 1.1rem;
  }

  .footer-border {
    max-width: 200px;
    margin: 0 auto 1rem;
  }

  .copyright {
    font-size: 0.74rem;
  }
}

/* Floating Background Music Toggle Button */
.music-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74, 44, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #E8C874;
  color: #E8C874;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(232, 200, 116, 0.3);
  transition: all 0.35s ease;
  outline: none;
}

.music-toggle-btn:hover {
  transform: scale(1.1);
  background: rgba(122, 28, 40, 0.85);
  box-shadow: 0 8px 25px rgba(122, 28, 40, 0.4), 0 0 25px rgba(232, 200, 116, 0.5);
}

.music-toggle-btn.playing {
  background: linear-gradient(135deg, #7A1C28 0%, #9C7A1E 100%);
  border-color: #FFFDF9;
  box-shadow: 0 0 20px rgba(232, 200, 116, 0.6), 0 6px 20px rgba(122, 28, 40, 0.4);
}

.music-icon {
  font-size: 1.25rem;
  transition: transform 0.4s ease;
  display: inline-block;
}

.music-toggle-btn.playing .music-icon {
  animation: spinMusic 3.5s linear infinite;
}

@keyframes spinMusic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .music-toggle-btn {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
  
  .music-icon {
    font-size: 1.15rem;
  }
}
