/* ===== ANIMATIONS & TRANSITIONS ===== */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger Animation for Grid Items */
@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* ===== ANIMATION CLASSES ===== */

/* Base animation classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Stagger animations for grid items */
.solutions-grid .solution-card:nth-child(1) { animation-delay: 0.1s; }
.solutions-grid .solution-card:nth-child(2) { animation-delay: 0.2s; }
.solutions-grid .solution-card:nth-child(3) { animation-delay: 0.3s; }

.industries-grid .industry-card:nth-child(1) { animation-delay: 0.1s; }
.industries-grid .industry-card:nth-child(2) { animation-delay: 0.2s; }
.industries-grid .industry-card:nth-child(3) { animation-delay: 0.3s; }
.industries-grid .industry-card:nth-child(4) { animation-delay: 0.4s; }

.partners-grid .partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partners-grid .partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partners-grid .partner-logo:nth-child(3) { animation-delay: 0.3s; }

/* ===== SCROLL TRIGGERED ANIMATIONS ===== */

/* Intersection Observer classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Different animation directions */
.animate-on-scroll-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease-out;
}

.animate-on-scroll-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* ===== HOVER ANIMATIONS ===== */

/* Card hover effects */
.solution-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.industry-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background-color: var(--primary-50);
}

/* Button hover animations */
.btn--primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  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.5s;
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(11, 94, 215, 0.3);
}

/* Logo hover effects */
.partner-logo {
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* ===== LOADING ANIMATIONS ===== */

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* ===== MICRO-INTERACTIONS ===== */

/* Form input focus animations */
.form-input:focus,
.form-textarea:focus {
  transform: scale(1.02);
  transition: all 0.2s ease;
}

/* Checkbox animation */
.checkbox {
  transition: all 0.2s ease;
}

.checkbox:checked {
  transform: scale(1.1);
}

/* Mobile menu toggle animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Use transform and opacity for better performance */
.animate-on-scroll,
.animate-on-scroll-left,
.animate-on-scroll-right,
.animate-on-scroll-scale {
  will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll,
  .animate-on-scroll-left,
  .animate-on-scroll-right,
  .animate-on-scroll-scale {
    opacity: 1;
    transform: none;
  }
}

/* ===== CUSTOM ANIMATION UTILITIES ===== */

/* Delay utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Duration utilities */
.duration-fast { animation-duration: 0.3s; }
.duration-normal { animation-duration: 0.6s; }
.duration-slow { animation-duration: 1s; }

/* Easing utilities */
.ease-out { animation-timing-function: ease-out; }
.ease-in-out { animation-timing-function: ease-in-out; }
.ease-bounce { animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); }

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
  opacity: 0.8;
}

.cursor--hover {
  transform: scale(2);
  background-color: var(--accent);
}

/* ===== PARTICLE EFFECTS ===== */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

/* ===== WAVE EFFECTS ===== */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.wave svg {
  width: 100%;
  height: 100%;
  animation: wave 10s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25%); }
}
