:root {
    --primary: #3d7616;
    --accent: #FDB813;
    --secondary: #1A1A1A;
    --text-dark: #333333;
    --bg-light: #FFFFFF;
    --bg-gray: #F9F9F9;
    --border: #EEEEEE;
    --container-padding: 60px;
    --transition: all 0.3s ease;
}

html { 
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- NAVBAR (Desktop First) --- */
.navbar {
    background: var(--bg-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-link img { 
    height: 100px;
    transition: var(--transition);
}

.logo-link .brand-name {
    font-weight: 900;
    font-size: 1rem;
    color: var(--secondary);
    letter-spacing: 2px;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }

#langToggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 800;
}

/* --- HERO --- */
.hero-whc {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1509391366360-5154316db04b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: white;
}

.hero-whc h1 { 
    font-size: 3.5rem; 
    font-weight: 900; 
    margin-bottom: 25px; 
}

/* --- SECTIONS --- */
.section-padding { padding: 100px 0; }

.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-size: 2.8rem; font-weight: 900; position: relative; padding-bottom: 20px; }
.section-title h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 5px; background: var(--primary);
}

/* --- GRIDS --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-card {
    background: white; padding: 45px 35px; border: 1px solid var(--border);
    transition: var(--transition); text-align: center;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.service-card i { font-size: 3.5rem; color: var(--primary); margin-bottom: 25px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-item {
    aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--border);
    background-color: #f8f9fa; display: flex; align-items: center; justify-content: center;
}
.portfolio-item img { max-width: 100%; max-height: 100%; object-fit: contain; transition: var(--transition); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }

/* --- MOBILE RESPONSIVE (Overrides) --- */
@media (max-width: 1024px) {
    :root { --container-padding: 20px; }
    
    .navbar { padding: 15px 0; }
    .menu-toggle { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: white; flex-direction: column;
        padding: 40px 20px; gap: 25px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        text-align: center;
    }
    
    .nav-links.active { display: flex; }
    
    .logo-link img { height: 70px; }
    
    .hero-whc h1 { font-size: 2.2rem; }
    
    .services-grid, .portfolio-grid, .contact-grid, .footer-grid, .about-stats {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

/* --- UTILS --- */
[dir="rtl"] { text-align: right; }
[dir="ltr"] { text-align: left; }

.whatsapp-float {
    position: fixed; bottom: 40px; right: 40px; width: 70px; height: 70px;
    background: #25D366; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; z-index: 2000; box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.footer-v9 { background: #111111; color: #DDDDDD; padding: 100px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; }

/* Modal Fix V10 */
.modal {
    display: none; position: fixed; z-index: 9999 !important;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px); overflow-y: auto;
}
.modal-content {
    background-color: var(--bg-light); margin: 5% auto; padding: 40px;
    border-radius: 12px; width: 90%; max-width: 850px; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; top: 20px; right: 30px; color: var(--secondary); font-size: 40px; font-weight: bold; cursor: pointer; }
.modal-img { width: 100%; height: 400px; object-fit: cover; border-radius: 10px; margin-bottom: 25px; }
