/* Main Stylesheet for Wedding Invitation Clone */

@import url('https://fonts.googleapis.com/css2?family=Italianno&family=Manrope:wght@400;500;600;700;800&family=Pinyon+Script&display=swap');

:root {
  /* Color System */
  --gold: #c8942e;
  --gold-light: #f8df8c;
  --gold-dark: #5c3b05;
  --petal: rgba(254, 165, 165, 0.8); /* soft rose petal pink */
  
  --color-rose-light: #fdf2f4;
  --color-rose-dark: #8c1d40;
  
  --background: #fdfbf7; /* parchment off-white */
  --foreground: #2d261e; /* dark ink gray */
  --muted-foreground: #695e50; /* soft sepia gray */
  --card-bg: rgba(255, 255, 255, 0.65);
  
  --border: rgba(200, 148, 46, 0.4);
  --shadow-wedding: 0 12px 36px -4px rgba(140, 29, 64, 0.08), 0 4px 14px -2px rgba(200, 148, 46, 0.06);
  
  /* Fonts */
  --font-display: 'Pinyon Script', cursive;
  --font-secondary: 'Italianno', cursive;
  --font-body: 'Manrope', sans-serif;
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #f8df8c 0%, #c8942e 50%, #5c3b05 100%);
  --gradient-gold-h: linear-gradient(90deg, transparent, #c8942e 20%, #f8df8c 50%, #c8942e 80%, transparent);
  --gradient-paper: linear-gradient(180deg, #fdfbf7 0%, #f8f4e9 100%);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #16080d;
  background-image: radial-gradient(circle at center, #2e101b 0%, #0c0205 100%);
  font-family: var(--font-body);
  color: var(--foreground);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Container - Centered viewport wrapper */
.app-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 10;
}

/* Phone Frame Chassis Simulation */
.phone-frame {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--background);
  background-image: var(--gradient-paper);
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: none;
  border-radius: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 480px) {
  .phone-frame {
    width: 390px;
    height: 844px; /* standard iPhone proportions */
    max-height: 92vh;
    border-radius: 36px;
    border: 10px solid #281d22;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 
                0 0 0 3px var(--gold);
  }
}

/* Screens management */
.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.screen.scrollable {
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbars Firefox */
}

.screen.scrollable::-webkit-scrollbar {
  display: none; /* Hide scrollbars Chrome/Safari */
}

/* ==========================================================================
   1. COVER SCREEN
   ========================================================================== */

#cover-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--background);
}

/* Premium Floral / Golden Border */
.cover-flower-border {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border: clamp(0.6rem, 2.5vw, 1.2rem) solid transparent;
  border-image: radial-gradient(circle, var(--petal) 0 35%, transparent 36%) 24 round;
  box-shadow: inset 0 0 0 1px var(--gold),
              inset 0 0 34px rgba(254, 165, 165, 0.15);
}

/* Cover Image Layer */
.cover-image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#cover-screen:hover .cover-image {
  transform: scale(1.03);
}

/* Open button */
.open-btn {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: var(--gradient-paper);
  border: 1px solid var(--gold);
  color: var(--color-rose-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding: 14px 36px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-wedding);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.open-btn:hover {
  transform: translate(-50%, -3px);
  box-shadow: 0 15px 30px rgba(140, 29, 64, 0.15), 
              0 0 0 2px var(--gold-light);
  color: var(--gold-dark);
}

/* ==========================================================================
   2. VIDEO SCREEN
   ========================================================================== */

#video-screen {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-btn {
  position: absolute;
  top: 4%;
  right: 4%;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skip-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* ==========================================================================
   3. DETAILS SCREEN
   ========================================================================== */

#details-screen {
  background-color: var(--background);
  background-image: var(--gradient-paper);
}

/* Floating Music Control Button */
.music-toggle-btn {
  position: absolute;
  top: 4%;
  right: 6%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--gold);
  cursor: pointer;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(140, 29, 64, 0.1);
  transition: all 0.3s ease;
}

.music-toggle-btn:hover {
  transform: scale(1.05);
}

.disc-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-rose-dark);
  display: flex;
  justify-content: center;
  align-items: center;
}

.disc-icon {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.music-toggle-btn.playing .disc-wrapper {
  animation: spin 6s linear infinite;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 60px 24px;
}

.names-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  text-align: center;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-rose-dark);
  letter-spacing: 0.35em;
  margin-bottom: 24px;
}

.name-script {
  font-family: var(--font-secondary);
  font-size: 5rem;
  line-height: 0.95;
  color: var(--color-rose-dark);
  font-weight: 400;
}

.parents-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 8px;
  font-weight: 500;
}

.ampersand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  margin: 16px 0;
  font-style: italic;
}

.welcome-copy {
  margin-top: 40px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--foreground);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  text-align: center;
}

/* Divider Class */
.golden-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 50px;
  margin: 20px auto;
  position: relative;
}

.golden-divider::before, .golden-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gradient-gold-h);
}

.golden-divider .ornament {
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0 14px;
  letter-spacing: 0.25em;
  text-shadow: 0 2px 8px rgba(200, 148, 46, 0.3);
  font-family: var(--font-body);
}

/* Base Card Section */
.details-card-section {
  padding: 48px 24px;
  text-align: center;
  position: relative;
  width: 100%;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: 3.2rem;
  color: var(--color-rose-dark);
  margin-top: 8px;
  margin-bottom: 12px;
  font-weight: 500;
}

.subtitle-text {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: 30px;
}

.quote-card {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin-top: 24px;
  padding: 0 12px;
  line-height: 1.6;
}

/* ==========================================================================
   4. SCRATCH CARD GAME SECTION
   ========================================================================== */

.scratch-grid-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.confetti-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 1px;
  z-index: 10;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(200, 148, 46, 0.15);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-wedding);
}

.scratch-cell {
  position: relative;
  aspect-ratio: 1;
  background-color: var(--card-bg);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-rose-dark);
  overflow: hidden;
  user-select: none;
}

.scratch-cell.static-item {
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.6rem;
  opacity: 0.7;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  z-index: 5;
  border-radius: 8px;
}

/* Diagonal strike when game matches */
.diagonal-match {
  position: absolute;
  z-index: 15;
  background: var(--gradient-gold);
  width: 78%;
  height: 5px;
  box-shadow: 0 0 15px var(--gold);
  border-radius: 99px;
  top: 50%;
  left: 11%;
  transform: rotate(45deg);
  transform-origin: center;
  animation: strike-line 0.5s ease forwards;
}

@keyframes strike-line {
  0% { width: 0; opacity: 0; }
  100% { width: 78%; opacity: 1; }
}

/* ==========================================================================
   5. COUNTDOWN TIMER SECTION
   ========================================================================== */

.instruction-text {
  font-size: 0.8rem;
  color: var(--color-rose-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

.timer-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-box {
  width: 100%;
  aspect-ratio: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-wedding);
}

.timer-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-rose-dark);
}

.timer-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-top: 8px;
}

/* Heart-shaped Scratch Coating overlay */
.heart-scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  cursor: grab;
  touch-action: none;
  z-index: 6;
  clip-path: polygon(50% 100%, 42% 92%, 30% 82%, 18% 70%, 8% 56%, 2% 42%, 0% 28%, 4% 16%, 14% 6%, 28% 2%, 40% 8%, 50% 22%, 60% 8%, 72% 2%, 86% 6%, 96% 16%, 100% 28%, 98% 42%, 92% 56%, 82% 70%, 70% 82%, 58% 92%);
}

.timer-block.scratched .heart-scratch-canvas {
  display: none;
}

/* ==========================================================================
   6. EVENT TIMELINE SECTION
   ========================================================================== */

.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-wedding);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.event-video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background-color: #0c0205;
}

.event-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-details {
  padding: 24px 16px;
}

.event-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
  display: inline-block;
}

.event-name {
  font-family: var(--font-secondary);
  font-size: 2.8rem;
  color: var(--color-rose-dark);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 12px;
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}

.event-meta span.icon {
  color: var(--gold);
}

.event-venue {
  font-weight: 600;
  color: var(--foreground);
  margin-top: 10px;
  font-size: 0.85rem;
}

.event-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin-top: 10px;
  line-height: 1.5;
}

/* ==========================================================================
   7. WARDROBE PLANNER SECTION
   ========================================================================== */

.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.wardrobe-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wardrobe-card-container {
  position: relative;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 0.72;
}

.trolley-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.outfit-img {
  position: absolute;
  left: 50%;
  top: 14%;
  height: 70%;
  width: auto;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s ease;
}

.wardrobe-item:hover .outfit-img {
  transform: translateX(-50%) translateY(-3px) scale(1.04);
}

.wardrobe-item-info {
  margin-top: 12px;
  text-align: center;
}

.wardrobe-event-name {
  font-family: var(--font-secondary);
  font-size: 2rem;
  color: var(--color-rose-dark);
  line-height: 1.1;
  font-weight: 500;
}

.wardrobe-color {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 4px;
}

.wardrobe-note {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin-top: 6px;
}

/* ==========================================================================
   8. VENUE SECTION
   ========================================================================== */

.venue-header {
  margin-bottom: 24px;
}

.venue-icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 8px;
}

.venue-subtext {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-top: 4px;
}

.venue-image-container {
  width: 100%;
  max-width: 550px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-wedding);
  margin: 0 auto 24px;
  border: 1px solid var(--border);
}

.venue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.venue-sec:hover .venue-image {
  transform: scale(1.02);
}

.open-map-btn {
  display: inline-block;
  background: var(--gradient-gold);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(200, 148, 46, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 24px;
  border: none;
}

.open-map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 148, 46, 0.4);
}

.map-iframe-container {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-wedding);
  border: 1px solid var(--border);
}

.map-iframe-container iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* ==========================================================================
   9. GALLERY CAROUSEL SECTION
   ========================================================================== */

.gallery-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.gallery-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding: 10px 10%;
}

.gallery-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.gallery-card {
  flex: 0 0 75%;
  aspect-ratio: 1;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-wedding);
  cursor: pointer;
  background-color: #000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.92);
  opacity: 0.7;
}

.gallery-card.active {
  transform: scale(1);
  opacity: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(200, 148, 46, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  width: 24px;
  border-radius: 8px;
  background-color: var(--color-rose-dark);
}

/* Gallery Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
  border: 1.5px solid var(--gold-light);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 4%;
  right: 6%;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 1010;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   10. THANK YOU SECTION
   ========================================================================== */

.thankyou-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
}

.glow-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.glow-light {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light), 0 0 20px #fff;
  opacity: 0;
  animation: glow-pulse infinite alternate;
}

.heart-outro {
  font-size: 2rem;
  color: var(--color-rose-dark);
  margin-bottom: 20px;
  animation: float-soft 4s ease-in-out infinite;
  display: inline-block;
  z-index: 5;
}

.thankyou-msg {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--foreground);
  max-width: 80%;
  margin: 24px 0;
  z-index: 5;
}

.signature {
  font-family: var(--font-secondary);
  font-size: 2.8rem;
  color: var(--color-rose-dark);
  font-weight: 500;
  z-index: 5;
  margin-top: 10px;
}

.outro-ornaments {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--gold);
  font-size: 1.1rem;
  z-index: 5;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

/* Petals Containers */
.petals-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 12;
}

.petal {
  position: absolute;
  top: -20px;
  display: block;
  width: 12px;
  height: 16px;
  background-color: var(--petal);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border-radius: 100% 0 100% 100%;
  opacity: 0;
  animation-name: petal-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Scroll Animation Elements */
.reveal-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating heart pop for scratch reveal */
.heart-pop {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  color: #ff8fb4;
  text-shadow: 0 2px 10px rgba(255, 143, 180, 0.6);
  font-size: 2.2rem;
  animation: heart-pop-anim 1.1s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Animation Keyframes */
@keyframes petal-fall {
  0% {
    transform: translate3d(var(--drift, 0px), -20px, 0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  90% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(calc(var(--drift, 0px) + 80px), 105vh, 0) rotate(540deg);
    opacity: 0;
  }
}

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

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

@keyframes heart-pop-anim {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -85%) scale(1.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -170%) scale(0.8);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.3);
  }
}
