* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  color: #7a1f3d;
  overflow-x: hidden;
  background: linear-gradient(120deg, #ffc0d6, #ffb3c7); /* richer pink */
  transition: background 0.5s ease;
}

/* HEADINGS */
.hero h1,
.surprise h2 {
  font-family: "Great Vibes", cursive;
  font-size: 4rem;
  color: #c2185b;
  text-shadow: 0 4px 15px rgba(194, 24, 91, 0.25);
}

.hero p,
.wishes p,
.love-note p,
.surprise p {
  color: #7a1f3d;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: center;
  margin: auto;
}

/* WAVE TEXT */
.wave-text {
  animation: wave 3s ease-in-out infinite;
}
@keyframes wave {
  50% {
    transform: translateY(-10px);
  }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* SECTIONS */
.hero {
  padding: 60px 20px;
  text-align: center;
  min-height: 50vh;
  transition: background 0.4s ease;
}
.hero:hover {
  background: rgba(255, 192, 214, 0.2);
}

/* WISHES */
.wishes {
  padding: 30px 20px;
  text-align: center;
  transition: background 0.4s ease;
}
.wishes:hover {
  background: rgba(255, 192, 214, 0.15);
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 60px 20px;
  transition: background 0.4s ease;
}
.gallery:hover {
  background: rgba(255, 192, 214, 0.05);
}

.card {
  position: relative;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  transition: 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* CARD HOVER */
.card:hover {
  transition: all 0.6s;
  border: 0.1px solid #ff4da6;
  box-shadow: 0 90px 30px #ff9acb, 0 0 60px #ff4da6;
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 192, 214, 0.2);
}
.card-cover {
  position: absolute;
  inset: 0;
  background: #ffe4ef; /* soft pink */
  color: #c2185b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Great Vibes", cursive;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  transition: 0.5s ease, background 0.5s ease, color 0.5s ease;
  border-radius: 22px;
  text-align: center;
  padding: 10px;
  opacity: 1;
}

/* IMAGE */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.card:hover img {
  opacity: 1;
  transform: scale(1.05);
}
.card:hover .card-cover {
  opacity: 0;
}
/* CORNER HEARTS */
.card::before,
.card::after,
.card span.corner-heart,
.card span.corner-heart2 {
  content: "💖";
  position: absolute;
  font-size: 14px;
  opacity: 0.7;
  animation: heartBeat 1.8s ease-in-out infinite;
}

.card::before {
  top: 8px;
  left: 8px;
}
.card::after {
  top: 8px;
  right: 8px;
}
.card span.corner-heart {
  bottom: 8px;
  left: 8px;
}
.card span.corner-heart2 {
  bottom: 8px;
  right: 8px;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.2);
  }
}

/* SCROLL REVEAL BASE */
.scroll-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* WHEN VISIBLE */
.scroll-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* LOVE NOTE */
.love-note {
  transition: background 0.4s ease, transform 0.4s ease;
  padding: 2rem 1rem;
  width: 60%;
  margin: auto;
  border-radius: 30px;
}
.love-note:hover {
  background: rgba(255, 192, 214, 0.5);
  box-shadow: 1px 1px 20px 0px #c2185b;
  transform: scale(1.02);
}

/* SURPRISE */
.surprise {
  padding: 60px 20px;
  text-align: center;
  transition: background 0.4s ease, transform 0.4s ease;
}
.surprise:hover {
  background: rgba(255, 192, 214, 0.3);
  transform: scale(1.01);
}

/* HEART BURST */
.burst-heart {
  position: absolute;
  animation: burst 1.7s ease-out forwards;
}
@keyframes burst {
  to {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}

.hero,
.wishes,
.gallery,
.love-note,
.surprise,
.card {
  transition: all 0.4s ease-in-out;
}

/* PARTICLES CONTAINER */
.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* PARTICLE STYLE */
.particles span {
  position: absolute;
  font-size: 20px;
  opacity: 0.7;
  animation: floatParticle linear infinite;
}

/* DIFFERENT POSITIONS AND SPEEDS */
.particles span:nth-child(1) {
  left: 5%;
  animation-duration: 12s;
  animation-delay: 0s;
}
.particles span:nth-child(2) {
  left: 15%;
  animation-duration: 10s;
  animation-delay: 1s;
}
.particles span:nth-child(3) {
  left: 25%;
  animation-duration: 14s;
  animation-delay: 2s;
}
.particles span:nth-child(4) {
  left: 35%;
  animation-duration: 11s;
  animation-delay: 3s;
}
.particles span:nth-child(5) {
  left: 45%;
  animation-duration: 13s;
  animation-delay: 4s;
}
.particles span:nth-child(6) {
  left: 55%;
  animation-duration: 12s;
  animation-delay: 1.5s;
}
.particles span:nth-child(7) {
  left: 65%;
  animation-duration: 15s;
  animation-delay: 2.5s;
}
.particles span:nth-child(8) {
  left: 75%;
  animation-duration: 14s;
  animation-delay: 3.5s;
}
.particles span:nth-child(9) {
  left: 85%;
  animation-duration: 16s;
  animation-delay: 4.5s;
}
.particles span:nth-child(10) {
  left: 95%;
  animation-duration: 13s;
  animation-delay: 2s;
}

/* FLOAT ANIMATION */
@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}
