/* ========================
   GLOBAL STYLES
   ======================== */
:root {
    --primary-color: #007bff; /* أزرق */
    --secondary-color: #0d2c4b; /* كحلي غامق */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white-color: #ffffff;
    --font-family: 'Cairo', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; color: var(--secondary-color); }
h3 { font-size: 1.5rem; color: var(--secondary-color); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title p {
    font-size: 1.1rem;
    color: #777;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}
.btn-secondary:hover {
    background-color: transparent;
    color: var(--white-color);
}

/* ========================
   NAVBAR
   ======================== */
.navbar {
    background: var(--white-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}
.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin: 0 15px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-contact-nav {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    padding: 8px 20px;
    border-radius: 50px;
}
.btn-contact-nav:hover {
    background-color: #0056b3;
    color: var(--white-color) !important;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?fit=crop&w=1920&h=1080') no-repeat center center/cover;
    position: relative;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* لإزاحة المحتوى عن الـ Navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 44, 75, 0.7); /* طبقة بلون كحلي شفاف */
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero h1 span {
    color: var(--primary-color);
}
.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-buttons .btn {
    margin: 0 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================
   SYSTEMS SECTION
   ======================== */
.systems-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.system-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.system-card h3 {
    margin-bottom: 15px;
}

.system-card p {
    color: #666;
    margin-bottom: 20px;
}

.btn-learn-more {
    font-weight: 600;
}
.btn-learn-more i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}
.btn-learn-more:hover i {
    transform: translateX(-5px);
}

/* ========================
   WHY US SECTION
   ======================== */
.why-us-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
}

/* ========================
   FOOTER (CONTACT)
   ======================== */
.footer {
    background-color: var(--secondary-color);
    color: #f0f0f0;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.8rem;
    color: var(--white-color);
    margin-bottom: 15px;
}
.footer-about h3 span {
    color: var(--primary-color);
}
.footer-about p {
    color: #ccc;
}

.footer-contact h4, .footer-social h4 {
    font-size: 1.2rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}
.footer-contact p i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    margin-left: 10px;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}

/* ========================
   WHATSAPP FLOAT ICON
   ======================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; /* غيرت الاتجاه لليسار ليتناسب مع اللغة العربية */
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========================
   RESPONSIVE (MOBILE)
   ======================== */
@media (max-width: 768px) {
    h1, .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .menu-icon {
        display: block; /* إظهار أيقونة القائمة */
    }

    .nav-links {
        display: none; /* إخفاء القائمة الرئيسية */
        
        /* -- هذه هي الإضافات الجديدة -- */
        position: absolute;
        top: 75px; /* ارتفاع شريط التنقل - قد يحتاج لتعديل بسيط */
        right: 0; /* يبدأ من اليمين بسبب dir="rtl" */
        width: 100%;
        background: var(--white-color);
        flex-direction: column;
        align-items: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding-bottom: 20px;
    }
    
    /* هذا الكلاس هو الذي يظهره الـ JavaScript */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0; /* مسافات رأسية بين الروابط */
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-links a:hover {
        background-color: var(--light-gray);
    }
    
    .btn-contact-nav {
        width: 80%;
        text-align: center;
        margin-top: 10px;
    }
    
    /* --- نهاية الإضافات --- */

    .hero {
        height: 70vh;
    }
    
    /* ... باقي التنسيقات ... */
}
/* ========================
   INTERNAL PAGE STYLES (ERP-X, Food-X, etc.)
   ======================== */

/* Hero Section لصفحات الأنظمة */
.page-hero {
    height: 60vh; /* ارتفاع أقل من الرئيسية */
    background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?fit=crop&w=1920&h=1080') no-repeat center center/cover;
    position: relative;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* لإزاحة المحتوى عن الـ Navbar */
}

.hero-page-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    color: var(--primary-color);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* قسم المميزات في الصفحات الداخلية */
.features-page-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.features-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-page-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    border-right: 5px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.feature-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-page-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-page-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-page-card p {
    color: #555;
    flex-grow: 1; /* يضمن أن الكروت متساوية الارتفاع */
}


@media (max-width: 768px) {
    h1, .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .menu-icon {
        display: block; /* إظهار أيقونة القائمة */
    }

    .nav-links {
        display: none; /* إخفاء القائمة الرئيسية */
        
        /* -- هذه هي الإضافات الجديدة -- */
        position: absolute;
        top: 75px; /* ارتفاع شريط التنقل - قد يحتاج لتعديل بسيط */
        right: 0; /* يبدأ من اليمين بسبب dir="rtl" */
        width: 100%;
        background: var(--white-color);
        flex-direction: column;
        align-items: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding-bottom: 20px;
    }
    
    /* هذا الكلاس هو الذي يظهره الـ JavaScript */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0; /* مسافات رأسية بين الروابط */
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-links a:hover {
        background-color: var(--light-gray);
    }
    
    .btn-contact-nav {
        width: 80%;
        text-align: center;
        margin-top: 10px;
    }
    
    /* --- نهاية الإضافات --- */

    .hero {
        height: 70vh;
    }
    
    /* ... باقي التنسيقات ... */
}
/* ========================
   CONTACT PAGE STYLES
   ======================== */

.contact-page-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* تنسيق جانب النموذج */
.contact-form-container h3 {
    margin-bottom: 10px;
}
.contact-form-container p {
    margin-bottom: 20px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* تنسيق جانب معلومات الاتصال */
.contact-info-container {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid var(--primary-color);
}

.contact-info-container h3 {
    margin-bottom: 10px;
}

.contact-info-container p {
    margin-bottom: 25px;
    color: #666;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-left: 20px;
    margin-top: 5px;
    width: 30px; /* لتوحيد المسافات */
}

.contact-info-item div {
    font-size: 1.1rem;
}

.contact-info-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-info-item p {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info-item a {
    color: var(--text-color);
    transition: color 0.3s;
}
.contact-info-item a:hover {
    color: var(--primary-color);
}

/* الاستجابة للموبايل لصفحة الاتصال */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}