@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --bg: #09070d;
  --bg-2: #110b16;
  --text: #fff7fc;
  --muted: #c9b9c8;
  --pink: #ff72b8;
  --pink-soft: rgba(255, 114, 184, 0.22);
  --purple: #9d7cff;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(157, 124, 255, 0.13), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(255, 114, 184, 0.11), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg-2) 55%, #08060c);
  color: var(--text);
  font-family: "Cairo", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(rgba(255,255,255,.8) .5px, transparent .5px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

a { color: inherit; }

button, input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.glass {
  background: linear-gradient(135deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-card {
  width: min(430px, 100%);
  border-radius: 30px;
  padding: 42px 30px 34px;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: cardIn .9s ease both;
}

.mini-heart {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255,114,184,.12);
  border: 1px solid rgba(255,114,184,.25);
  color: var(--pink);
  font-size: 24px;
  box-shadow: 0 0 35px rgba(255,114,184,.2);
}

.eyebrow {
  margin: 0 0 8px;
  color: #d9c7d8;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-card h1,
.hero-name {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
}

.login-card h1 {
  font-size: clamp(3rem, 13vw, 5rem);
  line-height: 1;
}

.login-subtitle {
  color: var(--muted);
  margin: 15px 0 22px;
}

#loginForm {
  display: grid;
  gap: 12px;
}

#passwordInput {
  width: 100%;
  text-align: center;
  letter-spacing: .45em;
  border-radius: 16px;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(0,0,0,.22);
  padding: 15px;
}

#passwordInput::placeholder {
  color: #8d7c8d;
}

#passwordInput:focus {
  border-color: rgba(255,114,184,.55);
  box-shadow: 0 0 0 4px rgba(255,114,184,.08);
}

#loginForm button,
.surprise-button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #ff5eaa, #9d7cff);
  box-shadow: 0 12px 30px rgba(255, 94, 170, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

#loginForm button:hover,
.surprise-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(255, 94, 170, .28);
}

.error-message {
  min-height: 76px;
  margin: 18px 0 0;
  color: #ffd9eb;
  line-height: 1.9;
}

.ambient {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .25;
}

.ambient-1 {
  background: #ff4fa6;
  top: -130px;
  right: -100px;
}

.ambient-2 {
  background: #8064ff;
  bottom: -150px;
  left: -120px;
}

.site {
  animation: fadeIn 1s ease both;
}

.section {
  width: min(1050px, calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0;
  position: relative;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255, 114, 184, .14);
  filter: blur(85px);
  z-index: -1;
}

.hero-name {
  font-size: clamp(4rem, 17vw, 9rem);
  line-height: .95;
  margin: 6px 0 28px;
  text-shadow: 0 0 45px rgba(255,114,184,.18);
}

.photo-frame {
  width: min(560px, 92vw);
  padding: 9px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,114,184,.8), rgba(157,124,255,.5), rgba(255,255,255,.12));
  box-shadow:
    0 0 55px rgba(255,114,184,.16),
    0 30px 90px rgba(0,0,0,.45);
}

.photo-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 23px;
  filter: saturate(.92) contrast(1.02);
}

.hero-line {
  margin: 28px 0 0;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  line-height: 2;
  color: #f8eaf3;
}

.scroll-hint {
  margin-top: 55px;
  color: #cbb9ca;
  text-decoration: none;
  font-size: .9rem;
  animation: float 2.5s ease-in-out infinite;
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 42px;
}

.section-heading span {
  color: var(--pink);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 7vw, 3.6rem);
  margin: 8px 0 12px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-radius: 28px;
  padding: 18px;
  gap: 10px;
}

.counter-item {
  text-align: center;
  padding: 18px 8px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.counter-item strong {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
}

.counter-item span {
  color: var(--muted);
  font-size: .82rem;
}

.letter-card {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 30px;
  padding: clamp(28px, 6vw, 55px);
  text-align: right;
}

.letter-line {
  margin: 0 0 28px;
  color: #f6eaf2;
  font-size: clamp(1.05rem, 2.7vw, 1.25rem);
  line-height: 2.25;
}

.letter-line:last-child {
  margin-bottom: 0;
}

.reveal-text {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,114,184,.55), rgba(157,124,255,.5), transparent);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 35px 48px;
}

.timeline-item:nth-child(odd) {
  margin-right: 50%;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: 0;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(13,10,18,.9);
  border: 1px solid rgba(255,114,184,.45);
  box-shadow: 0 0 25px rgba(255,114,184,.16);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  left: -22px;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: -22px;
}

.timeline-card {
  border-radius: 24px;
  padding: 24px;
}

.timeline-date {
  color: var(--pink);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin: 8px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.timeline-card p {
  color: var(--muted);
  line-height: 2;
  margin: 0;
}

.timeline-card b {
  color: #fff;
}

.song-card {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
}

.vinyl {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #e9dbe5 0 7%, #1c1520 8% 15%, #09070d 16% 100%);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--pink);
  box-shadow: 0 0 30px rgba(255,114,184,.12);
}

.song-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
}

.song-card p {
  margin: 3px 0 0;
  color: var(--muted);
}

.music-player {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 82px 1fr 54px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

.music-info h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
}

.music-info p {
  margin: 4px 0 0;
  color: var(--muted);
}

.music-toggle {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #ff5eaa, #9d7cff);
  box-shadow: 0 0 28px rgba(255,94,170,.22);
  font-size: 1.05rem;
}

.music-toggle:active {
  transform: scale(.94);
}

.vinyl.playing {
  animation: spin 3s linear infinite;
}

.song-card small {
  grid-column: 1 / -1;
  color: #9f8e9e;
  line-height: 1.8;
}

.surprise-section {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.surprise-wrap {
  width: 100%;
}

.surprise-button {
  min-width: min(330px, 100%);
  font-size: 1rem;
}

.surprise-content {
  max-width: 760px;
  margin: 38px auto 0;
  border-radius: 30px;
  padding: clamp(28px, 6vw, 60px);
  display: none;
  text-align: center;
  animation: surpriseIn 1s ease both;
}

.surprise-content.open {
  display: block;
}

.surprise-heart {
  font-size: 2.4rem;
  color: var(--pink);
  text-shadow: 0 0 30px rgba(255,114,184,.45);
}

.surprise-small {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  margin: 15px 0 25px;
}

.surprise-content p {
  color: #f2e5ee;
  line-height: 2.15;
  font-size: 1.08rem;
}

.surprise-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.5;
  margin: 28px 0;
}

.final-message {
  display: grid;
  gap: 7px;
  margin: 42px 0 30px;
}

.final-message strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.7rem, 10vw, 5rem);
}

.final-message span {
  color: var(--muted);
}

.last-joke {
  color: #cdb9c8 !important;
  font-size: .95rem !important;
}

.last-joke b {
  color: var(--pink);
}

footer {
  text-align: center;
  color: #89798a;
  padding: 25px 20px 45px;
  font-size: .8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.shake {
  animation: shake .55s ease;
}

.heart-particle {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  font-size: 18px;
  animation: heartFloat 1.8s ease-out forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(9px); }
  40% { transform: translateX(-9px); }
  60% { transform: translateX(6px); }
  80% { transform: translateX(-5px); }
}

@keyframes surpriseIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes heartFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(.7) rotate(0);
  }
  15% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -150px) scale(1.2) rotate(18deg);
  }
}

@media (max-width: 800px) {
  .section {
    padding: 85px 0;
  }

  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline::before {
    right: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    margin: 0;
    padding: 0 0 36px 0;
    padding-right: 62px;
    text-align: right;
  }

  .timeline-item .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    right: -2px;
    left: auto;
  }

  .timeline-card {
    padding: 20px;
  }

  .song-card {
    grid-template-columns: 60px 1fr;
    padding: 23px;
  }

  .music-player {
    grid-template-columns: 60px 1fr 48px;
    gap: 12px;
  }

  .music-toggle {
    width: 48px;
    height: 48px;
  }

  .vinyl {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .section {
    width: min(100% - 26px, 1050px);
  }

  .login-card {
    padding: 34px 20px 28px;
  }

  .counter-grid {
    gap: 7px;
    padding: 10px;
  }

  .counter-item {
    padding: 14px 5px;
  }

  .counter-item strong {
    font-size: 1.65rem;
  }

  .counter-item span {
    font-size: .72rem;
  }

  .letter-card {
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
