/* 1. المتغيرات العامة */
:root {
    --navy: #1a2a6c;
    --green: #2ecc71;
    --light: #f4f7f6;
    --white: #ffffff;
}

/* 2. إعدادات الصفحة العامة */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    scroll-behavior: smooth; 
    padding-top: 90px; /* لضمان عدم اختفاء المحتوى تحت الهيدر */
}

.container { padding: 80px 10%; }
.bg-light { background: var(--light); }
.center { text-align: center; }

/* 3. شريط التنقل (Navbar) - النسخة النهائية الموحدة */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    background: #ffffff;
    height: 90px !important; /* ارتفاع ثابت للكمبيوتر */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 4. اللوجو - التحكم الإجباري بالحجم */
#nav-logo {
    height: 70px !important; /* حجم احترافي على الكمبيوتر */
    width: auto !important;
    display: block !important;
    transition: transform 0.3s;
}

#nav-logo:hover {
    transform: scale(1.05);
}

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--green); }

/* 5. قسم الواجهة (Hero) */
.hero { 
    height: 100vh; 
    background: linear-gradient(rgba(26,42,108,0.8), rgba(26,42,108,0.8)), url('img/hero.jpg'); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    color: white; 
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.tagline { color: var(--green); font-size: 1.5rem; font-weight: bold; }

/* 6. الأزرار */
.btn { padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--green); color: white; }
.btn-secondary { border: 2px solid white; color: white; margin-left: 15px; }

/* 7. الأقسام (About & CEO) */
.section-title { font-size: 2.2rem; color: var(--navy); margin-bottom: 25px; }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.vm-box { background: var(--light); padding: 15px; margin-top: 15px; border-left: 4px solid var(--green); }
.core-values li { background: var(--navy); color: white; padding: 5px 15px; margin-bottom: 5px; list-style: none; border-radius: 3px; }

.ceo-wrapper { display: flex; align-items: center; gap: 40px; }
.ceo-image img { width: 300px; border-radius: 10px; box-shadow: 10px 10px 0 var(--navy); }
.ceo-quote { font-size: 1.5rem; font-style: italic; border-left: 5px solid var(--green); padding-left: 15px; margin-bottom: 15px; }

/* 8. معرض الصور */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 5px; background: #eee; }
.project-gallery img { width: 100%; height: 80px; object-fit: cover; border-radius: 3px; cursor: pointer; }
.project-gallery img:first-child { grid-column: span 3; height: 200px; }
.project-content { padding: 20px; }
.p-date { color: var(--green); font-weight: bold; font-size: 0.8rem; }

/* 9. قسم التواصل */
.dark-contact { background: var(--navy); color: white; padding: 60px 10%; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 4px; border: none; }

/* 10. إعدادات الموبايل (Responsive) */
@media (max-width: 768px) {
    nav { height: 70px !important; padding: 0 5%; }
    #nav-logo { height: 45px !important; } /* الحجم المثالي للموبايل */
    body { padding-top: 70px; }
    
    .about-grid, .ceo-wrapper, .contact-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .ceo-image img { width: 250px; }
}