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

body {
  font-family: "Poppins", sans-serif;
  background: #fff0f3;
  color: #333;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}

h1 {
  font-family: "Dancing Script", cursive;
  font-size: 3.5rem;
  color: #ff1e56;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: titleFloat 3s ease-in-out infinite;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline h2 {
  text-align: center;
  color: #ff1e56;
  background: #fff0f3;
  padding: 0 1rem;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #ff1e56;
  top: 0;
}

.timeline-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.time {
  background: #ff1e56;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-right: 2rem;
  font-weight: bold;
}

.event {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 60%;
}

.event h3 {
  color: #ff1e56;
  margin-bottom: 0.5rem;
}

.love-letter {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
  text-align: center;
}

.love-letter h2 {
  font-family: "Dancing Script", cursive;
  color: #ff1e56;
  margin-bottom: 1rem;
}

.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

footer {
  text-align: center;
  padding: 2rem;
  font-family: "Dancing Script", cursive;
  font-size: 1.5rem;
  color: #ff1e56;
}

@keyframes heartBeat {
  0% {
    transform: rotate(45deg) scale(1);
  }
  25% {
    transform: rotate(45deg) scale(1.1);
  }
  50% {
    transform: rotate(45deg) scale(1);
  }
  75% {
    transform: rotate(45deg) scale(1.1);
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}

@keyframes titleFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .timeline:before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px;
  }

  .time {
    margin-bottom: 1rem;
    margin-right: 0;
  }

  .event {
    width: 100%;
  }

  .timeline h2 {
    left: 30px;
    transform: translateX(0);
  }
}
