/* تحسينات الأداء والتصميم */

/* تحسين سرعة التحميل للصور */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* تحسين تجربة التحميل */
.lazy-load {
  transition: opacity 0.3s;
  opacity: 0;
}

.lazy-load.loaded {
  opacity: 1;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-description {
    font-size: 1rem !important;
  }
  
  .feature-card {
    margin-bottom: 15px;
  }
  
  .modal-content {
    width: 95%;
    padding: 15px;
  }
  
  .platform {
    max-width: 60px;
    margin: 5px;
  }
}

/* تحسين أوقات الانتقال */
.transition-fast {
  transition: all 0.3s ease;
}

/* تحسين تباين الألوان للوصول */
.btn-danger {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: white !important;
  font-weight: bold;
}

.btn-danger:hover {
  background-color: #c82333 !important;
  border-color: #bd2130 !important;
}

/* تحسين تجربة النموذج */
.form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* تحسين تحميل الفيديو */
.item-video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* تحسين الوصول */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* تحسين تجربة التمرير */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* تحسين ظهور العناصر عند التمرير */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}