/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
  /* Colors */
  --primary-color: #ff6b9d;
  --secondary-color: #c44569;
  --accent-color: #ffa07a;
  --gold-color: #ffd700;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
  --text-dark: #2d3436;
  --text-light: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  --gradient-secondary: linear-gradient(135deg, #ffa07a 0%, #ff6b9d 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --gradient-text: linear-gradient(135deg, #ff6b9d, #c44569, #ffa07a);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-primary: "Poppins", sans-serif;
  --font-heading: "Playfair Display", serif;
  --font-script: "Dancing Script", cursive;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(255, 107, 157, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--light-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.title-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #666;
  margin-bottom: var(--spacing-lg);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.nav-logo i {
  font-size: 1.8rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffeef8 0%, #ffe8f5 50%, #ffd6ed 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-hearts i {
  position: absolute;
  color: var(--primary-color);
  opacity: 0.3;
  animation: float 15s infinite;
}

.floating-hearts i:nth-child(1) {
  left: 10%;
  top: 20%;
  font-size: 2rem;
  animation-delay: 0s;
}

.floating-hearts i:nth-child(2) {
  left: 80%;
  top: 40%;
  font-size: 1.5rem;
  animation-delay: 2s;
}

.floating-hearts i:nth-child(3) {
  left: 30%;
  top: 60%;
  font-size: 2.5rem;
  animation-delay: 4s;
}

.floating-hearts i:nth-child(4) {
  left: 70%;
  top: 15%;
  font-size: 1.8rem;
  animation-delay: 1s;
}

.floating-hearts i:nth-child(5) {
  left: 50%;
  top: 80%;
  font-size: 2rem;
  animation-delay: 3s;
}

.floating-hearts i:nth-child(6) {
  left: 20%;
  top: 90%;
  font-size: 1.6rem;
  animation-delay: 5s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.title-line {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--secondary-color);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.countdown-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.countdown-container h3 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--gradient-primary);
  color: var(--text-light);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 1s ease-out 0.8s backwards;
  margin-top: 2rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cta-button i {
  animation: bounce 2s infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.wheel {
  width: 4px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

/* ===================================
   Timeline Section
   =================================== */
.timeline-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-bg);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.timeline-content {
  width: calc(50% - 50px);
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-secondary);
  color: var(--text-light);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #666;
  line-height: 1.8;
}

/* ===================================
   Gallery Carousel Section
   =================================== */
.gallery-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, var(--light-bg) 0%, #fff5f8 100%);
}

.carousel-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(196, 69, 105, 0.2),
    0 0 0 1px rgba(255, 107, 157, 0.1);
  background: #1a1a2e;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  background: #1a1a2e;
}

.carousel-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide:hover .carousel-image-wrapper img {
  transform: scale(1.03);
}

/* Caption overlay */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(26, 26, 46, 0.7) 40%,
    transparent 100%
  );
  color: var(--text-light);
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.caption-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: var(--gradient-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.4);
}

.caption-tag i {
  font-size: 0.7rem;
}

.carousel-caption p {
  font-family: var(--font-script);
  font-size: 1.3rem;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Navigation arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 107, 157, 0.5);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
  left: -26px;
}

.carousel-btn-next {
  right: -26px;
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(196, 69, 105, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(196, 69, 105, 0.5);
  transform: scale(1.2);
}

.carousel-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.5);
}

/* Slide counter */
.carousel-counter {
  text-align: center;
  margin-top: 0.8rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary-color);
  letter-spacing: 2px;
}

.carousel-counter span:first-child {
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1rem;
}


/* ===================================
   Memory Cards Section
   =================================== */
.memories-section {
  padding: var(--spacing-xl) 0;
  background: white;
}

.memory-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.memory-card {
  perspective: 1000px;
  height: 350px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.memory-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.card-front {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.card-front i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.card-front h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
}

.card-back {
  background: white;
  transform: rotateY(180deg);
  border: 2px solid var(--primary-color);
}

.card-back p {
  font-family: var(--font-script);
  font-size: 1.3rem;
  text-align: center;
  color: var(--text-dark);
  line-height: 1.8;
}

/* ===================================
   Love Letter Section
   =================================== */
.letter-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, white 0%, #fff5f8 100%);
}

.letter-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.letter-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 2rem;
  text-align: center;
}

.letter-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.letter-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
}

.letter-content {
  padding: 3rem;
  font-size: 1.1rem;
  line-height: 2;
}

.letter-greeting {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.letter-content p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.letter-signature {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 3rem;
}

.letter-signature span {
  display: block;
  margin-top: 0.5rem;
}

.letter-footer {
  background: #fff5f8;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.letter-footer i {
  color: var(--primary-color);
  font-size: 1.5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.letter-footer i:nth-child(2) {
  animation-delay: 0.2s;
}

.letter-footer i:nth-child(3) {
  animation-delay: 0.4s;
}

/* ===================================
   Quiz Section
   =================================== */
.quiz-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-bg);
}

.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: none;
}

.quiz-card.active {
  display: block;
}

.quiz-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.5s ease;
  width: 20%;
}

.progress-text {
  font-size: 0.9rem;
  color: #666;
}

.quiz-question h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.quiz-options {
  display: grid;
  gap: 1rem;
}

.quiz-option {
  padding: 1.2rem 2rem;
  background: var(--light-bg);
  border: 2px solid transparent;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  text-align: left;
}

.quiz-option:hover {
  background: #fff5f8;
  border-color: var(--primary-color);
  transform: translateX(10px);
}

.quiz-option.correct {
  background: #d4edda;
  border-color: #28a745;
}

.quiz-option.wrong {
  background: #f8d7da;
  border-color: #dc3545;
}

.quiz-result {
  text-align: center;
  display: none;
}

.quiz-result.active {
  display: block;
}

.quiz-result i {
  font-size: 5rem;
  color: var(--gold-color);
  margin-bottom: 1rem;
}

.quiz-result h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.score-display {
  font-size: 4rem;
  font-weight: 700;
  margin: 2rem 0;
}

.score-number {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-total {
  color: #999;
}

#scoreMessage {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* ===================================
   Music Player
   =================================== */
.music-player {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-fast);
}

.music-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.music-toggle.playing {
  animation: pulse 2s infinite;
}

.music-info {
  font-weight: 600;
  color: var(--secondary-color);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-text i {
  color: var(--primary-color);
  animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #999;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-caption {
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(1.2);
  }
  20%,
  40% {
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-50px) rotate(180deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 107, 157, 0);
  }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: 1rem 0;
    width: 100%;
  }

  /* Timeline */
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 80px;
  }

  .timeline-icon {
    left: 30px;
    transform: translateX(0);
  }

  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  /* Memory Cards */
  .memory-cards {
    grid-template-columns: 1fr;
  }

  /* Letter */
  .letter-content {
    padding: 2rem 1.5rem;
    font-size: 1rem;
  }

  /* Quiz */
  .quiz-card {
    padding: 2rem 1.5rem;
  }

  /* Music Player */
  .music-player {
    bottom: 1rem;
    right: 1rem;
    padding: 0.8rem 1rem;
  }

  .music-info {
    font-size: 0.9rem;
  }

  /* Lightbox */
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown-item {
    min-width: 60px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .quiz-option {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===================================
   AOS Animation Support
   =================================== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

[data-aos="flip-left"] {
  transform: perspective(1000px) rotateY(-90deg);
}

[data-aos="flip-left"].aos-animate {
  transform: perspective(1000px) rotateY(0);
}
