/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* Base state - hidden before reveal */
.scroll-reveal {
  opacity: 0;
  will-change: opacity, transform;
}

/* Fade up animation (default) */
.scroll-reveal--fade-up {
  transform: translateY(5px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade in animation */
.scroll-reveal--fade-in {
  transform: translateY(5px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scale in animation (for emphasis) */
.scroll-reveal--scale-in {
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Revealed state */
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Shine Effect (attention-grabbing highlight sweep)
   ========================================================================== */

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 80%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.shine-effect.shine-active::after {
  animation: shine-sweep 0.8s ease-out forwards;
}

@keyframes shine-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shine-effect::after {
    display: none;
  }
}

/* ==========================================================================
   Floating Bubbles Background Animation
   ========================================================================== */

.bubbles-container {
  background-color: var(--pink-50);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  animation: bubble-float linear infinite;
  will-change: transform;
}

@keyframes bubble-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(15px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-10px, -10px) scale(0.95);
  }
  75% {
    transform: translate(20px, 15px) scale(1.02);
  }
}

/* Ensure hero content stays above bubbles */
[data-controller~="bubbles"] > *:not(.bubbles-container) {
  position: relative;
  z-index: 1;
}

/* Hide static SVG background when animated bubbles are active */
.bg-gradient-hero.bubbles-active {
  background-image: none;
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
  }
}