/* ============================================
   WEDDING LANDING PAGE — STYLE.CSS
   Palette: cream · gold · blush pink · dark
============================================ */

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

/* — RESET & BASE — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #faf6f0;
  --gold:       #c8a97e;
  --gold-dark:  #a8864f;
  --blush:      #e8c4b8;
  --blush-dark: #d4a090;
  --text:       #2c2422;
  --text-muted: #7a6a65;
  --white:      #ffffff;
  --shadow:     0 8px 40px rgba(44, 36, 34, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* — TYPOGRAPHY — */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
.script { font-family: 'Great Vibes', cursive; }

.section-label {
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto;
  width: fit-content;
}
.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.section-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* — NAV — */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(44,36,34,0.08);
}
.nav-brand {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.4s;
}
nav.scrolled .nav-brand { color: var(--gold-dark); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--gold) !important; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: background 0.4s, transform 0.3s;
}
nav.scrolled .nav-toggle span { background: var(--text); }

/* — HERO — */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream);
  overflow: hidden;
}

/* Full-Screen Slider */
.hero-slider-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider-fullscreen .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: kenBurns 36s infinite;
  z-index: 0;
  overflow: hidden;
}

.slide-blur-bg {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.85); /* Light blur to blend, but kept clear enough to look 'joined' */
  z-index: 1;
}

.slide-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

.hero-slider-fullscreen .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider-fullscreen .slide:nth-child(2) { animation-delay: 6s; }
.hero-slider-fullscreen .slide:nth-child(3) { animation-delay: 12s; }
.hero-slider-fullscreen .slide:nth-child(4) { animation-delay: 18s; }
.hero-slider-fullscreen .slide:nth-child(5) { animation-delay: 24s; }
.hero-slider-fullscreen .slide:nth-child(6) { animation-delay: 30s; }

@keyframes kenBurns {
  0%   { opacity: 0; transform: scale(1); filter: blur(5px); }
  5%   { opacity: 1; filter: blur(0); }
  20%  { opacity: 1; filter: blur(0); }
  25%  { opacity: 0; transform: scale(1.05); filter: blur(2px); }
  100% { opacity: 0; transform: scale(1.05); }
}

.hero-overlay-gradient-fullscreen {
  position: absolute;
  inset: 0;
  /* Stronger gradient overlay for full-screen readability */
  background: linear-gradient(180deg, 
    rgba(0,0,0,0.5) 0%, 
    rgba(0,0,0,0.2) 20%, 
    rgba(0,0,0,0.2) 80%, 
    rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Full-Screen Content Panel */
.hero-content-fullscreen {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1000px;
  padding: 2rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: -2vh; /* Slight upward shift */
}

/* Simple & Elegant Gold Heart Frame with Sheen */
.hero-names-heart-frame {
  position: relative;
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  margin: 4rem auto 3rem;
  background: transparent;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 15px rgba(200,169,126,0.2);
  animation: borderSheen 3s ease-in-out infinite;
}

.hero-names-heart-frame::before,
.hero-names-heart-frame::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  border: inherit;
  border-radius: 50%;
  z-index: -1;
  animation: inherit; /* Sync shimmer */
}

@keyframes borderSheen {
  0%, 100% { 
    border-color: var(--gold); 
    box-shadow: 0 0 5px rgba(200,169,126,0.3);
  }
  50% { 
    border-color: #fff9e6; /* Bright highlight */
    box-shadow: 0 0 25px rgba(255,255,255,0.4);
  }
}

.hero-names-heart-frame::before { top: -50%; left: 0; }
.hero-names-heart-frame::after { left: -50%; top: 0; }

.bride-name, .groom-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.4rem, 10vw, 3.8rem);
  font-weight: 400;
  color: var(--white);
  transform: rotate(-45deg); /* Counter-rotate text to be horizontal */
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 1px;
}
.bride-name {
  margin-top: 15px;
  margin-left: -15px;
}
.groom-name {
  margin-bottom: 15px;
  margin-right: -15px;
}

.name-separator {
  font-size: 1.2rem;
  color: #ff4d6d;
  transform: rotate(-45deg);
  margin: 10px 0;
  animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
  0%   { transform: rotate(-45deg) scale(1); opacity: 0.8; }
  50%  { transform: rotate(-45deg) scale(1.2); opacity: 1; }
  100% { transform: rotate(-45deg) scale(1); opacity: 0.8; }
}

.hero-heart-container {
  display: none; /* Hide old heart container as we have the frame now */
}

.hero-script-save {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem; /* Larger script */
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.hero-date-row::before,
.hero-date-row::after {
  content: '';
  flex: 1;
  height: 2px; /* Thicker lines */
  background: rgba(255,255,255,0.7);
  max-width: 150px; /* Longer lines */
}
.date-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 2px;
  color: var(--white);
  opacity: 1;
  text-transform: none; /* Soften the look */
  text-shadow: 0 2px 10px rgba(0,0,0,0.4); /* Better contrast */
}
.date-main {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; /* Larger date */
  font-weight: 700;
  line-height: 1;
}

.hero-days-remaining {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
#days-large {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 3.2rem;
  color: var(--white);
  margin: 0 5px;
}

/* Circular Countdown */
.countdown-circles {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.countdown-circle-item {
  width: 100px; /* Larger circles */
  height: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2); /* Subtle dark backdrop for contrast */
  backdrop-filter: blur(4px); /* Glass effect to make text pop */
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.3s, background 0.3s;
}
.countdown-circle-item:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.08);
}
.circle-box {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; /* Larger numbers */
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.countdown-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem; 
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold); /* Gold labels for high contrast */
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

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

/* Responsive Adjustments */
@media (max-width: 600px) {
  .hero-content-fullscreen {
    margin-top: -15vh; /* Shift content up to avoid wishes ticker */
    gap: 1rem;
  }
  .hero-names-top {
    font-size: 3rem;
  }
  .hero-date-row {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-date-row::before,
  .hero-date-row::after {
    max-width: 60px;
  }
  .date-main {
    font-size: 2.2rem;
  }
  .countdown-circles {
    gap: 1rem;
  }
  .countdown-circle-item {
    width: 75px;
    height: 75px;
  }
  .countdown-num {
    font-size: 1.4rem;
  }
}

.countdown-item {
  text-align: center;
  min-width: 65px;
  position: relative;
}
.countdown-item:not(:last-child)::after {
  content: ':';
  position: absolute;
  right: -1.0rem;
  top: 15%;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.6;
}
@media (max-width: 500px) {
  .countdown-item:not(:last-child)::after { display: none; }
  .countdown-glass { gap: 1rem; padding: 1.2rem; }
  .countdown-item { min-width: 50px; }
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  display: block;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  display: block;
  opacity: 0.9;
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.hero-scroll-hint:hover { opacity: 1; }
.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}
.mouse-icon {
  width: 24px;
  height: 36px;
  border: 1.5px solid var(--white);
  border-radius: 12px;
  position: relative;
}
.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* — SECTION WRAPPER — */
.section {
  padding: 100px 2rem;
  text-align: center;
}
.section-inner { max-width: 1100px; margin: 0 auto; }

/* — INVITATION CARD — */
#invitation {
  background-color: #fcf8f5;
  padding: 100px 1.5rem;
}

.invitation-top-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.invitation-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  letter-spacing: 5px;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #4a3728;
}

.invitation-sub-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  line-height: 1.6;
  opacity: 0.9;
  text-transform: none; /* Elegant sentence case */
  color: #8d6e63;
}

.invitation-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.invitation-card {
  flex: 1 1 350px;
  max-width: 520px;
  background: white;
  padding: 60px 40px;
  border-radius: 20px; /* Clean uniform rounded rectangle */
  border: 1px solid rgba(212, 196, 181, 0.4);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 50px rgba(93, 64, 55, 0.1);
  overflow: hidden;
}

@media (max-width: 900px) {
  .invitation-cards-wrapper { gap: 2rem; }
  .invitation-card {
    max-width: 90vw;
    padding: 50px 20px;
  }
}

.invitation-card:hover {
  box-shadow: 0 30px 80px rgba(93, 64, 55, 0.18);
}

/* 3D Tilt Effect removed for cleaner look */

.invitation-image-container {
  margin-bottom: 1.5rem;
  padding: 0;
  display: flex;
  justify-content: center;
}

.photo-shield {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.arched-photo-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.photo-shield img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.invitation-card:hover .photo-shield img {
  transform: scale(1.08);
}

@media (max-width: 800px) {
  .invitation-card {
    max-width: 95vw;
    padding: 40px 15px;
  }
}

.invitation-side {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: 4px;
  color: #4a3728;
}

.invitation-address {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  min-height: 3.2em;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.2rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(200, 169, 126, 0.4);
  border-radius: 50px;
  color: var(--gold-dark);
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-map i {
  font-size: 0.9rem;
}

.btn-map:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 169, 126, 0.2);
}

.invitation-time {
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 1.5px;
  color: #4a3728;
}

.invitation-date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.invitation-date-label {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  padding: 12px 0;
  border-top: 1px solid #d4c4b5;
  border-bottom: 1px solid #d4c4b5;
  min-width: 110px;
  color: #8d6e63;
}

.invitation-date-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: #5d4037;
}

.invitation-lunar-date {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  opacity: 0.6;
  margin-top: 1rem;
}

@media (max-width: 500px) {
  .invitation-side { font-size: 2.4rem; }
  .invitation-date-number { font-size: 2.8rem; }
  .invitation-date-label { min-width: 90px; font-size: 0.9rem; }
}

/* — EVENT DETAILS — */
#details { background: var(--cream); }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.detail-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s, box-shadow 0.3s;
}
.detail-card.visible { opacity: 1; transform: translateY(0); }
.detail-card:hover { box-shadow: 0 16px 50px rgba(200,169,126,0.2); }
.detail-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--blush), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.6rem;
}
.detail-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.detail-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.detail-card strong { color: var(--text); font-weight: 700; }
.btn-map {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn-map:hover { background: var(--gold); color: var(--white); }

/* — GALLERY — */
#gallery { background: var(--white); }
.gallery-subtitle {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 3rem;
}
.gallery-grid-featured {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 32px;
}
.gallery-grid-featured .gallery-item {
  flex: 1 1 250px;
  max-width: 300px;
}
.gallery-grid-featured .gallery-item img {
  aspect-ratio: auto;
  height: auto;
  min-height: auto;
  object-fit: contain;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-template-rows: auto;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s, transform 0.6s;
}
.gallery-item.visible { opacity: 1; transform: scale(1); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,34,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: white;
  font-family: 'Great Vibes', cursive;
  font-size: 1.4rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* — RSVP — */
/* — RSVP PREMIUM REDESIGN — */
#rsvp {
  position: relative;
  background: white;
  padding: 120px 1.5rem;
  overflow: hidden;
}

/* Subtle background image for the section */
#rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(250, 246, 240, 0.94), rgba(250, 246, 240, 0.94)), url('image/0P6A9638.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 1;
}

#rsvp .section-inner {
  position: relative;
  z-index: 2;
}

.rsvp-subtitle {
  color: #8d6e63;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
}

.rsvp-form {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 4rem 3.5rem;
  box-shadow: 
    0 20px 60px rgba(93, 64, 55, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(200, 169, 126, 0.2);
}

.rsvp-form form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a3728;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.form-group label i {
  color: var(--gold);
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  padding-right: 3rem; /* Space for fixed icon */
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(212, 196, 181, 0.4);
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #4a3728;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  outline: none;
  appearance: none; /* For select */
}

.input-wrapper textarea {
  padding-right: 1.2rem;
  min-height: 120px;
  resize: vertical;
}

.input-icon {
  position: absolute;
  right: 1.2rem;
  color: var(--gold);
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  background: white;
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(200, 169, 126, 0.15);
  transform: translateY(-2px);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon {
  opacity: 1;
}

/* Custom Dropdown Styling */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  width: 100%;
  padding: 1rem 1.2rem;
  padding-right: 3rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(212, 196, 181, 0.4);
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #4a3728;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 2;
}

.custom-select.open .select-trigger {
  background: white;
  border-color: var(--gold);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 10px 25px rgba(200, 169, 126, 0.1);
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* Exactly as wide as the trigger */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1.5px solid var(--gold);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 15px 40px rgba(93, 64, 55, 0.15);
  display: none;
  overflow: hidden;
  z-index: 100;
  animation: dropdownFadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.custom-select.open .select-options {
  display: block;
}

.option {
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: #5d4037;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.option:hover {
  background: rgba(200, 169, 126, 0.1);
  border-left-color: var(--gold);
  color: var(--gold-dark);
}

.option.selected {
  background: rgba(200, 169, 126, 0.05);
  color: var(--gold-dark);
  font-weight: 700;
  border-left-color: var(--gold);
}

.select-trigger .input-icon {
  transition: transform 0.3s;
}

.custom-select.open .input-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #c89666 0%, #a67c52 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px rgba(166, 124, 82, 0.3);
}

.btn-submit i {
  font-size: 0.8rem;
  transition: transform 0.4s;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #d4a77a 0%, #b88a5e 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(166, 124, 82, 0.4);
}

.btn-submit:hover i {
  transform: translate(5px, -5px);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success .checkmark { 
  font-size: 4.5rem; 
  margin-bottom: 1.5rem; 
  display: inline-block;
  animation: bounceIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.form-success h3 { 
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; 
  color: #4a3728; 
  margin-bottom: 1rem; 
}

.form-success p { 
  color: #8d6e63;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* — FOOTER — */
footer {
  position: relative;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('image/0P6A9782 x2.webp');
  background-size: cover;
  background-position: center bottom; /* Priority on reaching the bottom */
  background-attachment: fixed; /* Parallax effect restored per request */
  padding: 200px 20px 150px; /* Even taller footer to ensure the 'reveal' is complete */
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.footer-thanks {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.footer-thanks-msg {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  color: #fff;
  display: block;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.footer-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.footer-message {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
}

.footer-divider {
  width: 60px;
  height: 1.5px;
  background: rgba(255,255,255,0.4);
  margin: 2rem auto;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 4rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* — SCROLL ANIMATIONS — */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* — PETALS ANIMATION — */
.petals-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -20px;
  animation: fall linear infinite;
  opacity: 0.7;
}
@keyframes fall {
  0%   { top: -20px; transform: translateX(0) rotate(0deg); opacity: 0.8; }
  100% { top: 110vh;  transform: translateX(80px) rotate(360deg); opacity: 0; }
}

/* — FLOATING WISHES TICKER — */
.wishes-ticker {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  width: 230px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
}
.wishes-ticker-inner {

  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 85vh;
  padding: 40px 4px; /* More padding for fade effect */
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  overflow: hidden; /* Hide scrollbar completely, we use transform now */
}

/* The actual scrolling container */
.wishes-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: tickerScroll 25s linear infinite;
}

.wishes-ticker:hover .wishes-scroll-container {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); } /* Works if we clone content */
}

.wish-bubble {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.4); /* Softer white border */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: default;
  flex-shrink: 0;
  position: relative;
  pointer-events: auto;
  /* Bobbing animation is separate to not conflict with scroll transform */
}

.wish-bubble {
  animation: wishBob 5s ease-in-out infinite alternate;
}

/* Removed wishSlideIn from initial load for smoother entry into the loop */

@keyframes wishBob {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.wish-bubble--glow {
  background: rgba(255, 251, 240, 0.9);
  border-color: rgba(200, 169, 126, 0.5);
  box-shadow: 0 10px 30px rgba(200,169,126,0.2);
}

.wish-bubble:hover {
  transform: scale(1.03) translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 169, 126, 0.3);
}

.wish-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
  font-style: italic;
}

.wish-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.84rem;
  color: #554a46;
  line-height: 1.55;
  margin: 0;
  padding-right: 2rem; /* space for heart btn */
}

/* NEW: Heart / Like UI */
.wish-heart {
  position: absolute;
  right: 1.1rem;
  bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 5;
}

.wish-heart-btn {
  font-size: 1.1rem;
  color: #ccc;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: grayscale(1);
}

.wish-heart:hover .wish-heart-btn {
  color: #ff4d6d;
  transform: scale(1.2);
  filter: grayscale(0);
}

.wish-heart.active .wish-heart-btn {
  color: #ff4d6d !important;
  filter: grayscale(0);
  animation: heartPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wish-heart-count {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

/* Floating heart animation when clicked */
.flying-heart {
  position: fixed;
  pointer-events: none;
  font-size: 1.2rem;
  z-index: 1000;
  animation: heartFly 1.5s ease-out forwards;
}

@keyframes heartFly {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100px) translateX(20px) rotate(15deg) scale(0); opacity: 0; }
}


/* Empty state */
.wishes-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  gap: 0.4rem;
  pointer-events: auto;
}
.wishes-empty-icon { font-size: 1.6rem; }
.wishes-empty p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.wishes-empty a {
  font-size: 0.72rem;
  color: var(--gold-dark);
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 700;
}
.wishes-empty a:hover { text-decoration: underline; }

/* When empty, shrink ticker height */
.wishes-ticker.ticker-empty { max-height: 160px; }

/* — TINY MOBILE OVERRIDES — */
@media (max-width: 900px) {
  .wishes-ticker {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 140px;
    transform: none;
    flex-direction: row;
    background: rgba(250, 246, 240, 0.98); 
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--gold);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); 
    margin-bottom: 0px; 
    z-index: 9999 !important;
    pointer-events: auto;
  }
  .wishes-ticker.ticker-empty {
    max-height: 100px;
  }
  .wishes-ticker-inner {
    flex-direction: row;
    max-height: none;
    padding: 0 10px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }
  .wishes-scroll-container {
    flex-direction: row;
    animation: tickerScrollMobile 30s linear infinite;
  }
  .wish-bubble {
    width: 260px;
    flex-shrink: 0;
    animation: wishBobMobile 5s ease-in-out infinite alternate;
  }
}

@keyframes tickerScrollMobile {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

@keyframes wishBobMobile {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

/* — MUSIC CONTROL — */
.music-control {
  position: fixed;
  bottom: calc(160px + env(safe-area-inset-bottom)); /* Stay above ticker on mobile */
  left: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.music-control:hover { transform: scale(1.1); }

.music-icon { font-size: 1.2rem; }

.music-waves {
  position: absolute;
  inset: 0;
  display: none; /* Only show when playing */
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.music-waves span {
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.music-waves span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.music-waves span:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.music-waves span:nth-child(3) { height: 12px; animation-delay: 0.5s; }
.music-waves span:nth-child(4) { height: 8px;  animation-delay: 0.7s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.8); }
}

.music-control.playing .music-icon { display: none; }
.music-control.playing .music-waves { display: flex; }

@media (max-width: 900px) {
  .music-control {
    bottom: calc(160px + env(safe-area-inset-bottom));
  }
}

/* — RESPONSIVE — */
@media (max-width: 768px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250,246,240,0.97);
    flex-direction: column;
    padding: 1rem 0;
    display: none;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-muted) !important; padding: 0.7rem 0; }
  .nav-toggle { display: flex; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd) { flex-direction: column; text-align: left; padding-left: 3rem; }
  .timeline-dot { left: 12px; top: 1.2rem; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .form-row { grid-template-columns: 1fr; }
  .rsvp-form { padding: 2rem 1.5rem; }
  .countdown { gap: 0.8rem; }
}

/* Form Validation Styles */
.form-group.has-error input {
  border-color: #ff4d6d !important;
  background-color: rgba(255, 77, 109, 0.05);
  animation: shake 0.4s ease-in-out;
}
.error-message {
  color: #ff4d6d;
  font-size: 0.72rem;
  margin-top: 6px;
  display: none;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
}
.form-group.has-error .error-message {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

