:root {
  --bg: #0f0f14;
  --card: #17171f;
  --text: #f2f2f7;
  --muted: #a5a5b8;
  --accent: #ff7aa2;
  --accent2: #8f7cff;
}

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

body {
  background:
    radial-gradient(circle at top left,
      rgba(143, 124, 255, 0.15),
      transparent 30%),
    radial-gradient(circle at bottom right,
      rgba(255, 122, 162, 0.12),
      transparent 30%),
    var(--bg);

  color: var(--text);

  font-family: "Manrope", sans-serif;

  min-height: 100vh;

  overflow-x: hidden;

  position: relative;
}

body::before {
  content: "";

  position: fixed;

  inset: 0;

  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px,
      transparent 1px);

  background-size: 40px 40px;

  opacity: 0.15;

  pointer-events: none;
}

.container {
  width: min(1000px, 92%);
  margin: auto;
  padding: 48px 0 80px;
}

.hero {
  min-height: 90vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  position: relative;
}

.badge {
  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 8px 14px;

  border-radius: 999px;

  font-size: 0.9rem;

  color: var(--muted);

  margin-bottom: 18px;

  backdrop-filter: blur(10px);
}

.days-counter {
  color: var(--accent);

  margin-bottom: 20px;

  font-size: 0.95rem;

  letter-spacing: 0.5px;

  opacity: 0.6;
}

h1 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(3rem, 8vw, 6rem);

  line-height: 1;

  margin-bottom: 20px;

  max-width: 900px;
}

.gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));

  -webkit-background-clip: text;

  background-clip: text;

  -webkit-text-fill-color: transparent;
}

.subtitle {
  max-width: 700px;

  color: var(--muted);

  line-height: 1.8;

  font-size: 1.1rem;
}

.music {
  margin-top: 24px;

  display: flex;

  justify-content: center;
}

.music button {
  color: white;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 12px 18px;

  border-radius: 999px;

  cursor: pointer;

  font-family: "Manrope", sans-serif;

  font-size: 0.95rem;

  transition:
    transform 0.2s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.music button:hover {
  background: rgba(255, 255, 255, 0.14);

  transform: translateY(-2px);

  box-shadow: 0 0 25px rgba(255, 122, 162, 0.25);
}

.scroll {
  position: absolute;

  bottom: 0px;

  font-size: 1.5rem;

  color: var(--muted);

  opacity: 0.8;

  animation: float 2s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.section {
  margin-top: 120px;
}

.section-title {
  font-size: 2rem;

  margin-bottom: 28px;

  font-family: "Cormorant Garamond", serif;
}

.memory-space {
  position: relative;

  height: 850px;

  margin-top: 60px;

  border-radius: 32px;

  overflow: visible;

  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.03),
      transparent 60%);

  border: 1px solid rgba(255, 255, 255, 0.05);
}

.memory {
  position: absolute;

  width: 90px;
  height: 90px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(10px);

  cursor: pointer;

  transition: 0.35s ease;

  box-shadow: 0 0 25px rgba(143, 124, 255, 0.15);
}

.memory span {
  font-weight: 700;

  font-size: 1.1rem;
}

.memory:hover:not(.center-memory) {
  transform: scale(1.12);

  background: linear-gradient(135deg,
      rgba(255, 122, 162, 0.28),
      rgba(143, 124, 255, 0.28));
}

.memory-content {
  position: absolute;

  width: 240px;

  padding: 18px;

  border-radius: 18px;

  background: #16161f;

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #ececf3;

  line-height: 1.7;

  opacity: 0;

  pointer-events: none;

  top: 110px;

  left: 50%;

  transform: translateX(-50%) translateY(10px);

  transition: 0.3s ease;
}

.memory:hover .memory-content {
  opacity: 1;

  transform: translateX(-50%) translateY(0);
}

.center-memory {
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 120px;
  height: 120px;

  background: linear-gradient(135deg,
      rgba(255, 122, 162, 0.25),
      rgba(143, 124, 255, 0.25));

  box-shadow: 0 0 40px rgba(255, 122, 162, 0.25);
}

.center-memory span {
  font-size: 2rem;
}

.center-memory:hover {
  transform: translate(-50%, -50%) scale(1.12);

  background: linear-gradient(135deg,
      rgba(255, 122, 162, 0.35),
      rgba(143, 124, 255, 0.35));
}

.future-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 22px;

  margin-top: 40px;
}

.future-card {
  position: relative;

  padding: 28px;

  border-radius: 24px;

  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.03));

  border: 1px solid rgba(255, 255, 255, 0.07);

  overflow: hidden;

  transition: 0.3s ease;
}

.future-card:hover {
  transform: translateY(-6px);

  border-color: rgba(255, 255, 255, 0.15);
}

.future-number {
  font-size: 4rem;

  font-weight: 800;

  opacity: 0.08;

  position: absolute;

  top: 10px;
  right: 18px;
}

.future-card h3 {
  margin-bottom: 14px;

  font-size: 1.2rem;
}

.future-card p {
  color: var(--muted);

  line-height: 1.8;
}

.photos {
  display: flex;

  gap: 20px;

  flex-wrap: wrap;

  justify-content: center;

  margin-top: 40px;
}

.photos img {
  width: 220px;

  border-radius: 18px;

  object-fit: cover;

  transform: rotate(-2deg);

  transition: 0.3s ease;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.photos img:nth-child(2) {
  transform: rotate(2deg);
}

.photos img:hover {
  transform: scale(1.04) rotate(0deg);
}

.letter {
  background: linear-gradient(135deg,
      rgba(255, 122, 162, 0.12),
      rgba(143, 124, 255, 0.08));

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 40px;

  border-radius: 28px;

  margin-top: 30px;

  line-height: 2;

  font-size: 1.05rem;

  color: #ececf3;
}

.heart {
  display: inline-block;

  animation: heartbeat 1.6s infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  20% {
    transform: scale(1.15);
  }

  40% {
    transform: scale(1);
  }

  60% {
    transform: scale(1.12);
  }
}

@media (max-width: 768px) {
  .memory-space {
    height: auto;

    display: flex;

    flex-direction: column;

    gap: 18px;

    padding: 20px;
  }

  .memory {
    position: relative !important;

    top: unset !important;
    left: unset !important;
    right: unset !important;

    width: 100%;

    height: auto;

    min-height: 90px;

    border-radius: 24px;

    padding: 20px;

    justify-content: flex-start;

    gap: 16px;
  }

  .memory-content {
    position: relative;

    opacity: 1;

    pointer-events: auto;

    top: unset;
    left: unset;

    width: 100%;

    transform: none !important;

    background: transparent;

    border: none;

    padding: 0;
  }

  .center-memory {
    transform: none;

    width: 100%;

    height: auto;
  }

  .photos img {
    width: 100%;
    max-width: 320px;
  }

  .letter {
    padding: 28px;
  }
}