/* إعدادات عامة */
* {
    margin: 0;
    padding: 6px;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

*:focus {
    outline: none;
}



.service {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

#contact input:focus, #contact textarea:focus {
    border-color: #16a085;
    box-shadow: 0 0 8px rgba(22, 160, 133, 0.5);
}

body {
    background-color: #F4F6F9;
    color: #333;
    font-size: 1rem;
    line-height: 1.1;
}

/* الرأس (Header) */
header {
    background-color: #2980B9;
    color: #fff;
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header .container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

/* قائمة الروابط (ul) */
header ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* الروابط (a) */
header ul li {
    display: inline-block;
}

header ul li a {
    text-decoration: none;
    color: #000000;
    font-size: 1.1rem;
    padding: 0.8rem 1.0rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header ul li a:hover {
    background-color: #16a085;
}

/* تأثير في الأجهزة الصغيرة */
@media (max-width: 768px) {
    header .container {
        flex-direction: column; /* الترتيب عمودي في الهواتف */
        align-items: flex-start; /* محاذاة العناصر للبداية */
    }

    header ul {
        margin-bottom: 0.8rem; /* إضافة مسافة أسفل القائمة */
    }

    header h1 {
        font-size: 1.1rem; /* تصغير حجم العنوان في الهواتف */
    }
}





.hero {
    height: 100vh; /* عرض كامل الشاشة */
    width: 100%; /* عرض كامل */
    background-image: url('image/21.jpeg'); /* تأكد من المسار الصحيح للصورة */
    background-size: contain; /* جعل الصورة تظهر بالكامل بدون اقتصاص */
    background-position: center center; /* محاذاة الصورة في المنتصف */
    background-repeat: no-repeat; /* منع تكرار الصورة */
    position: relative; /* لضبط العناصر الداخلية */
    display: flex; /* لاستخدام Flexbox لتوسيط المحتوى */
    justify-content: center; /* توسيط العناصر أفقياً */
    align-items: center; /* توسيط العناصر عمودياً */
    color: #fff; /* النص باللون الأبيض */
    text-align: center; /* محاذاة النص في المنتصف */
    padding: 0 20px; /* إضافة حشو لتجنب التصاق النص بالحواف */
}


.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: #16a085;
    padding: 1rem 2rem;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #1abc9c;
}

/* قسم الخدمات */
#services {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2980B9;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.service {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service h3 {
    font-size: 1.5rem;
    color: #2980B9;
    margin-bottom: 10px;
}

.service p {
    font-size: 1rem;
    color: #7f8c8d;
}

/* قسم من نحن */
#about {
    padding: 4rem 0;
    background-color: #ecf0f1;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2980B9;
}

#about .about-content {
    max-width: 900px;
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* قسم التواصل */
#contact {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2980B9;
}

#contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#contact input, #contact textarea {
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #BDC3C7;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

#contact input:focus, #contact textarea:focus {
    border-color: #16a085;
}

#contact button {
    padding: 1rem;
    font-size: 1.2rem;
    color: #fff;
    background-color: #2980B9;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #1abc9c;
}

/* تذييل الصفحة */
footer {
    background-color: #2980B9;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: 1rem;
    margin-top: 1rem;
}

/* تخصيص الأزرار بشكل عام */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #fff;
    background-color: #2980B9;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1abc9c;
}

/* تخصيص الواجهة لتوافق الهواتف الصغيرة */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    #services h2, #about h2, #contact h2 {
        font-size: 2rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service {
        padding: 1.5rem;
    }

    header ul {
        flex-direction: column;
        align-items: center;
    }

    .service img {
        max-width: 100%;
    }
}




/* تنسيق كلمة المفتاحيه */
.highlight {
    font-weight: bold;
    color: #2980B9; /* اختيار لون مميز مثل الأزرق */
    text-decoration: underline; /* يمكن إضافة خط تحت الكلمة لتمييزها */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.highlight:hover {
    color: #16a085; /* تغيير اللون عند التمرير */
    text-decoration: none; /* إزالة الخط تحت الكلمة عند التمرير */
}


/* تنسيق الكارد بشكل عام */
.card {
    background-color: #a8b1b4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* تنسيق عنوان الكارد */
.card-header h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

/* تنسيق النص في الكارد */
.card-body p {
    font-size: 1.1em;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* تنسيق الرابط */
.card-body .btn {
    display: inline-block;
    background-color: #2980b9;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.card-body .btn:hover {
    background-color: #16a085;
}

/* تنسيق كلمة المفتاحيه */
.highlight {
    font-weight: bold;
    color: #2980B9; /* لون مميز */
    text-decoration: underline; /* إضافة خط تحت */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.highlight:hover {
    color: #16a085; /* تغيير اللون عند التمرير */
    text-decoration: none; /* إزالة الخط تحت الكلمة عند التمرير */
}











/* تصميم الشريط الجانبي */
.social-sidebar {
    position: fixed;
    top: 20%;
    left: 10px; /* موقع الشريط على الشاشة */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000; /* لضمان ظهوره فوق العناصر الأخرى */
}

/* تصميم الأيقونات */
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* الألوان لكل أيقونة */
.social-icon.phone {
    background-color: #007bff; /* لون الهاتف */
}

.social-icon.whatsapp {
    background-color: #25d366; /* لون الواتساب */
}

.social-icon.instagram {
    background-color: #e4405f; /* لون الإنستجرام */
}

.social-icon.twitter {
    background-color: #1da1f2; /* لون تويتر */
}

.social-icon.facebook {
    background-color: #3b5998; /* لون فيسبوك */
}

.social-icon.youtube {
    background-color: #ff0000; /* لون يوتيوب */
}

/* التأثير عند المرور */
.social-icon:hover {
    transform: scale(1.1); /* تكبير الأيقونة */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* شريط جديد للواتساب والاتصال في الجنب اليسار */
/* أيقونة الواتساب على اليسار */
.social-left {
    position: fixed;
    bottom: 10px; /* المسافة من الأسفل */
    left: 10px; /* المسافة من اليسار */
    z-index: 1000; /* لضمان الظهور فوق العناصر الأخرى */
}

.social-left .social-icon {
    position: relative; /* لضبط العناصر الداخلية مثل الشعار */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    background-color: #25d366; /* لون الواتساب */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* الشعار الأحمر أو الرقم على الواتساب */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* أيقونة الهاتف على اليمين */
.social-right {
    position: fixed;
    bottom: 10px; /* المسافة من الأسفل */
    right: 10px; /* المسافة من اليمين */
    z-index: 1000; /* لضمان الظهور فوق العناصر الأخرى */
    display: flex; /* لتوضيع الأيقونة والنص بجانب بعض */
    align-items: center;
    gap: 8px; /* مسافة بين الأيقونة والنص */
}

/* تصميم الأيقونة */
.social-right .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    background-color: #007bff; /* لون الهاتف */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* النص بجانب الأيقونة */
.call-label {
    font-size: 16px; /* حجم النص */
    font-weight: bold; /* خط عريض */
    color: #0b0b0b; /* لون النص */
    background-color: #fff; /* الخلفية البيضاء */
    padding: 5px 10px; /* الحشو حول النص */
    border-radius: 12px; /* زاوية حادة للنص */
    border: 1px solid #ccc; /* خط خفيف حول النص */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* تأثير الظل */
    font-family: 'Arial', sans-serif; /* الخط */
    margin-left: 10px; /* المسافة بين النص والأيقونة */
}

/* التأثير عند تمرير الفأرة على الأيقونة */
.social-icon:hover {
    transform: scale(1.1); /* تكبير الأيقونة */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}





.map-container {
    position: relative;
    width: 100%;
    height: 500px; /* يمكنك تغيير الارتفاع حسب احتياجك */
    border-radius: 10px; /* إضافة حواف دائرية */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* تأثير الظل */
}





















/* إزالة النقاط من القوائم */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* تنسيق عناصر القائمة */
ul li {
    position: relative;
    display: inline-block;
    margin: 10px;
}

/* تنسيق الروابط */
ul li a {
    text-decoration: none;
    padding: 10px;
    display: block;
    color: #333;
}

/* تنسيق الرابط عند التمرير عليه */
ul li a:hover {
    background-color: #f0f0f0;
}

/* إخفاء القائمة المنسدلة بشكل افتراضي */
ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
}

/* إظهار القائمة المنسدلة عند التمرير على العنصر */
ul li:hover .dropdown {
    display: block;
}

/* تنسيق عناصر القائمة المنسدلة */
ul li .dropdown li {
    display: block;
}

/* تنسيق الروابط داخل القائمة المنسدلة */
ul li .dropdown li a {
    padding: 10px;
    background-color: #fff;
    color: #333;
}

ul li .dropdown li a:hover {
    background-color: #f0f0f0;
}


body,
html {
    overflow-x: hidden;
}

header,
nav,
main,
footer {
    width: 100%;
    max-width: 100%;
}












/* الأساسيات */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: white;
}

h1 {
    margin: 0;
    font-size: 20px;
}

.nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav li {
    position: relative; /* لتحديد موضع القوائم الفرعية */
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.nav .dropdown {
    display: none; /* إخفاء القوائم الفرعية افتراضيًا */
    position: absolute;
    left: 100%; /* تجعل القائمة الفرعية تظهر بجانب العنصر الرئيسي */
    top: 0;
    background-color: #444; /* لون الخلفية للقائمة الفرعية */
    padding: 10px 0;
    list-style: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* إضافة ظل */
    z-index: 10; /* لجعلها تظهر فوق أي عناصر أخرى */
}

/* روابط القائمة الفرعية */
.nav .dropdown li a {
    color: rgb(173, 20, 20);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    white-space: nowrap; /* يمنع النصوص الطويلة من الالتفاف */
}

.nav .dropdown li a:hover {
    background-color: #555; /* لون عند التمرير */
    border-radius: 3px;
}

/* عرض القائمة الفرعية عند تمرير الفأرة */
.nav li:hover .dropdown {
    display: block;
}

/* أيقونة الهامبرغر للموبايل */
.hamburger {
    display: none; /* إخفاء في سطح المكتب */
    cursor: pointer;
    font-size: 24px;
}

/* وضع الموبايل */
@media screen and (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px;
        border-radius: 5px;
    }

    .nav.active {
        display: flex; /* تظهر القائمة عند تفعيل كلاس active */
    }

    .nav .dropdown {
        position: static; /* لجعل القوائم الفرعية تظهر تحت في وضع الموبايل */
        left: auto;
    }

    .hamburger {
        display: block;
    }
}





/* وضع الموبايل */
@media screen and (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px;
        border-radius: 5px;
        z-index: 10;
    }

    .nav.active {
        display: flex; /* تظهر القائمة عند تفعيل كلاس active */
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 24px;
    }
}
