@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;800&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background: #120914;
  color: #fff;
}

.hidden {
  display: none;
}

.screen {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 118, 178, 0.25), transparent 35%),
    #120914;
}

.screen.active {
  display: flex;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

input {
  width: 100%;
  margin: 18px 0 12px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  outline: none;
}

button {
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #ff7ab6, #ffcf6d);
  color: #1b0b18;
  transition: transform 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

#error {
  display: block;
  color: #ff9ab0;
  min-height: 22px;
}

.hero {
  min-height: 100vh;
  padding: 80px 24px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,122,182,0.35), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(255,207,109,0.25), transparent 25%),
    #120914;
}

.hero > * {
  max-width: 720px;
}

.eyebrow {
  color: #ffcf6d;
  letter-spacing: 4px;
}

h1 {
  font-size: clamp(38px, 8vw, 84px);
  line-height: 1.15;
  margin: 10px 0 20px;
}

h2 {
  font-size: clamp(28px, 5vw, 48px);
  text-align: center;
  margin-bottom: 36px;
}

.hero p {
  font-size: 20px;
  line-height: 2;
  color: rgba(255,255,255,0.8);
}

.timeline,
.gallery,
.letter {
  padding: 80px 24px;
  max-width: 950px;
  margin: 0 auto;
}

.memory {
  margin: 20px 0;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
}

.memory span {
  color: #ffcf6d;
  font-size: 14px;
}

.memory h3 {
  margin: 8px 0;
}

.memory p,
.letter p {
  color: rgba(255,255,255,0.78);
  line-height: 2.1;
  font-size: 18px;
}

.photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  transform: rotate(-1deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.photos img:nth-child(even) {
  transform: rotate(1deg);
}

.letter {
  text-align: center;
}

#confetti {
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: block;
}

@media (max-width: 700px) {
  .photos {
    grid-template-columns: 1fr 1fr;
  }

  .photos img {
    height: 190px;
  }
}