/* Enhanced Animations for Ordexa Homepage */

/* Fade in animation for banner content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(251, 90, 22, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(251, 90, 22, 0.6);
  }
}

/* Banner enhancements */
.ordexa .banner {
  overflow: hidden;
}

.ordexa .banner .banner-overlay {
  animation: fadeIn 0.6s ease-out;
}

.ordexa .banner .overlay-content h2 {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.ordexa .banner .overlay-content h5 {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.ordexa .banner .overlay-content p {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

.ordexa .banner .overlay-content .btn-orange {
  animation: fadeInUp 0.8s ease-out, pulseGlow 2s ease-in-out infinite;
  animation-delay: 0.6s, 1s;
  animation-fill-mode: both, forwards;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ordexa .banner .overlay-content .btn-orange::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ordexa .banner .overlay-content .btn-orange:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(251, 90, 22, 0.5) !important;
}

.ordexa .banner .overlay-content .btn-orange:hover::before {
  width: 300px;
  height: 300px;
}

.ordexa .banner .overlay-content .btn-orange:active {
  transform: translateY(-1px) scale(1.02);
}

/* Service cards animation */
.ordexa .services .col-md-3 {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ordexa .services .col-md-3:nth-child(1) {
  animation-delay: 0.1s;
}

.ordexa .services .col-md-3:nth-child(2) {
  animation-delay: 0.2s;
}

.ordexa .services .col-md-3:nth-child(3) {
  animation-delay: 0.3s;
}

.ordexa .services .col-md-3:nth-child(4) {
  animation-delay: 0.4s;
}

.ordexa .services .col-md-3:hover {
  transform: translateY(-8px);
}

.ordexa .services img {
  transition: transform 0.3s ease;
}

.ordexa .services .col-md-3:hover img {
  transform: scale(1.1) rotate(5deg);
}

/* Button transitions */
.ordexa .btn-blue {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ordexa .btn-blue::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ordexa .btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(41, 177, 204, 0.4);
}

.ordexa .btn-blue:hover::before {
  width: 300px;
  height: 300px;
}

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

.ordexa .btn-success::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ordexa .btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(133, 189, 90, 0.4);
}

.ordexa .btn-success:hover::before {
  width: 300px;
  height: 300px;
}

/* Feature cards */
.ordexa .feature-card {
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.ordexa .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Advanced features section */
.ordexa .advanced-features {
  animation: fadeIn 0.8s ease-out;
}

/* Security badge enhancements */
.security-badge-inline {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: 0.7s;
  animation-fill-mode: both;
  transition: all 0.3s ease;
}

.security-badge-inline:hover {
  transform: translateY(-2px);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Add subtle parallax effect to banner */
@media (min-width: 992px) {
  .ordexa .banner {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
  }
}

/* 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;
  }
}

/* Loading state fade in */
.ordexa {
  animation: fadeIn 0.5s ease-in;
}

/* Plan cards enhancement */
.ordexa .plan-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ordexa .plan-item:hover {
  transform: translateY(-10px);
}

/* Testimonial cards */
.ordexa .testimony .card {
  transition: all 0.3s ease;
}

.ordexa .testimony .card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
