/* ========================================
   VALENTINE INVITATION - STYLES
   ======================================== */

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

:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --pink-800: #9d174d;
  --pink-900: #831843;

  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;

  --gold-300: #fcd34d;
  --gold-400: #fbbf24;

  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);

  --shadow-soft: 0 4px 30px rgba(219, 39, 119, 0.15);
  --shadow-glow: 0 0 40px rgba(244, 114, 182, 0.3);
  --shadow-card: 0 20px 60px rgba(157, 23, 77, 0.15);

  --font-display: 'Dancing Script', cursive;
  --font-body: 'Quicksand', 'Poppins', sans-serif;
  --font-accent: 'Poppins', sans-serif;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--pink-900) 0%, var(--pink-700) 30%, var(--pink-500) 60%, var(--rose-400) 100%);
  color: var(--white);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

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

.floating-heart {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: floatHeart linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 182, 193, 0.5));
}

@keyframes floatHeart {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) rotate(360deg) scale(1);
  }
}

/* === SPARKLE CURSOR === */
.sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-300), var(--pink-300));
  pointer-events: none;
  animation: sparkleAnim 0.8s ease-out forwards;
}

@keyframes sparkleAnim {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(0) translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

/* === SECTIONS === */
.section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--transition-smooth), visibility 0.8s var(--transition-smooth);
}

.section.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.section-content {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* === SECTION 1: ENVELOPE === */
.section-envelope {
  background: radial-gradient(ellipse at center, rgba(244, 114, 182, 0.3) 0%, transparent 70%);
}

.envelope-wrapper {
  perspective: 1000px;
}

.envelope {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: envelopeFloat 3s ease-in-out infinite;
}

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

.envelope-heart {
  font-size: 120px;
  filter: drop-shadow(0 10px 30px rgba(219, 39, 119, 0.4));
  animation: heartPulse 1.5s ease-in-out infinite;
}

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

.envelope-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.envelope-label {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(244, 114, 182, 0.5);
  animation: labelGlow 2s ease-in-out infinite alternate;
}

@keyframes labelGlow {
  from { text-shadow: 0 2px 20px rgba(244, 114, 182, 0.5); }
  to { text-shadow: 0 2px 40px rgba(244, 114, 182, 0.9), 0 0 60px rgba(251, 113, 133, 0.4); }
}

.btn-open {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pink-700);
  background: linear-gradient(135deg, var(--white) 0%, var(--pink-100) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(219, 39, 119, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.4s var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-open::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.btn-open:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 40px rgba(219, 39, 119, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-open:hover::before {
  left: 100%;
}

.btn-open:active {
  transform: scale(0.98);
}

.btn-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

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

/* === SECTION 2: GREETING === */
.section-greeting {
  background: radial-gradient(ellipse at top, rgba(251, 207, 232, 0.2) 0%, transparent 60%);
}

.greeting-hearts {
  position: relative;
  height: 80px;
  margin-bottom: 1rem;
}

.heart-float {
  position: absolute;
  font-size: 2.5rem;
  animation: heartDance 3s ease-in-out infinite;
}

.heart-1 { left: 30%; animation-delay: 0s; }
.heart-2 { left: 50%; animation-delay: 0.5s; transform: translateX(-50%); }
.heart-3 { left: 70%; animation-delay: 1s; }

@keyframes heartDance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(-10deg); }
  75% { transform: translateY(-10px) rotate(10deg); }
}

.greeting-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--pink-200) 50%, var(--white) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

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

.greeting-divider::before,
.greeting-divider::after {
  content: '';
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink-300), transparent);
}

.divider-heart {
  color: var(--pink-300);
  font-size: 1.2rem;
  animation: heartPulse 1.5s ease-in-out infinite;
}

.greeting-subtitle {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--pink-200);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.greeting-message {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--white-90);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
}

/* === NEXT BUTTON === */
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-20);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
}

.btn-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-next svg {
  animation: bounceDown 1.5s ease-in-out infinite;
}

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

/* === SECTION 3: MESSAGE === */
.section-message {
  background: radial-gradient(ellipse at bottom, rgba(251, 207, 232, 0.15) 0%, transparent 60%);
}

.message-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-20);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.message-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(244, 114, 182, 0.1), transparent, rgba(251, 113, 133, 0.1), transparent);
  animation: rotateBg 8s linear infinite;
}

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

.message-ribbon {
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 2.5rem;
  z-index: 2;
  animation: ribbonSwing 2s ease-in-out infinite;
}

@keyframes ribbonSwing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.message-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  color: var(--pink-100);
}

.message-body {
  position: relative;
  z-index: 1;
}

.message-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--white-90);
  margin-bottom: 1.2rem;
  font-weight: 300;
}

/* === SECTION 4: INVITATION === */
.section-invitation {
  background: radial-gradient(ellipse at center, rgba(251, 207, 232, 0.15) 0%, transparent 60%);
}

.invitation-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-20);
  border-radius: 28px;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.invitation-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink-400), var(--rose-400), var(--pink-400));
  background-size: 200% auto;
  animation: shimmerBar 2s linear infinite;
}

@keyframes shimmerBar {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.invitation-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink-700);
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.invitation-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(244, 114, 182, 0.4);
}

.invitation-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--transition-smooth);
}

.detail-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(5px);
  border-color: var(--white-20);
}

.detail-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.detail-label {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pink-200);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-value {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

/* === SECTION 5: CLOSING === */
.section-closing {
  background: radial-gradient(ellipse at center, rgba(244, 114, 182, 0.2) 0%, transparent 60%);
}

.closing-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.countdown-container {
  text-align: center;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--pink-100);
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.countdown-number {
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-20);
  border-radius: 16px;
  padding: 0.5rem 1rem;
  min-width: 80px;
  text-shadow: 0 0 20px rgba(244, 114, 182, 0.5);
}

.countdown-unit {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pink-200);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.countdown-separator {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pink-300);
  animation: separatorBlink 1s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

@keyframes separatorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.closing-message {
  text-align: center;
}

.closing-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.closing-subtext {
  font-size: 1rem;
  color: var(--white-70);
  font-weight: 300;
}

.closing-signature {
  text-align: center;
  margin-top: 0.5rem;
}

.signature-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--pink-200);
}

.signature-heart {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  animation: heartPulse 1.5s ease-in-out infinite;
}

.signature-from {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white-90);
}

/* === RSVP BUTTON === */
.btn-rsvp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pink-700);
  background: linear-gradient(135deg, var(--white) 0%, var(--pink-100) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(219, 39, 119, 0.3);
  transition: all 0.4s var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-rsvp::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-rsvp:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 15px 50px rgba(219, 39, 119, 0.4);
}

.btn-rsvp:hover::before {
  width: 300%;
  height: 300%;
}

.btn-rsvp:active {
  transform: scale(0.95);
}

.btn-rsvp-icon {
  font-size: 1.5rem;
}

/* === CONFETTI CANVAS === */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* === MUSIC PERMISSION OVERLAY === */
.music-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: linear-gradient(135deg, var(--pink-900) 0%, var(--pink-700) 30%, var(--pink-500) 60%, var(--rose-400) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--transition-smooth), visibility 0.6s var(--transition-smooth);
}

.music-overlay.active {
  opacity: 1;
  visibility: visible;
}

.music-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.music-overlay-content {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 450px;
  width: 90%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-20);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(157, 23, 77, 0.3);
  animation: overlayCardFloat 3s ease-in-out infinite;
}

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

.music-overlay-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-300), var(--pink-300), var(--rose-400), var(--gold-300));
  background-size: 300% auto;
  animation: shimmerBar 2s linear infinite;
}

.music-overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  height: 60px;
}

.music-heart {
  font-size: 3rem;
  animation: heartPulse 1.5s ease-in-out infinite;
}

.music-note {
  font-size: 2rem;
  animation: noteFloat 2s ease-in-out infinite;
}

.music-note.note-1 {
  animation-delay: 0s;
}

.music-note.note-2 {
  animation-delay: 0.5s;
}

@keyframes noteFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-12px) rotate(10deg);
    opacity: 1;
  }
}

.music-overlay-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 20px rgba(244, 114, 182, 0.5);
}

.music-overlay-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--white-90);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
}

.btn-music-allow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pink-700);
  background: linear-gradient(135deg, var(--white) 0%, var(--pink-100) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(219, 39, 119, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.4s var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-music-allow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: btnShine 2s ease-in-out infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.btn-music-allow:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 15px 50px rgba(219, 39, 119, 0.4);
}

.btn-music-allow:active {
  transform: scale(0.96);
}

.btn-music-icon {
  font-size: 1.5rem;
}

.music-overlay-skip {
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white-50);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.music-overlay-skip:hover {
  color: var(--white-90);
  background: rgba(255, 255, 255, 0.1);
}

/* Overlay floating hearts */
.music-overlay-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.overlay-heart {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.4;
  animation: overlayHeartFloat linear infinite;
}

.oh-1 { left: 10%; font-size: 1.2rem; animation-duration: 8s; animation-delay: 0s; }
.oh-2 { left: 25%; font-size: 1.8rem; animation-duration: 10s; animation-delay: 1s; }
.oh-3 { left: 50%; font-size: 1rem; animation-duration: 7s; animation-delay: 2s; }
.oh-4 { left: 70%; font-size: 1.5rem; animation-duration: 9s; animation-delay: 0.5s; }
.oh-5 { left: 90%; font-size: 1.3rem; animation-duration: 11s; animation-delay: 1.5s; }

@keyframes overlayHeartFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* === AUDIO TOGGLE === */
.audio-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-20);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: all 0.3s var(--transition-smooth);
}

.audio-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.audio-toggle.playing {
  border-color: var(--pink-300);
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.4);
  animation: audioGlow 2s ease-in-out infinite;
}

@keyframes audioGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(244, 114, 182, 0.3); }
  50% { box-shadow: 0 0 30px rgba(244, 114, 182, 0.6); }
}

.audio-icon {
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.audio-toggle.playing .audio-icon {
  animation: musicBounce 1s ease-in-out infinite;
}

@keyframes musicBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15) rotate(-5deg); }
  75% { transform: scale(1.15) rotate(5deg); }
}

/* === ANIMATIONS === */

/* Fade In Up */
.animate-text {
  opacity: 0;
  transform: translateY(30px);
}

.animate-text.visible {
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

.animate-text[data-animation="fadeInUp"].visible {
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

.animate-text[data-animation="fadeInLeft"].visible {
  animation: fadeInLeft 0.8s var(--transition-smooth) forwards;
}

.animate-text[data-animation="fadeInRight"].visible {
  animation: fadeInRight 0.8s var(--transition-smooth) forwards;
}

.animate-text[data-animation="scaleIn"].visible {
  animation: scaleIn 0.8s var(--transition-bounce) forwards;
}

.animate-text[data-animation="typewriter"].visible {
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

.animate-text[data-animation="slideInLeft"].visible {
  animation: slideInLeft 0.6s var(--transition-smooth) forwards;
}

.animate-text[data-animation="slideInRight"].visible {
  animation: slideInRight 0.6s var(--transition-smooth) forwards;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === SECTION TRANSITIONS === */
.section.slide-out-up {
  animation: slideOutUp 0.6s var(--transition-smooth) forwards;
}

.section.slide-in-up {
  animation: slideInFromBottom 0.6s var(--transition-smooth) forwards;
}

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

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .section-content {
    padding: 1.5rem 1rem;
  }

  .envelope-heart {
    font-size: 80px;
  }

  .envelope-label {
    font-size: 1.6rem;
  }

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

  .invitation-card {
    padding: 2rem 1.2rem;
  }

  .countdown-number {
    min-width: 60px;
    padding: 0.4rem 0.6rem;
    font-size: 2rem;
  }

  .detail-item {
    padding: 0.8rem 1rem;
  }

  .detail-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .btn-rsvp {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .closing-wrapper {
    padding: 1rem;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .message-card {
    padding: 3rem 2.5rem;
  }

  .invitation-card {
    padding: 3rem 2.5rem;
  }
}
