/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

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

.animate-slide-in-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 1s ease-out forwards;
}

/* Hover Effects */
.service-card, .pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

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

/* Navbar Animation */
.nav-links li a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.nav-links li a:hover:after {
  width: 100%;
}

/* Hero Section Animation */
.hero-content h1 {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Service Cards Animation */
.service-card {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Delay each service card animation */
.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }
.service-card:nth-child(4) { animation-delay: 0.8s; }

/* Pricing Section Animation */
.pricing-card {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.2s; }
.pricing-card:nth-child(2) { animation-delay: 0.4s; }

/* Contact Section Animation */
.contact-item {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.4s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }

/* About Section Animation */
.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
  overflow: hidden;
}

.about-image {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  opacity: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.about-section.visible .about-image {
  transform: translateX(0);
  opacity: 1;
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.about-text {
  flex: 1;
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  will-change: transform, opacity;
}

.about-section.visible .about-text {
  transform: translateX(0);
  opacity: 1;
}

.about-content:hover .about-img {
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-image,
  .about-text {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .about-text {
    transform: translateY(30px);
  }
  
  .about-section.visible .about-text {
    transform: translateY(0);
  }
}

/* Footer Animation */
.footer-content > div {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.footer-about { animation-delay: 0.2s; }
.footer-links { animation-delay: 0.3s; }
.footer-contact-info { animation-delay: 0.4s; }
.footer-legal { animation-delay: 0.5s; }
