:root {
    --primary: #2c6e49;
    --secondary: #4c956c;
    --accent: #d68c45;
    --dark: #333333;
    --light: #f8f9fa;
    --medium: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light);
    transition: color 0.3s ease;
}

header.scrolled .logo h1 {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

header.scrolled .nav-links a {
    color: var(--dark);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--light);
    font-size: 1.5rem;
}

header.scrolled .hamburger {
    color: var(--dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light);
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--light);
    border: none;
}

.btn-primary:hover {
    background-color: #c07a35;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Services Section */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark);
    opacity: 0.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: var(--medium);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-content p {
    font-size: 0.95rem;
    color: var(--dark);
    opacity: 0.8;
}

/* About Section */
.about {
    background-color: var(--medium);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.credential {
    display: flex;
    align-items: center;
    background-color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.credential i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--primary);
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--dark);
    opacity: 0.8;
}

.map-container {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        background-color: var(--light);
        width: 100%;
        top: 80px;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .nav-links a {
        color: var(--dark);
    }

    .hamburger {
        display: block;
    }

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

    .section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 0 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* For RTL support (Arabic) */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .navbar, 
body.rtl .nav-links,
body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .service-card,
body.rtl .contact-item,
body.rtl .footer-column {
    text-align: right;
}





.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    direction: ltr !important; /* Always force LTR direction for language switcher */
}

body.rtl .language-switcher {
    margin-right: 20px;
    margin-left: 0;
}

.language-switcher-container {
    order: 999; /* Ensure it stays at the end in both LTR and RTL modes */
}









/* Special handling for language switcher */
.language-switcher-container {
    display: flex;
    margin-left: 20px;
    order: 999; /* Ensure it stays at the end in both LTR and RTL modes */
}

body.rtl .language-switcher-container {
    margin-right: 20px;
    margin-left: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    direction: ltr !important; /* Always force LTR direction for language switcher */
}

.language-switcher * {
    direction: ltr !important; /* Ensure all child elements maintain LTR */
}





.logo {
    display: flex;
    align-items: center;
    direction: ltr !important; /* Force logo direction to always be LTR */
  }
  
  body.rtl .logo {
    /* In RTL mode, ensure the logo container maintains its position */
    margin-right: 0;
    margin-left: auto;
  }


  body.rtl .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  body.rtl .nav-links {
    margin-left: 0;
    margin-right: 20px;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    gap: 20px; /* Ensure consistent spacing between nav items */
  }
  
  body.rtl .nav-links li {
    margin-left: 0;
    margin-right: 20px;
  }
  
  body.rtl .nav-links li:last-child {
    margin-right: 0;
  }
  
  /* Ensure the logo has proper spacing */
  body.rtl .logo {
    margin-right: 0;
    margin-left: 20px;
  }
  
  /* Ensure hamburger menu has proper spacing */
  body.rtl .hamburger {
    margin-left: 0;
    margin-right: 20px;
  }
  
  /* Additional fix to ensure all elements maintain their spacing */
  body.rtl #header .container {
    display: flex;
    justify-content: space-between;
  }


  /* Fix for logo spacing in RTL mode */
body.rtl .logo {
    margin-right: 0;
    margin-left: 40px; /* Add more space between logo and navigation */
  }
  
  /* Ensure the navbar has proper justification */
  body.rtl .navbar {
    justify-content: flex-start; /* Align items to start rather than space-between */
    gap: 110px; /* Add significant gap between main elements */
  }
  
  /* Make sure nav links as a group are properly spaced */
  body.rtl .nav-links {
    margin-right: auto; /* Push to the right side in RTL */
    margin-left: 40px; /* Add space between logo and first nav item */
  }