@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff8fa;
  color: #2d2d2d;
}

/* ---------------- HERO ---------------- */

.hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: white;
  padding: 30px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.95;
}

/* ---------------- SECTIONS ---------------- */

.section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  color: #ff4d6d;
  margin-bottom: 20px;
}

/* ---------------- TOGETHER TIME ---------------- */

.together-time {
  text-align: center;
  margin-top: -40px;
  margin-bottom: 60px;
  font-size: 1rem;
  color: #444;
  letter-spacing: 0.3px;
}

.together-time strong {
  display: block;
  font-size: 1.3rem;
  color: #ff4d6d;
  margin-bottom: 6px;
}

.together-time span {
  font-size: 0.95rem;
  opacity: 0.75;
  font-style: italic;
}


/* ---------------- TIMELINE ---------------- */

.timeline-section {
  text-align: left;
}

.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 30px;
  border-left: 3px solid #ffb3c1;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item .dot {
  position: absolute;
  left: -12px;
  top: 6px;
  width: 18px;
  height: 18px;
  background: #ff4d6d;
  border-radius: 50%;
}

.timeline-item .content {
  padding-left: 20px;
}

.timeline-item h3 {
  margin: 0;
  color: #ff4d6d;
}

.timeline-item span {
  font-size: 0.9rem;
  color: #777;
}

.timeline-item p {
  margin-top: 8px;
}

/* ---------------- PHOTOS ---------------- */

.photos {
  background: white;
  padding: 60px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

.photo-grid img:hover {
  transform: scale(1.05);
}

/* ---------------- LOVE LETTER ---------------- */

.letter-section {
  margin-top: 100px;
}

.letter {
  background: #fffdf8;
  max-width: 700px;
  margin: 40px auto;
  padding: 50px 40px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;

  /* Scroll animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.letter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Paper lines */
.letter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 28px,
    rgba(0,0,0,0.03) 29px
  );
  pointer-events: none;
  z-index: 0;
}

#letter-text {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  line-height: 1.9;
  position: relative;
  z-index: 1;
  color: #2d2d2d;
}

.typing::after {
  content: "|";
  margin-left: 4px;
  animation: blink 1s infinite;
  font-weight: 300;
}



.signature {
  margin-top: 30px;
  font-size: 1.3rem;
  color: #ff4d6d;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ---------------- FOOTER ---------------- */

footer {
  text-align: center;
  padding: 25px;
  background: #ffe1e8;
  font-size: 0.9rem;
}

/* ---------------- ANIMATIONS ---------------- */

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .letter {
    padding: 35px 25px;
  }
}
