/**
 * ملف الاستعلامات للمتصفحات المختلفة
 * تم تفصيله عن ملف الأنماط الرئيسي لسهولة الصيانة
 */

/* الأجهزة الصغيرة جداً (الهواتف الصغيرة، حتى 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 2rem 0;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .contact-info-nav {
    display: none;
  }

  .footer h3 {
    font-size: 1.2rem;
  }

  /* تكبير حجم أزرار التواصل السريع في الفوتر */
  .social-links a {
    width: 40px;
    height: 40px;
  }

  /* تعديل شكل نموذج الاتصال */
  .contact-form .btn {
    width: 100%;
  }

  /* تعديل شكل الخريطة */
  .contact-map {
    height: 250px;
  }
}

/* الأجهزة الصغيرة (الهواتف الصغيرة، 576px فما فوق) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .card-img-top {
    height: 180px;
  }

  /* تعديل شكل نموذج الاتصال */
  .contact-form .btn {
    width: auto;
  }

  /* ظهور القائمة الجانبية بشكل طائر في لوحة التحكم */
  .sidebar {
    position: fixed;
    z-index: 100;
    background-color: #fff;
    border-left: 1px solid #dee2e6;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.show {
    transform: translateX(0);
  }
}

/* الأجهزة المتوسطة (التابلت، 768px فما فوق) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .card-img-top {
    height: 200px;
  }

  /* تعديل الهوامش والحواشي */
  section {
    padding: 4rem 0;
  }

  /* تعديل عرض العناصر في صفحة التفاصيل */
  .project-gallery .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* الأجهزة الكبيرة (الحواسيب المكتبية، 992px فما فوق) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    padding: 5rem 0;
  }

  /* تعديل عرض الأعمدة في لوحة التحكم */
  .sidebar {
    flex: 0 0 20%;
    max-width: 20%;
  }

  main {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

/* الأجهزة الكبيرة جداً (الحواسيب الكبيرة، 1200px فما فوق) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .hero-section {
    padding: 6rem 0;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  /* تكبير حجم الصور والمعارض */
  .card-img-top {
    height: 220px;
  }

  .project-gallery img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }
}

/* وضع الطباعة */
@media print {
  header,
  footer,
  .navbar,
  .sidebar,
  .cta-section,
  .contact-form,
  .btn-toolbar {
    display: none !important;
  }

  body {
    background-color: #fff !important;
    color: #000 !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }

  img {
    max-width: 300px !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #000 !important;
  }
}
.hero-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem !important;
}

.carousel {
  position: relative;
  z-index: 1;
}

.carousel-item {
  transition: opacity 1s ease-in-out !important;
}

.carousel-item img {
  object-fit: cover;
  height: 600px; /* يمكن تعديل الارتفاع حسب الحاجة */
}

.hero-shape {
  position: absolute;
  /* باقي الأنماط تبقى كما هي */
}

.floating-badge {
  position: absolute;
  /* باقي الأنماط تبقى كما هي */
}