@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap'); /* For Arabic */

:root {
    --primary: #172854;
    --accent: #f7aa1b;
    --bg-light: #ffffff;
    --bg-gray: #f4f6f9;
    --text-dark: #333333;
    --text-light: #666666;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Arabic RTL Support */
[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}
[dir="rtl"] .nav-drawer {
    right: auto;
    left: -100%;
}
[dir="rtl"] .nav-drawer.active {
    left: 0;
}
[dir="rtl"] .footer-col {
    text-align: right;
}

/* Typography */
h1, h2, h3, h4 { color: var(--primary); margin-bottom: 15px; }
p { color: var(--text-light); line-height: 1.6; margin-bottom: 15px; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--accent); }

/* Layout & Buttons */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 80px 0; }
.bg-gray { background-color: var(--bg-gray); }

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white !important;
    border-radius: 5px;
    font-weight: 500;
    border: 2px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}
.btn:hover {
    background-color: transparent;
    color: var(--primary) !important;
    transform: translateY(-3px);
}
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary) !important;
}
.btn-accent:hover {
    background-color: transparent;
    color: var(--accent) !important;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}
.logo { font-size: 24px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px;}
.logo img { height: 40px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-weight: 500; }
.nav-links a:hover { color: var(--accent); }

.lang-switch {
    background: var(--bg-gray);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}
.lang-switch:hover { background: var(--accent); color: white; }

.menu-toggle { 
    display: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: var(--primary);
}

/* Mobile Drawer */
.nav-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: var(--primary);
    padding: 80px 30px;
    transition: 0.4s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}
.nav-drawer.active { right: 0; }
.nav-drawer a { color: white; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.nav-drawer a:hover { color: var(--accent); padding-left: 10px; }
.close-drawer {
    position: absolute; top: 20px; right: 20px;
    font-size: 30px; color: white; cursor: pointer;
}
[dir="rtl"] .close-drawer { right: auto; left: 20px; }
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 998;
    display: none; opacity: 0; transition: 0.3s;
}
.overlay.active { display: block; opacity: 1; }

/* Home Sections */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(23, 40, 84, 0.8), rgba(23, 40, 84, 0.8)), url('../assets/office1.png') center/cover;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; padding-top: 80px;
}
.hero h1 { color: white; font-size: 3rem; margin-bottom: 20px; }
.hero p { color: #ddd; font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; }

.stats-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: center; }
.stat-card { padding: 40px 20px; background: white; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: var(--transition); }
.stat-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(23, 40, 84, 0.15); border-bottom: 4px solid var(--accent); }
.stat-card i { font-size: 40px; color: var(--accent); margin-bottom: 15px; }

.clipping-section {
    background: url('../assets/office1.png') center/cover fixed;
    position: relative; padding: 100px 0; color: white; text-align: center;
}
.clipping-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(23, 40, 84, 0.9); }
.clipping-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.clipping-content h2 { color: var(--accent); }
.clipping-content p { color: white; }

.gallery-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.gallery-img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; transition: var(--transition); }
.gallery-img:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); text-align: center; }
.service-card i { font-size: 40px; color: var(--primary); margin-bottom: 20px; transition: var(--transition); }
.service-card:hover { transform: translateY(-10px); background: var(--primary); color: white; }
.service-card:hover h3, .service-card:hover p, .service-card:hover i { color: white; }

/* Standard Internal Pages Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; align-items: center; }
.icon-list { list-style: none; }
.icon-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.icon-list i { color: var(--accent); font-size: 20px; }

/* Contact Page */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 20px; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.contact-item i { font-size: 24px; color: var(--accent); background: var(--primary); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* Footer */
footer { background: var(--primary); color: white; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--accent); margin-bottom: 20px; font-size: 20px; }
.footer-col p { color: #ccc; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #ccc; }
.footer-col ul a:hover { color: var(--accent); padding-left: 5px; }
[dir="rtl"] .footer-col ul a:hover { padding-left: 0; padding-right: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white; }
.social-links a:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #aaa; }

/* Scroll Animations */
.reveal-up { opacity: 0; transform: translateY(50px); transition: 0.8s all ease; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: 0.8s all ease; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: 0.8s all ease; }
.reveal-zoom { opacity: 0; transform: scale(0.9); transition: 0.8s all ease; }

.reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-zoom.active {
    opacity: 1; transform: translate(0) scale(1);
}

/* Delay modifiers for multiple elements */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media(max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; margin-left: 15px; }
    .hero h1 { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; }
}