* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #09070d;
  --pink: #ff78a9;
  --pink-light: #ffc0d6;
  --purple: #9b7cff;
  --text: #fff8fb;
  --muted: #c8bdc4;
  --border: rgba(255, 255, 255, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(255, 89, 145, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 35%,
      rgba(130, 90, 255, 0.13),
      transparent 30%
    ),
    var(--bg);

  font-family: Arial, sans-serif;
  overflow-x: hidden;
}


/* HIDDEN */

.hidden {
  display: none !important;
}


/* PASSWORD SCREEN */

.password-screen {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 25px;
}

.password-card {
  width: min(500px, 100%);

  padding: 50px 30px;

  text-align: center;

  background: rgba(255, 255, 255, 0.07);

  border: 1px solid var(--border);

  border-radius: 30px;

  backdrop-filter: blur(20px);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.4);

  animation: cardIn 0.8s ease;
}


.lock {
  font-size: 55px;

  margin-bottom: 20px;

  animation: lockPulse 2s infinite;
}


.small-text {
  color: var(--pink-light);

  text-transform: uppercase;

  letter-spacing: 2px;

  font-size: 12px;
}


.password-card h1 {
  font-size: 60px;

  margin: 20px 0;
}


.password-card > p:not(.small-text):not(#passwordError) {
  color: var(--muted);

  margin-bottom: 25px;
}


#passwordInput {
  width: min(350px, 100%);

  padding: 15px 20px;

  border-radius: 50px;

  border: 1px solid var(--border);

  background: rgba(255,255,255,0.06);

  color: white;

  outline: none;

  text-align: center;

  font-size: 16px;

  margin-bottom: 15px;
}


#passwordInput:focus {
  border-color: var(--pink);

  box-shadow:
    0 0 25px rgba(255, 120, 169, 0.25);
}


#passwordInput::placeholder {
  color: rgba(255,255,255,0.4);
}


#unlockButton,
#surpriseButton {
  border: none;

  cursor: pointer;

  color: white;

  background:
    linear-gradient(
      135deg,
      #ff669e,
      #a078ff
    );

  padding: 15px 27px;

  border-radius: 50px;

  font-size: 14px;

  font-weight: bold;

  box-shadow:
    0 12px 35px rgba(255, 95, 150, 0.25);

  transition: 0.3s;
}


#unlockButton:hover,
#surpriseButton:hover {
  transform: translateY(-3px);

  box-shadow:
    0 18px 45px rgba(255, 95, 150, 0.35);
}


#passwordError {
  min-height: 25px;

  margin-top: 15px;

  color: #ff8eae;

  font-size: 13px;
}


/* HERO */

.hero {
  min-height: 100vh;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding: 30px;
}


.hero h1 {
  font-size: clamp(55px, 11vw, 120px);

  line-height: 0.9;

  margin: 25px 0;
}


.hero h1 span {
  display: block;

  color: var(--pink-light);
}


.hero p:last-child {
  max-width: 600px;

  color: var(--muted);

  line-height: 1.8;
}


/* SECTIONS */

.section {
  width: min(1000px, 92%);

  margin: auto;

  padding: 100px 0;

  text-align: center;
}


.section h2 {
  font-size: 45px;

  margin: 15px 0 35px;
}


/* COUNTDOWN */

.countdown {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 15px;

  max-width: 700px;

  margin: auto;
}


.countdown div {
  padding: 25px 10px;

  border-radius: 20px;

  border: 1px solid var(--border);

  background:
    rgba(255,255,255,0.05);
}


.countdown strong {
  display: block;

  font-size: 45px;

  color: var(--pink-light);
}


.countdown small {
  color: var(--muted);

  text-transform: uppercase;

  letter-spacing: 2px;

  font-size: 10px;
}


/* LETTER */

.letter {
  padding: 50px;

  text-align: left;

  border-radius: 30px;

  background:
    rgba(255,255,255,0.07);

  border: 1px solid var(--border);

  backdrop-filter: blur(20px);

  box-shadow:
    0 25px 80px rgba(0,0,0,0.25);
}


.letter h2 {
  text-align: center;

  font-size: 50px;

  margin-bottom: 35px;
}


.letter p {
  color: #ddd3d9;

  line-height: 2;

  margin-bottom: 20px;

  font-size: 15px;
}


.letter .special {
  text-align: center;

  color: var(--pink-light);

  font-size: 30px;

  font-weight: bold;

  margin: 35px 0;
}


.signature {
  text-align: right;

  color: var(--pink-light) !important;

  font-style: italic;
}


/* FINAL */

.final-section {
  padding-bottom: 150px;
}


#finalMessage {
  margin-top: 40px;

  animation: messageIn 0.8s ease;
}


/* FOOTER */

footer {
  text-align: center;

  padding: 60px 20px;

  color: rgba(255,255,255,0.4);

  font-size: 12px;

  line-height: 2;
}


/* ANIMATIONS */

@keyframes cardIn {

  from {
    opacity: 0;

    transform:
      translateY(30px)
      scale(0.97);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }

}


@keyframes messageIn {

  from {
    opacity: 0;

    transform: translateY(30px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }

}


@keyframes lockPulse {

  50% {
    transform: scale(1.1);
  }

}


/* MOBILE */

@media (max-width: 650px) {

  .password-card {
    padding: 40px 20px;
  }

  .password-card h1 {
    font-size: 50px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .countdown {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .countdown strong {
    font-size: 38px;
  }

  .letter {
    padding: 30px 22px;
  }

  .letter h2 {
    font-size: 40px;
  }

}
/* =========================
   CINEMATIC OPENING SCREEN
========================= */

.password-screen {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%,
      rgba(255, 80, 145, 0.15),
      transparent 30%),
    #05040a;
}

/* Stars */

.password-screen::before,
.password-screen::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 1px);

  background-size: 90px 90px;

  opacity: .18;

  animation: starsMove 18s linear infinite;
}

.password-screen::after {
  background-size: 140px 140px;

  opacity: .10;

  animation-duration: 28s;

  animation-direction: reverse;
}


/* Card comes above stars */

.password-card {
  position: relative;

  z-index: 5;

  overflow: hidden;

  box-shadow:
    0 0 40px rgba(255, 100, 160, .08),
    0 30px 100px rgba(0,0,0,.5);
}


/* Pink glow behind lock */

.lock {
  text-shadow:
    0 0 15px rgba(255,100,170,.7),
    0 0 35px rgba(255,100,170,.4);

  filter: drop-shadow(
    0 0 15px rgba(255,100,170,.5)
  );
}


/* Special title */

.password-card h1 {
  background:
    linear-gradient(
      90deg,
      #fff,
      #ffc0d6,
      #ff78a9,
      #fff
    );

  background-size: 250%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: titleGlow 4s linear infinite;
}


/* Button glow */

#unlockButton {
  position: relative;

  overflow: hidden;
}

#unlockButton::after {
  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 60%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.5),
      transparent
    );

  transform: skewX(-20deg);

  animation: buttonShine 3s infinite;
}


/* Animations */

@keyframes starsMove {

  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-90px);
  }

}


@keyframes titleGlow {

  0% {
    background-position: 0%;
  }

  100% {
    background-position: 250%;
  }

}


@keyframes buttonShine {

  0% {
    left: -100%;
  }

  35%, 100% {
    left: 150%;
  }

}
/* =========================
   UNLOCK ANIMATION
========================= */

.password-screen.unlocking {
  animation: screenFade 1.5s ease forwards;
}

.password-card.unlocking {
  animation: unlockCard 1.2s ease forwards;
}

.lock.unlocking {
  animation: lockOpen 1s ease forwards;
}

@keyframes screenFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes unlockCard {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 80px rgba(255, 100, 170, .7),
      0 0 160px rgba(255, 100, 170, .35);
  }

  100% {
    transform: scale(.85);
    opacity: 0;
  }
}

@keyframes lockOpen {
  0% {
    transform: rotate(0deg) scale(1);
  }

  40% {
    transform: rotate(-15deg) scale(1.2);
  }

  100% {
    transform: rotate(15deg) scale(0);
    opacity: 0;
  }
}
/* =========================
   DISTANCE SECTION
========================= */

.distance-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 80, 150, 0.12),
      transparent 45%
    ),
    #08060d;
}

.distance-content {
  width: 100%;
  max-width: 900px;
}

.distance-small {
  font-size: 12px;
  letter-spacing: 5px;
  opacity: 0.55;
  margin-bottom: 20px;
}

.distance-section h2 {
  font-size: clamp(32px, 6vw, 65px);
  margin: 0;

  background: linear-gradient(
    90deg,
    #ffffff,
    #ff9fc1,
    #ffffff
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.distance-section h2 span {
  display: inline-block;
  margin: 0 15px;

  animation: arrowPulse 1.5s ease-in-out infinite;
}

.distance-text {
  max-width: 600px;
  margin: 25px auto 60px;

  line-height: 1.8;
  opacity: 0.75;
  font-size: 17px;
}

.distance-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.country {
  display: flex;
  flex-direction: column;
  gap: 10px;

  font-size: 55px;
  min-width: 130px;
}

.country span {
  font-size: 14px;
  opacity: 0.7;
  letter-spacing: 2px;
}

.travel-line {
  position: relative;

  width: 280px;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.5),
    transparent
  );
}

.moving-heart {
  position: absolute;

  left: 0;
  top: 50%;

  transform: translateY(-50%);

  font-size: 22px;

  animation:
    heartTravel 3s ease-in-out infinite;
}

.distance-bottom {
  margin-top: 65px;

  line-height: 1.8;

  opacity: 0.65;

  font-style: italic;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes heartTravel {

  0% {
    left: 0;
    transform: translateY(-50%) scale(.8);
  }

  50% {
    left: calc(100% - 22px);
    transform: translateY(-50%) scale(1.15);
  }

  100% {
    left: 0;
    transform: translateY(-50%) scale(.8);
  }

}

@keyframes arrowPulse {

  0%, 100% {
    transform: translateX(0);
    opacity: .7;
  }

  50% {
    transform: translateX(8px);
    opacity: 1;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

  .distance-map {
    gap: 10px;
  }

  .country {
    font-size: 40px;
    min-width: 80px;
  }

  .travel-line {
    width: 100px;
  }

  .distance-text {
    font-size: 15px;
  }

}
/* =========================
   PREMIUM COUNTDOWN
========================= */

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.countdown > div {
  position: relative;

  width: 125px;
  height: 125px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;

  background: rgba(255,255,255,.045);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 15px 40px rgba(0,0,0,.25),
    inset 0 0 25px rgba(255,100,160,.03);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.countdown > div:hover {
  transform: translateY(-8px);

  box-shadow:
    0 20px 50px rgba(255,100,160,.15),
    inset 0 0 30px rgba(255,100,160,.05);
}

.countdown strong {
  font-size: 42px;
  line-height: 1;

  background: linear-gradient(
    180deg,
    #ffffff,
    #ff9fbe
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown small {
  margin-top: 12px;

  font-size: 11px;
  letter-spacing: 3px;

  text-transform: uppercase;

  opacity: .55;
}


/* Glowing dot */

.countdown > div::before {
  content: "";

  position: absolute;

  top: 10px;
  right: 12px;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #ff8db2;

  box-shadow:
    0 0 10px rgba(255,100,160,.8);

  animation: countdownGlow 2s ease-in-out infinite;
}

@keyframes countdownGlow {

  0%, 100% {
    opacity: .35;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }

}


/* Mobile */

@media (max-width: 600px) {

  .countdown {
    gap: 10px;
  }

  .countdown > div {
    width: 90px;
    height: 90px;
    border-radius: 18px;
  }

  .countdown strong {
    font-size: 30px;
  }

  .countdown small {
    font-size: 8px;
    letter-spacing: 2px;
  }

}
/* =========================
   CINEMATIC LETTER
========================= */

.letter {
  position: relative;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;

  background: rgba(255,255,255,.035);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 25px 80px rgba(0,0,0,.3),
    inset 0 0 40px rgba(255,100,160,.025);

  overflow: hidden;
}

.letter::before {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  top: -120px;
  right: -100px;

  background: rgba(255,100,160,.12);

  border-radius: 50%;

  filter: blur(50px);

  pointer-events: none;
}

.letter p {
  opacity: 0;
  transform: translateY(18px);

  animation: letterReveal .8s ease forwards;
}


/* Different timing for each paragraph */

.letter p:nth-child(2) {
  animation-delay: .15s;
}

.letter p:nth-child(3) {
  animation-delay: .3s;
}

.letter p:nth-child(4) {
  animation-delay: .45s;
}

.letter p:nth-child(5) {
  animation-delay: .6s;
}

.letter p:nth-child(6) {
  animation-delay: .75s;
}

.letter p:nth-child(7) {
  animation-delay: .9s;
}

.letter p:nth-child(8) {
  animation-delay: 1.05s;
}

.letter p:nth-child(9) {
  animation-delay: 1.2s;
}

.letter p:nth-child(10) {
  animation-delay: 1.35s;
}

.letter p:nth-child(11) {
  animation-delay: 1.5s;
}

.letter p:nth-child(12) {
  animation-delay: 1.65s;
}

.letter p:nth-child(13) {
  animation-delay: 1.8s;
}

.letter p:nth-child(14) {
  animation-delay: 1.95s;
}

@keyframes letterReveal {

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* Special line */

.letter .special {
  font-size: 24px;

  text-align: center;

  color: #ff9fbe;

  text-shadow:
    0 0 20px rgba(255,100,160,.35);

  animation:
    letterReveal .8s ease forwards,
    specialGlow 2.5s ease-in-out infinite 2.5s;
}

@keyframes specialGlow {

  0%, 100% {
    text-shadow:
      0 0 10px rgba(255,100,160,.2);
  }

  50% {
    text-shadow:
      0 0 25px rgba(255,100,160,.6);
  }

}


/* Signature */

.letter .signature {
  text-align: right;

  font-style: italic;

  opacity: 0;
}
/* =========================
   MEMORIES GALLERY
========================= */

.memories-section {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.memories-intro {
  max-width: 600px;
  margin: 20px auto 55px;
  line-height: 1.8;
  opacity: .65;
}

.memory-grid {
  width: 100%;
  max-width: 950px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.memory-card {
  position: relative;

  padding: 14px;

  border-radius: 22px;

  background: rgba(255,255,255,.045);

  border: 1px solid rgba(255,255,255,.10);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 20px 60px rgba(0,0,0,.25);

  transition:
    transform .4s ease,
    box-shadow .4s ease;
}

.memory-card:hover {
  transform:
    translateY(-10px)
    rotate(1deg);

  box-shadow:
    0 25px 70px rgba(255,100,160,.16);
}

.memory-placeholder {
  width: 100%;
  height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background:
    radial-gradient(
      circle at center,
      rgba(255,100,160,.14),
      rgba(255,255,255,.025)
    );

  border: 1px solid rgba(255,255,255,.07);

  font-size: 55px;

  transition:
    transform .4s ease,
    font-size .4s ease;
}

.memory-card:hover .memory-placeholder {
  transform: scale(1.02);
  font-size: 65px;
}

.memory-card p {
  margin: 18px 5px 8px;

  font-size: 15px;
  letter-spacing: 1px;

  opacity: .75;
}


/* =========================
   MOBILE GALLERY
========================= */

@media (max-width: 650px) {

  .memory-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .memory-placeholder {
    height: 220px;
  }

}
/* =========================
   MUSIC PLAYER
========================= */

.music-section {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.music-intro {
  max-width: 600px;
  margin: 20px auto 45px;
  line-height: 1.8;
  opacity: .65;
}

.music-player {
  width: 100%;
  max-width: 600px;
  margin: auto;

  padding: 25px;

  display: flex;
  align-items: center;
  gap: 20px;

  text-align: left;

  border-radius: 25px;

  background: rgba(255,255,255,.045);

  border: 1px solid rgba(255,255,255,.10);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 20px 70px rgba(0,0,0,.3),
    inset 0 0 35px rgba(255,100,160,.03);
}

.music-icon {
  width: 65px;
  height: 65px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;

  font-size: 30px;

  background:
    radial-gradient(
      circle,
      rgba(255,100,160,.2),
      rgba(255,255,255,.03)
    );

  animation: musicPulse 2s ease-in-out infinite;
}

.music-info {
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 7px;
}

.music-info strong {
  font-size: 16px;
}

.music-info span {
  font-size: 12px;
  opacity: .55;
}

#musicButton {
  border: none;

  padding: 12px 18px;

  border-radius: 30px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #ff6f9f,
      #ff477f
    );

  cursor: pointer;

  font-size: 13px;

  box-shadow:
    0 8px 25px rgba(255,70,130,.25);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

#musicButton:hover {
  transform: translateY(-3px);

  box-shadow:
    0 12px 35px rgba(255,70,130,.4);
}

#musicButton:active {
  transform: scale(.96);
}

@keyframes musicPulse {

  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 rgba(255,100,160,0);
  }

  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 25px rgba(255,100,160,.18);
  }

}

@media (max-width: 600px) {

  .music-player {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .music-info {
    flex: none;
    width: 100%;
    align-items: center;
  }

  #musicButton {
    margin-top: 5px;
  }

}