@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Dancing+Script:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
  --black: #080812;
  --black-soft: #0d0b18;

  --midnight: #121025;
  --purple: #241536;
  --purple-light: #3b1d4d;

  --pink: #ff8fab;
  --pink-light: #ffb6c8;

  --rose: #d9a0ad;
  --gold: #e8c7a8;

  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.75);
  --white-muted: rgba(255, 255, 255, 0.5);

  --glass: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.12);

  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);

  --heading-font: "Cormorant Garamond", serif;
  --body-font: "Montserrat", sans-serif;
  --script-font: "Dancing Script", cursive;

  --transition: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(102, 45, 130, 0.16),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 105, 145, 0.08),
      transparent 35%
    ),
    var(--black);

  color: var(--white);

  font-family: var(--body-font);

  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

button {
  border: 0;
  outline: 0;
  cursor: pointer;
  font-family: inherit;
}

img {
  width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--pink);
  color: var(--black);
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink), var(--purple-light));

  border-radius: 20px;
}

/* =========================================================
   PAGE LOADER
========================================================= */

.page-loader {
  position: fixed;

  inset: 0;

  z-index: 99999;

  display: flex;

  align-items: center;
  justify-content: center;

  background: radial-gradient(circle, #251331, #080812 70%);

  transition:
    opacity 1s ease,
    visibility 1s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-heart {
  font-family: var(--heading-font);

  font-size: 80px;

  color: var(--pink);

  animation: heartPulse 1.5s infinite;
}

.loader-content p {
  margin-top: 15px;

  color: var(--white-muted);

  font-size: 12px;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.loader-line {
  width: 180px;
  height: 2px;

  margin: 25px auto 0;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.12);
}

.loader-line span {
  display: block;

  width: 50%;
  height: 100%;

  background: var(--pink);

  animation: loaderMove 1.5s infinite;
}

/* =========================================================
   SCROLL PROGRESS
========================================================= */

.scroll-progress {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  z-index: 10000;

  background: transparent;
}

.scroll-progress span {
  display: block;

  width: 0%;
  height: 100%;

  background: linear-gradient(90deg, var(--pink), var(--gold));

  box-shadow: 0 0 15px var(--pink);
}

/* =========================================================
   PARTICLE CANVAS
========================================================= */

#particleCanvas {
  position: fixed;

  inset: 0;

  z-index: -1;

  pointer-events: none;

  opacity: 0.6;
}

/* =========================================================
   COMMON SECTION
========================================================= */

.section {
  position: relative;

  min-height: 100vh;

  display: flex;

  align-items: center;

  overflow: hidden;

  padding: 120px 7vw;
}

.section-container {
  width: min(1200px, 100%);

  margin: auto;

  position: relative;

  z-index: 2;
}

.centered {
  text-align: center;
}

/* =========================================================
   MUSIC BUTTON
========================================================= */

.music-control {
  position: fixed;

  right: 25px;
  top: 25px;

  z-index: 5000;
}

.music-button {
  display: flex;

  align-items: center;
  gap: 9px;

  padding: 11px 18px;

  color: var(--white);

  background: rgba(255, 255, 255, 0.07);

  border: 1px solid var(--glass-border);

  border-radius: 100px;

  backdrop-filter: blur(15px);

  transition: var(--transition);
}

.music-button:hover {
  background: rgba(255, 143, 171, 0.12);

  border-color: rgba(255, 143, 171, 0.5);

  transform: translateY(-3px);
}

.music-icon {
  font-size: 20px;

  color: var(--pink);
}

.music-button.playing .music-icon {
  animation: musicPulse 0.8s infinite alternate;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 100vh;

  padding: 0;

  text-align: center;

  justify-content: center;
}

.hero-background {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 18, 0.88),
      rgba(8, 8, 18, 0.35),
      rgba(8, 8, 18, 0.88)
    ),
    url("assets/images/memories/m1.jpeg") center / cover no-repeat;

  transform: scale(1.05);

  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background: radial-gradient(
    circle at center,
    transparent 10%,
    rgba(8, 8, 18, 0.8) 85%
  );
}

.hero-glow {
  position: absolute;

  width: 400px;
  height: 400px;

  border-radius: 50%;

  filter: blur(100px);

  opacity: 0.25;

  pointer-events: none;
}

.hero-glow-one {
  top: 10%;
  left: 10%;

  background: var(--purple-light);
}

.hero-glow-two {
  bottom: 5%;
  right: 10%;

  background: var(--pink);
}

.hero-content {
  position: relative;

  z-index: 5;

  width: min(900px, 90%);
}

.hero-small-text {
  color: var(--white-muted);

  text-transform: uppercase;

  letter-spacing: 5px;

  font-size: 11px;

  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--heading-font);

  font-size: clamp(60px, 9vw, 130px);

  font-weight: 500;

  line-height: 0.85;

  letter-spacing: -3px;
}

.hero-title .name {
  display: block;

  font-style: italic;

  color: var(--pink);

  text-shadow: 0 0 30px rgba(255, 143, 171, 0.35);
}

.hero-title .heart {
  display: inline-block;

  font-family: sans-serif;

  font-size: 0.4em;

  margin-left: 10px;

  animation: heartPulse 1.8s infinite;
}

.hero-subtitle {
  max-width: 600px;

  margin: 35px auto;

  color: var(--white-soft);

  font-size: 14px;

  line-height: 2;

  font-weight: 300;

  letter-spacing: 1px;
}

/* =========================================================
   BUTTONS
========================================================= */

.glow-button {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 15px;

  padding: 16px 30px;

  border-radius: 100px;

  color: var(--white);

  background: linear-gradient(
    100deg,
    rgba(255, 143, 171, 0.2),
    rgba(217, 160, 173, 0.12)
  );

  border: 1px solid rgba(255, 143, 171, 0.45);

  backdrop-filter: blur(15px);

  overflow: hidden;

  transition: var(--transition);

  box-shadow: 0 0 30px rgba(255, 143, 171, 0.08);
}

.glow-button::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 80%;
  height: 100%;

  transform: skewX(-25deg);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );

  transition: 0.8s;
}

.glow-button:hover::before {
  left: 130%;
}

.glow-button:hover {
  transform: translateY(-4px);

  border-color: var(--pink);

  box-shadow: 0 10px 40px rgba(255, 143, 171, 0.18);
}

.button-arrow {
  font-size: 20px;

  transition: 0.4s;
}

.glow-button:hover .button-arrow {
  transform: translateX(6px);
}

.outline-button,
.continue-button {
  margin-top: 25px;

  padding: 12px 20px;

  border-radius: 100px;

  color: var(--pink);

  background: transparent;

  border: 1px solid rgba(255, 143, 171, 0.35);

  transition: var(--transition);
}

.outline-button:hover,
.continue-button:hover {
  color: var(--white);

  background: rgba(255, 143, 171, 0.1);

  border-color: var(--pink);
}

/* =========================================================
   SCROLL HINT
========================================================= */

.scroll-hint {
  position: absolute;

  top: calc(100% + 80px);

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;

  color: var(--white-muted);

  font-size: 9px;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;

  background: linear-gradient(var(--pink), transparent);

  animation: scrollLine 1.8s infinite;
}

/* =========================================================
   INTRO
========================================================= */

.intro {
  min-height: 90vh;

  background: radial-gradient(
    circle at center,
    rgba(64, 31, 80, 0.25),
    transparent 55%
  );
}

.cinematic-text {
  text-align: center;
}

.story-line {
  font-family: var(--heading-font);

  font-size: clamp(42px, 6vw, 80px);

  line-height: 1.1;

  opacity: 0;

  transform: translateY(40px);

  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.intro.active .story-line {
  opacity: 1;

  transform: translateY(0);
}

.intro.active .line-two {
  transition-delay: 0.8s;
}

.intro.active .line-three {
  transition-delay: 1.6s;
}

.line-two {
  color: var(--pink);

  font-style: italic;
}

.line-three {
  font-family: var(--script-font);

  color: var(--gold);

  margin-top: 25px;
}

.intro .continue-button {
  display: block;

  margin: 70px auto 0;

  opacity: 0;
}

.intro.active .continue-button {
  opacity: 1;

  transition: opacity 1s ease 2.5s;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
  max-width: 750px;

  margin-bottom: 80px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: block;

  color: var(--pink);

  font-size: 10px;

  letter-spacing: 5px;

  text-transform: uppercase;

  margin-bottom: 18px;
}

.section-heading h2,
.memory-header h2 {
  font-family: var(--heading-font);

  font-weight: 500;

  font-size: clamp(45px, 6vw, 80px);

  line-height: 0.95;
}

.section-heading h2 span,
.memory-header h2 span,
.cinematic-heading span,
.special-section h2 span,
.final-birthday h1 span {
  color: var(--pink);

  font-style: italic;
}

.section-heading p,
.memory-header p {
  color: var(--white-muted);

  line-height: 1.9;

  font-size: 13px;

  margin-top: 20px;
}

/* =========================================================
   BIRTH SECTION
========================================================= */

.birth-section {
  background: linear-gradient(180deg, var(--black), #100b18);
}

.date-label {
  font-size: 11px;

  letter-spacing: 7px;

  color: var(--gold);

  margin-bottom: 25px;
}

.birth-section .section-title {
  max-width: 800px;

  font-family: var(--heading-font);

  font-size: clamp(45px, 6vw, 80px);

  font-weight: 500;

  line-height: 0.95;

  margin-bottom: 70px;
}

.section-title span {
  color: var(--pink);

  font-style: italic;
}

.birth-memory {
  display: grid;

  grid-template-columns:
    minmax(300px, 1.1fr)
    minmax(300px, 0.9fr);

  gap: 70px;

  align-items: center;
}

.memory-image {
  position: relative;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  border-radius: 4px;

  box-shadow: var(--shadow);
}

.memory-image img {
  height: 100%;

  object-fit: cover;

  transition: transform 1s ease;
}

.memory-image:hover img {
  transform: scale(1.06);
}

.image-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6));
}

.memory-content {
  padding: 30px;
}

.memory-number,
.card-number {
  color: var(--pink);

  font-size: 10px;

  letter-spacing: 3px;
}

.memory-content h3 {
  margin-top: 20px;

  font-family: var(--heading-font);

  font-size: 45px;

  font-weight: 500;
}

.memory-content p {
  color: var(--white-muted);

  line-height: 2;

  font-size: 13px;

  margin-top: 20px;
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline-section {
  background: radial-gradient(
    circle at 50% 40%,
    rgba(64, 31, 80, 0.2),
    transparent 50%
  );
}

.timeline {
  position: relative;

  width: min(950px, 100%);

  margin: auto;

  padding: 50px 0;
}

.timeline::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: 50%;

  width: 1px;

  transform: translateX(-50%);

  background: linear-gradient(
    transparent,
    rgba(255, 143, 171, 0.5),
    transparent
  );
}

.timeline-item {
  position: relative;

  width: 50%;

  padding: 25px 50px;

  opacity: 0;

  transform: translateY(50px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;

  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
}

.timeline-point {
  position: absolute;

  top: 40px;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  background: var(--black);

  border: 2px solid var(--pink);

  box-shadow: 0 0 20px var(--pink);
}

.timeline-item:nth-child(odd) .timeline-point {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-point {
  left: -6px;
}

.timeline-date {
  color: var(--gold);

  font-size: 10px;

  letter-spacing: 3px;

  margin-bottom: 12px;
}

.timeline-card {
  padding: 30px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );

  border: 1px solid var(--glass-border);

  border-radius: 4px;

  backdrop-filter: blur(15px);

  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-8px);

  border-color: rgba(255, 143, 171, 0.4);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.timeline-card h3 {
  font-family: var(--heading-font);

  font-size: 32px;

  font-weight: 500;

  margin-top: 15px;
}

.timeline-card p {
  color: var(--white-muted);

  font-size: 12px;

  margin-top: 10px;
}

.timeline-open {
  margin-top: 20px;

  color: var(--pink);

  background: transparent;

  font-size: 10px;

  letter-spacing: 1px;

  text-transform: uppercase;

  border-bottom: 1px solid rgba(255, 143, 171, 0.3);

  padding-bottom: 5px;
}

.special-timeline .timeline-card {
  border-color: rgba(255, 143, 171, 0.25);
}

.birthday-timeline .timeline-card {
  background: linear-gradient(
    145deg,
    rgba(255, 143, 171, 0.13),
    rgba(255, 255, 255, 0.025)
  );
}

/* =========================================================
   MEMORY SECTIONS
========================================================= */

.memory-section {
  background: linear-gradient(180deg, #0d0a15, #120b19);
}

.memory-section.alternate {
  background: linear-gradient(180deg, #120b19, #0a0912);
}

.memory-header {
  max-width: 850px;

  margin-bottom: 60px;
}

/* =========================================================
   GALLERIES
========================================================= */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 12px;
}

.gallery-grid.small-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  position: relative;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  cursor: pointer;

  background: var(--purple);
}

.gallery-item.large {
  grid-column: span 2;

  grid-row: span 2;

  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.8s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);

  filter: brightness(0.7);
}

.gallery-item::after {
  content: "View";

  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%) scale(0.7);

  opacity: 0;

  width: 65px;
  height: 65px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.5);

  border-radius: 50%;

  font-size: 9px;

  letter-spacing: 2px;

  text-transform: uppercase;

  background: rgba(0, 0, 0, 0.3);

  backdrop-filter: blur(10px);

  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;

  transform: translate(-50%, -50%) scale(1);
}

.memory-caption {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-top: 25px;

  color: var(--white-muted);

  font-family: var(--script-font);

  font-size: 20px;
}

/* =========================================================
   MEETING
========================================================= */

.meeting-section {
  background: radial-gradient(
    circle at center,
    rgba(61, 27, 73, 0.35),
    transparent 55%
  );
}

.cinematic-heading {
  font-family: var(--heading-font);

  font-size: clamp(50px, 8vw, 100px);

  line-height: 0.9;

  font-weight: 500;
}

.reveal-story {
  margin: 60px auto;

  max-width: 700px;
}

.reveal-text {
  font-family: var(--heading-font);

  font-size: clamp(30px, 4vw, 48px);

  margin: 25px 0;

  transition:
    opacity 1s ease,
    transform 1s ease;
}

.reveal-text.hidden {
  opacity: 0;

  transform: translateY(20px);

  display: none;
}

.reveal-text.highlight {
  color: var(--pink);

  font-style: italic;
}

.hidden-gallery {
  max-height: 0;

  overflow: hidden;

  opacity: 0;

  margin-top: 50px;

  transition:
    max-height 1.2s ease,
    opacity 1s ease;
}

.hidden-gallery.show {
  max-height: 1000px;

  opacity: 1;
}

/* =========================================================
   FRIENDSHIP
========================================================= */

.friendship-section {
  background: linear-gradient(180deg, #090811, #171020);
}

.friendship-story {
  max-width: 800px;

  margin: 0 auto 80px;

  text-align: center;
}

.friendship-story p {
  font-family: var(--heading-font);

  font-size: clamp(28px, 4vw, 50px);

  line-height: 1.2;

  margin: 20px 0;

  color: var(--white-soft);
}

.friendship-story h3 {
  font-family: var(--script-font);

  font-size: clamp(45px, 6vw, 75px);

  font-weight: 500;

  color: var(--pink);

  margin: 35px 0;
}

.friendship-final {
  color: var(--gold) !important;

  font-size: 22px !important;
}

.friendship-gallery {
  grid-template-columns: repeat(5, 1fr);
}

.friendship-gallery .gallery-item span {
  position: absolute;

  left: 15px;
  bottom: 15px;

  z-index: 2;

  font-family: var(--script-font);

  font-size: 20px;

  text-shadow: 0 2px 15px black;
}

/* =========================================================
   SPECIAL SECTION
========================================================= */

.special-section {
  min-height: 100vh;

  text-align: center;

  background: var(--black);
}

.special-background {
  position: absolute;

  inset: 0;

  background: radial-gradient(
    circle at center,
    rgba(104, 40, 85, 0.25),
    transparent 55%
  );
}

.special-section h2 {
  max-width: 900px;

  margin: auto;

  font-family: var(--heading-font);

  font-size: clamp(50px, 7vw, 100px);

  line-height: 0.9;

  font-weight: 500;
}

.suspense-text {
  margin: 60px auto;

  font-family: var(--heading-font);

  font-size: clamp(27px, 4vw, 45px);

  line-height: 1.3;

  color: var(--white-soft);
}

.suspense-text p {
  margin: 25px 0;
}

.special-message {
  margin-top: 70px;

  padding: 60px 30px;

  border: 1px solid rgba(255, 143, 171, 0.25);

  background: rgba(255, 255, 255, 0.035);

  backdrop-filter: blur(15px);

  animation: revealMessage 1s ease forwards;
}

.special-message > span {
  color: var(--gold);

  letter-spacing: 4px;

  font-size: 10px;
}

.special-message h3 {
  max-width: 700px;

  margin: 25px auto;

  font-family: var(--heading-font);

  font-size: 40px;

  font-weight: 500;
}

.special-message p {
  font-family: var(--script-font);

  color: var(--pink);

  font-size: 35px;
}

/* =========================================================
   GRADUATION
========================================================= */

.graduation-section {
  background: linear-gradient(180deg, #0c0913, #151021);
}

.milestone-progress {
  display: flex;

  align-items: center;

  justify-content: center;

  margin: 80px 0;

  gap: 0;
}

.milestone {
  width: 100px;
  height: 100px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.03);

  color: var(--white-muted);

  font-family: var(--heading-font);

  font-size: 20px;

  transition: var(--transition);
}

.milestone.active {
  color: var(--white);

  border-color: var(--pink);

  box-shadow: 0 0 30px rgba(255, 143, 171, 0.25);
}

.progress-line {
  width: 120px;
  height: 1px;

  background: linear-gradient(90deg, var(--pink), var(--gold));
}

.graduation-gallery {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================================================
   MAIN GALLERY
========================================================= */

.gallery-section {
  background: #090811;
}

.gallery-filters {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 50px;
}

.filter-button {
  padding: 10px 18px;

  color: var(--white-muted);

  background: transparent;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 100px;

  font-size: 10px;

  transition: var(--transition);
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);

  border-color: var(--pink);

  background: rgba(255, 143, 171, 0.1);
}

.main-gallery {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  grid-auto-rows: 260px;

  gap: 10px;
}

.gallery-card {
  position: relative;

  overflow: hidden;

  cursor: pointer;

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(6) {
  grid-row: span 2;
}

.gallery-card:nth-child(3),
.gallery-card:nth-child(8) {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.8s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;

  inset: auto 0 0;

  padding: 50px 20px 20px;

  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));

  opacity: 0;

  transition: var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-overlay span {
  font-family: var(--script-font);

  font-size: 23px;
}

.gallery-card.hide {
  opacity: 0;

  transform: scale(0.8);

  pointer-events: none;

  display: none;
}

/* =========================================================
   FINAL SUSPENSE
========================================================= */

.final-suspense {
  min-height: 90vh;

  background: #030307;
}

.suspense-sequence p,
.suspense-sequence h2 {
  font-family: var(--heading-font);

  font-size: clamp(40px, 6vw, 75px);

  line-height: 1.1;

  margin: 20px 0;

  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 1s ease,
    transform 1s ease;
}

.final-suspense.active .suspense-sequence p,
.final-suspense.active .suspense-sequence h2 {
  opacity: 1;

  transform: translateY(0);
}

.final-suspense.active .suspense-sequence p:nth-child(2) {
  transition-delay: 0.8s;
}

.final-suspense.active .suspense-sequence p:nth-child(3) {
  transition-delay: 1.6s;
}

.final-suspense.active .suspense-sequence h2 {
  transition-delay: 2.4s;

  color: var(--pink);

  font-style: italic;
}

.final-suspense .glow-button {
  margin-top: 60px;
}

/* =========================================================
   FINAL BIRTHDAY
========================================================= */

.final-birthday {
  min-height: 100vh;

  justify-content: center;

  text-align: center;

  padding: 100px 7vw;
}

.final-background {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(rgba(8, 8, 18, 0.72), rgba(8, 8, 18, 0.9)),
    url("assets/images/memories/m9.jpeg") center / cover no-repeat;

  filter: saturate(0.75);

  transform: scale(1.03);
}

.final-overlay {
  position: absolute;

  inset: 0;

  background: radial-gradient(
    circle at center,
    transparent,
    rgba(8, 8, 18, 0.85)
  );
}

.final-content {
  position: relative;

  z-index: 3;

  max-width: 950px;

  margin: auto;
}

.final-birthday h1 {
  font-family: var(--heading-font);

  font-size: clamp(55px, 8vw, 110px);

  font-weight: 500;

  line-height: 0.9;
}

.final-divider {
  width: 100px;
  height: 1px;

  margin: 40px auto;

  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.final-text {
  max-width: 750px;

  margin: auto;
}

.final-text p {
  color: var(--white-soft);

  font-size: 14px;

  line-height: 2;

  margin: 20px 0;
}

.final-line {
  margin-top: 50px;

  font-family: var(--script-font);

  color: var(--gold);

  font-size: clamp(32px, 5vw, 55px);

  font-weight: 500;
}

.bestie {
  margin-top: 35px;

  font-family: var(--heading-font);

  font-size: 32px;

  font-weight: 500;
}

.surprise-button {
  margin-top: 50px;
}

/* =========================================================
   SURPRISE
========================================================= */

.surprise-section {
  min-height: 100vh;

  background: radial-gradient(
    circle at center,
    rgba(109, 41, 84, 0.3),
    #050509 65%
  );
}

.surprise-content {
  position: relative;
}

.surprise-line {
  font-family: var(--heading-font);

  font-size: clamp(35px, 5vw, 65px);

  line-height: 1.1;

  margin: 30px auto;

  max-width: 900px;
}

.surprise-line:nth-child(3) {
  color: var(--pink);

  font-style: italic;
}

.surprise-content h1 {
  margin-top: 70px;

  font-family: var(--script-font);

  font-size: clamp(55px, 8vw, 100px);

  color: var(--gold);

  font-weight: 500;
}

.floating-hearts {
  margin-top: 50px;

  font-size: 25px;

  letter-spacing: 30px;

  animation: floatingHearts 4s ease-in-out infinite;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
  position: fixed;

  inset: 0;

  z-index: 9990;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 50px;

  background: rgba(0, 0, 0, 0.94);

  backdrop-filter: blur(20px);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;

  visibility: visible;
}

.lightbox-content {
  max-width: 900px;

  max-height: 90vh;

  text-align: center;
}

.lightbox-content img {
  max-height: 75vh;

  width: auto;

  max-width: 100%;

  margin: auto;

  object-fit: contain;

  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.lightbox-content p {
  margin-top: 20px;

  font-family: var(--script-font);

  color: var(--white-soft);

  font-size: 22px;
}

.lightbox-close {
  position: absolute;

  top: 25px;
  right: 30px;

  width: 45px;
  height: 45px;

  color: var(--white);

  background: rgba(255, 255, 255, 0.08);

  border-radius: 50%;

  font-size: 30px;

  transition: 0.3s;
}

.lightbox-close:hover {
  background: var(--pink);

  color: var(--black);
}

.lightbox-nav {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 55px;
  height: 55px;

  border-radius: 50%;

  color: var(--white);

  background: rgba(255, 255, 255, 0.07);

  border: 1px solid rgba(255, 255, 255, 0.15);

  font-size: 35px;

  transition: 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 143, 171, 0.2);

  border-color: var(--pink);
}

.lightbox-nav.prev {
  left: 25px;
}

.lightbox-nav.next {
  right: 25px;
}

/* =========================================================
   MEMORY MODAL
========================================================= */

.memory-modal {
  position: fixed;

  inset: 0;

  z-index: 9980;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 30px;

  opacity: 0;

  visibility: hidden;

  transition: 0.4s ease;
}

.memory-modal.active {
  opacity: 1;

  visibility: visible;
}

.modal-backdrop {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.85);

  backdrop-filter: blur(15px);
}

.modal-content {
  position: relative;

  z-index: 2;

  width: min(750px, 100%);

  max-height: 90vh;

  overflow-y: auto;

  padding: 60px;

  background: linear-gradient(
    145deg,
    rgba(39, 22, 49, 0.95),
    rgba(10, 9, 17, 0.97)
  );

  border: 1px solid var(--glass-border);

  box-shadow: var(--shadow);

  text-align: center;
}

.modal-close {
  position: absolute;

  top: 20px;
  right: 20px;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  color: var(--white);

  background: rgba(255, 255, 255, 0.07);

  font-size: 25px;
}

.modal-content h2 {
  font-family: var(--heading-font);

  font-size: 55px;

  font-weight: 500;

  margin: 20px 0;
}

.modal-content > p {
  color: var(--white-muted);

  line-height: 2;
}

.modal-gallery {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;

  margin-top: 30px;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
  position: fixed;

  right: 25px;
  bottom: 25px;

  z-index: 4000;

  width: 45px;
  height: 45px;

  border-radius: 50%;

  color: var(--white);

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px);

  opacity: 0;

  visibility: hidden;

  transform: translateY(20px);

  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--pink);

  color: var(--black);
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  animation: heroReveal 1s ease forwards;
}

.hero .reveal:nth-child(1) {
  animation-delay: 0.5s;
}

.hero .reveal:nth-child(2) {
  animation-delay: 0.8s;
}

.hero .reveal:nth-child(3) {
  animation-delay: 1.1s;
}

.hero .reveal:nth-child(4) {
  animation-delay: 1.4s;
}

/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes heroZoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.1);
  }
}

@keyframes heroReveal {
  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
  }
}

@keyframes loaderMove {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(250%);
  }
}

@keyframes musicPulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.35);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);

    transform-origin: top;
  }

  50% {
    transform: scaleY(1);

    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);

    transform-origin: bottom;
  }
}

@keyframes revealMessage {
  from {
    opacity: 0;

    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

@keyframes floatingHearts {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {
  .section {
    padding: 100px 6vw;
  }

  .birth-memory {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .memory-image {
    max-width: 600px;

    margin: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid.small-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .friendship-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-gallery {
    grid-template-columns: repeat(2, 1fr);

    grid-auto-rows: 220px;
  }

  .milestone-progress {
    transform: scale(0.9);
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {
  .section {
    min-height: auto;

    padding: 90px 20px;
  }

  .music-control {
    top: 15px;
    right: 15px;
  }

  .music-text {
    display: none;
  }

  .music-button {
    width: 42px;
    height: 42px;

    padding: 0;

    justify-content: center;
  }

  .hero {
    min-height: 100svh;

    padding: 20px;
  }

  .hero-title {
    font-size: 62px;

    letter-spacing: -2px;
  }

  .hero-subtitle {
    font-size: 12px;

    padding: 0 15px;
  }

  .hero-small-text {
    letter-spacing: 3px;

    font-size: 8px;
  }

  .scroll-hint {
    top: calc(100% + 45px);
  }

  .story-line {
    font-size: 43px;
  }

  .section-heading,
  .memory-header {
    margin-bottom: 45px;
  }

  .section-heading h2,
  .memory-header h2 {
    font-size: 50px;
  }

  .birth-section .section-title {
    font-size: 48px;

    margin-bottom: 40px;
  }

  .memory-content {
    padding: 10px 0;
  }

  .memory-content h3 {
    font-size: 40px;
  }

  /* Mobile timeline */

  .timeline::before {
    left: 12px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;

    margin-left: 0;

    padding: 25px 0 25px 45px;
  }

  .timeline-item:nth-child(odd) .timeline-point,
  .timeline-item:nth-child(even) .timeline-point {
    left: 6px;
    right: auto;
  }

  .timeline-card {
    padding: 22px;
  }

  .timeline-card h3 {
    font-size: 29px;
  }

  /* Gallery */

  .gallery-grid,
  .gallery-grid.small-gallery,
  .friendship-gallery,
  .graduation-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.large {
    grid-column: span 2;

    min-height: 250px;
  }

  .memory-caption {
    flex-direction: column;

    text-align: center;

    font-size: 18px;
  }

  .cinematic-heading {
    font-size: 52px;
  }

  .reveal-text {
    font-size: 31px;
  }

  .friendship-story p {
    font-size: 30px;
  }

  .friendship-story h3 {
    font-size: 50px;
  }

  .friendship-gallery .gallery-item span {
    font-size: 17px;
  }

  .special-section h2 {
    font-size: 54px;
  }

  .special-message {
    padding: 40px 20px;
  }

  .special-message h3 {
    font-size: 32px;
  }

  .special-message p {
    font-size: 29px;
  }

  /* Graduation */

  .milestone-progress {
    transform: none;

    margin: 50px 0;
  }

  .milestone {
    width: 65px;
    height: 65px;

    font-size: 14px;
  }

  .progress-line {
    width: 45px;
  }

  /* Main gallery */

  .gallery-filters {
    justify-content: flex-start;

    overflow-x: auto;

    flex-wrap: nowrap;

    padding-bottom: 10px;

    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex-shrink: 0;
  }

  .main-gallery {
    grid-template-columns: repeat(2, 1fr);

    grid-auto-rows: 160px;
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(6) {
    grid-row: span 2;
  }

  .gallery-card:nth-child(3),
  .gallery-card:nth-child(8) {
    grid-column: span 2;
  }

  .gallery-card-overlay {
    opacity: 1;
  }

  /* Final */

  .final-birthday {
    min-height: 100svh;

    padding: 90px 20px;
  }

  .final-birthday h1 {
    font-size: 58px;
  }

  .final-text p {
    font-size: 12px;
  }

  .final-line {
    font-size: 38px;
  }

  .bestie {
    font-size: 27px;
  }

  .surprise-line {
    font-size: 36px;
  }

  .surprise-content h1 {
    font-size: 62px;
  }

  .floating-hearts {
    letter-spacing: 10px;

    font-size: 18px;
  }

  /* Lightbox */

  .lightbox {
    padding: 20px;
  }

  .lightbox-content img {
    max-height: 70vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;

    font-size: 25px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }

  .lightbox-close {
    right: 15px;
    top: 15px;
  }

  /* Modal */

  .modal-content {
    padding: 50px 20px 30px;
  }

  .modal-content h2 {
    font-size: 43px;
  }

  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}
