
/* الشريط العلوي */
.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;
}

/* استجابة للأجهزة الصغيرة */
@media screen and (max-width: 768px) {
    /* الشريط العلوي */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    /* محاذاة الروابط */
    .nav-links {
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
    }

    .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; /* تقليص الحجم في الشاشات الصغيرة */
    }

    /* تنسيق للخدمات */
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 90%;
        margin-bottom: 30px;
    }

    /* تنسيق الإحصائيات */
    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    /* تنسيق الشهادات */
    .clients-slider {
        flex-direction: column;
        align-items: center;
    }

    /* تنسيق الشراكات */
    .partner-logos {
        flex-direction: column;
        align-items: center;
    }
}

/* استجابة للأجهزة الصغيرة (تحت 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;
    }
}



/* قسم الاتصال */
.contact-section {
    padding: 120px 20px 50px;
    background: linear-gradient(135deg, #00ff00, #000000);
    color: white;
    text-align: center;
}

.contact-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 20px;
    margin-bottom: 40px;
}

/* حاوية النموذج والمعلومات */
.contact-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 20px;
}

/* نموذج الاتصال */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.contact-form button {
    background-color: #00FF00;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #4CAF50;
    transform: translateY(-2px);
}

.contact-form button:active {
    transform: translateY(0);
}

/* معلومات الاتصال */
.contact-info {
    flex-basis: 48%; /* تحديد عرض المعلومات مع مرونة */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* محاذاة النصوص في معلومات الاتصال لليسار */
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.6;
}

/* لتغيير لون النص في معلومات الاتصال إلى لون مناسب */
.contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    margin: 10px 0;
    color: #333; /* تغيير اللون إلى #333 لجعل النص واضحًا */
}

/* خريطة جوجل */
.map-container {
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* التذييل */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form,
    .contact-info {
        width: 80%;
        margin-bottom: 30px;
    }

    .contact-section h1 {
        font-size: 30px;
    }

    .contact-section p {
        font-size: 18px;
    }
}

.contact-form input,
.contact-form textarea {
    color: #333; /* تغيير اللون إلى لون داكن لتكون الكتابة أكثر وضوحًا */
}