/* ===== ROOT & VARIABLES ===== */
:root {
  --rose: #c2185b;
  --rose-light: #f48fb1;
  --rose-dark: #880e4f;
  --gold: #d4a574;
  --gold-light: #f5e6d3;
  --cream: #fdf6f0;
  --blush: #fff0f3;
  --deep: #2d0a1f;
  --text: #3d1a2e;
  --text-light: #6d4c5e;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.15);
  --shadow: 0 8px 32px rgba(194, 24, 91, 0.15);
  --shadow-lg: 0 20px 60px rgba(194, 24, 91, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.8;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== FLOATING HEARTS BACKGROUND ===== */
.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -60px;
  color: var(--rose-light);
  font-size: 1.2rem;
  opacity: 0;
  animation: floatUp linear infinite;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-110vh) rotate(720deg) scale(0.3);
    opacity: 0;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0011 0%, #3d0f2f 30%, #6b1d4f 60%, #c2185b 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(244, 143, 177, 0.1) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 3rem;
  overflow: visible;
}

.hero-pretext {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--rose-light);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  color: var(--white);
  line-height: 1.4;
  text-shadow: 0 4px 30px rgba(194, 24, 91, 0.5);
  padding: 0.2em 0.4em;
  overflow: visible;
}

.name-vivek,
.name-sameeksha {
  display: inline-block;
  background: linear-gradient(135deg, var(--white), var(--gold-light), var(--rose-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 0.15em;
}

.ampersand {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: 0.5em;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  margin: -0.2em 0;
}

.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.heart-divider .line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.heart-icon {
  font-size: 1.5rem;
  color: var(--rose-light);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
  60% { transform: scale(1); }
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.scroll-btn {
  display: inline-block;
  margin-top: 3rem;
  text-decoration: none;
}

.scroll-arrow {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--gold);
  width: 50px;
  height: 50px;
  line-height: 50px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.scroll-btn:hover .scroll-arrow {
  background: var(--gold);
  color: var(--deep);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Hero Petals */
.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 15px;
  height: 15px;
  background: radial-gradient(ellipse, var(--rose-light), var(--rose));
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.7; }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(100px);
    opacity: 0;
  }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section:nth-child(even) {
  background: var(--blush);
}

.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--rose-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ===== LOVE LETTER ===== */
.love-letter {
  background: linear-gradient(180deg, var(--cream), var(--blush));
}

.letter-card {
  max-width: 700px;
  margin: 2.5rem auto 0;
  background: var(--white);
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(194, 24, 91, 0.08);
}

.letter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--rose));
  border-radius: 16px 16px 0 0;
}

.letter-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  transform: rotate(12deg);
}

.letter-greeting {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.letter-body {
  color: var(--text);
  line-height: 2;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.letter-closing {
  text-align: right;
  color: var(--text-light);
  font-style: italic;
}

.letter-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--rose);
}

/* ===== PHOTO GALLERY ===== */
.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.photo-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--blush), var(--gold-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 3px solid var(--rose-light);
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.placeholder-text {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
}

.photo-caption {
  padding: 1rem 1.2rem;
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== REASONS I LOVE YOU ===== */
.reasons {
  background: linear-gradient(135deg, var(--rose-dark), var(--deep));
  color: var(--white);
}

.reasons .section-title {
  color: var(--gold-light);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.reason-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.reason-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.reason-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== BIRTHDAY COUNTDOWN ===== */
.countdown-section {
  background: linear-gradient(180deg, var(--cream), var(--blush), var(--cream));
  text-align: center;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0 2rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  min-width: 120px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(194, 24, 91, 0.08);
  transition: transform 0.3s ease;
}

.countdown-item:hover {
  transform: scale(1.05);
}

.countdown-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1.2;
}

.countdown-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
}

.countdown-msg {
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem;
  color: var(--rose);
}

/* ===== TIMELINE ===== */
.timeline-section {
  background: var(--blush);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 2.5rem auto 0;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--rose-light), var(--gold), var(--rose-light));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rose);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--rose-light);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(194, 24, 91, 0.06);
}

.timeline-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--rose-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== PROMISES ===== */
.promises {
  background: var(--cream);
}

.promises-list {
  max-width: 700px;
  margin: 2.5rem auto 0;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(194, 24, 91, 0.08);
  transition: transform 0.3s ease;
}

.promise-item:hover {
  transform: translateX(8px);
}

.promise-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.promise-item p {
  color: var(--text);
  font-size: 1.05rem;
  padding-top: 0.3rem;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--deep), var(--rose-dark));
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
}

.footer-hearts {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  animation: heartbeat 2s ease-in-out infinite;
}

.footer-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-text strong {
  color: var(--gold-light);
}

.footer-small {
  font-style: italic;
  color: var(--rose-light);
  font-size: 0.95rem;
}

/* ===== MUSIC TOGGLE ===== */
.music-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover {
  background: var(--rose-dark);
  transform: scale(1.1);
}

.music-toggle.playing {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 24, 91, 0.5); }
  50% { box-shadow: 0 0 0 15px rgba(194, 24, 91, 0); }
}

/* ===== REVEAL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

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

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown-item {
    min-width: 80px;
    padding: 1rem 1.2rem;
  }

  .countdown-value {
    font-size: 2rem;
  }

  .letter-card {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -28px;
  }
}

@media (max-width: 480px) {
  .hero-pretext {
    font-size: 0.9rem;
  }

  .countdown {
    gap: 0.6rem;
  }

  .countdown-item {
    min-width: 70px;
    padding: 0.8rem;
  }

  .countdown-value {
    font-size: 1.6rem;
  }

  .gallery-grid {
    gap: 1.2rem;
  }
}

/* ===== SPARKLE CURSOR ===== */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 12px;
  animation: sparkleAnim 0.8s ease-out forwards;
}

@keyframes sparkleAnim {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0) translateY(-40px);
  }
}

/* ===== SELECTION ===== */
::selection {
  background: var(--rose-light);
  color: var(--white);
}

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

::-webkit-scrollbar-track {
  background: var(--cream);
}

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

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