/* ===== Root Variables ===== */
:root {
    --primary-blue: #1a4d7a;
    --secondary-yellow: #f4c430;
    --accent-white: #ffffff;
    --dark-blue: #0d3a5f;
    --light-blue: #2a6ba0;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
}

/* ===== General Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Poppins', 'Arial', sans-serif;
}

/* ===== Language Switcher ===== */
.language-switcher-nav {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px;
    border-radius: 25px;
    margin: 0;
}

.btn-lang {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--accent-white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-lang.active {
    background: var(--secondary-yellow);
    color: var(--primary-blue);
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary-yellow);
}

/* ===== Navigation ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.brand-title {
    color: var(--accent-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.navbar-brand:hover .brand-title {
    color: var(--secondary-yellow);
}

.navbar-nav .nav-link {
    color: var(--accent-white) !important;
    font-weight: 600;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-yellow);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-yellow) !important;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('11.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 76px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.85) 0%, rgba(13, 58, 95, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--accent-white);
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--secondary-yellow);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background: var(--secondary-yellow);
    color: var(--primary-blue);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.btn-primary:hover {
    background: #e6b428;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4);
    color: var(--primary-blue);
}

/* ===== Section Styles ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-yellow), var(--primary-blue));
    margin: 0 auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ===== About Section ===== */
.about-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.about-content {
    padding: 20px;
}

.about-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    padding-right: 20px;
}

.about-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--secondary-yellow);
    border-radius: 3px;
}

body[dir="ltr"] .about-title::before {
    right: auto;
    left: 0;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ===== Services Section ===== */
.services-section {
    padding: 80px 0;
    background: var(--accent-white);
}

.service-card {
    background: var(--accent-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-image {
    overflow: hidden;
    height: 300px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-light);
    line-height: 1.8;
    flex-grow: 1;
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.contact-info {
    background: var(--accent-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-yellow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-yellow);
    background: var(--primary-blue);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-yellow);
}

.contact-form {
    background: var(--accent-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(244, 196, 48, 0.25);
    outline: none;
}

/* ===== Map Section ===== */
.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--accent-white);
}

.footer-logo {
    height: 80px;
    width: auto;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-yellow);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--accent-white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-yellow);
    transform: translateX(5px);
}

body[dir="ltr"] .footer-links a:hover {
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-yellow);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .language-switcher-nav {
        margin-right: 0;
        margin-top: 10px;
        justify-content: center;
    }

    .language-switcher {
        background: rgba(255, 255, 255, 0.1);
    }

    .brand-title {
        font-size: 1rem;
    }

    .hero-section {
        background-attachment: scroll;
        min-height: 500px;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
    }

    .service-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 50px;
    }

    .navbar {
        padding: 10px 0;
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .navbar-brand {
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .brand-title {
        font-size: 0.8rem;
    }

    .logo-img {
        height: 45px;
    }
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Loading Animation ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

