:root {
    /* Academic/Professional Palette */
    --primary-color: #1a365d;
    /* Deep Navy - Trust, Authority */
    --secondary-color: #718096;
    /* Cool Grey - Professionalism */
    --accent-color: #c5a065;
    /* Muted Gold - Excellence */
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;

    /* Typography */
    --font-heading: 'Merriweather', serif;
    /* Academic feel */
    --font-body: 'Lato', sans-serif;
    /* Clean, modern body */
    --font-arabic: 'Cairo', sans-serif;

    --container-width: 1100px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    background-image: url('assets/pattern_bg.png');
    background-repeat: repeat;
    background-blend-mode: overlay;
    background-attachment: fixed;
    /* Parallax-like feel */
    color: var(--text-dark);
    line-height: 1.6;
}

/* RTL Support Override */
html[dir="rtl"] body {
    font-family: var(--font-arabic);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    font-family: var(--font-arabic);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

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

.top-links a {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    /* Smaller padding */
    border-radius: 20px;
    color: var(--white);
    font-size: 0.8rem;
    /* Slightly smaller text */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    /* Prevent wrapping */
}

.top-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Header */
.main-header {
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.95);
    /* Slight transparency */
    backdrop-filter: blur(10px);
    position: relative;
    /* top: 0; */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-area span {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.lang-btn {
    padding: 6px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    /* Fallback */
    background-image: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.95)), url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--white);
    /* Text white on dark bg */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--white);
    /* White text for hero */
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 550px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--accent-color);
    /* Gold accent for dark bg */
    color: var(--white);
    font-weight: 700;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #b08d55;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-image img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    /* No filter needed for hero image on dark bg */
}

/* Section Styling */
.section {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-head {
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.section-head h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    display: inline-block;
}

.section-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    /* Align left for LTR, check RTL override */
    width: 100px;
    height: 2px;
    background-color: var(--accent-color);
}

html[dir="rtl"] .section-head::after {
    right: 0;
    left: auto;
}

/* Grid Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    /* Slight transparency */
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: transform 0.2s;
    backdrop-filter: blur(5px);
    text-align: center;
    /* Centered content */
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    background: #fff;
}

.card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

/* List Style Services */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.service-item::before {
    content: '\f058';
    /* FontAwesome Check Circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

html[dir="rtl"] .service-item::before {
    margin-right: 0;
    margin-left: 15px;
}

/* Contact Section */
.contact-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

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

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-row i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

/* Footer */
footer {
    background-color: #152c4d;
    /* Darker Navy */
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    background-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

html[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 30px;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .hero-grid,
    .services-list,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .nav-menu {
        display: none;
    }
}