* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #070707, #120812, #1a0814);
  color: #fff;
  overflow-x: hidden;
}

/* Floating Hearts */
body::before {
  content: "❤️ ❤️ 💖 ❤️ 💕 ❤️ 💖 ❤️";
  position: fixed;
  top: -50px;
  left: 0;
  width: 100%;
  font-size: 24px;
  opacity: 0.25;
  pointer-events: none;
  animation: hearts 18s linear infinite;
  z-index: 999;
}

@keyframes hearts {
  from {
    transform: translateY(-50px);
  }
  to {
    transform: translateY(120vh);
  }
}

#loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader h2 {
  color: #ff69b4;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.08);
  }
}

/* Floating Hearts */

.floating-hearts span {
  position: fixed;
  bottom: -50px;
  font-size: 24px;
  pointer-events: none;
  animation: floatHeart 12s linear infinite;
  z-index: 999;
}

.floating-hearts span:nth-child(1) {
  left: 10%;
}

.floating-hearts span:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
}

.floating-hearts span:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
}

.floating-hearts span:nth-child(4) {
  left: 70%;
  animation-delay: 6s;
}

.floating-hearts span:nth-child(5) {
  left: 90%;
  animation-delay: 8s;
}

@keyframes floatHeart {
  from {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  to {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}

/* Scroll Reveal */

.story-card,
.letter-box {
  opacity: 0;
  transform: translateY(80px);
  transition: 1s ease;
}

.story-card.show,
.letter-box.show {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Glow */

.story-card img,
.slide img {
  box-shadow: 0 15px 40px rgba(255, 105, 180, 0.25);
  transition: 0.5s;
}

.story-card img:hover,
.slide img:hover {
  transform: scale(1.05);
}

.final-content {
  animation: glowBox 3s infinite alternate;
}

@keyframes glowBox {
  from {
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
  }

  to {
    box-shadow: 0 0 60px rgba(255, 105, 180, 0.8);
  }
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom 18s infinite alternate;
}

.overlay {
  position: absolute;
  inset: 0;
  background: #00000061;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: 5rem;
  text-shadow: 0 0 25px #ff69b4;
}

.hero-content h2 {
  font-size: 2.5rem;
  color: #ff69b4;
  margin-top: 10px;
  text-shadow: 0 0 20px #ff69b4;
}

.hero-content p {
  margin-top: 15px;
  font-size: 1.2rem;
}

.hero-content a {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 30px;
  background: #ff4d8d;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.4s;
}

.hero-content a:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px #ff69b4;
}

/* Story */

.story {
  max-width: 1400px;
  margin: auto;
  padding: 100px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.story-card {
  text-align: center;
}

.story-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 25px;
  transition: 0.5s;
  box-shadow: 0 15px 40px rgba(255, 105, 180, 0.25);
}

.story-card img:hover {
  transform: scale(1.05);
}

.story-card h3 {
  margin-top: 20px;
}

/* Slider */

.memory-slider {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding: 60px;
  scroll-snap-type: x mandatory;
}

.memory-slider::-webkit-scrollbar {
  height: 8px;
}

.slide {
  min-width: 420px;
  scroll-snap-align: center;
}

.slide img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 25px;
  transition: 0.5s;
  box-shadow: 0 15px 40px rgba(255, 105, 180, 0.25);
}

.slide img:hover {
  transform: scale(1.04);
}

/* Letter */

.letter {
  padding: 120px 20px;
}

.letter-box {
  max-width: 800px;
  margin: auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px;
  border-radius: 30px;
  line-height: 2;
  text-align: center;
}

.letter-box h2 {
  margin-bottom: 20px;
  color: #ff69b4;
}

/* Final */

.final {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.final img {
  position: absolute;
  width: 100%;
  height: 85%;
  object-fit: cover;
}

.final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.final-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 25px;
  margin-top: 250px;
}

.final-content h2 {
  font-size: 3rem;
  color: #ff69b4;
}

button {
  padding: 12px 25px !important;
  border: none;
  border-radius: 50px;
  background: #ff4d8d;
  color: #fff;
  cursor: pointer;
  margin-top: 20px;
  font-size: 18px;
  transition: 0.4s;
}

button:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px #ff69b4;
}

@keyframes zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15);
  }
}

/* Mobile */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
    line-height: 55px;
  }
  .hero-content {
    margin-top: 150px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .story {
    display: block;
    padding: 80px 20px;
  }

  .story-card {
    margin-bottom: 50px;
  }

  .story-card img {
    height: auto;
  }

  .memory-slider {
    padding: 20px;
  }

  .slide {
    min-width: 85vw;
  }

  .slide img {
    height: auto;
  }

  .letter-box {
    padding: 30px;
  }

  .final-content h2 {
    font-size: 2rem;
  }
}
