/* تحديد متغيرات الألوان */
:root {
    --color-primary: #004D7A; /* الأزرق الداكن (اللون الرئيسي) */
    --color-secondary: #F0A500; /* البرتقالي / الذهبي (لون التمييز) */
    --color-light-bg: #F8F8F8; /* خلفية فاتحة للأقسام */
    --color-dark-bg: #333333; /* خلفية داكنة للتذييل */
    --color-text: #444444; /* لون النصوص العامة */
    --font-family: 'Cairo', sans-serif;
}

/* إعادة تعيين الأنماط الأساسية والخط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: #ffffff;
    color: var(--color-text);
    direction: rtl; /* اتجاه النص من اليمين لليسار */
    text-align: right;
    scroll-behavior: smooth;
}

/* التنسيق العام للحاوية */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* العناوين والأقسام (التنسيق كما هو) */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

section {
    padding: 100px 0;
    overflow: hidden; 
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
    color: var(--color-dark-bg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.section-title-left {
    text-align: right;
    margin-bottom: 40px;
    color: var(--color-dark-bg);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--color-text);
}


/* الأزرار (التنسيق كما هو) */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 25px;
    font-size: 1.1em;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 5px 15px rgba(240, 165, 0, 0.3);
}

.btn-primary:hover {
    background-color: #d18d00;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 77, 122, 0.3);
}

.btn-secondary:hover {
    background-color: #003a5c;
    transform: translateY(-3px);
}

/* شريط التنقل (Header & Nav) */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* التعديل هنا: تنسيق الـ logo ليحتوي على صورة ونص */
.logo {
    font-size: 2em;
    font-weight: 700;
    display: flex; /* لترتيب العناصر (الصورة والنص) أفقياً */
    align-items: center; /* لمحاذاة العناصر عمودياً في المنتصف */
    gap: 8px; /* مسافة بين الشعار والنص */
}

/* التنسيق الجديد للصورة */
.logo-img {
    height: 35px; /* تحديد ارتفاع مناسب للشعار */
    width: auto;
    object-fit: contain;
}

.logo-main { color: var(--color-primary); }
.logo-secondary { color: var(--color-secondary); }

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    text-decoration: none;
    color: var(--color-text);
    padding: 10px 18px;
    margin-right: 10px;
    font-weight: 600;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-links li a:hover {
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-secondary);
}

/* باقي الأقسام (Hero, About, Products, Innovation, Contact, Footer) تبقى كما هي لتجنب الأخطاء */

/* قسم البطل (Hero Section) */
.hero-section {
    background-color: var(--color-light-bg);
    padding: 120px 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-content .text-content {
    max-width: 60%;
}

.hero-content h1 {
    color: var(--color-dark-bg);
    margin-bottom: 15px;
}

.hero-content h2 {
    color: var(--color-secondary);
    font-size: 2em;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.1em;
    color: var(--color-text);
}

.hero-content .vector-placeholder {
    max-width: 40%;
    text-align: center;
}

.hero-content .vector-placeholder i {
    font-size: 10em;
    color: var(--color-primary);
    opacity: 0.7;
}

/* قسم عن الشركة (About Section) */
.about-section {
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.about-item {
    padding: 30px;
    background-color: var(--color-light-bg);
    border-radius: 10px;
    border-bottom: 4px solid var(--color-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-item i {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.about-item h3 {
    margin-bottom: 10px;
    color: var(--color-dark-bg);
}

/* قسم المنتجات (Products Section) */
.products-section {
    background-color: var(--color-light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.product-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-right: 5px solid var(--color-primary);
}

.product-card h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.product-card .vector-placeholder-small i {
    font-size: 3em;
    color: var(--color-primary);
    margin-top: 15px;
}

/* قسم الابتكار والتوسع (Innovation Section) */
.innovation-section {
    background-color: #ffffff;
}

.innovation-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.innovation-content .text-content {
    flex: 1;
}

.innovation-content .vector-placeholder {
    flex: 1;
    text-align: center;
}

.innovation-content h3 {
    color: var(--color-secondary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.innovation-content .vector-placeholder i {
    font-size: 8em;
    color: var(--color-primary);
    opacity: 0.7;
}

/* قسم التواصل (Contact Section) */
.contact-section {
    background-color: var(--color-light-bg);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 60px;
}

.detail-item {
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff;
}

.detail-item i {
    font-size: 2em;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.detail-item h3 {
    margin-bottom: 10px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-dark-bg);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
}

/* التذييل (Footer) */
footer {
    background-color: var(--color-dark-bg);
    color: white;
    text-align: center;
    padding: 25px 0;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* الاستجابة للأجهزة المختلفة (Responsive) */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content .text-content, .hero-content .vector-placeholder {
        max-width: 100%;
    }

    .innovation-content {
        flex-direction: column;
    }

    .innovation-content .text-content {
        text-align: center;
    }

    .section-title-left {
        text-align: center;
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    
    .nav-bar {
        flex-direction: column;
        padding-bottom: 10px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        padding: 8px