* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ======================== */
/* Accessibility            */
/* ======================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ======================== */
/* CSS Variables / Theming  */
/* ======================== */
:root {
  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --bg-primary: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-strong: rgba(255, 255, 255, 0.12);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-hover: rgba(255, 255, 255, 0.25);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --accent: #ff6b9d;
  --accent-glow: rgba(255, 107, 157, 0.4);
  --accent-secondary: #c084fc;
  --accent-secondary-glow: rgba(192, 132, 252, 0.4);
  --gradient-accent: linear-gradient(135deg, #ff6b9d, #c084fc);
  --gradient-card: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(192, 132, 252, 0.1));
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(255, 107, 157, 0.15);
  --nav-bg: rgba(15, 15, 26, 0.85);
  --modal-bg: rgba(0, 0, 0, 0.7);
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-border: rgba(255, 255, 255, 0.15);
  --input-focus: rgba(255, 107, 157, 0.5);
  --timeline-line: linear-gradient(to bottom, #ff6b9d, #c084fc, #ff6b9d);
}

body.light-mode {
  --bg-gradient: linear-gradient(135deg, #fce4f0 0%, #f0e4ff 50%, #e8f4ff 100%);
  --bg-primary: #f8f0ff;
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-card-hover: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.5);
  --bg-glass-strong: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(255, 255, 255, 0.6);
  --border-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.7);
  --text-muted: rgba(26, 26, 46, 0.45);
  --accent: #d63384;
  --accent-glow: rgba(214, 51, 132, 0.3);
  --accent-secondary: #9333ea;
  --accent-secondary-glow: rgba(147, 51, 234, 0.3);
  --gradient-accent: linear-gradient(135deg, #d63384, #9333ea);
  --gradient-card: linear-gradient(135deg, rgba(214, 51, 132, 0.08), rgba(147, 51, 234, 0.08));
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(214, 51, 132, 0.1);
  --nav-bg: rgba(248, 240, 255, 0.85);
  --modal-bg: rgba(0, 0, 0, 0.4);
  --input-bg: rgba(0, 0, 0, 0.04);
  --input-border: rgba(0, 0, 0, 0.12);
  --input-focus: rgba(214, 51, 132, 0.5);
  --timeline-line: linear-gradient(to bottom, #d63384, #9333ea, #d63384);
}

/* ======================== */
/* Base                     */
/* ======================== */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.5s ease, color 0.5s ease;
}

body.lock-scroll {
  overflow-y: hidden;
  height: 100vh;
  height: 100dvh;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Lucide icon base sizing */
i[data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  vertical-align: middle;
}

/* ======================== */
/* Background Effects       */
/* ======================== */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.heart-particle {
  position: absolute;
  animation: floatUp 8s infinite linear;
  opacity: 0;
  color: var(--accent);
}

.falling-heart {
  position: fixed;
  top: -20px;
  font-size: 24px;
  animation: fall linear forwards;
  z-index: 9999;
}

@keyframes fall {
  to { transform: translateY(110vh); opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 1; }
  10% { opacity: 1; transform: translateY(90vh) scale(1); }
  90% { opacity: 1; transform: translateY(10vh) scale(1); }
  100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* ======================== */
/* Navbar                   */
/* ======================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-brand {
  cursor: pointer;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.nav-brand:hover {
  transform: scale(1.2);
}

.icon-brand {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  stroke: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

/* Navbar locked state - hide nav links & hamburger */
.navbar:not(.unlocked) .nav-links {
  display: none;
}

.navbar:not(.unlocked) .hamburger {
  display: none;
}

/* Navbar unlocked - show with fade-in */
.navbar.unlocked .nav-links {
  display: flex;
  animation: fadeInNav 0.5s ease forwards;
}

@keyframes fadeInNav {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-glass-hover);
  transform: rotate(30deg) scale(1.1);
}

.icon-theme {
  width: 18px;
  height: 18px;
  stroke: var(--text-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.navbar:not(.unlocked) ~ .mobile-menu-overlay {
  display: none !important;
}

.mobile-menu-overlay.active {
  display: block;
}

/* ======================== */
/* Container                */
/* ======================== */
.container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======================== */
/* Hero Section             */
/* ======================== */
.hero-section {
  text-align: center;
  padding: 140px 0 100px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.love-title {
  font-family: 'Dancing Script', cursive;
  font-size: 5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: pulse 3s ease-in-out infinite;
  line-height: 1.2;
}

.love-name {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 500px;
  line-height: 1.7;
}

.love-button {
  background: var(--gradient-accent);
  color: #fff;
  padding: 16px 44px;
  border: none;
  border-radius: 60px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px var(--accent-glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: bounce 2.5s infinite;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.love-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.love-button:active {
  transform: translateY(0) scale(0.98);
}

.icon-btn {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ======================== */
/* Section Common           */
/* ======================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ======================== */
/* Message Section          */
/* ======================== */
.message-section {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 60px 48px;
  margin: 60px 0;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.message-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.love-message {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-secondary);
  text-align: center;
}

.love-message p {
  margin-bottom: 16px;
}

.final-message {
  margin-bottom: 80px;
}

.gradient-text {
  font-size: 1.4rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ======================== */
/* Print Styles             */
/* ======================== */
/* Interactive Heart        */
/* ======================== */
.interactive-heart {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  animation: heartbeat 1.5s infinite;
  display: none;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

.interactive-heart i {
  width: 120px;
  height: 120px;
  stroke: var(--accent);
  fill: var(--accent);
  stroke-width: 1;
}

@keyframes heartbeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

/* ======================== */
/* Countdown Section        */
/* ======================== */
.countdown-section {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  margin: 60px 0;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--accent-glow), transparent, var(--accent-secondary-glow), transparent);
  animation: rotateBg 15s linear infinite;
  opacity: 0.3;
}

@keyframes rotateBg {
  to { transform: rotate(360deg); }
}

.countdown-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.time-unit {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 24px 20px;
  border-radius: 20px;
  min-width: 100px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.time-unit:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow);
}

.time-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.time-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======================== */
/* Memory Timeline          */
/* ======================== */
.memory-timeline {
  padding: 80px 20px;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 20px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--timeline-line);
  transform: translateX(-50%);
  border-radius: 3px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease both;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  border: 3px solid var(--bg-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-icon i {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.timeline-icon:hover {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.timeline-content {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 28px;
  border-radius: 18px;
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-card-hover);
}

.timeline-content .left::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -12px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--bg-glass-strong);
}

.timeline-content .right::after {
  content: '';
  position: absolute;
  top: 36px;
  left: -12px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent var(--bg-glass-strong) transparent transparent;
}

.timeline-content h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
  text-align: left;
}

/* ======================== */
/* Interactive Gallery      */
/* ======================== */
.interactive-gallery {
  padding: 80px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.photo-card {
  position: relative;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-glass-hover);
}

.photo-card:active {
  transform: translateY(-2px) scale(0.98);
}

.photo-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-image {
  transform: scale(1.1);
}

.photo-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  z-index: 1;
}

.photo-placeholder {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  z-index: 2;
}

.photo-icon {
  margin-bottom: 8px;
  stroke: #fff;
}

.photo-icon i {
  width: 28px;
  height: 28px;
}

.photo-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.view-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.photo-card:hover .view-text {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ======================== */
/* Special Moments          */
/* ======================== */
.special-moments {
  padding: 80px 20px;
}

.moments-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.moment-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.moment-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.moment-card:hover::before {
  animation: shimmer 0.8s ease-in-out;
}

.moment-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}

.moment-card:active {
  transform: translateY(-2px) scale(0.97);
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.moment-icon {
  margin-bottom: 18px;
  animation: float 3s ease-in-out infinite;
  color: var(--accent);
}

.moment-icon i {
  width: 44px;
  height: 44px;
  stroke: var(--accent);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.moment-card h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.moment-card p {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.moment-description {
  color: var(--text-muted) !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  font-style: italic;
}

/* ======================== */
/* Image Gallery (Scroll)   */
/* ======================== */
.image-gallery {
  padding: 60px 0;
  margin: 40px 0;
  overflow: hidden;
}

.image-gallery h2 {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 36px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ======================== */
/* Quiz Section             */
/* ======================== */
.quiz-section {
  text-align: center;
  padding: 60px 0;
}

.open-quiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-accent);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px var(--accent-glow);
  letter-spacing: 0.5px;
}

.open-quiz-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.open-quiz-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Quiz Modal */
.quiz-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: var(--modal-bg);
  backdrop-filter: blur(8px);
  animation: fadeInModal 0.3s ease;
}

.quiz-modal-content {
  position: relative;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  margin: 12% auto;
  padding: 36px 32px;
  border-radius: 24px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-modal-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.quiz-modal-content p {
  font-weight: 500;
  margin: 10px 0;
  color: var(--text-secondary);
}

.quiz-close {
  position: absolute;
  right: 18px;
  top: 14px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.quiz-close i {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}

.quiz-close:hover {
  background: var(--bg-glass);
}

.quiz-close:hover i {
  stroke: var(--accent);
}

.quiz-modal-content input {
  padding: 12px 20px;
  width: 85%;
  margin-top: 8px;
  border-radius: 14px;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  text-align: center;
  transition: all 0.3s ease;
}

.quiz-modal-content input::placeholder {
  color: var(--text-muted);
}

.quiz-modal-content input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 20px var(--accent-glow);
}

.quiz-modal-content button {
  background: var(--gradient-accent);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 28px;
  margin-top: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.quiz-modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

#quizResult {
  margin-top: 12px;
  font-weight: 600;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.9) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ======================== */
/* Photo Modal              */
/* ======================== */
.photo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  backdrop-filter: blur(12px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px;
  padding: 36px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--border-glass);
  position: relative;
  animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close i {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}

.modal-close:hover {
  background: var(--bg-glass);
}

.modal-close:hover i {
  stroke: var(--accent);
}

.modal-photo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  max-height: 400px;
  border-radius: 18px;
  background: var(--gradient-card);
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-title {
  font-family: 'Dancing Script', cursive;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-counter {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 400;
}

.modal-description {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ======================== */
/* Vinyl Music Player       */
/* ======================== */
.vinyl-player {
  position: fixed;
  bottom: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: 28px;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 68px;
  height: 68px;
}

.vinyl-player:hover {
  transform: scale(1.1);
}

.vinyl-player.hidden {
  display: none;
}

.vinyl-disc {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    #1a1a1a 0%,
    #1a1a1a 18%,
    #333 19%,
    #222 21%,
    #333 22%,
    #1a1a1a 24%,
    #2a2a2a 28%,
    #222 32%,
    #2a2a2a 36%,
    #222 40%,
    #2a2a2a 44%,
    #222 48%,
    #2a2a2a 52%,
    #222 56%,
    #2a2a2a 60%,
    #222 64%,
    #2a2a2a 68%,
    #222 72%,
    #2a2a2a 76%,
    #333 80%,
    #222 84%,
    #333 88%,
    #222 92%,
    #333 96%,
    #1a1a1a 100%
  );
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s ease;
}

.vinyl-disc.playing {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--accent-glow);
}

.vinyl-label i {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.vinyl-arm {
  position: absolute;
  top: -4px;
  right: 4px;
  width: 30px;
  height: 4px;
  background: linear-gradient(90deg, #888, #bbb);
  border-radius: 2px;
  transform-origin: right center;
  transform: rotate(-30deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.vinyl-arm::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #999;
  border: 2px solid #777;
}

.vinyl-player.playing .vinyl-arm {
  transform: rotate(0deg);
}

/* ======================== */
/* Sparkle                  */
/* ======================== */
.sparkle {
  position: absolute;
  font-size: 12px;
  pointer-events: none;
  animation: sparkleAnim 1s ease-out forwards;
}

@keyframes sparkleAnim {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  100% { transform: scale(1.5) rotate(180deg); opacity: 0; }
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* ======================== */
/* Responsive               */
/* ======================== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .moments-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }

  .navbar.scrolled {
    padding: 10px 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--nav-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 80px 32px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    gap: 0;
    border-left: 1px solid var(--border-glass);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    margin: 0;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .navbar.unlocked .nav-links {
    animation: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar:not(.unlocked) .hamburger {
    display: none;
  }

  .navbar.unlocked .hamburger {
    animation: fadeInNav 0.5s ease forwards;
  }

  .nav-actions {
    position: relative;
    z-index: 1001;
  }

  .love-title {
    font-size: 3rem;
  }

  .love-name {
    font-size: 2.4rem;
    letter-spacing: 4px;
  }

  .subtitle {
    font-size: 1rem;
  }

  .message-section {
    padding: 40px 24px;
    margin: 40px 10px;
    border-radius: 20px;
  }

  .countdown-section {
    padding: 40px 20px;
    margin: 40px 10px;
  }

  .countdown-timer {
    gap: 12px;
  }

  .time-unit {
    min-width: 72px;
    padding: 16px 12px;
  }

  .time-number {
    font-size: 2rem;
  }

  .timeline-container::before {
    left: 28px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 70px;
    margin-right: 16px;
    text-align: left;
  }

  .timeline-content .left::after,
  .timeline-content .right::after {
    left: -10px;
    right: auto;
    border-width: 8px 8px 8px 0;
    border-color: transparent var(--bg-glass-strong) transparent transparent;
  }

  .timeline-icon {
    left: 28px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
  }

  .timeline-icon i {
    width: 18px;
    height: 18px;
  }

  .timeline-icon:hover {
    transform: translateX(-50%) scale(1.15);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .photo-card {
    scroll-snap-align: unset;
  }

  .moments-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .section-header {
    margin-bottom: 40px;
  }

  .photo-card {
    height: 220px;
  }

  .interactive-gallery,
  .special-moments,
  .memory-timeline {
    padding: 60px 10px;
  }

  .vinyl-player {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .vinyl-disc {
    width: 60px;
    height: 60px;
  }

  .vinyl-label {
    width: 22px;
    height: 22px;
  }

  .vinyl-label i {
    width: 12px;
    height: 12px;
  }

  ::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .love-title {
    font-size: 2.4rem;
  }

  .love-name {
    font-size: 2rem;
    letter-spacing: 3px;
  }

  .subtitle {
    font-size: 0.92rem;
    padding: 0 10px;
  }

  .love-button {
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  .countdown-title {
    font-size: 1.4rem;
  }

  .time-unit {
    min-width: 68px;
    padding: 14px 10px;
  }

  .time-number {
    font-size: 1.8rem;
  }

  .time-label {
    font-size: 0.75rem;
  }

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

  .section-subtitle {
    font-size: 0.88rem;
  }

  .message-section {
    padding: 32px 18px;
    margin: 30px 8px;
    border-radius: 16px;
  }

  .love-message {
    font-size: 1rem;
    line-height: 1.8;
  }

  .timeline-content {
    padding: 18px 20px;
  }

  .timeline-content h3 {
    font-size: 1.05rem;
  }

  .timeline-description {
    font-size: 0.88rem;
  }

  .photo-card {
    height: 200px;
  }

  .moment-card {
    padding: 28px 20px;
  }

  .quiz-modal-content {
    padding: 28px 20px;
    margin: 15% auto;
  }

  .modal-content {
    padding: 24px 16px;
  }

  .modal-photo-container {
    max-width: 280px;
    max-height: 350px;
  }
}

@media (max-width: 360px) {
  .love-title {
    font-size: 2rem;
  }

  .love-name {
    font-size: 1.7rem;
    letter-spacing: 2px;
  }

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

  .countdown-timer {
    gap: 8px;
  }

  .time-unit {
    min-width: 62px;
    padding: 12px 8px;
  }

  .time-number {
    font-size: 1.6rem;
  }
}

/* ======================== */
/* Print Styles             */
/* ======================== */
@media print {
  .navbar, .stars, .floating-hearts, .interactive-heart,
  .vinyl-player, .love-button, .open-quiz-btn,
  .hamburger, .theme-toggle, .photo-overlay, .scrolling {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    min-height: auto;
  }

  .message-section, .countdown-section, .timeline-content,
  .moment-card, .modal-content {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .love-title, .love-name, .section-title, .countdown-title {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  .gradient-text {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }
}
