/* ==========================================================================
   BRS CONSTRUCTION PROJECT - ANIMATIONS
   Dynamic micro-interactions, smooth scroll reveals, & keyframe animations
   ========================================================================== */

/* Keyframe Animations */
@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

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

/* Floating Elements */
.float-element {
  animation: floatAnimation 4s ease-in-out infinite;
}

.pulse-badge {
  animation: pulseGlow 2.5s infinite;
}

.fab-whatsapp {
  animation: pulseGreen 2.2s infinite;
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger Delays for child elements */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Micro-interaction Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Construction Hazard Stripe Accent */
.stripe-accent {
  background: repeating-linear-gradient(
    -45deg,
    var(--primary-yellow),
    var(--primary-yellow) 10px,
    var(--secondary-navy) 10px,
    var(--secondary-navy) 20px
  );
  height: 6px;
  width: 100%;
}

/* Enhanced Animation Utilities */
.btn-gold-pulse {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gold-pulse::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.btn-gold-pulse:hover::after {
  left: 100%;
}

/* Pulse dot for section badges */
@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes pulseDotNavy {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.6);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
  }
}

.tag-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #F59E0B;
  margin-right: 8px;
  animation: pulseDot 2s infinite ease-in-out;
  vertical-align: middle;
  flex-shrink: 0;
}

/* In solid yellow pill badges, use dark navy pulse dot for sharp contrast */
.badge-yellow .tag-pulse-dot {
  background-color: #0F172A;
  animation-name: pulseDotNavy;
}

.card-hover-pop {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.card-hover-pop:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1), 0 0 25px -5px rgba(245, 158, 11, 0.2);
  border-color: #F59E0B !important;
}

.card-hover-pop:hover .service-clean-icon {
  transform: translateY(-4px) scale(1.08) rotate(5deg);
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.35);
}

.service-clean-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.project-img-zoom {
  overflow: hidden;
  border-radius: 8px;
}

.project-img-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-clean-card:hover .project-img-zoom img {
  transform: scale(1.08);
}
