/* Animations CSS */

/* Keyframes for various animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.8), 0 0 30px rgba(0, 255, 102, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
  }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.7), 0 0 20px rgba(0, 255, 102, 0.5), 0 0 30px rgba(0, 255, 102, 0.3);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

@keyframes rotateBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Apply animations to specific elements */

/* Hero Section Animations */
.hero-content h1 {
  animation: slideInLeft 1s ease-out forwards;
}

.hero-content p {
  animation: slideInLeft 1s ease-out 0.3s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.cta-buttons {
  animation: slideInLeft 1s ease-out 0.6s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-image {
  animation: slideInRight 1s ease-out forwards;
}

.phone-mockup {
  animation: float 6s ease-in-out infinite;
}

.phone-screen {
  background-size: 400% 400%;
  animation: rotateBackground 15s ease infinite;
}

/* Section Header Animations */
.section-header h2 {
  animation: fadeIn 1s ease-out forwards;
}

.highlight {
  animation: neonFlicker 5s infinite;
}

/* Service Card Animations */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.service-icon i {
  animation: pulse 3s ease-in-out infinite;
}

/* Advantage Card Animations */
.advantage-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.advantage-icon i {
  animation: pulse 3s ease-in-out infinite;
}

/* Project Card Animations */
.project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Contact Form Animations */
.form-group input, .form-group textarea {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  transform: translateY(-3px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

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

/* Logo Animation */
.logo img {
  animation: pulse 4s ease-in-out infinite;
}

.logo-text, .footer-logo span {
  animation: neonFlicker 5s infinite;
}

/* Social Links Animation */
.social-link {
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation Animation */
.nav-link {
  transition: color 0.3s ease;
}

/* Initialize animations on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}