body {
    font-family: 'Cairo', sans-serif;
    margin: 10px;
    padding: 0;
    background-color: #b5e5ffdc; /* لون خلفية فاتح */
    direction: rtl;
    text-align: right;
    /* لون خلفية فاتح */
    color: #333;
    line-height: 1.8;
    /* ارتفاع السطر */
    font-size: 16px;
}

body,
html {
    overflow-x: hidden;
    font-size: 2.5vw;
}

header,
nav,
main,
footer {
    width: 100%;
    max-width: 100%;
}



/* تحسين الشريط العلوي (Header) */
header {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, rgb(74,234,220) 0%, rgb(151,120,209) 20%, rgb(56, 138, 165) 40%, rgb(238,44,130) 60%, rgb(251,105,98) 80%, rgb(254,248,76) 100%);
    color: #fff;
    width: 100%;
}
header p {
    font-size: 14px;
    /* حجم خط أصغر */
    margin: 10px;
    /* إزالة الهوامش الافتراضية */
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    padding: 0;
    /* إزالة الحشوات الافتراضية */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* تأثير الظل على النص */
}

/* إعداد صورة */
img {
    width: auto;
    max-width: 90%;
    height: auto;
    /* الحفاظ على نسبة العرض إلى الارتفاع */
    display: block; /* إزالة أي فراغات غير مرغوبة */
    max-width: 100%; /* عدم تجاوز حجم الصورة للحاوية */
    object-fit: cover; /* تأكد من عدم تشويه الصورة مع ملاءمة الإطار */
    border-radius: 10px; /* زوايا مستديرة لمظهر أنيق */
}

/* خاص بي الصفحة الرئيسية*/
/* تحسين قسم الـ Home */
#hom {
  display: flex;
  align-items: center;
  margin:  auto;
  max-width: 1200px;
  padding: 10px;
  background-color: #f5f4f7;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(26, 25, 25, 0.1);
}


/* تحسين استعلامات الوسائط للإعدادات النهائية */
@media (max-width: 768px) {
  #hom {
      flex-direction: column;
      /* Stack items vertically on smaller screens */
      align-items: center;
      /* Center align items */
  }

 


  #hom h2 {
      font-size: 2em;
      /* Smaller font size for headings */
  }

  #hom p {
      font-size: 1em;
      /* Smaller font size for paragraphs */
  }
}

@media (max-width: 480px) {
  #hom h2 {
      font-size: 1.8em;
      /* Further reduce font size */
  }

  #hom p {
      font-size: 0.9em;
      /* Further reduce font size */
  }
}
.carousel-wrapper {
    width: auto;
    max-width:40%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    height:auto;
    max-height: 380px;
    margin: 0;
    direction: ltr;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .carousel {
    display: flex;
    width: auto; /* 4 صور */
    transition: transform 0.5s ease-in-out;
  }
  
  .carousel img {
   
    width: auto;
    height: auto;
    max-height: fit-content;
    /* الحفاظ على نسبة العرض إلى الارتفاع */
    display: block; /* إزالة أي فراغات غير مرغوبة */
    max-width: 100%; /* عدم تجاوز حجم الصورة للحاوية */
    object-fit: cover; /* تأكد من عدم تشويه الصورة مع ملاءمة الإطار */
    border-radius: 20px;
  }
  
  .carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
  }
  
  .dot.active {
    background-color: #fff;
  }
  @media (max-width: 768px) {
    .carousel-wrapper {
        width: auto; /* ارتفاع أقل للجوال */
        max-width: 80%;
    margin: 0 auto;
    height: 289px;
  }
  .carousel {width: auto; /* 4 صور */
    transition: transform 0.5s ease-in-out;
 }
 .carousel img {width: 100%;
    height: auto;
    /* الحفاظ على نسبة العرض إلى الارتفاع */
    display: block; /* إزالة أي فراغات غير مرغوبة */
    max-width: 100%; /* عدم تجاوز حجم الصورة للحاوية */
    object-fit: cover; /* تأكد من عدم تشويه الصورة مع ملاءمة الإطار */
  }
  
  .carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
  }
  
  .dot.active {
    background-color: #fff;
  }
}
    
  @media (max-width: 480px) {
    .carousel-wrapper {
      height: 200px;
      width: auto;
    }
    .carousel img {width: auto;
        height: auto;
    }
 
    .dot {
      width: 8px;
      height: 8px;
    }
  }
  

#services {
    text-align: center;
    /* محاذاة النص إلى المنتصف */
    margin: 10px 0;
    /* إضافة هوامش علوية وسفلية */
    padding: 10px;
    /* إضافة حشوة داخلية */
    background-color: #b5e5ffdc;
    /* يمكنك تغيير لون الخلفية حسب الحاجة */
    border-radius: 14px;
    /* إضافة زوايا مستديرة */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* إضافة ظل */
}

/* تحسين عناصر الخدمة */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 13px;
    /*padding: 20px;*/

}

.service {
    text-align: center;
   
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.3s; /* تأثير التحول */
    background-color: #edf6f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service:hover {
    transform: scale(1.04);
    /* تكبير العنصر عند التمرير */
}


nav {
    background: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(134, 133, 235) 40%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 10px;
    font-size: 14px;
    display: flex;
    height: 50px;
    
}



main {
    padding-top: 30px;
}

/* التصميم الأصلي للوضع العادي */
.nav-links {
    display: flex;
    justify-content:space-around;
    align-items: center;
    padding: 10px;
    margin: 10px;
}



.nav-links a {
  
    text-decoration: none;
    color: white;
    margin: 0 4px;
    padding: 10px;
}


.nav-links .dropdown {
    position: relative;
}
.dropdown-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(20px); /* ← تتحرك من اليمين */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;

    position: absolute;
    top: 100%; 
    right:  0; /* أو right: 0; إذا تبي تطلعها من جهة اليمين */
    background-color: rgba(99, 84, 159, 0.95);

    border: #8737f7 2px solid;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* تأثير 3D عند تحريك العنصر الأساسي */
.dropdown > a {
    display: inline-block;
    transition: transform 0.4s ease, perspective 0.4s ease;
    transform-origin: right center;
  }
  
  .dropdown:hover > a,
  .dropdown:focus-within > a {
    transform: perspective(400px) rotateY(-20deg) translateX(-20px);
  }
  

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0); /* ← ترجع لمكانها الطبيعي */
}

.dropdown-content a {
    position: relative;
    color: #f6f2f2;
    text-decoration: none;
    padding: 4px 8px;
    
    display: block;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-size: 14px;
    white-space: nowrap; /* يمنع التفاف النص */
    
  }

/* تأثير عند تمرير الفأرة */
.dropdown-content a:hover {
    background-color: lch(94.02% 96.83 110.01); /* لون ساحر عند التحويم */
    color: #151417;

}
.dropdown-content a:hover::after {
    width: 100%;
    /* الخط يظهر بشكل كامل عند التمرير */}

  
.dropdown-content a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0%;
    height: 2px;
    transition: width 0.4s ease;
    background-color: #ffd700;


  }
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
   
}
/* تأثيرات إضافية عند التمرير على الروابط */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    /* خط أسفل الروابط */
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    /* الخط يظهر بشكل كامل عند التمرير */
}




/* تحسين قسم الخريطة */
#map {
    margin: 40px auto;
    max-width: 1200px;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#map h2 {
    color: #005f73;
    /* لون العنوان */
    font-size: 2em;
    margin-bottom: 20px;
}


    



.call-btn {
    background-color: rgb(103, 234, 74); /* لون خلفية الزر */
    padding: 10px; /* الحشوة الداخلية */
    border-radius: 5px; /* زوايا دائرية */
    color: black; /* لون النص بالأسود */
    text-decoration: none; /* إزالة التزيين */
}
.call-btn:hover {
    background-color: #70e74d;
    color: white;
}


@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .card-image {
        max-height: 200px; /* تقليل ارتفاع الصور في الهواتف */
    }
}

/* استعلام الوسائط لتعديل التصميم في الشاشات الصغيرة */
@media (max-width: 768px) {
    .nav-links {
        position:absolute;
        top: 40px;
        right: 0px;
        background: rgba(170, 157, 184, 0.9);
        width: 4.5cm;
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
        
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links a {
        padding: 10px 20px;
        margin: 0;
        display:block;
       
    }

    
      
      .dropdown:hover .dropdown-content {
        transform: translate(0, -50%);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }
      
    header p {margin-left: 7px;}

  /* الروابط داخل القائمة المنسدلة تتحرك عند ظهورها */
  .dropdown-content a {
    display: block;
    padding: 5px;
    color: #f6f2f2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
  }
  
 

  
}


/* إخفاء الأيقونة في الشاشات الكبيرة */
.menu-toggle {
    display: none;
}

/* إظهار الأيقونة في الشاشات الصغيرة (الهاتف المحمول) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 22px;
        position: relative;
    }
    @media (max-width: 768px) {
        nav {
            padding: 5px;
            font-size: 14px;
            height: 30px;
        }
    }    

    .bar {
        display: block;
        width: 100%;
        height: 4px;
        background-color: white;
        margin: 4px 0;
        transition: 0.3s;
    }

    /* عند النقر على القائمة وتحويلها إلى X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
        top: 9px;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        top: 9px;
    }
    .dropdown-content a {
        color: #f6f2f2; /* لون الروابط في القائمة المنسدلة */
    } 
    
}




.cards-container {
    display: flex;
    /*flex-direction: column;
    /* Align cards vertically */
   /* align-items: center;
    /* Center cards horizontally */
    gap: 14px;
    justify-content: center;
}



.card {
    width: 99%;
    /* Larger width for the card */
    max-width: 1200px; /* يمنع التمدد الزائد على الشاشات الكبيرة */
    margin: 3px 0;
    /* More space between cards */
    padding: 0px;
    /* Increase padding for a larger card */
    background-color: #f1faee;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(96, 110, 114, 0.15);
    /* More shadow for emphasis */
    text-align: right;
    /* Align text to the right */

    display: flex;
    flex-direction: row;
    flex-direction: row-reverse;
    border: 1px solid #374b4e;

}

.card {
    transition: transform 0.3s ease;
}
.card:hover {
    transform: scale(1.01);
}



/* التصميم الافتراضي للأجهزة الكبيرة */
.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-direction: row;
    gap: 20px;
}


.text-content {
    width: auto;
    /* Half the card's width for text */
    padding-right: 10px;
    /* Add some space between text and image */
    flex: 1;
    /* Allow text to take available space */
    text-align: right;
}



h1 {color: #007bff; }

h3 {color: #007bff; 
    font-size: 24px;
    /* Larger title */
    margin-bottom: 15px;
}
ul {
    font-size: 18px;
    padding: 0;
    margin: 0;
    text-align: right;
    list-style-type:disc;
    padding-right:20px;
}

p {
    font-size: 18px;
    /* Larger text for more readability */
    color: #333;
    /* Darker color for better contrast */
    text-align: justify;
    max-width: 950px; /* الحد الأقصى لعرض الفقرة */
    margin: 0 auto; /* يوسّط العنصر أفقياً */
    padding: 0 15px; /* مسافة داخلية يمين ويسار */
    line-height: 1.8;
}

/* Responsive design for smaller screens (Tablets and Mobile) */


.card-image {
    width: auto;
    max-width: 90%;
    /* عرض الصورة لا يتجاوز الحاوية */
    height: auto;
    /* الحفاظ على نسبة العرض إلى الارتفاع */
    max-height: 400px; /* Limit the height of the image on smaller screens */
    object-fit: cover;
    /* لضبط الصورة لتناسب الحاوية بشكل جيد */
    border-radius: 10px;
    /* استمر في تطبيق الزوايا الدائرية */
}



/* تحسين نموذج الاتصال */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}

form label {
    margin-top: 10px;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    margin-top: 10px;
    padding: 10px;
    background-color: #005f73;
    /* اللون الرئيسي */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #0a9396;
    /* تأثير hover */
}

#footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);
    color: white;
    overflow: hidden; /* لضمان عدم تجاوز المحتوى */
  
}
#footer p {
    margin: 0;
    padding: 0;
    font-size: 18px;
    /* حجم خط أصغر */
    color: #fff;
    text-align:inherit;
}

.footer-links {
    display: flex;
    justify-content: center; /* محاذاة العناصر في الوسط */
    flex-wrap: wrap; /* للسماح للعناصر باللف عند عدم وجود مساحة كافية */
    margin-top: 20px;
}

.footer-links div {
    flex: 1;
    min-width: 150px; /* الحد الأدنى للعرض */
    padding: 0 10px; /* هوامش داخلية */
    box-sizing: border-box;
    margin: 8px; /* هوامش بين الأعمدة */
}




.footer-links ul {
    padding: 0; /* إزالة الحواف الافتراضية للقائمة */
    margin: 0; /* إزالة الهوامش الافتراضية */
    list-style-type: none; /* إزالة الرموز من القائمة */
}

.footer-links ul li a {
    color: white; /* لون النص للروابط */
    text-decoration:none; /* إزالة الخط السفلي */
    font-size: 19px; /* حجم الخط للروابط */
    transition: color 0.3s ease; /* تأثير عند التمرير */
}

footer a {
    color: white;
}

.footer-links ul li a:hover {
    text-decoration: underline; /* تزيين عند التمرير */
}

/* إضافات لتصميم مناسب للشاشات الصغيرة */
@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .footer-links div {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .some-element {
        margin-left: 0;
        margin-right: 0px;
        padding-left: 0px;
        padding-right: 10px;
    }
}



/* إضافات لتصميم مناسب للشاشات الصغيرة */
@media (max-width: 300px) {
    .footer-links {
        flex-direction: column; /* تغيير الاتجاه إلى عمودي */
    }

    .footer-links div {
        min-width: auto; /* إزالة الحد الأدنى للعرض */
        width: 100%; /* جعل كل قسم يأخذ 100% من العرض */
        padding: 5px 0; /* تعديل الهوامش الداخلية */
    }
   

}

/* For mobile devices */
@media (max-width: 767px) {
    .card {
        width: 100%;
        /* Full width for mobile */
        padding: 20px;
        /* Reduce padding for smaller screens */
    }

    .card-content {
        flex-direction: column;
        /* Stack text and image vertically */
        text-align: center;
        /* Center text on small screens */
    }

    .text-content,
    .image-content {
        width: 100%;
        /* Full width for both text and image */

    }
    
  

    .card-image {
        max-width: 100%;
        /* Ensure the image doesn't overflow */
    }
}

/* For tablets (between mobile and laptop) */
@media (min-width: 768px) and (max-width: 1024px) {
    .card {
        width: 85%;
        /* Slightly reduce width for tablets */
    }

    .text-content,
    .image-content {
        width: 45%;
        /* Adjust width of text and image */
    }
}

/* For larger screens (laptops and desktops) */
@media (min-width: 1025px) {
    .card {
        width: 80%;
        /* Slightly larger width for bigger screens */
    }

    .text-content,
    .image-content {
        width: 90%;
        /* Keep equal width for both text and image */
    }

    .card-image {
        max-width: 100%;
        /* Ensure the image adapts to its container */
    }
}



/* إزالة display: flex; فقط في الهواتف والشاشات الصغيرة */

@media (max-width: 768px) {
    .card-content {
        flex-direction: column;
    }

   
}
/* إزالة display: flex; فقط في الهواتف والشاشات الصغيرة */
@media (max-width: 768px) {
    .card-content {
        display: block;
        /* استخدام display: block كبديل في الشاشات الصغيرة */
    }
}



@media (max-width: 767px) {
    .card {
        width: 100%;
        /* عرض كامل في وضع الهاتف */
        padding: 15px;
        /* تقليل الحشوة لتجنب تجاوز العرض */
        box-sizing: border-box;
        /* للتأكد من أن الحشوات والحواف تضاف داخل العرض الكلي */
    }

    .text-content,
    .image-content {
        width: 100%;
        /* عرض كامل لكل من النص والصورة */
        padding-right: 0;
        /* إزالة الحشوة الإضافية على الجوانب */
        padding-left: 0;
    }

    .card-image {
        max-width: 100%;
        /* تأكد من أن الصورة لا تتجاوز عرض الشاشة */
        height: auto;
        /* حافظ على النسبة بين العرض والارتفاع */
    }
}





.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    /* لون الأيقونة */
    margin: 5px auto;
    transition: all 0.3s;
}

.menu-toggle {
    
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* تنسيق عام للأيقونات العائمة */
.whatsapp-float, .call-float {
    position: fixed;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* تنسيق أيقونة الواتساب */
.whatsapp-float {
    bottom: 75px; /* لتكون فوق أيقونة الاتصال */
    right: 13px;
}

/* تنسيق أيقونة الاتصال */
.call-float {
    bottom: 10px; /* لتكون أسفل أيقونة الواتساب */
    right: 13px;
    background-color: #007bff; /* لون مختلف لتمييز الأيقونة */
}

/* تأثير عند التمرير */
.whatsapp-float:hover, .call-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img, .call-float img {
    width: 60%;
    height: 50%;
    border-radius: 20%;
}

body {
    -webkit-user-select: none; /* For Chrome, Safari, Opera */
    -moz-user-select: none; /* For Firefox */
    -ms-user-select: none; /* For Internet Explorer/Edge */
    user-select: none; /* Standard syntax */
  }


  /* Scrollbar Styles */
::-webkit-scrollbar {
    width: 13px;
  }
  
  ::-webkit-scrollbar-track {
    background: #636267;
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: linear-gradient( #f4f5f2, lch(94.02% 96.83 110.01)); 
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background:lch(94.02% 96.83 110.01); 
  }
  