:root {
  --primary-rose: #ff4d94;
  --secondary-gold: #d4af37;
  --bg-mesh-1: #fff0f5;
  --bg-mesh-2: #ffe4e1;
  --bg-mesh-3: #fef9e7;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(142, 63, 107, 0.15);
  --text-main: #4a344d;
  --font-heading: "Dancing Script", cursive;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg-mesh-1);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  padding: 60px 20px;
  position: relative;
  line-height: 1.6;
}

.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(
    circle at 0% 0%,
    var(--bg-mesh-1) 0%,
    var(--bg-mesh-2) 50%,
    var(--bg-mesh-3) 100%
  );
}

.blob {
  position: absolute;
  width: min(60vw, 500px);
  height: min(60vw, 500px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: blobFloat 20s infinite alternate
    cubic-bezier(0.45, 0.05, 0.55, 0.95);
  will-change: transform;
  backface-visibility: hidden;
}

.blob-1 {
  background: #ffb7d5;
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  background: #e1c1ff;
  bottom: -15%;
  right: -5%;
  animation-delay: -5s;
  width: 600px;
  height: 600px;
}

.blob-3 {
  background: #fff8c4;
  top: 40%;
  left: 15%;
  animation-delay: -10s;
  opacity: 0.4;
}

.blob-4 {
  background: #ff9fb4;
  bottom: 30%;
  right: 20%;
  animation-delay: -15s;
  opacity: 0.3;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

.container {
  width: min(1100px, 100%);
  position: relative;
  z-index: 2;
}

header {
  text-align: center;
  margin-bottom: 80px;
  padding: 60px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  box-shadow: var(--glass-shadow);
  animation: fadeInScale 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 768px) {
  header,
  section {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 8vw, 6rem);
  color: var(--primary-rose);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-family: var(--font-serif);
  color: #6d4b68;
  max-width: 800px;
  margin: 0 auto 30px;
  font-style: italic;
}

.celebrate-btn {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #ff4d94 0%, #d42d6d 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 77, 148, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 5;
}

.celebrate-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 77, 148, 0.4);
}

.celebrate-btn:active {
  transform: scale(0.95);
}

.celebrate-btn.pulse-active {
  animation: celebratePulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celebratePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

section {
  margin: 40px 0;
  padding: 50px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 35px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

section:hover {
  transform: translateY(-5px);
}

section h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: #8a3a6b;
  margin-bottom: 30px;
  text-align: center;
}

.message p,
.love-message p {
  font-size: 1.2rem;
  text-align: center;
  color: #5d4a5d;
  line-height: 1.8;
}

.gallery {
  padding-bottom: 60px;
}

.gallery-container {
  margin-top: 20px;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.photo-card {
  background: rgba(255, 255, 255, 0.4);
  padding: 15px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.photo-card:hover {
  transform: rotate(2deg) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.photo-card img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 15px;
}

.photo-card p {
  text-align: center;
  font-weight: 600;
  color: #8a3a6b;
  font-family: var(--font-serif);
}

.romantic-note {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-style: dashed;
}

.romantic-note p {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: #ca4b8c;
}

footer {
  text-align: center;
  padding: 40px;
  color: #8a5a7f;
  font-weight: 500;
}

@media (max-width: 768px) {
  body {
    padding: 40px 15px;
  }

  header,
  section {
    padding: 40px 20px;
  }

  h1 {
    font-size: 3.2rem;
  }

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

@media (min-width: 600px) and (max-width: 1024px) {
  .photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

#celebration-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.flash-effect {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
}

.flash-active {
  animation: screenFlash 0.4s ease-out;
}

@keyframes screenFlash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.15;
  }
  100% {
    opacity: 0;
  }
}
