:root {
  --bg: #eff8ff;
  --card: #ffffff;
  --text: #233a52;
  --muted: #5b7895;
  --accent: #2e8fe6;
  --accent-2: #9dd8ff;
  --shadow: 0 14px 36px rgba(32, 83, 126, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(160deg, #fffaf6 0%, #fff2f0 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: bgFade 24s infinite;
}

.bg1 {
  background-image: linear-gradient(rgba(255, 248, 243, 0.66), rgba(255, 241, 239, 0.68)), url("./bg.png");
  animation-delay: 0s;
}

.bg2 {
  background-image: linear-gradient(rgba(255, 248, 243, 0.66), rgba(255, 241, 239, 0.68)), url("./bg2.png");
  animation-delay: 8s;
}

.bg3 {
  background-image: linear-gradient(rgba(255, 248, 243, 0.66), rgba(255, 241, 239, 0.68)), url("./bg3.png");
  animation-delay: 16s;
}

@keyframes bgFade {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  8% {
    opacity: 1;
  }

  28% {
    opacity: 1;
  }

  36% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

.bg-blur {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.58;
  animation: floatBlob 9s ease-in-out infinite;
}

.bg-blur.one {
  width: 280px;
  height: 280px;
  background: #ffdce4;
  top: -80px;
  left: -100px;
}

.bg-blur.two {
  width: 320px;
  height: 320px;
  background: #ffeecf;
  right: -110px;
  bottom: 20%;
  animation-delay: 1.8s;
}

@keyframes floatBlob {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(10px, -20px, 0);
  }
}

.hero {
  text-align: center;
  padding: 44px 16px 24px;
}

.overline {
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.overline.reveal-block.is-revealed {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: #236fb0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(186, 227, 255, 0.8));
  border: 1px solid rgba(125, 190, 240, 0.55);
  box-shadow: 0 6px 16px rgba(46, 143, 230, 0.2);
}

.main-title {
  font-family: "Marck Script", cursive;
  font-size: clamp(44px, 7vw, 66px);
  line-height: 1.05;
  color: #2a84d4;
  margin: 14px 0 10px;
  font-weight: 700;
  text-shadow: 0 0px 13px #ffffff;

  font-size: 60px;
  margin-bottom: -5px;
}

.title-top,
.title-bottom {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: 0s;
}

.title-top {
  transform: translateX(-36px);
}

.title-bottom {
  transform: translateY(30px) scale(0.96);
}

.title-bottom .year {
  opacity: 1;
  transform: none;
}

.title-top.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
}

.title-bottom.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.7s;
}

.subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--muted);
}

.scroll-cue {
  width: 42px;
  margin: 18px auto 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.scroll-cue .chevron {
  width: 16px;
  height: 16px;
  border-right: 3px solid rgba(49, 127, 195, 0.88);
  border-bottom: 3px solid rgba(49, 127, 195, 0.88);
  transform: rotate(45deg);
  filter: drop-shadow(0 2px 5px rgba(46, 143, 230, 0.25));
  animation: blinkChevron 1.3s ease-in-out infinite;
}

.scroll-cue .chevron:nth-child(2) {
  margin-top: -5px;
  animation-delay: 0.22s;
}

.scroll-cue.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.hero-card {
  width: min(420px, calc(100vw - 36px));
  margin: 24px auto 0;
  background: var(--card);
  border-radius: 24px;
  /* padding: 10px; */
  box-shadow: var(--shadow);
  animation: pulseCard 3s ease-in-out infinite;
  border: 20px solid #fff;
  overflow: hidden;
  position: relative;
}

.hero-card .main-title {
  position: absolute;
  top: 88px;
  left: 0;
  right: -7px;
  margin: auto;
  font-size: 108px;

  color: #ffffff;
  text-shadow: 0 0 9px #2a84d4;
}

.hero-card .main-title .year {
  font-size: 50px;
  margin-top: -33px;

  color: #ffffff;
  text-shadow: 0 0 9px #2a84d4;
}

.hero-card .name {
  position: absolute;
  top: 220px;
  bottom: 14px;
  left: 0;
  right: 0;
  margin: auto;
  font-size: 60px;
  color: #2a84d4;
  text-shadow: 0 0 9px #fff;
}

/* 
.hero-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
} */

.hero-card img {
  width: 200%;
  display: block;
  border-radius: 18px;
  margin-left: -50%;
  opacity: 0.6;
}

.container {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

section {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(42, 132, 212, 0.1);
  backdrop-filter: blur(4px);
  padding: 20px;
}

.reveal-block {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-block.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  margin: 0 0 14px;
  color: #317fc3;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.event-focus-block {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(42, 132, 212, 0.1);
  backdrop-filter: blur(4px);
  padding: 12px 14px;
}

.focus-title {
  margin: 0;
  color: #317fc3;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.focus-value {
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.countdown {
  display: grid;
  gap: 14px;
}

.countdown-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(42, 132, 212, 0.1);
  backdrop-filter: blur(4px);
}

.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.95;
  animation: confettiFall 1200ms linear forwards;
}

.days-unit {
  text-align: center;
  background: #edf7ff;
  border: 1px solid #b8deff;
  border-radius: 18px;
  padding: 14px 10px;
}

.days-unit span {
  display: block;
  font-size: clamp(52px, 10vw, 74px);
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
}

.days-unit small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.time-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 10px;
}

.unit {
  background: #f3faff;
  border: 1px solid #c9e6ff;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}

.unit span {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.unit small {
  color: var(--muted);
  font-size: 12px;
}

.map-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.map-btn {
  display: inline-block;
  background: linear-gradient(130deg, #2e8fe6, #66b7ff);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 143, 230, 0.35);
}

.rsvp-card form {
  display: grid;
  gap: 10px;
}

label,
.label {
  font-size: 14px;
  color: var(--muted);
}

input[type="text"] {
  border: 1px solid #c9e6ff;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

button {
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(130deg, #2e8fe6, #66b7ff);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 143, 230, 0.35);
}

.rsvp-message {
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
  color: #4f8b51;
}

footer {
  text-align: center;
  padding: 8px 16px 32px;
}

.hosts {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@keyframes pulseCard {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blinkChevron {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translate3d(0, -10px, 0) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--tx, 0), var(--ty, 220px), 0) rotate(var(--rot, 420deg));
  }
}

@media (max-width: 520px) {
  .time-row {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
  }
}