/* ═══════════════════════════════════════════════
   DESIGN TOKENS & SYSTEM VARIABLES
   ═══════════════════════════════════════════════ */
:root {
  --color-blue: #bde0fe;
  --color-green: #cdeac0;
  --color-bg-dark: #0d0714;
  --color-sunset-orange: #ffb347;
  --color-sunset-pink: #ffccff;
  --color-glass-bg: rgba(255, 255, 255, 0.08);
  --color-glass-border: rgba(255, 255, 255, 0.15);
  --color-text-light: #f8f9fa;
  --color-text-muted: #d1d5db;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.3s ease;
}

/* ═══════════════════════════════════════════════
   BASE STYLES & RESET
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-blue), var(--color-green));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-sunset-pink);
}

/* ═══════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════ */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0a1f15, var(--color-bg-dark));
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-sparkle {
  font-size: 2.5rem;
  color: var(--color-sunset-orange);
  animation: pulseSparkle 1.5s infinite ease-in-out;
  margin-bottom: 0.5rem;
}

.loader-name {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(45deg, var(--color-blue), var(--color-sunset-pink), var(--color-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  animation: shine 3s infinite linear;
  background-size: 200% auto;
}

.loader-sub {
  font-family: var(--font-accent);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.loader-bar {
  width: 150px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  animation: fillProgress 2.5s forwards cubic-bezier(0.1, 0.8, 0.1, 1);
}

@keyframes fillProgress {
  to {
    width: 100%;
  }
}

@keyframes pulseSparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.3) rotate(180deg);
    opacity: 1;
    text-shadow: 0 0 15px var(--color-sunset-orange);
  }
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* ═══════════════════════════════════════════════
   MUSIC CONTROL & OVERLAY
   ═══════════════════════════════════════════════ */
.music-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  height: 48px;
  width: 48px;
  border-radius: 30px;
  background: rgba(13, 7, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-light);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.music-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  width: 100%;
  padding: 0 14px;
}

.music-btn:hover {
  width: 180px;
  background: rgba(13, 7, 20, 0.85);
  border-color: rgba(255, 179, 71, 0.4);
  box-shadow: 0 15px 35px rgba(255, 179, 71, 0.15);
}

.music-btn:hover .music-btn-content {
  gap: 10px;
}

.music-text {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.music-btn:hover .music-text {
  opacity: 1;
  max-width: 100px;
}

.music-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Equalizer Bars */
.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 12px;
  height: 12px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.music-btn:hover .music-equalizer {
  opacity: 1;
  max-width: 20px;
}

.eq-bar {
  width: 2px;
  height: 3px;
  background: var(--color-sunset-orange);
  border-radius: 1px;
  transition: height 0.3s ease, background 0.3s ease;
}

.music-btn.playing .eq-bar {
  background: var(--color-sunset-orange);
  transform-origin: bottom;
}

.music-btn.playing .eq-bar.bar-1 {
  animation: eqGrow 0.6s ease-in-out infinite alternate;
}

.music-btn.playing .eq-bar.bar-2 {
  animation: eqGrow 0.9s ease-in-out infinite alternate 0.15s;
}

.music-btn.playing .eq-bar.bar-3 {
  animation: eqGrow 0.7s ease-in-out infinite alternate 0.3s;
}

@keyframes eqGrow {
  0% {
    height: 3px;
  }

  100% {
    height: 12px;
  }
}

.music-btn.playing:hover .music-icon {
  transform: rotate(15deg);
}

.music-ripple {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  border: 1px solid var(--color-sunset-orange);
  opacity: 0;
  pointer-events: none;
}

.music-btn.playing .music-ripple {
  animation: rippleMusic 2.5s infinite ease-out;
}

@keyframes rippleMusic {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Music Overlay (Autoplay Blocked) */
.music-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 19, 12, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.music-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.music-overlay-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-glass-border);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.music-note-anim {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: floatNote 2s infinite ease-in-out;
}

@keyframes floatNote {

  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }

  50% {
    transform: translateY(-15px) rotate(10deg);
  }
}

.music-overlay-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--color-blue);
}

.music-overlay-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.play-music-btn {
  background: linear-gradient(45deg, var(--color-blue), var(--color-green));
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  color: #07130c;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(189, 224, 254, 0.3);
  transition: var(--transition-fast);
}

.play-music-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(189, 224, 254, 0.5);
}

/* ═══════════════════════════════════════════════
   CURSOR GLOW
   ═══════════════════════════════════════════════ */
.cursor-glow {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(189, 224, 254, 0.15) 0%, rgba(205, 234, 192, 0.05) 50%, transparent 70%);
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: screen;
  transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 768px) {
  .cursor-glow {
    display: none;
    /* Hide on mobile to optimize performance */
  }
}

/* ═══════════════════════════════════════════════
   CANVAS BACKGROUNDS
   ═══════════════════════════════════════════════ */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   SECTION 1 — CINEMATIC HERO
   ═══════════════════════════════════════════════ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  z-index: 3;
}

/* Sky Layer */
.sky-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #bde0fe 0%, #ffccd5 40%, #ffb347 75%, #ff7b00 100%);
  z-index: 1;
}

.sun-glow {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle at bottom, rgba(255, 123, 0, 0.7) 0%, rgba(255, 204, 255, 0.3) 50%, transparent 80%);
  filter: blur(50px);
  pointer-events: none;
}

/* Animated Clouds */
.cloud {
  position: absolute;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 220, 220, 0.25) 30%, rgba(255, 230, 200, 0.25) 70%, rgba(255, 255, 255, 0) 100%);
  filter: blur(12px);
  border-radius: 100px;
  pointer-events: none;
}

.cloud-1 {
  width: 450px;
  height: 25px;
  top: 18%;
  left: -20%;
  animation: driftCloud 100s infinite linear;
}

.cloud-2 {
  width: 600px;
  height: 35px;
  top: 32%;
  right: -30%;
  animation: driftCloudReverse 140s infinite linear;
}

.cloud-3 {
  width: 350px;
  height: 20px;
  top: 48%;
  left: 10%;
  animation: driftCloud 80s infinite linear;
}

@keyframes driftCloud {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(120vw);
  }
}

@keyframes driftCloudReverse {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-120vw);
  }
}

.fireworks-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Hero Text */
.hero-text-wrap {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-top: 10vh;
  padding: 0 1.5rem;
  pointer-events: none;
}

.hero-pretext {
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1rem;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(189, 224, 254, 0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.name-highlight {
  color: #ff2a6d;
  font-size: 4.8rem;
  font-weight: 900;
  font-style: italic;
  display: inline-block;
  text-shadow: 0 0 10px rgba(255, 42, 109, 0.8), 0 0 25px rgba(255, 140, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.7);
  animation: namePulse 3s infinite ease-in-out;
}

@keyframes namePulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 42, 109, 0.8), 0 0 25px rgba(255, 140, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.7);
  }
  50% {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 42, 109, 1), 0 0 35px rgba(255, 140, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.8);
  }
}

.hero-date {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

/* Middle Nature Layer */
.nature-layer {
  position: absolute;
  bottom: 120px;
  left: 0;
  width: 100%;
  height: 250px;
  z-index: 3;
  pointer-events: none;
}

/* Fog Effect */
.fog {
  position: absolute;
  width: 200%;
  height: 100%;
  bottom: 0;
  background: linear-gradient(to top, rgba(189, 224, 254, 0.08) 0%, transparent 100%);
  filter: blur(20px);
}

.fog-1 {
  left: 0;
  animation: driftFog 60s infinite linear;
}

.fog-2 {
  left: -50%;
  animation: driftFog 40s infinite linear reverse;
}

@keyframes driftFog {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

/* Wind Trees */
.trees-wrap {
  position: absolute;
  bottom: -20px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  opacity: 0.7;
}

.tree {
  height: 120px;
  transform-origin: bottom center;
  animation: treeSway 8s infinite ease-in-out;
}

.tree-l1 {
  animation-delay: 0s;
  height: 130px;
}

.tree-l2 {
  animation-delay: 1.5s;
  height: 100px;
  opacity: 0.8;
}

.tree-c {
  animation-delay: 3s;
  height: 160px;
  z-index: 2;
  opacity: 0.9;
}

.tree-r1 {
  animation-delay: 0.8s;
  height: 100px;
  opacity: 0.8;
}

.tree-r2 {
  animation-delay: 2.2s;
  height: 120px;
}

@keyframes treeSway {

  0%,
  100% {
    transform: rotate(0deg) skewX(0deg);
  }

  50% {
    transform: rotate(2deg) skewX(1deg);
  }
}

/* Mountain & Silhouette Layer */
.mountain-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 4;
}

.mountain-svg {
  width: 100%;
  height: 180px;
  display: block;
}

.silhouettes {
  position: absolute;
  bottom: 66px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: auto;
  z-index: 5;
}

.silhouette-pair {
  width: 100%;
  height: auto;
}

.boy-silhouette,
.girl-silhouette {
  transform-origin: bottom center;
}

.boy-silhouette {
  animation: idleChar 6s infinite ease-in-out;
}

.girl-silhouette {
  animation: idleChar 6s infinite ease-in-out 0.5s;
}

@keyframes idleChar {

  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }

  50% {
    transform: translateY(-2px) scaleY(1.02);
  }
}

.horizon-glow {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, #0c0812, transparent);
  z-index: 6;
}

/* Sunset Theme SVG Overrides */
.tree polygon:nth-child(1) {
  fill: #2c1a35 !important;
}

.tree polygon:nth-child(2) {
  fill: #3f274c !important;
}

.tree rect {
  fill: #1d0f25 !important;
}

.mountain-svg polygon:nth-child(1) {
  fill: #381e3f !important;
  opacity: 0.95 !important;
}

.mountain-svg polygon:nth-child(2) {
  fill: #2a1232 !important;
  opacity: 0.98 !important;
}

.mountain-svg polygon:nth-child(3) {
  fill: #301736 !important;
  opacity: 0.97 !important;
}

.mountain-svg polygon:nth-child(4) {
  fill: #230b28 !important;
  opacity: 0.99 !important;
}

.mountain-svg path {
  fill: #17041c !important;
}

.boy-silhouette circle,
.boy-silhouette rect {
  fill: #0b010d !important;
}

.girl-silhouette ellipse,
.girl-silhouette path,
.girl-silhouette rect {
  fill: #0b010d !important;
}

/* Scroll Indicator */
.scroll-indicator {
  position: relative;
  z-index: 10;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  transform: translateY(3px);
}

.scroll-text {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.scroll-arrow span {
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--color-blue);
  border-right: 2px solid var(--color-blue);
  transform: rotate(45deg);
  margin: -3px;
  animation: animateArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: -0.2s;
}

.scroll-arrow span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes animateArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* Responsive adjustments for Hero Section */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-pretext {
    font-size: 0.85rem;
    letter-spacing: 3px;
  }

  .mountain-svg {
    height: 120px;
  }

  .silhouettes {
    width: 90px;
    bottom: 43px;
  }

  .nature-layer {
    bottom: 80px;
    height: 180px;
  }

  .tree {
    height: 80px;
  }
}

/* ═══════════════════════════════════════════════
   SECTION 2 — MEMORIES
   ═══════════════════════════════════════════════ */
.memories-section {
  position: relative;
  z-index: 4;
  padding: 8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-eyebrow {
  font-family: var(--font-accent);
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--color-text-light), var(--color-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Glassmorphism Cards */
.memory-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-glass-border);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.memory-card:hover {
  transform: translateY(-5px);
  border-color: rgba(189, 224, 254, 0.3);
  box-shadow: 0 30px 60px rgba(189, 224, 254, 0.1);
}

.card-inner {
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.card-inner.vertical {
  flex-direction: column;
  padding: 0;
}

/* CARD 1 — Alternating Memory Rows */
.card-inner-rows {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.memory-row {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.memory-row.reverse {
  flex-direction: row-reverse;
}

.row-img-box {
  flex: 1;
  max-width: 45%;
  aspect-ratio: 1.4;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.row-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.row-img-box:hover {
  transform: translateY(-5px);
  border-color: rgba(189, 224, 254, 0.4);
  box-shadow: 0 15px 40px rgba(189, 224, 254, 0.2);
}

.row-img-box:hover img {
  transform: scale(1.08);
}

.row-text-box {
  flex: 1.2;
}

.row-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--color-sunset-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.row-text-box h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-blue);
}

.row-text-box p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--color-sunset-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card-text-side h3,
.card-body-text h3,
.envelope-preview-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-blue);
}

.card-text-side p,
.card-body-text p,
.envelope-preview-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* CARD 2 — Top Image */
.card-hero-img {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.card-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(7, 19, 12, 0.9), transparent);
}

.img-overlay-text span {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-blue);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-body-text {
  padding: 3rem;
  width: 100%;
}

/* CARD 3 — Envelope Preview */
.card-inner.centered {
  flex-direction: column;
  text-align: center;
  padding: 4rem 2rem;
  gap: 2rem;
}

.envelope-preview-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.envelope-preview-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(189, 224, 254, 0.4) 0%, transparent 70%);
  filter: blur(15px);
  animation: pulseGlow 3s infinite ease-in-out;
}

.envelope-preview-img {
  width: 100%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
  animation: floatEnv 4s infinite ease-in-out;
}

.envelope-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  z-index: 3;
  animation: pulseSparkle 2s infinite ease-in-out;
}

@keyframes floatEnv {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

.open-letter-btn {
  background: linear-gradient(45deg, var(--color-blue), var(--color-green));
  color: #07130c;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(189, 224, 254, 0.3);
  transition: var(--transition-fast);
  margin-top: 1.5rem;
}

.open-letter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(189, 224, 254, 0.5);
}

/* Responsiveness for Section 2 */
@media (max-width: 992px) {
  .card-inner {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }

  .card-images-grid {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .card-inner-rows {
    padding: 2rem 1.5rem;
    gap: 3rem;
  }

  .memory-row,
  .memory-row.reverse {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .row-img-box {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 1.6;
  }
}

@media (max-width: 576px) {
  .memories-section {
    padding: 5rem 1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .card-images-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-hero-img {
    height: 220px;
  }

  .card-body-text {
    padding: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════
   SECTION 2.5 — APPRECIATION
   ═══════════════════════════════════════════════ */
.appreciation-section {
  position: relative;
  z-index: 4;
  padding: 4rem 1.5rem 8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.appreciation-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-glass-border);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.appreciation-container:hover {
  transform: translateY(-5px);
  border-color: rgba(189, 224, 254, 0.3);
  box-shadow: 0 30px 60px rgba(189, 224, 254, 0.1);
}

.appreciation-content {
  display: flex;
  align-items: stretch;
}

.appreciation-left {
  flex: 1;
  max-width: 45%;
  min-height: 550px;
  position: relative;
  overflow: hidden;
}

.appreciation-img-box {
  width: 100%;
  height: 100%;
  position: relative;
}

.appreciation-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.appreciation-container:hover .appreciation-img-box img {
  transform: scale(1.05);
}

.appreciation-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 60%, rgba(13, 7, 20, 0.4) 100%);
  pointer-events: none;
}

.appreciation-right {
  flex: 1.2;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.appreciation-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--color-sunset-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.appreciation-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--color-text-light), var(--color-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.appreciation-text p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.appreciation-text p:last-child {
  margin-bottom: 0;
}

/* Responsiveness for Appreciation */
@media (max-width: 992px) {
  .appreciation-content {
    flex-direction: column;
  }
  
  .appreciation-left {
    max-width: 100%;
    height: 480px;
    min-height: auto;
  }
  
  .appreciation-img-overlay {
    background: linear-gradient(to bottom, transparent 60%, rgba(13, 7, 20, 0.4) 100%);
  }
  
  .appreciation-right {
    padding: 3rem 2rem;
  }
}

@media (max-width: 576px) {
  .appreciation-section {
    padding: 4rem 1rem;
  }
  
  .appreciation-left {
    height: 380px;
  }
  
  .appreciation-title {
    font-size: 2.2rem;
  }
  
  .appreciation-right {
    padding: 2.5rem 1.5rem;
  }
}

/* ═══════════════════════════════════════════════
   SECTION 3 — LETTER EXPERIENCE
   ═══════════════════════════════════════════════ */
.letter-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
  z-index: 5;
}

.letter-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.letter-scene {
  position: relative;
  width: 100%;
  max-width: 600px;
  perspective: 1500px;
}

.envelope-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5;
  /* standard card ratio */
  cursor: pointer;
}

.envelope-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* Envelope Open State */
.envelope-wrap.opened {
  transform: translateY(120px);
}

.env-body {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #bbdefb;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  transition: transform 0.6s ease-in-out;
  z-index: 5;
}

/* Open animation triggers this */
.envelope-wrap.opened .env-flap {
  transform: rotateX(180deg);
  z-index: 1;
  /* behind paper */
}

.env-front {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 2rem;
  z-index: 4;
}

.env-wax-seal {
  font-size: 3rem;
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseSparkle 2s infinite ease-in-out;
}

.env-to {
  font-family: var(--font-accent);
  color: #07130c;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.env-from {
  font-family: var(--font-accent);
  color: #546e7a;
  font-size: 0.85rem;
}

/* Letter Paper */
.letter-paper {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), height 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  overflow: hidden;
  transform: translateY(0);
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0), radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Sliding Letter Up Animation */
.envelope-wrap.opened .letter-paper {
  transform: translateY(-280px);
  height: 600px;
  z-index: 6;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

/* Letter Content Styling */
.letter-paper-inner {
  padding: 2.5rem;
  color: #2c3e50;
}

.letter-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.letter-date {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: #7f8c8d;
}

.letter-greeting {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a303a;
  margin-top: 0.5rem;
}

.letter-body p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #34495e;
  margin-bottom: 1.2rem;
}

.letter-body em {
  font-style: italic;
  color: #d81b60;
  font-weight: 500;
}

.letter-signature {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
}

.letter-signature p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.sig-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: #1a303a;
}

/* Click Hint */
.envelope-hint {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-blue);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.envelope-wrap.opened~.envelope-hint {
  opacity: 0;
}

.hint-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--color-blue);
  border-radius: 50%;
  margin-bottom: 0.5rem;
  animation: pulseGlow 1.5s infinite;
}

/* Responsive adjustments for Letter */
@media (max-width: 576px) {
  .envelope-wrap.opened .letter-paper {
    transform: translateY(-260px);
    height: 480px;
    width: 95%;
    left: 2.5%;
  }

  .letter-paper-inner {
    padding: 1.5rem;
  }

  .letter-greeting {
    font-size: 1.5rem;
  }

  .envelope-wrap.opened {
    transform: translateY(80px);
  }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  position: relative;
  background: linear-gradient(to top, #040906 0%, var(--color-bg-dark) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 4;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-wish {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.footer-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-name span {
  background: linear-gradient(45deg, var(--color-blue), var(--color-sunset-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-divider {
  color: var(--color-green);
  font-size: 0.8rem;
  letter-spacing: 5px;
  margin-bottom: 1.5rem;
}

.footer-credit {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL UTILITIES
   ═══════════════════════════════════════════════ */
.reveal-fade,
.reveal-up {
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-fade.active {
  opacity: 1;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}