:root {
  --bg-gradient: linear-gradient(135deg, #f0fff4, #dcfce7, #ecfff1);
  --primary: #2e7d4f;
  --soft-green: #66bb6a;
  --accent: #a5d6a7;
  --text-dark: #1f3d2b;
  --muted: #5f7f6d;
  --card-bg: rgba(255, 255, 255, 0.85);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Background */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Soft floating glow */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #bbf7d0 0%, transparent 70%);
  z-index: -1;
  opacity: 0.5;
}

body::before {
  top: -200px;
  left: -200px;
}

body::after {
  bottom: -200px;
  right: -200px;
}

/* Container */
.container {
  max-width: 800px;
  width: 100%;
}

/* Header */
header {
  margin-bottom: 3rem;
}

/* Back link */
.back {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  transition: 0.3s ease;
}

.back:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

/* Title */
h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-top: 1rem;
}

/* Intro text */
.intro {
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 500px;
  font-size: 0.95rem;
}

/* Memory Cards */
.memory {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 25px;
  margin-bottom: 3rem;
  box-shadow: 0 20px 50px rgba(46, 125, 79, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(46, 125, 79, 0.18);
}

/* Images */
.memory img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.memory img:hover {
  transform: scale(1.02);
}

/* Caption */
.caption {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Footer */
footer {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.5px;
}

/* Fade in animation */
.memory {
  animation: fadeInUp 0.8s ease both;
}

.memory:nth-child(2) { animation-delay: 0.1s; }
.memory:nth-child(3) { animation-delay: 0.2s; }
.memory:nth-child(4) { animation-delay: 0.3s; }
.memory:nth-child(5) { animation-delay: 0.4s; }
.memory:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Hearts Background */

.hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.heart {
  position: absolute;
  bottom: -50px;
  font-size: 1.5rem;
  opacity: 0.9;
  animation: rise linear forwards;
  filter: drop-shadow(0 0 10px rgba(255, 80, 120, 0.4));
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-120vh) scale(1.3) rotate(20deg);
    opacity: 0;
  }
}
