:root {
    /* Corporate Colors */
    --primary: #1E88E5; /* Professional Blue */
    --primary-hover: #1565C0;
    --navy: #0B1F3A; /* Very Dark Blue for Headers/Footers */
    
    /* Layout Colors */
    --white-bg: #FFFFFF;
    --gray-bg: #F8F9FA;
    
    /* Text Colors */
    --text-dark: #121212;
    --text-body: #4A5568;
    --text-muted: #718096;

    /* Borders & Shadows */
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    
    /* UI properties */
    --radius: 8px; /* Slightly sharper corners for corporate look */
    --transition: all 0.3s ease-in-out;
    
    /* Font definitions */
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --font-family: var(--font-en);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
html[lang="ar"] { --font-family: var(--font-ar); direction: rtl; }

body {
    font-family: var(--font-family);
    background-color: var(--white-bg);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.white-bg { background-color: var(--white-bg); }
.gray-bg { background-color: var(--gray-bg); }
.navy-bg { background-color: var(--navy); }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.align-center { align-items: center; }

/* Spacing */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; display: block; width: fit-content; }
.mt-sm { margin-top: 1rem; }
.mt-med { margin-top: 2rem; }
.mt-large { margin-top: 4rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-large { margin-bottom: 3rem; }

/* Typography */
h1, h2, h3, h4, .dark-text { color: var(--text-dark); font-weight: 700; line-height: 1.3;}
.text-white { color: #FFFFFF !important; }
.font-bold { font-weight: 700!important; }
.color-primary { color: var(--primary); }

.section-badge {
    display: inline-block; padding: 0.4rem 1rem; border-radius: 50px;
    background: rgba(30, 136, 229, 0.1); color: var(--primary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.5px; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.lead-text { font-size: 1.1rem; color: var(--text-body); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; text-decoration: none;
    transition: var(--transition); cursor: pointer; border: none; font-family: inherit; font-size: 1rem;
}
.btn-large { padding: 1rem 2.5rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(30,136,229,0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,136,229,0.4); }
.btn-outline { background: transparent; color: var(--text-dark); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: transparent; }

.btn-text { background: transparent; border: none; color: white; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-family: inherit; font-size: 1rem; transition: var(--transition); padding: 0.5rem; }
.btn-text:hover { color: var(--primary); }


/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition); padding: 1rem 0; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.1); color: white;}
.navbar.scrolled { padding: 0.75rem 0; box-shadow: var(--shadow-md); background: rgba(11, 31, 58, 0.98); backdrop-filter: blur(10px); border-bottom: none;}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo img { height: 35px; display: block; }
#fallback-logo-text { font-size: 1.5rem; font-weight: 800; color: #FFFFFF; display: none; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: #f8f9fa; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--white-bg); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; z-index: 999; transform: translateY(-100%); transition: transform 0.4s ease; box-shadow: var(--shadow-lg); }
.mobile-menu.active { transform: translateY(0); }
.mobile-link { color: var(--text-dark); text-decoration: none; font-size: 1.25rem; font-weight: 600; }
.mobile-link:hover { color: var(--primary); }

/* Hero Section */
.hero { padding-top: 140px; min-height: 90vh; display: flex; align-items: center;}
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.25rem; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.2rem); color: var(--text-body); max-width: 500px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; }
.corporate-img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-md { box-shadow: var(--shadow-md); }

/* Tech Logos */
.logo-bar { padding: 3rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-label { font-size: 0.8rem; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 700;}
.trusted-logos { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; font-size: 2.5rem; color: #cbd5e0; }

/* About / Corporate Boxes */
.corp-box { padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); }
.corp-box:last-child { border-bottom: none; }
.corp-icon { font-size: 1.75rem; color: var(--primary); }

/* Services (Classic Cards) */
.service-card {
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.card-icon {
    width: 60px; height: 60px; background: rgba(30, 136, 229, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary);
}

/* Why Choose Us Check List */
.features-check-list { list-style: none; }
.features-check-list li { font-size: 1.1rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 1rem; color: var(--text-body); }
.stat-box { background: var(--white-bg); border: 1px solid var(--primary); border-radius: var(--radius); padding: 4rem 2rem; position: relative; border-bottom: 6px solid var(--primary); }
.huge-stats { font-size: clamp(4rem, 8vw, 5rem); line-height: 1; letter-spacing: -2px; }

/* Approach Cards */
.process-grid .process-card {
    background: var(--white-bg); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.process-num { font-size: 3rem; font-weight: 800; color: rgba(30, 136, 229, 0.1); margin-bottom: 1rem; line-height: 1; }

/* Portfolio Tags and Layout */
.industries-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.corp-tag { padding: 0.5rem 1.25rem; background: var(--white-bg); border: 1px solid var(--border-color); border-radius: 50px; font-size: 0.9rem; color: var(--text-body); font-weight: 600; }
.project-box { background: var(--gray-bg); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border-color); }

/* Footer */
.footer { padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-text { color: #a0aec0; }
.contact-line { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: #e2e8f0; }
.footer-link { color: inherit; text-decoration: none; transition: var(--transition);}
.footer-link:hover { color: var(--white-bg); }
.loc-country { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 0.25rem; letter-spacing: 1px;}
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: #718096; font-size: 0.85rem; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments */
@media (max-width: 968px) {
    .split-layout { grid-template-columns: 1fr; gap: 3rem; }
    .hero { min-height: auto; padding-bottom: 4rem; text-align: center; }
    .nav-links, .nav-actions > .btn { display: none; }
    .mobile-menu-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; }
    .hero-title { font-size: 2.2rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
