:root {
  --lilac-50: #fcf4ff;
  --lilac-100: #f3e5ff;
  --lilac-200: #e3c8ff;
  --lilac-300: #cf9cff;
  --lilac-400: #b86cff;
  --lilac-500: #9b3dff;
  --lilac-700: #6f1d9b;

  --gold-300: #ffb3c1;
  --gold-400: #ff6b81;
  --gold-500: #e63946;
  --gold-600: #b5172f;

  --white: #ffffff;
  --black: #151515;
  --text-soft: #5e5570;
  --shadow: 0 12px 30px rgba(115, 40, 110, 0.14);
  --shadow-strong: 0 18px 40px rgba(115, 40, 110, 0.22);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(207, 156, 255, 0.4), transparent 30%),
    radial-gradient(circle at bottom right, rgba(230, 57, 70, 0.18), transparent 24%),
    linear-gradient(180deg, var(--lilac-50), #f8efff 45%, #fff5f7);
  overflow-x: hidden;
}

.sparkles,
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sparkles span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-300), transparent 72%);
  animation: sparkle 5s linear infinite;
  opacity: 0.85;
}

.sparkles span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sparkles span:nth-child(2) { top: 18%; left: 82%; animation-delay: 1s; }
.sparkles span:nth-child(3) { top: 38%; left: 18%; animation-delay: 2s; }
.sparkles span:nth-child(4) { top: 52%; left: 88%; animation-delay: 3s; }
.sparkles span:nth-child(5) { top: 76%; left: 12%; animation-delay: 4s; }
.sparkles span:nth-child(6) { top: 70%; left: 78%; animation-delay: 2.5s; }
.sparkles span:nth-child(7) { top: 28%; left: 55%; animation-delay: 1.5s; }
.sparkles span:nth-child(8) { top: 84%; left: 58%; animation-delay: 3.5s; }
.sparkles span:nth-child(9) { top: 8%; left: 46%; animation-delay: 0.6s; }
.sparkles span:nth-child(10) { top: 60%; left: 35%; animation-delay: 2.2s; }

@keyframes sparkle {
  0%, 100% {
    transform: scale(0.7);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.8);
    opacity: 1;
  }
}

.petals i {
  position: absolute;
  top: -10%;
  width: 15px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(207,156,255,0.8));
  border-radius: 60% 40% 65% 35%;
  opacity: 0.45;
  animation: fall linear infinite;
}

.petals i:nth-child(1) { left: 8%; animation-duration: 15s; animation-delay: 0s; }
.petals i:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 4s; }
.petals i:nth-child(3) { left: 35%; animation-duration: 14s; animation-delay: 2s; }
.petals i:nth-child(4) { left: 50%; animation-duration: 17s; animation-delay: 1s; }
.petals i:nth-child(5) { left: 64%; animation-duration: 16s; animation-delay: 5s; }
.petals i:nth-child(6) { left: 76%; animation-duration: 19s; animation-delay: 3s; }
.petals i:nth-child(7) { left: 88%; animation-duration: 15s; animation-delay: 6s; }
.petals i:nth-child(8) { left: 94%; animation-duration: 20s; animation-delay: 7s; }

@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(20px);
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(-15px);
  }
}

.section-shell,
.nav-inner,
.hero-content {
  position: relative;
  z-index: 1;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.section-label {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(155, 61, 255, 0.12);
  color: var(--lilac-700);
  font-weight: 600;
  font-size: 0.9rem;
}

h1, h2, h3, .brand {
  font-family: "Playfair Display", serif;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--lilac-700);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-size: 1.5rem;
  color: var(--lilac-700);
  text-decoration: none;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  text-decoration: none;
  color: #4d4160;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--lilac-500));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.music-btn {
  border: none;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: white;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(181, 23, 47, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.music-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(181, 23, 47, 0.32);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem 5rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(207, 156, 255, 0.9), rgba(255, 245, 247, 0.95)),
    linear-gradient(180deg, var(--lilac-100), var(--white));
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  color: var(--lilac-700);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 1;
  color: #6a1b6a;
  animation: floatingText 4s ease-in-out infinite;
  text-shadow: 0 10px 24px rgba(155, 61, 255, 0.18);
}

.hero-subtitle {
  max-width: 700px;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: #5f5271;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--lilac-500), var(--gold-500));
  box-shadow: 0 12px 30px rgba(155, 61, 255, 0.24);
}

.btn-secondary {
  color: var(--lilac-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(155, 61, 255, 0.18);
}

.pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(230, 57, 70, 0.6) 47%, transparent 48%),
    linear-gradient(-45deg, transparent 46%, rgba(155, 61, 255, 0.6) 47%, transparent 48%),
    radial-gradient(circle, rgba(155, 61, 255, 0.45) 1px, transparent 1.5px);
  background-size: 120px 120px, 120px 120px, 26px 26px;
  background-position: center;
}

@keyframes floatingText {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.countdown-section {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1rem;
}

.count-card {
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.count-card span {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold-600);
  font-family: "Playfair Display", serif;
}

.count-card p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  font-weight: 500;
}

.datetime-box {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.datetime-item {
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.datetime-item h3 {
  margin: 0 0 0.5rem;
  color: var(--lilac-700);
  font-size: 1.2rem;
}

.datetime-item p {
  margin: 0;
  color: var(--gold-600);
  font-weight: 600;
  font-size: 1.05rem;
}

.intro {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.gallery-shell {
  padding-bottom: 4rem;
}

.masonry-gallery {
  columns: 3 320px;
  column-gap: 1.4rem;
}

.gallery-card {
  break-inside: avoid;
  margin: 0 0 1.4rem;
  background: transparent;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold-400);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.card-caption {
  position: static;
  padding: 1rem 0.2rem 0.4rem;
  background: transparent;
  color: var(--black);
}

.card-caption h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #7a1f4d;
}

.card-caption p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
    padding-top: 6rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .countdown-grid {
    grid-template-columns: 1fr 1fr;
  }

  .datetime-box {
    grid-template-columns: 1fr;
  }

  .music-btn {
    width: 100%;
  }

  .brand {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}