/* إعدادات عامّة */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #000;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* الشريط العلوي */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85); /* خلفية داكنة */
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* ظل ثلاثي الأبعاد */
    backdrop-filter: blur(8px); /* تأثير التمويه للخلفية */
    position: fixed;
    top: 0;
    left: 0;
    width:   98%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar:hover {
    transform: translateY(-5px); /* تأثير التحويم */
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.5); /* تغيير الظل عند التحويم */
}

/* محاذاة الشعار */
.logo img {
    max-width: 50px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)); /* تأثير الإضاءة */
}

/* روابط الشريط العلوي */
.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin: 0 20px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #00FF00; /* لون أخضر */
    font-size: 18px;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    background-color: rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    background-color: rgba(0, 255, 0, 0.3); /* تأثير عند التحويم */
    color: white;
    transform: translateY(-4px);
}

/* القائمة المنسدلة */
.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #00FF00;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.dropbtn:hover {
    background-color: rgba(0, 255, 0, 0.6);
    transform: translateY(-4px);
}

/* محتوى القائمة المنسدلة */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: rgba(0, 255, 0, 0.5);
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* استجابة للأجهزة الصغيرة (تحت 768px) */
@media screen and (max-width: 768px) {
    /* الشريط العلوي */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        position: relative; /* وضع نسبي لتحريك الزر */
    }

    /* زر القائمة */
    .menu-toggle {
        display: block;
        background-color: #007bff; /* تغيير لون الخلفية */
        border: none;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        top: 20px;
        right: 20px;
        border-radius: 5px; /* إضافة حواف دائرية للزر */
    }

    /* تغيير الأشرطة داخل الزر */
    .menu-toggle .bar {
        display: block;
        width: 30px;
        height: 4px;
        margin: 5px auto;
        background-color: #fff; /* تغيير لون الأشرطة داخل الزر */
        transition: all 0.3s ease;
    }

    /* محاذاة الروابط */
    .nav-links {
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
        display: none; /* إخفاء القائمة بشكل افتراضي */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* الشعار */
    .logo img {
        max-width: 40px;
    }

    /* تغيير صورة الشعار في قسم الترحيب */
    #welcome-section img {
        width: 200px;
    }
}


/* استجابة للأجهزة الكبيرة (أجهزة الحاسوب) */
@media screen and (min-width: 769px) {
    /* إخفاء زر القائمة على الشاشات الكبيرة */
    .menu-toggle {
        display: none;
    }

    /* عرض القائمة بشكل افتراضي على الشاشات الكبيرة */
    .nav-links {
        display: flex;
        flex-direction: row; /* محاذاة الروابط بشكل أفقي */
        margin-top: 0;
    }

    .nav-links li {
        margin: 0 15px;
    }

    .nav-links a {
        padding: 10px 15px;
        text-align: center;
    }
}



/* Section des détails des services */
.service-details {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.service-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.service-item h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #00FF00;
    font-weight: bold;
}

.service-item p {
    font-size: 18px;
    margin-bottom: 20px;
}

.service-item ul {
    list-style-type: none;
    padding: 0;
}

.service-item ul li {
    font-size: 16px;
    margin-bottom: 10px;
}

.cta {
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
}

.cta a {
    color: #00FF00;
    text-decoration: none;
    font-weight: bold;
}

.cta a:hover {
    text-decoration: underline;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .service-details {
        padding: 40px 20px;
    }

    .service-item {
        margin-bottom: 20px;
    }
}
/* التذييل */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}