/* كل شيء مثل ما هو، بس أضفنا تنسيق خاص بالفوتر لما الصفحة إنجليزية - الشعار يمين فقط */

html[lang="en"] .logofooter {
    justify-content: flex-end;
}

html[lang="en"] .footer-container {
    text-align: center;
    align-items: center;
}

/* النسخة الأصلية تكمل هنا بدون تغيير */

body {
    font-family: "Noto Kufi Arabic", sans-serif; 
    direction: ltr;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}
header {
    background: linear-gradient(to right, white, #d8d8d8);
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.logo {
    order: 2;
    margin-left: 0;
    margin-right: 20px;
}
  
.logo img {
    height: 120px;
}
.logo img:hover{
    transform: scale(1.1); /* يكبر بنسبة 10% */
    transition: transform 0.3s ease; /* حركة ناعمة */
}

.navbar {
    order: 1;
    display: flex;
    gap: 20px;
    margin-left: 20px;
    margin-right: 20;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin: 0 10px;
}

.navbar ul li a {
    color: #0073e6;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.navbar ul li a:hover {
    background-color: #0073e6;
}
.navbar ul li a:hover {
    color: white;
}
.nav-item.active a {
    color: #0073e6;
    font-weight: bold;
    border-bottom: 2px solid #0073e6;
}

.nav-item a:hover {
    color: #004d99;
}
.navbar-icon {
    display: none;
    color: #0073e6;
    font-size: 24px;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}
/* لضمان ظهور القائمة عند تفعيلها */
.navbar.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        z-index: 10;
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }

.language-toggle {
    position: absolute;
    top: 10px;
    left: 20px;
}

.language-toggle .btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-toggle .btn:hover {
    background-color: #0056b3;
}

.language-toggle .btn.active {
    background-color: #0056b3;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: auto;
}

.form input, .form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

footer {
    position: relative;
    width: 100%;
    bottom: 0;
}

.footer-container {
    background: linear-gradient(to right, #d8d8d8, white);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #757575;
}

.footer-top {
    display: flex;
    justify-content: space-between; /* توزيع الأيقونات والشعار */
    align-items: center;
    width: 100%;
    max-width: 1200px; /* عرض أكبر لتوزيع العناصر */
    padding-bottom: 10px;
}

.footer-icons, .logofooter {
    display: flex;
    gap: 10px;
    flex: 1; /* جعل كل جزء يأخذ المساحة المتاحة */
}

.footer-icons {
    justify-content: flex-start; /* الأيقونات تبقى في أقصى اليسار */
}

.logofooter {
    justify-content: flex-end; /* الشعار يبقى في أقصى اليمين */
}

.footer-icons img, .logofooter img {
    width: 30px;
    height: auto;
}

.footer-icons a img:hover {
    transform: scale(1.1);
}

.logofooter {
    display: flex;
    justify-content: left;
    gap: 15px;
}
.logofooter a img{
    width: 100px;
    height: 100px;
    transition: 0.3s;
}
.logofooter a img:hover {
    transform: scale(1.1);
}
.one {
    text-align: center; /* جعل النص في المنتصف */
    margin-top: 10px; /* دفع النص للأسفل */
}
.home-section {
    position: relative;
    background-image: url('background\ 1E.jpg'); /* استبدليها بالصورة الفعلية */
    background-size: cover;
    background-position: center;
    height: 100vh; /* أو حسب الحاجة */
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-section h1 {
    position: relative; /* ضروري حتى الـ z-index يشتغل */
    align-items: center;
    justify-content: left;
    color: white;
    letter-spacing: 1.0px;
    font-size: 20px;
    top: 80px;
    z-index: 2; /* أعلى من الـ before */
}
.home-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* لون شفاف فوق الخلفية */
    z-index: 1; /* بين الخلفية والنص */
    transform: translate(-50%, -50%); /* يحرك العنصر بنفسه إلى الوسط */
}

.about-section {
    text-align: center; /* تخلي النص في الوسط */
}

.icon-link {
    text-decoration: none; /* إلغاء الخط تحت الرابط */
}

.icon-circle {
    width: 250px;
    height: 250px;
    background-color: white;
    border-radius: 50%;
    display: inline-flex; /* يصطفون بشكل أفقي */
    justify-content: center;
    align-items: center;
    margin: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 19px 10px rgba(0, 123, 255);
}

.icon-circle i {
    font-size: 100px;
    color: #123;
}

.projects-section {
    text-align: center;
    padding: 40px 0;
}

.projects-section img:hover {
    transform: scale(1.1);
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}


button {
    background: #0073e6;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease;
}

button:hover {
    background: #0052a4;
}
.about {
    position: relative;
    background-image: url('sun3.jpg'); /* استبدليها بالصورة الفعلية */
    background-size: cover;
    background-position: center;
    height: 100vh; /* أو حسب الحاجة */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* زيادة التباعد لمرونة أكبر */
}

.about::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 80%;
    border-radius: 20px;
    background-color: rgba(255, 252, 252, 0.80); /* لون شفاف فوق الخلفية */
    z-index: 1; /* بين الخلفية والنص */
    transform: translate(-50%, -50%); /* يحرك العنصر بنفسه إلى الوسط */
}

.about-content {
    position: relative;
    max-width: 70%; /* تقليل الحجم لتناسب العرض */
    text-align: center;
    z-index: 2; /* فوق اللون الشفاف */
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-content1 {
    position: relative;
    max-width: 70%; /* تقليل الحجم لتناسب العرض */
    text-align: center;
    z-index: 2; /* فوق اللون الشفاف */
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    margin-top: 0;
    font-size: 28px;
    color: #003366;
    display: flex;
}
.about-content img {
    height: 250px;
    width: auto; /* للحفاظ على نسبة العرض إلى الارتفاع */
    border-radius: 20px;
    margin-top: 15px;
}

.about-content1 p {
    font-size: 18px;
    font-family: "Noto Kufi Arabic", sans-serif;
    color: #003366;
    line-height: 1.6;
    margin: 10px 100px;
}


.projects-grid ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    justify-items: center;
}
    
.projects-grid ul li{
    list-style: none;
    margin: 10px 10px;
}
.projects-grid ul li a{
    color:black ;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500px;
    font-family: "Noto Kufi Arabic", sans-serif; 
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 10px;
    display: block;
    width: 100%;
    transition: 0.5s;
    text-align: center;
}

.projects-grid ul li a:hover {
    transform: scale(1.20);
    opacity: 1;
    background-color: #243545;
    color: white
}

.projects-grid ul li::before{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-attachment: fixed; /* حتى تبقى ثابتة عند التمرير */

}

.projects-grid ul li:hover::before{
    opacity: 0.5;

}
.projects-grid :nth-child(1)::before {
    background-image: url('');
}
.projects-grid ul li:nth-child(2)::before {
    background-image: url('');
}
.projects-grid ul li:nth-child(3)::before {
    background-image: url('');
}
.projects-grid ul li:nth-child(4)::before {
    background-image: url('');
}
.projects-grid ul li:nth-child(5)::before {
    background-image: url('');
}
.projects-grid ul li:nth-child(6)::before {
    background-image: url('');
}
.projects-grid ul li:nth-child(7)::before {
    background-image: url('');
}
.projects-grid ul li:nth-child(8)::before {
    background-image: url('');
}
.projects-grid ul li:nth-child(9)::before {
    background-image: url('');
}

.navprocool ul{
    text-align: center;
}
.navprocool ul li{
    list-style: none;
    margin: 14px 0;
}
.navprocool ul li a{
    color:black ;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500px;
    font-family: "Noto Kufi Arabic", sans-serif; 
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    width: 400px;
    transition: 0.5s;
    

}
.navprocool ul li a:hover {
    transform: scale(1.20);
    opacity: 1;
    background-color: #243545;
    color: white
}
.navprocool ul li:hover::before{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.5;
}
.navprocool ul li:nth-child(1):hover::before {
    background-image: url('');
}
.navprocool ul li:nth-child(2):hover::before {
    background-image: url('');
}
.navprocool ul li:nth-child(3):hover::before {
    background-image: url('');
}
.navprocool ul li:nth-child(4):hover::before {
    background-image: url('');

}

.navprolight ul{
    text-align: center; 
}
.navprolight ul li{
    list-style: none;
    margin: 14px 0;
}
.navprolight ul li a{
    color:black ;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500px;
    font-family: "Noto Kufi Arabic", sans-serif; 
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    width: 400px;
    transition: 0.5s;

}
.navprolight ul li a:hover {
    transform: scale(1.20);
    opacity: 1;
    background-color: #243545;
    color: white

}
.navprolight ul li:hover::before{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.5;
}
.navprolight ul li:nth-child(1):hover::before {
    background-image: url('');
}
.navprolight ul li:nth-child(2):hover::before {
    background-image: url('');
}
.navprolight ul li:nth-child(3):hover::before {
    background-image: url('');
}
.navprolight ul li:nth-child(4):hover::before {
    background-image: url('');
}


.services-section {
    background-image: url('sun2.jpg'); /* استبدلي 'background.jpg' برابط أو اسم ملف الصورة */
    background-size: cover; /* حتى تغطي كل المساحة */
    background-position: center; /* لتوسيط الصورة */
    background-attachment: fixed; /* حتى تبقى ثابتة عند التمرير */
    padding: 50px 0; /* مسافة فوق وتحت */
    font-family: "Noto Kufi Arabic", sans-serif; 

}
.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* تأثير تعتيم */
    z-index: -1;
}
.services-section {
    position: relative;
    z-index: 1;
}

.services-section h2{
    color: white;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px;
}

.service-card {
    background-color: #f3f3f3;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 252, 252, 0.80);
    text-align: center;
}

.service-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.service-card button {
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}
.service-card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    background-color: #e3e3e3;
}
.v1,.v2{
    border-radius: 20px; /* اختياري – يخلي الحواف ناعمة */
}

@media (max-width: 768px) {
    header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 10px;
    }

    .navbar-icon {
        grid-column: 1;
        justify-self: start;
        display: block;
        font-size: 28px;
        color: #0073e6;
        cursor: pointer;
        z-index: 1000;
    }

    .logo {
        grid-column: 2;
        justify-self: center;
    }

    .logo img {
        height: 90px;
    }

    .language-toggle {
        grid-column: 3;
        justify-self: end;
        display: flex;
        gap: 5px;
    }

    .navbar {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: translateY(-10px);
        transition: opacity 0.4s ease, max-height 0.4s ease, transform 0.4s ease;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 10px 0;
    }

    .navbar.active {
            opacity: 1;
            max-height: 300px; /* أو حسب عدد العناصر */
            transform: translateY(0);       
    }

    .navbar ul {
        flex-direction: column;
        padding: 0;
        margin: 0; 
        
    }

    .navbar ul li a {
        display: block;
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .icon-circle {
        width: 250px;
        height: 250px;
        font-size: 36px;
        margin: 15px;
    }

    .home-section {
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
        text-align: center;
    }

    .home-section h1 {
        font-size: 22px;
        padding: 20px;
    }

    .form {
        width: 90%;
        margin: auto;
    }
    .about-content, .about-content1{
        max-width: 95%;
        padding: 10px;
    }
    .about-content h2{
        margin-top: 80px;
    }
    .about-content {
        font-size: 20px;
    }

    .about-content img {
       display: none;
    }
    .about-content1 p{
        font-size: 15px;
        margin: 10px 20px;
    }
    .projects-grid ul li a:hover {
        transform: scale(1.20);
        opacity: 1;
        background-color: #243545;
        color: white;

    }
    .projects-grid ul li a{
        font-size: 15px;
        font-weight: 500px;
        padding: 10px;
        width: 300px;
        transition: 0.5s;
    }
    .projects-grid ul li:hover::before{
        display: none;

    }

    .navprocool ul li a:hover {
       transform: scale(1.20);
       opacity: 1;
       background-color: #243545;
       color: white;

    }
    .navprocool ul li a{
       font-size: 15px;
       font-weight: 500px;
       padding: 15px;
       width: 300px;
       transition: 0.5s;
    
    }
    .navprocool ul li:hover::before{
        display: none;

    }
    .navprolight ul li a:hover {
       transform: scale(1.20);
       opacity: 1;
       background-color: #243545;
       color: white;

    }
    .navprolight ul li a{
       font-size: 15px;
       font-weight: 500px;
       padding: 15px;
       width: 300px;
       transition: 0.5s;
    
    }
    .navprolight ul li:hover::before{
        display: none;

    }
    .v1{
        max-width: 100%;
      }
      .v2{
        max-width: 100%;
    
      }

}

/* انتهت التعديلات الخاصة بالتجاوب فقط */

