/* إعدادات عامة */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    color: #333;
    background-color: #0f0f0f;
}
::-webkit-scrollbar {
              width: 12px;
            }
            
            /* تغيير لون الخلفية لشريط التمرير */
            ::-webkit-scrollbar-track {
              background: #333;
            }
            
            /* تغيير لون مقبض شريط التمرير */
            ::-webkit-scrollbar-thumb {
              background-color: #a9d41b;
              border-radius: 6px;
              border: 2px solid #333;
            }
            
            /* تأثير عند التحريك على مقبض شريط التمرير */
            ::-webkit-scrollbar-thumb:hover {
              background-color: #b5dd16;
              cursor: pointer;
            }
/* Header Styling */
header {
    position: relative;
    height: 90vh;
    background: url('new/5.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(142, 165, 11);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.700); /* تراكب لوني */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* شريط التنقل */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: relative;
    z-index: 2;
}

/* حاوية اللوجو واسم الموقع */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 40px;
    height: auto;
    border-radius: 50%;
    border: 1px solid rgb(255, 255, 255);
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
}

/* قائمة التنقل */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: rgb(142, 165, 11);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 17px;
}

nav ul li a:hover {
    color: white;
    
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons a {
    color: rgb(142, 165, 11);
    font-size: 1.5rem; /* زيادة حجم الأيقونات */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
}

/* زر القائمة (Hamburger) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

/* محتوى الرأس */
.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.header-content p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.btn {
    padding: 0.9rem 2rem;
    background-color: rgb(142, 165, 11);
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: 1s;
    transition: background-color 0.3s ease, transform 1s ease;
}

.btn:hover {
    background-color: rgb(142, 165, 11);
    color:rgb(255, 255, 255);
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects Section Styling */
.projects {
    padding: 2rem 2rem;
    text-align: center;
    background-color: #0d0f13;;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color:rgb(142, 165, 11);
}
.projects p{
    font-size: 1.1em;
    color: white;
    margin-bottom: 20px;
}

.project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    
}

.card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.card p {
    padding: 0 1rem;
    color: #666;
}

.card a {
    display: block;
    background-color: rgb(142, 165, 11);;
    color: #000000;
    padding: 0.7rem;
    text-align: center;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background-color: #9fc00d;
    color: white;
}

/* استجابة الموقع (Responsive Design) */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1rem;
        margin-bottom: 1rem;
        animation: fadeInDown 1s ease-out;
    }
    .navbar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: rgb(0, 0, 0);
        position: absolute;
        top: 0px; /* ارتفاع شريط التنقل */
        left: 0;
        transition: max-height 0.3s ease-in-out;
        overflow: hidden;
        max-height: 0;
    }

    nav ul.active {
        display: flex;
        max-height: 500px; /* قيمة كبيرة لتظهر القائمة بالكامل */
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid #444;
    }

    .social-search {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1rem 2rem;
        background-color: rgba(0, 0, 0, 0.8);
    }

    .social-search .search-bar {
        width: 100%;
    }

    .search-bar input {
        width: 80%;
    }

    .project-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}

/* Team Section Styling */
.team {
    padding: 2rem 2rem;
    background-color: #0e0e0e;
    text-align: center;
}

.team h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(142, 165, 11);
}

.team p {
    font-size: 1.1em;
    margin-bottom: 2rem;
    color: rgb(255, 255, 255);
}

/* الكروت جنب بعض */
.team-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap; /* يمنع النزول تحت */
    overflow-x: auto;  /* لو عدد الكروت كبير يعمل سكرول أفقي */
    padding-bottom: 1rem;
}

.team-card {
    background: white;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px 15px;
    text-align: center;
    flex-shrink: 0; /* يمنع الكارت من التصغير */
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* الصور دائرية بالكامل */
.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: contain;   /* يخلي الصورة كلها تبان جوه الدائرة */
    object-position: center;
    background-color: #fff; /* لون خلفية لو في فراغ */
    margin: 0 auto 15px;
    display: block;
    border: 4px solid rgb(142, 165, 11);
}

.team-card h3 {
    margin-top: 0.5rem;
    font-size: 1.5rem;
    color: rgb(142, 165, 11);
}

.team-card p {
    color: #666;
}

/* استجابة للموبايل */
@media (max-width: 768px) {
    .team-cards {
        flex-wrap: wrap;   /* على الموبايل ينزلوا تحت بعض */
        overflow-x: hidden;
    }

    .team-card {
        width: 90%;
        margin: 0 auto;
    }

    .team-card img {
        width: 150px;
        height: 150px;
    }
}


/* Footer Section Styling */
footer {
    background-color: #07080a;
    color: white;
    padding: 2rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.footer-logo {
    flex: 1;
    text-align: center;
}

.footer-logo-img {
    width: 100px; /* تعديل حجم الشعار حسب الحاجة */
}

.footer-info,
.footer-links {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
    color: white;
}

.footer-info h3,
.footer-links h3 {
    border-bottom: 2px solid rgb(142, 165, 11); /* خط تحت العنوان */
    padding-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 0.5rem 0;
}

.footer-links ul li a {
    color: rgb(142, 165, 11);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    color: white;
    text-align: center;
    padding: 1rem 0;
    background-color: #07080a; /* لون مختلف لقاع الفوتر */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
}


/* تنسيق قسم الكلام التحفيزي */
.motivational-section {
    background-color: #0f0f0f; /* خلفية ملونة */
    color: rgb(142, 165, 11); /* لون النص */
    padding: 2rem; /* حشوة داخلية */
    border-radius: 12px; /* زوايا دائرية */
    text-align: center; /* توسيط النص */
    margin: 2rem 0; /* مسافة من الأعلى والأسفل */
}

.motivational-content {
    max-width: 600px; /* أقصى عرض للقسم */
    margin: 0 auto; /* توسيط القسم */
}

.motivational-content h2 {
    font-size: 2rem; /* حجم عنوان القسم */
    margin-bottom: 1rem; /* مسافة أسفل العنوان */
}

.motivational-content p {
    font-size: 1.2rem; /* حجم النص */
    line-height: 1.5; /* ارتفاع السطر */
}

.icon {
    font-size: 3rem; /* حجم الأيقونة */
    margin-bottom: 1rem; /* مسافة أسفل الأيقونة */
}


/* تنسيق شريط الأخبار */
.news-marquee {
    background-color: #0c0e13;/* خلفية داكنة */
    color: white; /* لون النص */
    padding: 1.5rem; /* حشوة داخلية */
    text-align: center; /* توسيط النص */
    font-size: 1.1rem; /* حجم الخط */
    overflow: hidden; /* إخفاء العناصر الزائدة */
    position: relative; /* تحديد موضع الشريط */
}

marquee {
    white-space: nowrap; /* عدم التفاف النص */
}





/* تنسيق قسم الإحصائيات */
.statistics {
    background-color: #0f0f0f;
    padding: 50px 0;
    text-align: center;
}

.statistics h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: rgb(142, 165, 11);
}
.statistics p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgb(255, 255, 255);
}

.stat-box {
    display: flex;
    justify-content: center; /* مركز العناصر */
    flex-wrap: wrap;
    gap: 20px; /* إضافة مساحة بين المربعات */
}

.stat {
    background-color: rgb(142, 165, 11);
    border: 2px solid rgb(142, 165, 11);
    border-radius: 10px;
    padding: 20px; /* إضافة padding للمربعات */
    width: 150px; /* تحديد عرض المربعات */
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* إضافة ظل للمربعات */
}

.stat:hover {
    transform: translateY(-5px); /* رفع المربع قليلاً عند التمرير */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* زيادة الظل عند التمرير */
}

.count {
    font-size: 2em; /* زيادة حجم الرقم */
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin: 10px 0; /* مساحة بين الرقم والنص */
}

p {
    font-size: 0.9em; /* حجم النص */
    color: rgb(0, 0, 0);
}

/* تنسيق الأيقونات */
.stat i {
    font-size: 2em; /* زيادة حجم الأيقونة */
    color: rgb(0, 0, 0); /* لون الأيقونة */
    margin-bottom: 10px; /* مساحة بين الأيقونة والنص */
}
