
/* الشريط العلوي */
.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: 100%;
    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;
    }


    /* تنسيق للخدمات */
    .services-container,
    .stats-container,
    .clients-slider,
    .partner-logos {
        flex-direction: column;
        align-items: center;
    }

    .service-item,
    .stat-item {
        width: 90%;
        margin-bottom: 30px;
    }
}

/* استجابة للأجهزة الكبيرة (أجهزة الحاسوب) */
@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 Services */
.services {
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #00ff00, #000000);
    color: white;
    text-align: center;
}

.services h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.services p {
    font-size: 20px;
    margin-bottom: 40px;
}

/* Conteneur des services */
.services-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Élément de service */
.service-item {
    background-color: rgba(255, 255, 255, 0.9);
    width: 30%;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    text-align: center;
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
}

.service-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 16px;
    color: #555;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-item .btn-service {
    display: inline-block;
    padding: 12px 20px;
    background-color: #00FF00;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-item .btn-service:hover {
    background-color: #4CAF50;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px ) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 50%;
        margin-bottom: 30px;
    }
}