* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: linear-gradient(to bottom, #8b0000, #ff4d4d);
  color: white;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  gap: 25px;
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* SECTIONS */
.section {
  min-height: 100vh;
  padding: 100px 20px 60px;
  text-align: center;
}

/* HOME */
.home h1 {
  font-size: 3rem;
  animation: glow 2s infinite alternate;
}

.hero-gif {
  width: 260px;
  max-width: 80%;
  margin: 25px auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.wish {
  margin-top: 15px;
  font-size: 1.2rem;
}

.tree span {
  font-size: 3rem;
  margin: 15px;
  display: inline-block;
  animation: float 2s infinite ease-in-out;
  will-change: transform;
}

/* LOVE ZONE */
.love {
  background: linear-gradient(to bottom, #ff5f6d, #ffc371);
  color: #5a0000;
}

.love-text, .proposal {
  max-width: 700px;
  margin: 20px auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  border-radius: 15px;
  opacity: 0;
  transform: scale(0.7);
  animation: pop 0.6s forwards;
  will-change: transform, opacity;
}

/* CAKE */
.cake {
  background: linear-gradient(to bottom, #ff9a9e, #fad0c4);
  color: #4a0000;
}

.cake-gif {
  width: 220px;
  max-width: 80%;
  margin: 30px auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* FOOTER */
footer {
  padding: 20px;
  background: rgba(0,0,0,0.2);
}

/* MUSIC BUTTON */
.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  background: #2ecc71;
  z-index: 1000;
}

/* SNOW */
.snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.snow {
  position: absolute;
  top: -10px;
  animation: fall linear infinite;
  will-change: transform;
}

/* HEARTS */
.heart {
  position: fixed;
  bottom: 0;
  animation: floatUp 6s linear forwards;
  pointer-events: none;
  z-index: 2;
  will-change: transform, opacity;
}

/* ANIMATIONS */
@keyframes glow {
  from { text-shadow: 0 0 10px gold; }
  to { text-shadow: 0 0 25px white; }
}

@keyframes float {
  50% { transform: translateY(-15px); }
}

@keyframes pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fall {
  to { transform: translateY(110vh); }
}

@keyframes floatUp {
  to {
    transform: translateY(-110vh) scale(1.4);
    opacity: 0;
  }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .home h1 {
    font-size: 2.2rem;
  }
}
