/* --- الإعدادات العامة والخطوط --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

:root {
    --primary-color: #0d2c4b; /* أزرق ليلي */
    --secondary-color: #f9f9f9;
    --accent-color: #38b6ff; /* أزرق سماوي مشرق */
    --text-color: #333;
    --light-text-color: #fff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    /* ترك مساحة للشريط السفلي في الموبايل */
    padding: 0 0 80px 0; 
    background-color: #fff;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- تأثيرات الحركة --- */
.reveal {
    position: relative;
    transform: translateY(80px);
    opacity: 0;
    transition: 1s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- الهيدر --- */
.header {
    background-color: rgba(13, 44, 75, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--light-text-color);
    text-decoration: none;
}

.logo span { color: var(--accent-color); }

.nav-links {
    list-style: none; display: flex;
}

.nav-links li { margin-right: 30px; }

.nav-links a {
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 3px; bottom: 0; right: 0;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.menu-toggle { display: none; } /* إخفاء أيقونة القائمة مبدئياً */

/* --- قسم الترحيب (Hero) - تم تصغيره --- */
.hero {
    background-image: linear-gradient(rgba(13, 44, 75, 0.8), rgba(13, 44, 75, 0.6)), url('https://images.unsplash.com/photo-1551632811-561732d1e306?q=80&w=2070');
    background-size: cover;
    background-position: center;
    color: var(--light-text-color);
    text-align: center;
    /* تقليل الـ padding لتصغير الارتفاع */
    padding: 100px 20px 120px; 
}

.hero h1 { font-size: 54px; font-weight: 900; margin-bottom: 15px; color: #fff; }

.hero p { font-size: 20px; max-width: 700px; margin: 0 auto 30px; }

.hero-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 14px 35px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.4);
}

.hero-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(56, 182, 255, 0.6);
}

/* --- الفوتر (بتصميم جديد) --- */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    text-align: right;
}

.footer-about h3 {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
}

.footer-about h3 span { color: var(--accent-color); }

.footer-about p { line-height: 1.7; margin-bottom: 20px; }

.footer-social a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-social a:hover { color: var(--accent-color); }

.footer-links h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s; }

.footer-links a:hover { color: #fff; }

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

/* --- باقي الأقسام بدون تغيير --- */
.features-section { padding: 80px 0; }
.section-title { text-align: center; font-size: 42px; font-weight: 900; margin-bottom: 60px; color: var(--primary-color); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }
.feature-item .icon { font-size: 50px; color: var(--accent-color); margin-bottom: 20px; }
.feature-item h3 { font-size: 22px; margin-bottom: 10px; color: var(--primary-color); }
.feature-item p { font-size: 16px; color: #666; }
.categories-section { padding: 80px 0; background-color: var(--secondary-color); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.category-card { position: relative; overflow: hidden; border-radius: 15px; height: 400px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover img { transform: scale(1.1); }
.category-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(13, 44, 75, 0.9), transparent); display: flex; align-items: flex-end; padding: 30px; }
.category-overlay h3 { color: var(--light-text-color); font-size: 28px; margin: 0; }
.testimonials-section { padding: 100px 0; }
.testimonial-card { background-color: var(--secondary-color); padding: 40px; border-radius: 15px; text-align: center; max-width: 700px; margin: 0 auto; box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-left: 5px solid var(--accent-color); }
.testimonial-card .quote { font-size: 22px; font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-card .author { font-size: 18px; font-weight: bold; color: var(--primary-color); }


/* ----- تعديلات الموبايل ----- */
@media (max-width: 768px) {
    body { padding-bottom: 70px; /* مساحة للشريط السفلي */ }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* إخفاء القائمة خارج الشاشة */
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    .nav-links.active { right: 0; /* إظهار القائمة */ }
    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 22px; }

    .menu-toggle {
        display: block; /* إظهار أيقونة القائمة */
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        z-index: 1001; /* فوق كل العناصر */
    }
    .menu-toggle .fa-times { display: none; }
    .menu-toggle.active .fa-bars { display: none; }
    .menu-toggle.active .fa-times { display: block; }
    
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 18px; }
    
    .footer-grid {
        grid-template-columns: 1fr; /* ترتيب الفوتر عمودياً */
        text-align: center;
    }
    .footer-social a { margin: 0 10px; }
    
    .bottom-nav { display: flex; /* إظهاره في الموبايل */ }
}

/* --- الشريط السفلي للموبايل --- */
.bottom-nav {
    display: none; /* إخفاؤه على الشاشات الكبيرة */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}
.bottom-nav a {
    color: #888;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    transition: color 0.3s;
}
.bottom-nav a.active, .bottom-nav a:hover {
    color: var(--primary-color);
}
.bottom-nav a i {
    font-size: 22px;
    margin-bottom: 5px;
}
