/* ============================================
   Enhanced CSS Animations - 2025 Edition
   تحسينات الرسوم المتحركة المتقدمة
   ============================================ */

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Pulse Effect للعناصر المهمة */
@keyframes modernPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.pulse-enhanced {
  animation: modernPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Animation للخلفيات */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animated {
  background: linear-gradient(-45deg, 
    hsl(145, 85%, 45%), 
    hsl(25, 95%, 53%), 
    hsl(200, 100%, 40%), 
    hsl(145, 85%, 45%)
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Floating Animation للعناصر */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Modern Hover Effects */
.modern-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 
              0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Glass Effect Enhancement */
.glass-modern {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

/* Price Card Animations */
.pricing-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.pricing-card:hover {
  transform: scale(1.03);
  z-index: 10;
}

.pricing-card.featured {
  animation: pulse-enhanced 3s infinite;
}

/* Button Enhancement */
.cta-enhanced {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    hsl(145, 85%, 45%) 0%, 
    hsl(145, 85%, 55%) 100%);
  transition: all 0.3s ease;
}

.cta-enhanced::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;
}

.cta-enhanced:hover::before {
  left: 100%;
}

.cta-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.3);
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, 
    #f0f0f0 25%, 
    #e0e0e0 50%, 
    #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Widget Enhancement */
.whatsapp-float {
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Typography Animations */
.text-glow {
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5),
               0 0 20px rgba(34, 197, 94, 0.3),
               0 0 30px rgba(34, 197, 94, 0.1);
}

/* Modern Progress Bar */
@keyframes progressLoad {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.progress-modern {
  height: 4px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-modern::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, 
    hsl(145, 85%, 45%), 
    hsl(25, 95%, 53%));
  border-radius: 2px;
  animation: progressLoad 2s ease-out;
}

/* Micro-interactions */
.micro-bounce {
  transition: transform 0.1s ease;
}

.micro-bounce:active {
  transform: scale(0.98);
}

/* Advanced Shadows */
.shadow-modern {
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.shadow-modern-lg {
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 8px 10px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Modern Focus States */
.focus-modern:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(34, 197, 94, 0.1),
    0 0 0 2px rgba(34, 197, 94, 0.4);
  border-color: hsl(145, 85%, 45%);
}
