/* ═══════════════════════════════════════════════
   WEDDING INVITATION - PREMIUM REDESIGN
   Palace Door + Animations + Micro-interactions
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Great+Vibes&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --color-text: #4a4238;
  --color-gold: #8a8a5c;
  --color-light-bg: #f9f6f0;
  --color-arch-pink: #c9908a;
  --color-rose-gold: #b76e79;
  --color-warm-cream: #fdfaf7;
  --font-display: 'Great Vibes', cursive;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}

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

body {
  font-family: var(--font-body);
  background: url('assets/window-garden.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--color-text);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(249, 246, 240, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 0;
}

/* ── App Container (Mobile Aspect Ratio) ── */
.app-container {
  width: 100%;
  max-width: 450px;
  height: 100%;
  max-height: 900px;
  background: #fdfaf7;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.08),
    0 0 20px rgba(0, 0, 0, 0.04);
}


/* ═══════════════════════════════════════════════
   FLOATING PARTICLES LAYER
   ═══════════════════════════════════════════════ */
.particles-container {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Petal particles */
.particle--petal {
  width: 12px;
  height: 12px;
  background: radial-gradient(ellipse at 30% 30%, #e8b4b8, #c9908a);
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: floatPetal var(--duration, 8s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes floatPetal {
  0% {
    opacity: 0;
    transform: translate(0, -20px) rotate(0deg) scale(0.5);
  }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% {
    opacity: 0;
    transform: translate(var(--drift, 30px), calc(100vh + 20px)) rotate(var(--spin, 360deg)) scale(0.3);
  }
}

/* Sparkle particles */
.particle--sparkle {
  width: 4px;
  height: 4px;
  background: #d4af37;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px 2px rgba(212, 175, 55, 0.4);
  animation: sparkleFloat var(--duration, 3s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-30px) scale(1);
  }
}

/* ═══════════════════════════════════════════════
   MAIN SCENE (Background Frames)
   ═══════════════════════════════════════════════ */
.main-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0s;
}

.main-scene.revealing {
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-arch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.bg-pond {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ── Slides Container ── */
.slides-container {
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 0;
  width: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide.fade-out {
  opacity: 0;
  transform: translate(-50%, -60%) translateZ(0);
}

.slide.fade-in {
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(0);
}

.slide.standby {
  opacity: 0;
  transform: translate(-50%, -40%) translateZ(0);
}

/* ═══════════════════════════════════════════════
   STAGGER ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════ */
.anim-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .anim-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.anim-item[data-delay="1"] { transition-delay: 0.1s; }
.anim-item[data-delay="2"] { transition-delay: 0.25s; }
.anim-item[data-delay="3"] { transition-delay: 0.4s; }
.anim-item[data-delay="4"] { transition-delay: 0.55s; }
.anim-item[data-delay="5"] { transition-delay: 0.7s; }
.anim-item[data-delay="6"] { transition-delay: 0.85s; }

/* ── Slide Styling & Backdrop ── */
.text-backdrop {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 1.8rem 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: #5c4f42;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
}

/* Decorative line under titles */
.slide-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 0.6rem auto 0;
}

/* ── Slide 1 Typography ── */
.couple-names {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  font-weight: 400;
  color: #636340;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.name-amp { font-size: 0.8em; margin: 0 0.2rem; }

.invitation-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #3d3229;
  font-weight: 500;
}

.parents {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}
.parent-col { display: flex; flex-direction: column; }
.p-names { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: #4a4238; }
.p-sur { font-family: var(--font-body); font-size: 0.9rem; opacity: 0.9; color: #5a5248; }

.date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.date-m, .date-y { font-family: var(--font-heading); font-size: 1rem; letter-spacing: 3px; color: #636340; font-weight: 600; }
.date-d {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1;
  color: #636340;
}

.venue-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  line-height: 1.6;
  color: #5c4f42;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── Slide 2 & 3 & 4 Typography ── */
.slide-monogram {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: monogramGlow 3s ease-in-out infinite alternate;
}

@keyframes monogramGlow {
  from { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) drop-shadow(0 0 0px rgba(212, 175, 55, 0)); }
  to { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.2)); }
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 85%;
  margin: 0 auto 1.5rem;
}
.program-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.p-time { font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; color: #636340; width: 60px; text-align: right; }
.p-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(99, 99, 64, 0.1), rgba(99, 99, 64, 0.4), rgba(99, 99, 64, 0.1)); }
.p-event { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; letter-spacing: 2px; width: 90px; text-align: left; color: #4a4238; }

.rsvp-block { margin-bottom: 1.5rem; }
.rsvp-title { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; margin-bottom: 0.5rem; color: #4a4238; }
.rsvp-phone { font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; color: #636340; }

/* ── Map Button with Shimmer ── */
.map-btn {
  display: inline-block;
  padding: 0.6rem 2rem;
  border: 1px solid #636340;
  border-radius: 30px;
  color: #636340;
  background: rgba(255,255,255,0.3);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.map-btn:hover {
  background: #636340;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 99, 64, 0.3);
}

/* ── Countdown ── */
.countdown-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #5c4f42;
  margin-bottom: 0.8rem;
}

.countdown-block {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.cd-box {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(201, 144, 138, 0.3);
  padding: 0.5rem;
  border-radius: 10px;
  min-width: 52px;
  transition: transform 0.3s ease;
}
.cd-box:hover {
  transform: translateY(-2px);
}
.cd-box span {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-arch-pink);
  line-height: 1;
  transition: transform 0.3s ease;
}
.cd-box span.tick {
  animation: countTick 0.4s ease;
}
@keyframes countTick {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cd-box small { font-size: 0.55rem; letter-spacing: 1px; margin-top: 0.2rem; color: var(--color-text); }

/* ── Slide Navigation ── */
.slide-nav {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(138, 138, 92, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.nav-dot.active {
  background: var(--color-gold);
  transform: scale(1.5);
}
.nav-dot.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(138, 138, 92, 0.3);
  animation: dotPulse 2s infinite ease-in-out;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0; }
}

/* ═══════════════════════════════════════════════
   OPENING SCENE — PALACE DOOR
   ═══════════════════════════════════════════════ */
.opening-scene {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* The solid background is separated so it can fade out during zoom */
.opening-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fdfaf7 0%, #f5ede4 50%, #fdfaf7 100%);
  z-index: -1;
  transition: opacity 0.6s ease;
}

.opening-scene.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Zooming phase: fly through the window ── */
.opening-scene.zooming::before {
  opacity: 0;
  transition: opacity 0.6s ease 0.8s; /* Delay so it stays solid while window zooms */
}

.opening-scene.zooming .door-garden-bg {
  transform: scale(8);
  opacity: 0;
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease 0.8s;
}

.opening-scene.zooming .door-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(3);
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease 1s;
}

/* Hide door panels, text, decorations during zoom */
.opening-scene.zooming .door-panel,
.opening-scene.zooming .door-monogram-wrapper,
.opening-scene.zooming .opening-names,
.opening-scene.zooming .start-btn,
.opening-scene.zooming .opening-subtitle,
.opening-scene.zooming .opening-decor {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Door frame / arch structure */
.door-frame {
  position: relative;
  width: 72%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.12));
}

/* The garden visible behind the doors */
.door-garden-bg {
  position: absolute;
  inset: 5%;
  border-radius: 12px;
  overflow: hidden;
  z-index: 0;
  transform: scale(1);
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease 1.2s;
  transform-origin: center center;
}

.door-garden-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.15) saturate(1.2);
}

/* Light glow from behind doors */
.door-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 248, 235, 0.95) 0%,
    rgba(255, 245, 230, 0.5) 25%,
    rgba(255, 245, 230, 0) 55%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.opening-scene.opening .door-glow {
  opacity: 1;
}

/* Door panels — image-based */
.door-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 5;
  overflow: hidden;
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.door-panel--left {
  left: 0;
  transform-origin: left center;
}

.door-panel--right {
  right: 0;
  left: auto;
  transform-origin: right center;
}

/* The door image inside each panel */
.door-img {
  display: block;
  width: 200%;   /* Image is full width, panel clips to 50% */
  height: 100%;
  object-fit: contain;
  object-position: top center;
  pointer-events: none;
}

/* Left panel shows left half of image */
.door-panel--left .door-img {
  object-position: left center;
}

/* Right panel shows right half of image */
.door-panel--right .door-img {
  object-position: right center;
  margin-left: -100%; /* Shift to show right half */
}

/* Door opening animation */
.opening-scene.opening .door-panel--left {
  transform: perspective(1200px) rotateY(-95deg);
}

.opening-scene.opening .door-panel--right {
  transform: perspective(1200px) rotateY(95deg);
}

/* Door monogram overlay */
.door-monogram-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: 40%;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.opening-scene.opening .door-monogram-wrapper {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.door-monogram-wrapper img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  animation: monogramFloat 4s ease-in-out infinite alternate;
}

@keyframes monogramFloat {
  from { transform: translateY(-3px); }
  to { transform: translateY(3px); }
}

/* Opening scene decorative elements */
.opening-decor {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.opening-decor--top-left {
  top: 5%;
  left: 5%;
  width: 60px;
  height: 60px;
  border-top: 1.5px solid rgba(212, 175, 55, 0.3);
  border-left: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px 0 0 0;
  animation: cornerFadeIn 2s ease both;
}

.opening-decor--top-right {
  top: 5%;
  right: 5%;
  width: 60px;
  height: 60px;
  border-top: 1.5px solid rgba(212, 175, 55, 0.3);
  border-right: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 0 4px 0 0;
  animation: cornerFadeIn 2s ease 0.2s both;
}

.opening-decor--bottom-left {
  bottom: 5%;
  left: 5%;
  width: 60px;
  height: 60px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3);
  border-left: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 0 0 0 4px;
  animation: cornerFadeIn 2s ease 0.4s both;
}

.opening-decor--bottom-right {
  bottom: 5%;
  right: 5%;
  width: 60px;
  height: 60px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3);
  border-right: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 0 0 4px 0;
  animation: cornerFadeIn 2s ease 0.6s both;
}

@keyframes cornerFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* "Beyza & Ahmet Yuşa" text above door */
.opening-names {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 2rem);
  color: #636340;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: openingNameReveal 1.5s ease 0.5s both;
  text-align: center;
  text-shadow: 0 2px 8px rgba(99, 99, 64, 0.1);
}

@keyframes openingNameReveal {
  from { opacity: 0; transform: translateY(15px); letter-spacing: 2px; }
  to { opacity: 1; transform: translateY(0); letter-spacing: 0px; }
}

/* Start button */
.start-btn {
  margin-top: 1.5rem;
  padding: 0.9rem 2.8rem;
  background: linear-gradient(135deg, var(--color-arch-pink), #d4a088);
  color: white;
  border: none;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 144, 138, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: startBtnReveal 1s ease 1.2s both;
  position: relative;
  overflow: hidden;
  z-index: 15;
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2.5s 2s infinite;
}

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

.start-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(201, 144, 138, 0.55);
}

.start-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Subtitle under button */
.opening-subtitle {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: rgba(92, 79, 66, 0.5);
  margin-top: 1rem;
  text-transform: uppercase;
  opacity: 0;
  animation: startBtnReveal 1s ease 1.8s both;
}

/* Opening sparkle burst on click */
.sparkle-burst {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.sparkle-burst .burst-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #d4af37;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px 2px rgba(212, 175, 55, 0.5);
}

.sparkle-burst.active .burst-particle {
  animation: burstOut var(--burst-duration, 1.5s) var(--burst-delay, 0s) ease-out forwards;
}

@keyframes burstOut {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  80% { opacity: 0.6; }
  100% {
    opacity: 0;
    transform: translate(var(--bx, 50px), var(--by, -80px)) scale(0);
  }
}

/* ── Music Toggle ── */
.music-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 110;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.music-toggle.paused { opacity: 0.5; }

/* ── Upload Links ── */
.upload-link {
  display: block;
  margin-top: 1rem;
  padding: 0.7rem 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 2px;
  text-align: center;
  z-index: 15;
  transition: all 0.3s ease;
  opacity: 0;
  animation: startBtnReveal 1s ease 1.4s both;
}
.upload-link:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.upload-bottom-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 2px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}
.upload-bottom-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.85);
}

/* ── Floral divider (optional decorative element) ── */
.floral-divider {
  width: 120px;
  height: auto;
  opacity: 0.5;
  margin: 0.5rem auto;
  display: block;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Full mobile (no max-width/max-height constraints) */
@media (max-width: 480px) {
  .app-container {
    max-width: 100%;
    max-height: 100%;
    box-shadow: none;
  }
}

@media (max-height: 700px) {
  .slide { top: 48%; }
  .couple-names { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 1rem; }
  .invitation-text { font-size: 0.65rem; margin-bottom: 1rem; }
  .parents { margin-bottom: 1rem; }
  .date-block { margin-bottom: 1rem; }
  .slide-monogram { width: 60px; height: 60px; margin-bottom: 1rem; }
  .slides-container { top: 22%; bottom: 22%; }
  .text-backdrop { padding: 1.2rem 1rem; }
  .door-frame { max-width: 260px; }
}

@media (max-height: 600px) {
  .door-frame { max-width: 220px; margin-bottom: 1rem; }
  .opening-names { font-size: clamp(1.2rem, 5vw, 1.6rem); margin-bottom: 1rem; }
  .start-btn { padding: 0.7rem 2rem; font-size: 0.75rem; margin-top: 1rem; }
  .slides-container { top: 20%; bottom: 20%; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .particle { display: none !important; }
}
