
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #dff4ff;
  --pink: #ffe2ec;
  --dark-blue: #6689b1;
  --dark-pink: #d985a5;
  --text: #596b83;
  --white: #ffffff;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: linear-gradient(
    135deg, #e7f6ff, #fff0f6, #e8f4ff, #ffeaf2
  );
  background-size: 300% 300%;
  animation: gradientMove 12s ease infinite;
  overflow-x: hidden;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

header {
  min-height: 65px;
  padding: 15px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #ffffffa8;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff;
}

.logo {
  color: var(--dark-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}

.header-note {
  font-size: 10px;
  color: var(--dark-pink);
}

.stars {
  position: fixed;
  top: 90px;
  right: 15px;
  z-index: -1;
  color: #dba7c2;
  font-size: 22px;
  opacity: .7;
  pointer-events: none;
}

main {
  width: 100%;
}

.page {
  display: none;
  min-height: calc(100vh - 125px);
  padding: 55px 7% 45px;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.page.active {
  display: flex;
  animation: pageIn .45s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.envelope {
  width: 95px;
  height: 95px;
  display: grid;
  place-items: center;
  background: #ffffffb8;
  border: 1px solid white;
  border-radius: 30px;
  font-size: 47px;
  box-shadow: 0 10px 30px #afcce72e;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

.eyebrow {
  color: var(--dark-pink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

h1 {
  color: var(--dark-blue);
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.3;
}

h1 span, h2 span {
  color: var(--dark-pink);
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
}

h2 {
  color: var(--dark-blue);
  font-size: clamp(29px, 5vw, 43px);
  line-height: 1.5;
}

.intro {
  max-width: 470px;
  font-size: 13px;
  line-height: 2;
}

.tiny {
  font-size: 10px;
  color: var(--dark-pink);
  letter-spacing: .5px;
}

.btn {
  padding: 13px 24px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  color: white;
  font-family: inherit;
  font-size: 12px;
  background: linear-gradient(120deg, #8fcdf1, #efa8c5);
  box-shadow: 0 7px 20px #b7c9e44a;
  cursor: pointer;
  transition: .25s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #c3b6df70;
}

.profile-card {
  width: min(100%, 850px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding: 24px;
  text-align: left;
  background: #ffffffa8;
  border: 1px solid white;
  border-radius: 25px;
  box-shadow: 0 12px 40px #abc9e52a;
}

.profile-photo {
  position: relative;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  border: 7px solid white;
  border-radius: 18px;
  box-shadow: 0 7px 20px #abc9e533;
}

.sticker {
  position: absolute;
  left: 8px;
  bottom: 15px;
  padding: 8px 13px;
  border-radius: 20px;
  background: var(--pink);
  color: #b66d8d;
  font-size: 10px;
  transform: rotate(-5deg);
}

.profile-info h3, .music-card h3 {
  color: var(--dark-blue);
  font-size: 23px;
  margin: 7px 0;
}

.description {
  font-size: 12px;
  line-height: 2;
  max-width: 550px;
}

.identity {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.identity p {
  padding: 10px;
  border-radius: 11px;
  background: #eef8ff;
  font-size: 11px;
}

.photo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 15px 0;
}

.polaroid {
  width: 205px;
  padding: 10px 10px 20px;
  background: white;
  box-shadow: 0 10px 25px #a7bfd82c;
  transition: .3s;
}

.polaroid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.polaroid p {
  margin-top: 12px;
  color: var(--dark-pink);
  font-family: 'Great Vibes', cursive;
  font-size: 24px;
}

.tilt-left {
  transform: rotate(-4deg);
}

.tilt-right {
  transform: rotate(4deg);
}

.polaroid:hover {
  transform: rotate(0) translateY(-6px);
}

.letter-card {
  width: min(100%, 600px);
  padding: 30px;
  text-align: left;
  line-height: 2;
  font-size: 12px;
  background: #ffffffb8;
  border: 1px solid white;
  border-radius: 23px;
  box-shadow: 0 10px 35px #abc9e52a;
}

.letter-icon {
  text-align: center;
  font-size: 36px;
  margin-bottom: 10px;
}

.letter-card h3 {
  font-family: 'Great Vibes', cursive;
  color: var(--dark-pink);
  font-size: 32px;
  margin-bottom: 15px;
}

.signature {
  color: var(--dark-pink);
  text-align: right;
  font-family: 'Great Vibes', cursive;
  font-size: 27px;
  margin-top: 15px;
}

.music-card {
  width: min(100%, 430px);
  padding: 25px;
  border-radius: 25px;
  background: #ffffffb8;
  border: 1px solid white;
  box-shadow: 0 12px 35px #abc9e52a;
}

.album-art {
  width: 105px;
  height: 105px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #d7efff, #ffdeeb);
  font-size: 42px;
}

.music-card iframe {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: 20px;
  border: none;
  border-radius: 14px;
}

.page-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 18px 10px;
  background: #ffffff8c;
  border-top: 1px solid #ffffff;
}

.nav-btn {
  padding: 9px 15px;
  color: var(--dark-blue);
  background: #ffffffb8;
  border: 1px solid #d9ebfa;
  border-radius: 22px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: .2s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--pink);
}

.nav-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c7dbea;
  cursor: pointer;
  transition: .25s;
}

.dot.active {
  width: 23px;
  border-radius: 10px;
  background: var(--dark-pink);
}

@media (max-width: 650px) {
  header {
    padding: 14px 5%;
  }

  .logo {
    font-size: 12px;
  }

  .header-note {
    font-size: 9px;
  }

  .page {
    min-height: calc(100vh - 125px);
    padding: 40px 5%;
  }

  .profile-card {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .profile-photo img {
    height: 310px;
  }

  .profile-info {
    text-align: center;
  }

  .identity {
    text-align: left;
  }

  .photo-grid {
    gap: 20px;
  }

  .polaroid {
    width: min(42%, 180px);
  }

  .polaroid img {
    height: 180px;
  }

  .letter-card {
    padding: 23px;
  }

  .page-controls {
    gap: 10px;
  }

  .nav-btn {
    padding: 9px 11px;
  }
}
