/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animate-in classes */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Initial state for animations */
.about-section-item,
.grid-card,
.solution-slide,
.testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

/* Hero section animations */
.hero .carousel-item {
  transition: transform 1.2s ease-in-out;
}

.hero .carousel-caption {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out 0.4s;
}

.hero .active .carousel-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Button hover effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300%;
  height: 300%;
}

/* Card hover effects */
.grid-card,
.testimonial-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* FAQ animations */
.faq-answer {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item-simple .faq-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item-simple.active .faq-arrow {
  transform: rotate(180deg);
}

/* Solution slider smooth scroll */
.solutions-slider {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Testimonial carousel fade effect */
.carousel-item {
  transition: opacity 0.5s ease-in-out;
}

/* Brand logo hover effects */
.brand-item {
  transition: all 0.3s ease;
}

.brand-item img {
  transition: all 0.3s ease;
}

.brand-item:hover {
  transform: translateY(-5px);
}

.brand-item:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

/* Navigation hover effects */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu animations */
@media (max-width: 991px) {
  .navbar-collapse {
    transition: all 0.3s ease-in-out;
  }
  
  .navbar-toggler {
    transition: all 0.3s ease;
  }
  
  .navbar-toggler:not(.collapsed) {
    transform: rotate(90deg);
  }
}