/* ============================================= */
/* GLOBAL STYLES & VARIABLES */
/* ============================================= */
:root {
    --primary-color: #0a2d4d; /* Deep Blue */
    --accent-color: #e85d04;  /* Orange/Gold Accent */
    --text-color: #333;
    --background-light: #f9f9f9;
    --background-white: #ffffff;
    --border-color: #ddd;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: 'Poppins', 'Cairo', sans-serif; line-height: 1.7; color: var(--text-color); background-color: var(--background-white); }
h1, h2, h3 { font-weight: 700; color: var(--primary-color); margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }
hr { border: 0; height: 1px; background: var(--border-color); margin: 3rem 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
main { transition: opacity 0.3s ease-in-out; }
main.fade-out { opacity: 0; }
section { padding: 6rem 0; }
section:first-of-type { padding-top: calc(var(--header-height) + 4rem); } /* Add padding for content below fixed header */
.content-section-colored { background-color: var(--background-light); }

/* ============================================= */
/* HEADER & NAVIGATION */
/* ============================================= */
#main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); height: var(--header-height); }
#main-header nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.5rem; color: var(--primary-color); margin: 0; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1rem; }
.nav-links a { color: var(--primary-color); font-weight: 600; padding: 0.5rem; position: relative; }
/* Active Nav Link Style */
.nav-links a.active, .nav-links a:hover { color: var(--accent-color); }
#lang-btn { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 0.4rem 0.8rem; border-radius: 20px; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 600; transition: all 0.3s ease; }
#lang-btn:hover { background-color: var(--primary-color); color: white; }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: white; list-style: none; padding: 0.5rem 0; margin: 0; border-radius: 5px; box-shadow: var(--box-shadow); min-width: 180px; z-index: 1001; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 0.75rem 1.5rem; color: var(--primary-color); white-space: nowrap; }
.dropdown-menu li a:hover { background-color: var(--background-light); color: var(--accent-color); }

/* Hamburger Menu */
#hamburger-menu { display: none; cursor: pointer; }
.line { width: 30px; height: 3px; background: var(--primary-color); margin: 5px; transition: all 0.3s ease-in-out; }

/* ============================================= */
/* HERO SECTION (Homepage) */
/* ============================================= */
#hero { padding: 0; display: flex; align-items: center; justify-content: center; text-align: center; height: 100vh; color: white; background: linear-gradient(rgba(10, 45, 77, 0.7), rgba(10, 45, 77, 0.7)), url('https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?q=80&w=1980') no-repeat center center/cover; }
.hero-content { max-width: 800px; padding: 0 1rem; }
.hero-title { font-size: 3.5rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.hero-slogan { font-size: 1.4rem; font-weight: 400; margin-bottom: 2rem; }
.cta-button { display: inline-block; background-color: var(--accent-color); color: white; padding: 1rem 2.5rem; border-radius: 50px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: background-color 0.3s ease, transform 0.3s ease; }
.cta-button:hover { background-color: #d05204; transform: translateY(-3px); color: white; }

/* ============================================= */
/* SERVICE PAGES: HEADER & CONTENT */
/* ============================================= */
.page-header { background-color: var(--primary-color); color: white; text-align: center; padding: 4rem 1rem; }
.page-header h1 { color: white; font-size: 2.8rem; }
.service-content { padding: 4rem 0; }
.service-content .intro { font-size: 1.2rem; text-align: center; max-width: 900px; margin: 0 auto 3rem auto; }
.service-content h2 { text-align: center; margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-bottom: 4rem; }
.feature h3 { color: var(--accent-color); }
.why-us-section { background-color: var(--background-light); padding: 4rem 2rem; border-radius: 10px; margin-bottom: 4rem; }
.why-us-section .reasons-list { list-style-position: inside; }
.cta-section { text-align: center; }
.cta-section h2 { font-size: 2rem; }
.cta-section .cta-button { margin-top: 1rem; }

/* ============================================= */
/* SERVICES CARDS (Homepage) */
/* ============================================= */
a.service-card-link { text-decoration: none; color: inherit; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.service-card { height: 100%; background: var(--background-white); padding: 2.5rem 2rem; border-radius: 10px; box-shadow: var(--box-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.service-icon { color: var(--accent-color); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.5rem; }

/* ============================================= */
/* TESTIMONIALS SLIDER (Homepage) */
/* ============================================= */
.testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.slider-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
.slide { flex: 1 0 100%; padding: 0 1rem; }
.testimonial-card { background-color: white; padding: 2.5rem; border-radius: 10px; text-align: center; box-shadow: var(--box-shadow); border-left: 5px solid var(--accent-color); min-height: 250px; display: flex; flex-direction: column; justify-content: center; }
.testimonial-card blockquote { font-size: 1.2rem; font-style: italic; margin-bottom: 1.5rem; border: none; }
.testimonial-card cite { font-weight: 600; color: var(--primary-color); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; font-size: 2rem; color: var(--primary-color); cursor: pointer; padding: 0.5rem; transition: color 0.3s ease; z-index: 10; }
.slider-btn:hover { color: var(--accent-color); }
.prev-btn { left: -10px; }
.next-btn { right: -10px; }
.slider-dots { text-align: center; margin-top: 1.5rem; }
.dot { height: 12px; width: 12px; margin: 0 5px; background-color: #ccc; border-radius: 50%; display: inline-block; cursor: pointer; transition: background-color 0.3s ease; }
.dot.active { background-color: var(--accent-color); }

/* Other Sections (Contact, Footer, etc.) remain largely the same */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.contact-form-container input, .contact-form-container textarea { width: 100%; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--border-color); border-radius: 5px; font-family: 'Poppins', 'Cairo', sans-serif; font-size: 1rem; }
footer { background-color: var(--primary-color); color: white; padding: 2rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }

/* ============================================= */
/* RTL STYLES */
/* ============================================= */
html[dir="rtl"] { text-align: right; }
html[dir="rtl"] .dropdown-menu { left: auto; right: 0; }
html[dir="rtl"] .testimonial-card { border-left: none; border-right: 5px solid var(--accent-color); }

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */
@media (max-width: 992px) {
    h2 { font-size: 2rem; }
    #hamburger-menu { display: block; z-index: 1002; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { max-height: 500px; }
    .nav-links li { width: 100%; text-align: left; }
    .nav-links li a { display: block; padding: 1rem 2rem; }
    .dropdown > a { display: flex; justify-content: space-between; align-items: center; }
    .dropdown-menu { display: block; position: static; box-shadow: none; border-radius: 0; min-width: 100%; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .dropdown:hover .dropdown-menu { display: block; }
    .dropdown.open .dropdown-menu { max-height: 500px; }
    .dropdown-menu li a { padding-left: 3rem; }
    #hamburger-menu.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    #hamburger-menu.toggle .line2 { opacity: 0; }
    #hamburger-menu.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    .services-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .page-header h1 { font-size: 2.2rem; }
    .footer-content { flex-direction: column; text-align: center; }
}