
:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --card-bg: rgba(255,255,255,0.94);
  --shadow-soft: 0 18px 40px rgba(15,23,42,0.16);
  --glow: 0 0 25px rgba(125, 211, 252, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, sans-serif;
  background: radial-gradient(circle at top, var(--sky-100), #ffffff 55%) fixed;
  color: var(--text-main);
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO */
header.hero {
  min-height: 75vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

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

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .names { font-weight: 600; }

.hero .date {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky-700);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-700), var(--sky-600));
  color: white;
}

.btn-ghost {
  background: rgba(255,255,255,0.85);
  border-color: rgba(148,163,184,0.55);
  color: var(--text-main);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: linear-gradient(180deg, #ffffff, var(--sky-50));
}

/* Video wrapper with snowfall */
.video-snow-wrap {
  position: relative;
  padding: 1.75rem 0;
}

.video-snow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-snowflake {
  position: absolute;
  top: -10%;
  color: rgba(191, 219, 254, 0.9);
  font-size: 1.2rem;
  animation: video-fall 18s linear infinite;
}

.video-snowflake:nth-child(1) { left: 10%; animation-delay: 0s; }
.video-snowflake:nth-child(2) { left: 30%; animation-delay: 3s; animation-duration: 20s; }
.video-snowflake:nth-child(3) { left: 50%; animation-delay: 6s; animation-duration: 22s; }
.video-snowflake:nth-child(4) { left: 70%; animation-delay: 2s; animation-duration: 19s; }
.video-snowflake:nth-child(5) { left: 85%; animation-delay: 5s; animation-duration: 21s; }

@keyframes video-fall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(120%) translateX(25px) rotate(180deg); opacity: 0; }
}

/* Video card: rounded + glow */
.video-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 30px;
  padding: 0.75rem;
  border: 3px solid var(--sky-200);
  box-shadow: var(--glow), 0 12px 32px rgba(15,23,42,0.15);
  position: relative;
  z-index: 1;
}

.video-inner {
  border-radius: 22px;
  overflow: hidden;
}

video {
  width: 100%;
  display: block;
}

/* Details section */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.9rem;
  margin: 0;
  color: #0f172a;
}

.section-text {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.4rem;
}

@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  background: var(--card-bg);
  padding: 1.6rem 1.4rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.detail-title {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sky-700);
}

.detail-text {
  color: var(--text-muted);
}

/* RSVP with matching corners + glow */
#rsvp .rsvp-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 30px;
  border: 3px solid var(--sky-200);
  box-shadow: var(--glow), 0 12px 32px rgba(15,23,42,0.15);
}

#rsvp .rsvp-card p {
  color: var(--text-muted);
}

/* Footer */
footer.footer {
  background: #0f172a;
  color: #e5e7eb;
  text-align: center;
  padding: 2rem 1rem;
}

.footer small {
  color: #9ca3af;
}

/* GLOBAL FULL-PAGE SNOWFALL */
.global-snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.global-snowflake {
  position: absolute;
  top: -10%;
  color: rgba(191, 219, 254, 0.75);
  font-size: 1.4rem;
  animation: global-snow-fall 18s linear infinite;
}

.global-snowflake:nth-child(1) { left: 5%;  animation-delay: 0s; }
.global-snowflake:nth-child(2) { left: 20%; animation-delay: 3s; animation-duration: 22s; }
.global-snowflake:nth-child(3) { left: 40%; animation-delay: 6s; animation-duration: 20s; }
.global-snowflake:nth-child(4) { left: 60%; animation-delay: 2s; animation-duration: 24s; }
.global-snowflake:nth-child(5) { left: 80%; animation-delay: 5s; animation-duration: 26s; }
.global-snowflake:nth-child(6) { left: 90%; animation-delay: 8s; animation-duration: 21s; }

@keyframes global-snow-fall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(120vh) translateX(30px) rotate(180deg); opacity: 0; }
}
