/* --- Global Variables & Basic Setup --- */
:root {
    --primary-color: #0d2d4e; /* Dark Blue */
    --secondary-color: #3d7eac; /* Lighter Blue */
    --accent-color: #92b0c9; /* Light Accent Blue/Grey */
    --light-color: #f8f9fa; /* Off-white */
    --dark-color: #343a40; /* Dark Grey for text */
    --white-color: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    background-color: var(--white-color);
    scroll-behavior: smooth;
}

body.body-no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Header Section --- */
header {
    background: var(--white-color);
    color: var(--primary-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin: 0 15px;
}

header nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

#lang-switcher {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

#lang-switcher:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

#hamburger-btn {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002; /* Above the header content */
}

#hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Menu Overlay --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(13, 45, 78, 0.7), rgba(22, 65, 107, 0.7)), url('images/hero-background.jpg') no-repeat center center/cover;
    color: var(--white-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 20px;
    box-sizing: border-box;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Content Sections --- */
.content-section {
    padding: 5rem 0;
    text-align: center;
}

.content-section h2, .content-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.content-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
    font-size: 1.1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #777;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.bg-light {
    background: var(--light-color);
}

/* --- Services & Vision Section Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    text-align: right;
}

html[dir="ltr"] .services-grid {
    text-align: left;
}

.service-item, .vision-box {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover, .vision-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-item .service-icon {
    margin-bottom: 1rem;
}
.service-item .service-icon img {
    height: 50px;
    width: 50px;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    height: auto;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
    margin: 0 !important;
    overflow: hidden;
}

.service-item:hover .service-description {
    max-height: 200px;
    opacity: 1;
}

.vision-box {
    border-right: 5px solid var(--secondary-color);
    border-left: none;
}
html[dir="ltr"] .vision-box {
    border-left: 5px solid var(--secondary-color);
    border-right: none;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
    text-align: right;
}

html[dir="ltr"] .contact-wrapper {
    text-align: left;
}

.contact-info, .map-container {
    flex: 1;
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.map-container {
     padding: 0;
     overflow: hidden;
     min-height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 15px;
}

.contact-info-item .icon-placeholder {
    flex-shrink: 0;
}

.contact-info-item .icon-placeholder img {
    height: 24px;
    width: 24px;
}

.contact-info-item p {
    margin: 0;
    text-align: inherit;
}
.contact-info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-link {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 0;
}

/* --- Responsive Design --- */

@media(max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    #hero h2 {
        font-size: 2.2rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    #hamburger-btn {
        display: block;
    }

    .header-right {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        z-index: 1001;
        transition: transform 0.4s ease-in-out;
        transform: translateX(100%);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding-top: 100px;
        box-sizing: border-box;
    }

    .header-right.active {
        transform: translateX(0);
    }

    header nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    #hamburger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    #hamburger-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

