/* تحسينات جمالية وتأثيرات متحركة للصفحة الرئيسية */

/* أنماط الخلفية للأقسام */
.stars-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 35%, white 1px, transparent 1px),
    radial-gradient(circle at 35% 65%, white 1px, transparent 1px),
    radial-gradient(circle at 55% 25%, white 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, white 1px, transparent 1px),
    radial-gradient(circle at 85% 15%, white 1px, transparent 1px);
  background-size: 300px 300px;
  animation: stars-drift 80s linear infinite;
}

.geo-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(45deg, currentColor 25%, transparent 25%, transparent 75%, currentColor 75%),
    linear-gradient(45deg, currentColor 25%, transparent 25%, transparent 75%, currentColor 75%);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  opacity: 0.05;
}

.bg-pattern-grid {
  background-image: linear-gradient(to right, rgba(0,0,0,0.1) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.wave-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, transparent, transparent 50%, rgba(255,255,255,0.1) 50%, transparent);
  background-size: 300px 100%;
  animation: wave-drift 15s linear infinite;
}

/* تأثيرات حركية متنوعة */
@keyframes stars-drift {
  from { background-position: 0 0; }
  to { background-position: 300px 300px; }
}

@keyframes wave-drift {
  from { background-position: 0 0; }
  to { background-position: 300px 0; }
}

.animate-pulse-soft {
  animation: pulse-soft 3s infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 4s infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* عناصر متحركة للخلفية */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 15%;
  right: 15%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 10%;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 30%;
  left: 25%;
}

/* تحسين البطاقات والعناصر التفاعلية */
.section-wrapper {
  position: relative;
  isolation: isolate;
}

.section-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.5) 0%, transparent 60%),
              radial-gradient(circle at 10% 70%, rgba(255,255,255,.4) 0%, transparent 65%);
  mix-blend-mode: overlay;
}

/* تأثير تقدم إحصائيات */
.stat-progress {
  width: 0%;
  transition: width 2s ease-out;
}

/* تحسينات تفاعلية للأقسام */
.feature-card:hover .icon-container {
  transform: scale(1.1);
}

.feature-card:focus-within, .step-card:focus-within {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 4px;
}

/* تحسينات تباعد على الجوال */
@media (max-width: 768px) {
  .section-title {
    margin-bottom: 2rem;
  }
  
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .py-28 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
