@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Pacifico&display=swap');

:root {
  --pink: #ff7ac8;
  --pink-strong: #ff4fb3;
  --purple: #8b5cf6;
  --purple-deep: #5b21b6;
  --lavender: #f3e6ff;
  --peach: #ffe5f4;
  --ink: #2a1a3f;
  --glow: rgba(255, 122, 200, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Fredoka', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffe9f6 0%, #f3d9ff 40%, #f3f7ff 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../background.jpg') center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.6), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(139, 92, 246, 0.12), transparent 45%);
  z-index: -1;
}

.title-script {
  font-family: 'Pacifico', cursive;
  letter-spacing: 0.5px;
}

.turning-one {
  position: relative;
  display: inline-block;
  font-family: 'Pacifico', cursive;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, #ff7ac8, #ff4fb3, #ffd6f0, #8b5cf6);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 20px rgba(255, 122, 200, 0.35);
  animation: one-shimmer 4.2s ease-in-out infinite, one-pulse 2.6s ease-in-out infinite;
}

.turning-one::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.08em;
  height: 0.18em;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(255, 122, 200, 0.2), rgba(139, 92, 246, 0.7), rgba(255, 122, 200, 0.2));
  opacity: 0.85;
  filter: blur(0.5px);
  animation: one-underline 3.2s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 122, 200, 0.15));
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb.orb-two {
  width: 240px;
  height: 240px;
  animation-duration: 10s;
  animation-delay: -2s;
}

.card-glass {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 45px rgba(91, 33, 182, 0.12);
  backdrop-filter: blur(12px);
}

.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(var(--tilt-perspective, 900px)) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.tilt-card.is-tilting {
  box-shadow: 0 24px 55px rgba(91, 33, 182, 0.2);
}

[data-parallax] {
  transform: translate3d(0, var(--parallax-offset, 0px), 0);
  will-change: transform;
}

.magic-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-strong), var(--purple));
  color: #fff;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.magic-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 30px rgba(139, 92, 246, 0.4);
}

.magic-button::after {
  content: '';
  position: absolute;
  top: -80%;
  left: -40%;
  width: 60%;
  height: 260%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(20deg);
  animation: shimmer 4s linear infinite;
}

.ribbon {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 122, 200, 0.3);
  box-shadow: 0 6px 20px rgba(255, 122, 200, 0.2);
}

.sparkle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 122, 200, 0.2));
  animation: twinkle 4s ease-in-out infinite;
}

.unicorn-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.unicorn-icon {
  position: absolute;
  width: var(--size, 40px);
  height: var(--size, 40px);
  opacity: 0.35;
  filter: drop-shadow(0 10px 18px rgba(139, 92, 246, 0.2));
  animation: drift var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

header,
section,
footer {
  position: relative;
  z-index: 1;
}

.celebrant-carousel {
  position: relative;
}

.carousel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 35px rgba(91, 33, 182, 0.15);
  touch-action: pan-y;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-image.is-entering-left {
  transform: translateX(-100%);
}

.carousel-image.is-entering-right {
  transform: translateX(100%);
}

.carousel-image.is-exiting-left {
  transform: translateX(-100%);
  z-index: 2;
}

.carousel-image.is-exiting-right {
  transform: translateX(100%);
  z-index: 2;
}

.carousel-image.is-active {
  transform: translateX(0);
  z-index: 1;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}

.carousel-button {
  pointer-events: auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(91, 33, 182, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 28px rgba(91, 33, 182, 0.25);
}

.carousel-meta {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.celebrant-carousel[data-carousel-single='1'] .carousel-controls,
.celebrant-carousel[data-carousel-single='1'] .carousel-meta {
  display: none;
}

.float-slow {
  animation: float 7s ease-in-out infinite;
}

.float-medium {
  animation: float 5.5s ease-in-out infinite;
}

.float-fast {
  animation: float 4.5s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill.is-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  justify-content: center;
  line-height: 1;
}

.status-pill[data-status='yes'] {
  background: rgba(52, 211, 153, 0.18);
  color: #065f46;
}

.status-pill[data-status='no'] {
  background: rgba(248, 113, 113, 0.18);
  color: #991b1b;
}

.status-pill[data-status='pending'] {
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 9999px;
  background: rgba(34, 25, 63, 0.9);
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 55px rgba(91, 33, 182, 0.16);
  overflow: hidden;
}

.contact-shell::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 320px;
  height: 320px;
  background: conic-gradient(from 120deg, rgba(255, 122, 200, 0.5), rgba(139, 92, 246, 0.35), rgba(255, 229, 244, 0.2), transparent 60%);
  opacity: 0.6;
  filter: blur(8px);
}

.contact-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.25;
  pointer-events: none;
}

.contact-badge {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #ff7ac8, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.25);
  position: relative;
  z-index: 1;
}

.contact-body {
  position: relative;
  z-index: 1;
}

.contact-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(42, 26, 63, 0.6);
}

.contact-value {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.35rem;
  word-break: break-word;
}

.contact-note {
  font-size: 0.95rem;
  color: rgba(42, 26, 63, 0.65);
  margin-top: 0.35rem;
}

.contact-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(91, 33, 182, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(91, 33, 182, 0.18);
}

@media (max-width: 768px) {
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .contact-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card {
    transform: none;
    transition: none;
  }

  [data-parallax] {
    transform: none;
  }
}

body.celebration-active {
  overflow: hidden;
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}

.celebration-particle {
  position: absolute;
  left: var(--left, 50%);
  top: var(--top, 0%);
  width: var(--size, 10px);
  height: var(--size, 10px);
  background: var(--color, var(--pink));
  opacity: 0;
  animation-duration: var(--duration, 3s);
  animation-delay: var(--delay, 0s);
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

.celebration-confetti {
  border-radius: 2px;
  animation-name: confetti-fall;
}

.celebration-balloon {
  border-radius: 9999px;
  box-shadow: inset -6px -8px 0 rgba(255, 255, 255, 0.35);
  animation-name: balloon-rise;
}

.celebration-balloon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 22px;
  background: rgba(42, 26, 63, 0.35);
  transform: translateX(-50%);
}

.celebration-heart {
  animation-name: heart-rise;
}

.celebration-heart::before,
.celebration-heart::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
}

.celebration-heart::before {
  top: -50%;
  left: 0;
}

.celebration-heart::after {
  top: 0;
  left: 50%;
}

.celebration-burst {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation-name: burst-pop;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, var(--float-offset, 0px), 0);
  }
  50% {
    transform: translate3d(0, calc(var(--float-offset, 0px) - 14px), 0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, var(--drift-offset, 0px), 0) rotate(var(--tilt, 0deg));
  }
  50% {
    transform: translate3d(0, calc(var(--drift-offset, 0px) - 12px), 0) rotate(var(--tilt, 0deg));
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-60%) rotate(20deg);
  }
  100% {
    transform: translateX(220%) rotate(20deg);
  }
}

@keyframes one-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes one-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
  }
}

@keyframes one-underline {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(0.85);
  }
  50% {
    opacity: 0.95;
    transform: scaleX(1.05);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 0px), 120vh, 0) rotate(360deg);
  }
}

@keyframes balloon-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 0px), -140vh, 0) scale(1.05);
  }
}

@keyframes heart-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.6);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 0px), -120vh, 0) rotate(-45deg) scale(1);
  }
}

@keyframes burst-pop {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.2) rotate(0deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 0px), -40vh, 0) scale(1) rotate(140deg);
  }
}
