/* Animations for Maurer Construction Citation Theme */

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 63, 53, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(231, 63, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 63, 53, 0);
  }
}

.pulse-glow, .btn-pulse {
  animation: pulseGlow 2.2s infinite;
}

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

.float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-up"] {
  transform: translate3d(0, 35px, 0);
}

[data-aos="fade-down"] {
  transform: translate3d(0, -35px, 0);
}

[data-aos="fade-left"] {
  transform: translate3d(40px, 0, 0);
}

[data-aos="fade-right"] {
  transform: translate3d(-40px, 0, 0);
}

[data-aos="zoom-in"] {
  transform: scale(0.92);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Service Card Hover Animations */
.service-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.service-card .service-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--primary);
  color: #ffffff;
}

/* Button Hover Ripple / Shift */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(231, 63, 53, 0.35);
}
