html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
* { box-sizing: border-box; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a0a0a; }
::-webkit-scrollbar-thumb { background: #8b2035; border-radius: 3px; }

.font-display { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Cormorant Garamond', serif; }
.font-ui { font-family: 'Josefin Sans', sans-serif; }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  50% { transform: translateY(-200px) translateX(30px); opacity: 0.8; }
}
@keyframes glow-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.animate-fade-up { animation: fade-up 0.8s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #d4a574, transparent);
  border-radius: 50%;
  animation: float-particle linear infinite;
  pointer-events: none;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a574, transparent);
  margin: 2rem auto;
  width: 60%;
  max-width: 300px;
}
.gold-shimmer {
  background: linear-gradient(90deg, #d4a574, #f0d5a8, #d4a574);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.gallery-item { overflow: hidden; border-radius: 8px; }
.gallery-item .gallery-inner { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-item:hover .gallery-inner { transform: scale(1.08); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #d4a574;
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.wish-card {
  background: linear-gradient(135deg, rgba(139, 32, 53, 0.15), rgba(26, 10, 10, 0.4));
  border: 1px solid rgba(212, 165, 116, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.4s;
}
.wish-card:hover { border-color: rgba(212, 165, 116, 0.35); transform: translateY(-2px); }

.btn-rsvp {
  background: linear-gradient(135deg, #8b2035, #6b1528);
  border: 1px solid rgba(212, 165, 116, 0.3);
  transition: all 0.4s;
}
.btn-rsvp:hover {
  background: linear-gradient(135deg, #a02840, #8b2035);
  box-shadow: 0 0 30px rgba(139, 32, 53, 0.4);
}
.btn-rsvp:disabled { opacity: 0.6; cursor: not-allowed; }

input, select, textarea {
  background: rgba(26, 10, 10, 0.6) !important;
  border: 1px solid rgba(212, 165, 116, 0.2) !important;
  color: #f5e6d0 !important;
  transition: all 0.3s !important;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(212, 165, 116, 0.5) !important;
  box-shadow: 0 0 15px rgba(139, 32, 53, 0.3) !important;
  outline: none !important;
}

.section-reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s ease-out; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

.countdown-box {
  background: linear-gradient(135deg, rgba(139, 32, 53, 0.25), rgba(26, 10, 10, 0.5));
  border: 1px solid rgba(212, 165, 116, 0.2);
  backdrop-filter: blur(8px);
}

.sticky-nav {
  background: rgba(15, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
  transition: all 0.3s;
}
.sticky-nav.scrolled { background: rgba(15, 5, 5, 0.95); }
