/* AL10 Cybersecurity Consulting - Animations Stylesheet */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 2s;
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 2s linear infinite;
}

/* Flash Animation */
@keyframes flash {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0.5;
  }
}

.flash {
  animation: flash 2s;
}

/* Service Card Hover Animation */
.services-card {
  position: relative;
  overflow: hidden;
}

.services-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.services-card:hover::before {
  transform: translateX(0);
}

/* Button Hover Animation */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: height 0.3s ease-in-out;
  z-index: -1;
}

.btn:hover::after {
  height: 100%;
}

/* Scroll Reveal Animations */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 0.8s ease-in-out;
}

.reveal.active {
  opacity: 1;
}

.reveal-left {
  transform: translateX(-50px);
}

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

.reveal-right {
  transform: translateX(50px);
}

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

.reveal-up {
  transform: translateY(50px);
}

.reveal-up.active {
  transform: translateY(0);
}

/* Icon Animations */
.icon-pulse {
  display: inline-block;
  animation: pulse 2s infinite;
}

.icon-spin {
  display: inline-block;
  animation: rotate 10s linear infinite;
}

/* Shield Animation for Hero */
@keyframes shieldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 168, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(249, 168, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 168, 38, 0);
  }
}

.shield-pulse {
  animation: shieldPulse 2s infinite;
}

/* Text Fade Animation for Testimonials */
@keyframes textFade {
  0%, 100% {
    opacity: 0;
    transform: translateY(20px);
  }
  5%, 95% {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-fade {
  animation: textFade 8s ease-in-out infinite;
}

/* Typing Animation for Hero Subtitle */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typing-animation {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end);
}

/* Data Flow Animation for Background Elements */
@keyframes dataFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.data-flow-bg {
  background: linear-gradient(270deg, var(--primary), var(--secondary), var(--accent));
  background-size: 600% 600%;
  animation: dataFlow 10s ease infinite;
}

/* CTA Button Animation */
.btn-cta {
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: none;
  animation: shine 3s infinite;
}

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