/* ==========================================================================
   Danteella Flowers & Wedding Planning
   Animations & Cinematic Motion Stylesheet
   ========================================================================== */

/* Top Scroll Progress Indicator */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
  z-index: 9999;
  pointer-events: none;
  transition: width 0.1s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Custom Luxury Gold Cursor on Desktop */
.luxury-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.luxury-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 164, 92, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.luxury-cursor.active {
  width: 12px;
  height: 12px;
  background-color: var(--color-gold-light);
}

.luxury-cursor-follower.active {
  width: 56px;
  height: 56px;
  border-color: var(--color-gold);
  background: rgba(201, 164, 92, 0.08);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .luxury-cursor,
  .luxury-cursor-follower {
    display: none !important;
  }
}

/* Subtle Floating Parallax Flower Elements */
.floating-petal {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  z-index: 1;
  animation: floatPetal 14s infinite ease-in-out alternate;
}

@keyframes floatPetal {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(25px, -35px) rotate(45deg); }
  100% { transform: translate(-20px, -60px) rotate(90deg); }
}

/* Clip Path Image Reveal Classes for GSAP */
.reveal-img-wrap {
  overflow: hidden;
  position: relative;
}

.reveal-img-wrap img {
  transform: scale(1.15);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-img-wrap.is-revealed img {
  transform: scale(1);
}

/* Text Splitting Reveal Masks */
.reveal-text-line {
  overflow: hidden;
  display: block;
}

.reveal-text-line > * {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text-line.is-revealed > * {
  transform: translateY(0%);
}

/* Subtle Shimmer for Gold Accents */
@keyframes goldShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.gold-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-gold) 0%,
    var(--color-gold-light) 50%,
    var(--color-gold) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShimmer 6s infinite linear;
}

/* Pulse animation for WhatsApp badge */
@keyframes subtlePulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-whatsapp-btn {
  animation: subtlePulse 3s infinite ease-out;
}

/* Guaranteed Baseline Visibility for All Core Content & Images */
.collection-card,
.wedding-service-item,
.gallery-item,
.expertise-panel,
.intro-main-img-card,
.intro-secondary-img-card,
.wedding-lead-img-box,
.wedding-slide-item,
.wedding-swiper,
.hero-slide.active,
.hero-content-fixed,
.hero-headline-item.active,
.hero-ctas,
.hero-controls {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessible Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-bg-img {
    transform: none !important;
    transition: none !important;
  }
  
  .luxury-cursor,
  .luxury-cursor-follower,
  .floating-petal {
    display: none !important;
  }
}
