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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #22010d, #6f1033, #c9184a, #ff8fab);
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.25), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(255,214,224,.3), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255,255,255,.2), transparent 28%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero-card {
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: center;
  padding: 36px;
  border-radius: 36px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: .95;
}

h1 span {
  color: #ffd6e0;
  text-shadow: 0 0 30px rgba(255,214,224,.75);
}

.intro {
  max-width: 650px;
  margin-bottom: 24px;
  color: #ffe8ef;
  font-size: 20px;
  line-height: 1.7;
}

.love-letter {
  max-width: 720px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.15);
  border-left: 5px solid #ffd6e0;
  color: #fff7fa;
  font-size: 17px;
  line-height: 1.8;
}

.love-letter p {
  margin-bottom: 14px;
}

.love-letter strong {
  display: block;
  margin-top: 18px;
  font-size: 21px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: .3s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn.primary {
  background: #fff;
  color: #c9184a;
  box-shadow: 0 12px 26px rgba(0,0,0,.2);
}

.btn.ghost {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
}

.hero-photo {
  position: relative;
  min-height: 600px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: inset 0 0 70px rgba(0,0,0,.3), 0 25px 70px rgba(0,0,0,.32);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
}

.photo-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(43, 6, 21, .7);
  backdrop-filter: blur(10px);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.memories {
  margin-top: 42px;
  padding: 36px;
  border-radius: 34px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(16px);
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title p {
  color: #ffd6e0;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.section-title h2 {
  margin-top: 10px;
  font-size: clamp(28px, 5vw, 48px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.memory-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  color: #4a0f23;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  transition: .3s ease;
}

.memory-card:hover {
  transform: translateY(-7px) rotate(-1deg);
}

.memory-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.memory-card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  display: block;
}

.memory-card.large img {
  height: 520px;
}

.memory-card div {
  padding: 18px;
}

.memory-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
  color: #c9184a;
}

.memory-card p {
  line-height: 1.5;
  color: #5c2638;
}

.certificate {
  margin-top: 42px;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffd6e0, #fff, #ffc2d1);
  color: #4a0f23;
  box-shadow: 0 25px 70px rgba(0,0,0,.28);
}

.certificate-inner {
  padding: 38px;
  border-radius: 26px;
  border: 7px double #c9184a;
  text-align: center;
  background: rgba(255,255,255,.78);
}

.cert-label {
  color: #9d174d;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 900;
}

.certificate h2 {
  margin: 14px 0;
  color: #c9184a;
  font-size: clamp(32px, 6vw, 56px);
}

.certificate p {
  max-width: 780px;
  margin: 10px auto;
  font-size: 18px;
  line-height: 1.7;
}

.seal {
  width: 120px;
  height: 120px;
  margin: 28px auto 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9184a, #ff8fab);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(201,24,74,.35);
  transform: rotate(-8deg);
}

.hearts {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hearts span {
  position: absolute;
  top: -40px;
  font-size: 24px;
  opacity: .85;
  animation: fall linear infinite;
}

.hearts span:nth-child(1) { left: 4%; animation-duration: 8s; animation-delay: 0s; }
.hearts span:nth-child(2) { left: 16%; animation-duration: 11s; animation-delay: 2s; }
.hearts span:nth-child(3) { left: 28%; animation-duration: 9s; animation-delay: 1s; }
.hearts span:nth-child(4) { left: 44%; animation-duration: 12s; animation-delay: 3s; }
.hearts span:nth-child(5) { left: 58%; animation-duration: 8s; animation-delay: .5s; }
.hearts span:nth-child(6) { left: 72%; animation-duration: 10s; animation-delay: 2.5s; }
.hearts span:nth-child(7) { left: 84%; animation-duration: 13s; animation-delay: 1.5s; }
.hearts span:nth-child(8) { left: 95%; animation-duration: 9s; animation-delay: 4s; }

@keyframes fall {
  0% { transform: translateY(-60px) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.floating-gallery {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.float-img {
  position: absolute;
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 28px;
  opacity: .32;
  border: 2px solid rgba(255,255,255,.45);
  animation: float 8s ease-in-out infinite;
}

.float-1 { left: 20px; top: 16%; transform: rotate(-10deg); }
.float-2 { right: 32px; top: 22%; animation-delay: 2s; transform: rotate(9deg); }
.float-3 { left: 7%; bottom: 8%; animation-delay: 4s; transform: rotate(8deg); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -24px; }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(34,1,13,.72);
  backdrop-filter: blur(8px);
}

.modal.active {
  display: flex;
}

.modal-box {
  position: relative;
  max-width: 520px;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  color: #4a0f23;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
}

.modal-box h2 {
  color: #c9184a;
  margin-bottom: 12px;
  font-size: 34px;
}

.modal-box p {
  line-height: 1.6;
  font-size: 18px;
}

#closeModal {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #ffd6e0;
  color: #c9184a;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 950px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-photo img {
    min-height: 420px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding: 18px 0;
  }

  .hero-card,
  .memories,
  .certificate-inner {
    padding: 22px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .memory-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .memory-card.large img,
  .memory-card img {
    height: 330px;
  }

  .float-img {
    display: none;
  }
}
