@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Josefin+Sans:wght@100;200;300;400&display=swap');

:root {
  --charcoal: #0d0a0b;
  --charcoal-mid: #1a1416;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f0dfa0;
  --rose: #e8b4b8;
  --cream: #f5f0e8;
  --cream-dim: rgba(245, 240, 232, 0.7);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  overflow-x: hidden;
}

/* ─── SPLASH SCREEN ─────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

#splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.splash-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.6s forwards;
}

.splash-name span {
  color: var(--gold-light);
}

.splash-date {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 100;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}

#start-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-light);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

#start-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(232,180,184,0.1));
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

#start-btn:hover::before {
  transform: translateX(0);
}

#start-btn:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.btn-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--charcoal);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 20%, rgba(13,10,11,0.5) 100%),
    linear-gradient(to top, rgba(13,10,11,0.9) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(13,10,11,0.4) 0%, transparent 30%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 2rem 5vh;
  width: 100%;
}

.hero-label {
  font-size: 0.6rem;
  font-weight: 200;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(20px);
  display: block;
  margin-bottom: 1.2rem;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.hero-name .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-name .space {
  display: inline-block;
  width: 0.3em;
}

.hero-date {
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale), var(--rose), var(--gold-pale), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear 3s infinite;
  opacity: 0;
  transform: translateY(15px);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--rose);
  opacity: 0;
  transform: translateY(15px);
  margin-bottom: 3rem;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
}

.scroll-cue span {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out 4s infinite;
}

/* ─── SECTION: MESSAGE ──────────────────────────────────── */
.message-section {
  position: relative;
  padding: 10rem 2rem;
  text-align: center;
  overflow: hidden;
}

.message-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

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

.ornament-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament-line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.message-label {
  font-size: 0.6rem;
  font-weight: 200;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.message-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.message-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
}

.message-quote.visible {
  opacity: 1;
  transform: translateY(0);
}

.message-quote em {
  color: var(--gold-light);
  font-style: italic;
}

.message-sub {
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
}

.message-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION: CELEBRATION ──────────────────────────────── */
.celebration-section {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
}

.celebration-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,0.03), transparent);
}

.celebration-inner {
  position: relative;
  z-index: 1;
}

.celebration-icon {
  font-size: clamp(4rem, 10vw, 7rem);
  display: block;
  margin-bottom: 2rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.4));
}

.celebration-icon.visible {
  opacity: 1;
  transform: scale(1);
}

.celebration-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
  line-height: 1;
  margin-bottom: 1rem;
}

.celebration-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.celebration-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--rose);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
  letter-spacing: 0.08em;
}

.celebration-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Confetti Canvas */
#confetti-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─── SECTION: WISHES ───────────────────────────────────── */
.wishes-section {
  padding: 6rem 2rem 8rem;
  text-align: center;
  position: relative;
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 4rem auto 0;
}

.wish-card {
  border: 1px solid rgba(201,168,76,0.15);
  padding: 2.5rem 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.4s ease;
}

.wish-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.wish-card:hover {
  border-color: rgba(201,168,76,0.4);
}

.wish-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.wish-card:nth-child(2) { transition-delay: 0.15s; }
.wish-card:nth-child(3) { transition-delay: 0.3s; }

.wish-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.wish-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--cream-dim);
  line-height: 1.7;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.1);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 30%;
  right: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-text {
  font-size: 0.6rem;
  font-weight: 200;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.3);
}

.footer-heart {
  color: var(--rose);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -200% 0; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.2); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

/* Hero animate in — triggered by JS after splash dismissed */
.hero-content.animate .hero-label {
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-content.animate .letter {
  animation: letterReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content.animate .hero-date {
  animation: fadeUp 0.8s ease forwards, shimmer 4s linear 3s infinite;
  opacity: 0;
}

.hero-content.animate .hero-tagline {
  animation: fadeUp 0.8s ease forwards;
}

.hero-content.animate .scroll-cue {
  animation: fadeUp 0.8s ease forwards;
}

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

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .splash-name {
    font-size: clamp(3rem, 15vw, 5rem);
    padding: 0 1rem;
  }

  .message-quote {
    font-size: clamp(1.4rem, 5vw, 2rem);
    padding: 0 0.5rem;
  }

  .wish-grid {
    grid-template-columns: 1fr;
  }
}
