html,
body {
  height: 100%;
  margin: 0;
}

* {
  box-sizing: border-box;
}

.font-serif-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.font-body {
  font-family: "Questrial", sans-serif;
}

.bg-candlelight {
  background: radial-gradient(ellipse at 30% 20%, rgba(180, 140, 80, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(180, 140, 80, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(140, 100, 60, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #1a1714 0%, #1f1c17 30%, #1a1714 70%, #16140f 100%);
}

.glow-gold {
  text-shadow: 0 0 40px rgba(196, 168, 116, 0.3), 0 0 80px rgba(196, 168, 116, 0.1);
}

.glow-soft {
  box-shadow: 0 0 60px rgba(196, 168, 116, 0.08), 0 0 120px rgba(196, 168, 116, 0.04);
}

.ornament-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 168, 116, 0.4), transparent);
}

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

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

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes flickerTwo {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.anim-fade-up {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.anim-fade-in {
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}

.anim-delay-1 {
  animation-delay: 0.2s;
}

.anim-delay-2 {
  animation-delay: 0.4s;
}

.anim-delay-3 {
  animation-delay: 0.6s;
}

.anim-delay-4 {
  animation-delay: 0.8s;
}

.anim-delay-5 {
  animation-delay: 1s;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.candle-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(196, 168, 116, 0.15) 0%, transparent 70%);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: rgba(196, 168, 116, 0.6);
  transition: all 0.3s;
  transform: translateX(-50%);
}

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

.nav-link-clicked {
  animation: navTap 0.35s ease;
}

@keyframes navTap {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(196, 168, 116, 0.08), rgba(80, 70, 55, 0.15));
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 23, 20, 0.8));
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.countdown-unit {
  background: rgba(196, 168, 116, 0.06);
  border: 1px solid rgba(196, 168, 116, 0.15);
  backdrop-filter: blur(8px);
}

.form-input {
  background: rgba(196, 168, 116, 0.04);
  border: 1px solid rgba(196, 168, 116, 0.15);
  color: #d4c5a9;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: rgba(196, 168, 116, 0.4);
  box-shadow: 0 0 20px rgba(196, 168, 116, 0.08);
}

.form-input::placeholder {
  color: rgba(196, 168, 116, 0.3);
}

.wish-card {
  background: rgba(196, 168, 116, 0.04);
  border: 1px solid rgba(196, 168, 116, 0.1);
  transition: all 0.3s;
}

.wish-card:hover {
  border-color: rgba(196, 168, 116, 0.25);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(196, 168, 116, 0.15);
  border: 1px solid rgba(196, 168, 116, 0.3);
  color: #d4c5a9;
  backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 168, 116, 0.2);
  border-radius: 2px;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  background: rgba(196, 168, 116, 0.06);
  border: 1px solid rgba(196, 168, 116, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(196, 168, 116, 0.2);
  border-top-color: #c4a874;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.icon {
  display: inline-block;
  object-fit: contain;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

.icon-md {
  width: 24px;
  height: 24px;
}

.icon-lg {
  width: 28px;
  height: 28px;
}
