/* ============================================================
   LOVE PROJECT – COMPLETE STYLESHEET
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Initial screens (light theme) */
  --pink-light: #ffe6e9;
  --pink-btn: #ff6b81;
  --pink-btn-hover: #ffa4b1;

  /* Memories hub (dark premium theme) */
  --bg-deep: #0f0c1a;
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --accent: #ff6b81;
  --accent-light: #ff9a9e;
  --accent-glow: rgba(255, 107, 129, 0.35);
  --accent-gradient: linear-gradient(135deg, #ff6b81, #ff9a9e);
  --accent-gradient-2: linear-gradient(135deg, #a18cd1, #fbc2eb);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(18px);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Quicksand", sans-serif;
  background-color: var(--pink-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   INITIAL SCREENS  (original question / result / loader)
   ============================================================ */
.initial-screens {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--pink-light);
}
.initial-screens.hidden { display: none; }

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.2s;
}

/* question */
.question-container {
  position: absolute;
  top: 40%;
  left: 50%;
  transition: 0.2s;
}
.local-gif {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 3rem auto;
  pointer-events: none;
}
.question {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.button-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.btn {
  position: absolute;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--pink-btn);
  color: white;
  transform: scale(1.05);
  box-shadow: 0px 4px 15px rgba(255, 107, 129, 0.5);
}
.btn:hover {
  background-color: var(--pink-btn-hover);
  transform: scale(1.1);
  box-shadow: 0px 6px 20px rgba(255, 107, 129, 0.7);
  text-shadow: 1px 1px 5px rgba(255, 182, 193, 0.8);
}
.yes-btn { right: 54%; }
.no-btn  { left: 54%; }

/* result */
.result-container {
  display: none;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.2s;
  text-align: center;
}
.gif-result {
  border-radius: 10px;
  margin-bottom: 2rem;
  max-width: 320px;
  width: 100%;
}
.result-container h2 {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* memories button */
.memories-btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: "Quicksand", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 24px var(--accent-glow);
  transition: all 0.35s ease;
  animation: pulse-glow 2s ease-in-out infinite;
}
.memories-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 36px var(--accent-glow);
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 24px var(--accent-glow); }
  50%      { box-shadow: 0 6px 40px rgba(255, 107, 129, 0.55); }
}

/* ============================================================
   HEART LOADER  (original)
   ============================================================ */
.cssload-main {
  display: none;
  position: absolute;
  content: "";
  top: 17%;
  left: 50%;
  margin: 200px auto 0 auto;
  transform: translate(-100%, -50%);
  -o-transform: translate(-100%, -240%);
  -ms-transform: translate(-100%, -240%);
  -webkit-transform: translate(-100%, -240%);
  -moz-transform: translate(-100%, -240%);
}
.cssload-main * { font-size: 62px; }
.cssload-heart {
  animation: cssload-heart 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
  top: 50%; content: ""; left: 50%; position: absolute;
}
.cssload-heartL {
  width: 1em; height: 1em; border: 1px solid #ff0000;
  background-color: #ff0000; content: ""; position: absolute;
  display: block; border-radius: 100%;
  animation: cssload-heartL 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
  transform: translate(-28px, -27px);
}
.cssload-heartR {
  width: 1em; height: 1em; border: 1px solid #ff0000;
  background-color: #ff0000; content: ""; position: absolute;
  display: block; border-radius: 100%;
  transform: translate(28px, -27px);
  animation: cssload-heartR 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}
.cssload-square {
  width: 1em; height: 1em; border: 1px solid #ff0000;
  background-color: #ff0000; position: relative;
  display: block; content: "";
  transform: scale(1) rotate(-45deg);
  animation: cssload-square 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}
.cssload-shadow {
  top: 97px; left: 50%; content: ""; position: relative;
  display: block; bottom: -0.5em; width: 1em; height: 0.24em;
  background-color: rgb(215, 215, 215);
  border: 1px solid rgb(215, 215, 215); border-radius: 50%;
  animation: cssload-shadow 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}

/* heart loader keyframes */
@keyframes cssload-square {
  50%  { border-radius: 100%; transform: scale(0.5) rotate(-45deg); }
  100% { transform: scale(1) rotate(-45deg); }
}
@keyframes cssload-heart {
  50%  { transform: rotate(360deg); }
  100% { transform: rotate(720deg); }
}
@keyframes cssload-heartL {
  60% { transform: scale(0.4); }
}
@keyframes cssload-heartR {
  40% { transform: scale(0.4); }
}
@keyframes cssload-shadow {
  50% { transform: scale(0.5); border-color: rgb(228, 228, 228); }
}

/* ============================================================
   LOCK SCREEN OVERLAY
   ============================================================ */
.lock-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #0f0c1a 70%);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.lock-overlay.visible {
  display: flex;
  opacity: 1;
}
.lock-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* floating particles behind lock */
.lock-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.lock-particle {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: float-up 6s linear infinite;
}
@keyframes float-up {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* lock card */
.lock-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: lock-appear 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lock-appear {
  0%   { opacity: 0; transform: scale(0.8) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.lock-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: lock-bounce 2s ease-in-out infinite;
}
@keyframes lock-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.lock-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.lock-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.lock-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}
.lock-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.lock-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.lock-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.lock-submit {
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.lock-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.lock-error {
  color: #ff4757;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
  margin-bottom: 0.5rem;
  min-height: 1.4em;
}
.lock-error.show { opacity: 1; }
.lock-hint {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
}

/* shake animation */
.shake {
  animation: shake 0.5s ease-in-out;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-15px); }
  40%      { transform: translateX(15px); }
  60%      { transform: translateX(-10px); }
  80%      { transform: translateX(10px); }
}

/* unlock success burst */
.lock-success .lock-icon {
  animation: success-burst 0.8s ease forwards;
}
@keyframes success-burst {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.8); }
  100% { transform: scale(0); opacity: 0; }
}

/* ============================================================
   MEMORIES HUB
   ============================================================ */
.memories-hub {
  display: none;
  position: relative;
  background: var(--bg-deep);
  min-height: 100vh;
  color: var(--text-primary);
}
.memories-hub.visible {
  display: block;
  animation: hub-reveal 1s ease;
}
@keyframes hub-reveal {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* floating hearts canvas */
.hearts-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ---------- NAVIGATION ---------- */
.memories-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(15, 12, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}
.nav-brand {
  font-size: 1.3rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 0.5rem;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.nav-link.active {
  background: var(--accent-gradient);
  box-shadow: 0 2px 12px var(--accent-glow);
}
.nav-lock-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-lock-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

/* ---------- HERO ---------- */
.memories-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: hero-title-in 1s ease 0.3s both;
}
@keyframes hero-title-in {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
  animation: hero-title-in 1s ease 0.6s both;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  animation: hero-title-in 1s ease 1s both;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: scroll-bounce 1.5s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50%      { transform: rotate(45deg) translate(5px, 5px); opacity: 0.5; }
}

/* ---------- SECTIONS COMMON ---------- */
.mem-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* reveal on scroll */
.mem-section .section-header,
.mem-section .masonry-grid,
.mem-section .letters-container,
.mem-section .reasons-grid,
.mem-section .wishes-progress-wrap,
.mem-section .wishes-list {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.mem-section .section-header.revealed,
.mem-section .masonry-grid.revealed,
.mem-section .letters-container.revealed,
.mem-section .reasons-grid.revealed,
.mem-section .wishes-progress-wrap.revealed,
.mem-section .wishes-list.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   GALLERY – MASONRY COLLAGE
   ============================================================ */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255, 107, 129, 0.25);
}
.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* size variants */
.gallery-item--tall img  { height: 420px; }
.gallery-item--normal img { height: 280px; }
.gallery-item--short img  { height: 200px; }

/* caption overlay */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* stagger entrance */
.gallery-item {
  animation: gallery-item-in 0.6s ease both;
}
.gallery-item:nth-child(1)  { animation-delay: 0.05s; }
.gallery-item:nth-child(2)  { animation-delay: 0.1s; }
.gallery-item:nth-child(3)  { animation-delay: 0.15s; }
.gallery-item:nth-child(4)  { animation-delay: 0.2s; }
.gallery-item:nth-child(5)  { animation-delay: 0.25s; }
.gallery-item:nth-child(6)  { animation-delay: 0.3s; }
.gallery-item:nth-child(7)  { animation-delay: 0.35s; }
.gallery-item:nth-child(8)  { animation-delay: 0.4s; }
.gallery-item:nth-child(9)  { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.5s; }
.gallery-item:nth-child(11) { animation-delay: 0.55s; }
.gallery-item:nth-child(12) { animation-delay: 0.6s; }

@keyframes gallery-item-in {
  0%   { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   LOVE LETTERS
   ============================================================ */
.letters-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.letter-card {
  position: relative;
  background: linear-gradient(145deg, #fdf6ee, #fef9f2);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem 1.8rem;
  color: #4a3728;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.letter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 50px;
  height: 18px;
  background: rgba(255, 107, 129, 0.35);
  border-radius: 0 0 4px 4px;
  filter: blur(0.5px);
}
.letter-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.letter-date {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #b08968;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.letter-title {
  font-family: "Dancing Script", cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.letter-body {
  font-family: "Dancing Script", cursive;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #5c4033;
  margin-bottom: 1.2rem;
}
.letter-from {
  font-family: "Dancing Script", cursive;
  font-size: 1.1rem;
  text-align: right;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   REASONS I LOVE YOU – FLIP CARDS
   ============================================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}
.reason-card {
  perspective: 800px;
  height: 220px;
  cursor: pointer;
}
.reason-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.reason-card.flipped .reason-card-inner {
  transform: rotateY(180deg);
}
.reason-front,
.reason-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 1.5rem;
}
.reason-front {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.reason-front:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.reason-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.reason-front-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.reason-back {
  background: var(--accent-gradient);
  transform: rotateY(180deg);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 8px 32px var(--accent-glow);
}
/* ── Load More card ── */
.reason-card--loadmore {
  cursor: pointer;
}
.reason-loadmore-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg-card);
  transition: var(--transition);
}
.reason-card--loadmore:hover .reason-loadmore-inner {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 28px var(--accent-glow);
}
.loadmore-icon {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--accent);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  animation: loadmore-pulse 2s ease-in-out infinite;
}
@keyframes loadmore-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 10px transparent; }
}
.reason-card--loadmore:hover .loadmore-icon {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}
.loadmore-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================================
   HEART CRASH POPUP
   ============================================================ */
.crash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}
.crash-overlay.visible {
  display: flex;
}
.crash-popup {
  background: linear-gradient(145deg, #1e1535, #160e28);
  border: 1px solid rgba(255, 75, 110, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow:
    0 0 40px rgba(255, 75, 110, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: crash-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes crash-appear {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.crash-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: crash-shake 0.6s ease-in-out 0.3s;
}
@keyframes crash-shake {
  0%, 100% { transform: rotate(0); }
  20%  { transform: rotate(-12deg) scale(1.1); }
  40%  { transform: rotate(12deg) scale(1.1); }
  60%  { transform: rotate(-8deg); }
  80%  { transform: rotate(8deg); }
}
.crash-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff4b6e;
  margin-bottom: 0.8rem;
}
.crash-msg {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.crash-code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 75, 110, 0.15);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
}
.crash-code code {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  color: #ff9a9e;
  word-break: break-word;
}
.crash-close-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.crash-close-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(255, 107, 129, 0.5);
}

/* ============================================================
   BUCKET LIST / WISHES
   ============================================================ */
.wishes-progress-wrap {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wishes-progress-bar {
  flex: 1;
  height: 10px;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
}
.wishes-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 20px;
  transition: width 0.6s ease;
  width: 0%;
}
.wishes-progress-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 60px;
}

.wishes-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.wish-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}
.wish-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(6px);
}
.wish-item.done {
  border-color: rgba(255, 107, 129, 0.2);
}
.wish-item.done .wish-text {
  text-decoration: line-through;
  color: var(--text-secondary);
}

/* custom checkbox */
.wish-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.wish-item.done .wish-checkbox {
  background: var(--accent-gradient);
  border-color: transparent;
}
.wish-check-icon {
  display: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.wish-item.done .wish-check-icon {
  display: block;
}

.wish-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}
.wish-emoji {
  font-size: 1.3rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.memories-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem 3rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
}
.footer-heart {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  animation: lock-bounce 2s ease-in-out infinite;
}
.memories-footer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.footer-tagline {
  font-family: "Dancing Script", cursive;
  font-size: 1.3rem !important;
  color: var(--accent-light) !important;
  margin-top: 0.5rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox.visible {
  display: flex;
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  z-index: 1;
}
.lightbox-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}
.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lightbox-zoom 0.4s ease;
}
@keyframes lightbox-zoom {
  0%   { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.lightbox-caption {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  animation: hero-title-in 0.5s ease 0.2s both;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .masonry-grid { columns: 2; }
  .nav-links { gap: 0.2rem; }
  .nav-link { padding: 6px 10px; font-size: 0.8rem; }
}
@media (max-width: 600px) {
  .masonry-grid { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-item--tall img  { height: 300px; }
  .gallery-item--normal img { height: 200px; }
  .gallery-item--short img  { height: 150px; }

  .memories-nav { padding: 0.6rem 1rem; }
  .nav-brand { display: none; }
  .nav-link { padding: 6px 8px; font-size: 0.75rem; }

  .mem-section { padding: 3rem 1rem 2rem; }

  .letters-container { grid-template-columns: 1fr; }

  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-card { height: 180px; }

  .lock-content { padding: 2rem 1.5rem; }
  .lock-input-group { flex-direction: column; }

  .hero-title { font-size: 2.5rem; }
}
@media (max-width: 400px) {
  .masonry-grid { columns: 1; }
}
