html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Marcellus', serif;
  overflow-x: hidden;
  background-color: #0c0a09;
}

.font-serif-custom {
  font-family: 'Cormorant Garamond', serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

#wedding-schedule * {
  font-weight: 700 !important;
}

@font-face {
  font-family: 'The Peak Font Plus';
  src: url('./assets/ThePeakFontPlus-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-2EFF, U+2F00-2FDF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
}

[lang="zh-Hant"] {
  font-family: 'The Peak Font Plus', 'Marcellus', serif;
}

[lang="zh-Hant"] .font-serif-custom {
  font-family: 'The Peak Font Plus', 'Cormorant Garamond', serif;
}

[lang="zh-Hant"] .font-cinzel {
  font-family: 'The Peak Font Plus', 'Cinzel', serif;
}

/* --- Metallic Shimmer Text Effect --- */
.gold-shimmer-text {
  background: linear-gradient(
    110deg,
    #fef3c7 0%,
    #fbbf24 25%,
    #ffffff 50%,
    #d97706 75%,
    #fef3c7 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* --- Floating Ambient Light Orbs --- */
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.1); opacity: 0.6; }
}

.ambient-orb-1 {
  animation: orbFloat 8s ease-in-out infinite;
}

.ambient-orb-2 {
  animation: orbFloat 11s ease-in-out infinite 3s;
}

/* --- Glassmorphic Sheen Pass --- */
.glass-reflection {
  position: relative;
  overflow: hidden;
}

.glass-reflection::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  pointer-events: none;
  animation: glassSheen 7s infinite;
}

@keyframes glassSheen {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* Animated Gold Border */
@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gold-border {
  background: linear-gradient(60deg, #fef3c7, #d97706, #fbbf24, #78350f, #fef3c7);
  background-size: 300% 300%;
  animation: borderGlow 6s ease infinite;
}

/* Wax Seal Styles */
.wax-seal-container {
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.55)) drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}

.wax-stamp-body {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 32% 24%, rgba(207, 112, 91, 0.34), transparent 38%),
    radial-gradient(ellipse at 68% 80%, rgba(25, 3, 5, 0.5), transparent 55%),
    radial-gradient(circle at 38% 30%, #923b36 0%, #762a29 48%, #521b1d 82%, #3c1518 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 226, 195, 0.2),
    inset 0 -6px 10px rgba(0, 0, 0, 0.58),
    inset 3px 0 5px rgba(255, 220, 190, 0.1),
    inset -3px 0 6px rgba(0, 0, 0, 0.35);
}

.wax-ridge-ring {
  overflow: hidden;
  border: 2px solid rgba(54, 14, 16, 0.72);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.48),
    inset 0 -1px 2px rgba(255, 220, 190, 0.12);
  background:
    radial-gradient(ellipse at 35% 25%, rgba(190, 91, 70, 0.24), transparent 48%),
    linear-gradient(145deg, #7c2d2b 0%, #692322 48%, #4c191b 100%);
}

.wax-stamp-body::before,
.wax-ridge-ring::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='wax-grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23wax-grain)'/%3E%3C/svg%3E");
  background-size: 75px 75px;
  mix-blend-mode: overlay;
  opacity: 0.32;
  pointer-events: none;
}

.gold-emboss-text {
  background: linear-gradient(135deg, #d6c092 0%, #aa8958 48%, #73532f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.envelope-3d-wrapper {
  perspective: 1400px;
}

.envelope-flap-hinge {
  transform-style: preserve-3d;
  transform-origin: top center;
}

/* Sparkle Particle Animations */
@keyframes sparkFloat {
  0% {
    transform: translate(0, 0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  20% { opacity: 1; }
  80% { opacity: 0.8; }
  100% {
    transform: translate(var(--tw-translate-x, 0px), var(--tw-translate-y, -60px)) scale(1.2) rotate(180deg);
    opacity: 0;
  }
}

.sparkle-particle {
  position: absolute;
  pointer-events: none;
  animation: sparkFloat var(--spark-duration, 2.5s) ease-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.gold-glow {
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8)) drop-shadow(0 0 12px rgba(217, 119, 6, 0.5));
}

@keyframes floatUpAndFade {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.4) rotate(180deg);
    opacity: 0;
  }
}

.reactive-sparkle {
  position: absolute;
  pointer-events: none;
  animation: floatUpAndFade var(--duration) ease-out forwards;
}
