* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --light-green: #7CB342;
    --dark-green: #388E3C;
    --light-blue: #64B5F6;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    width: 100%;
    direction: ltr; /* Header always LTR layout */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    direction: ltr; /* Container always LTR */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row; /* Logo first, then name - always LTR */
    direction: ltr; /* Always LTR */
}

.logo {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row-reverse; /* Default RTL order for Arabic */
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--dark-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--dark-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    z-index: 1001;
    order: -1; /* Always on the left */
}

.lang-toggle {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--dark-green) 100%);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(56, 142, 60, 0.3);
    padding: 0;
}

.lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(56, 142, 60, 0.4);
}

.globe-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -40px; /* Move more to the right to be fully visible */
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1002;
    pointer-events: none;
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    color: var(--dark-green);
}

.lang-option.active {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--dark-green) 100%);
    color: var(--white);
}

.lang-option.active:hover {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--light-green) 100%);
}

.flag {
    font-size: 20px;
}

/* Hero Section */
.hero {
    background-image: url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--dark-green) 100%);
    opacity: 0.5;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    position: relative;
    padding: 60px 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary {
    background: var(--white);
    color: var(--dark-green);
}

.btn-primary:hover {
    background: var(--light-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(to left, var(--light-green), var(--light-blue));
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.3);
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--dark-green) 100%);
    padding: 10px 10px;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--light-green);
    border-left: 1px solid rgba(124, 179, 66, 0.1);
    border-right: 1px solid rgba(124, 179, 66, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border-top-color: var(--light-blue);
    border-left-color: var(--light-blue);
    border-right-color: var(--light-blue);
}

.service-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 35px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 179, 66, 0.1);
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 2.2rem;
    text-align: center;
}

.contact-details h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin: 0;
}

.contact-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-details p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.phone-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 10px 0;
}

.phone-item:last-child {
    margin-bottom: 0;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-link:hover {
    transform: scale(1.1);
}

.whatsapp-icon-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.phone-number {
    direction: ltr;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-green) !important;
    margin: 0;
}

.email-link {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.email-link:hover {
    color: var(--light-blue);
    text-decoration: underline;
    transform: translateX(-3px);
}

/* Map Section */
.map-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    padding: 60px 0;
}

.map-header {
    text-align: center;
    margin-bottom: 40px;
}

.map-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.map-address {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(124, 179, 66, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, #2E7D32 100%);
    color: var(--white);
    padding: 50px 0 30px;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    direction: ltr;
}

.footer-logo {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-text {
    text-align: center;
    flex: 1;
}

.footer-text p {
    margin-bottom: 8px;
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.8;
}

.footer-text p:first-child {
    font-weight: 600;
    font-size: 1.05rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: none;
    color: var(--white);
    border-radius: 0;
    box-shadow: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    font-weight: 600;
    font-size: 16px;
    overflow: visible;
    border: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: none;
    background: none;
}

.whatsapp-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 0;
    flex-shrink: 0;
    display: block;
    overflow: visible;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.whatsapp-text {
    white-space: nowrap;
    color: var(--dark-green);
    background: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-container {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-end; /* Align to the right */
        align-items: center;
        order: 1;
        flex: 1;
        margin-left: auto; /* Push to the right */
    }

    .logo {
        height: 60px;
    }

    .company-name {
        font-size: 1.2rem;
    }
    
    .language-switcher {
        order: 1; /* Same row as logo */
        margin-left: 20px; /* Space between logo/name and language switcher */
        margin-right: 0; /* No margin on the right */
    }

    .nav {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        order: 2;
        width: 100%;
        margin-top: 10px;
    }
    
    .lang-dropdown {
        right: auto;
        left: 0;
    }

    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        min-height: 70vh;
        width: 100%;
        left: 0;
        right: 0;
    }

    .hero::before {
        opacity: 0.4;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.05);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .map-title {
        font-size: 2rem;
    }

    .map-address {
        font-size: 1rem;
    }

    .map-container iframe {
        height: 300px;
    }

    .about-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }

    .about-content {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .about {
        padding-left: 0;
        padding-right: 0;
    }

    .about .container {
        padding-left: 10px;
        padding-right: 10px;
        margin: 0 auto;
    }

    .services-grid,
    .products-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .whatsapp-float {
        padding: 0;
        bottom: 20px;
        left: 10px;
        font-size: 14px;
        max-width: 60px;
        max-height: 60px;
    }

    .whatsapp-image {
        max-width: 50px;
        max-height: 50px;
    }

    .whatsapp-image {
        width: 50px;
        height: 50px;
    }

    .whatsapp-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: row;
        gap: 8px;
    }

    .logo {
        height: 50px;
    }

    .company-name {
        font-size: 0.9rem;
    }

    .hero {
        min-height: 60vh;
        background-size: cover;
        background-position: center center;
        width: 100%;
        left: 0;
        right: 0;
    }

    .hero::before {
        opacity: 0.35;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-features {
        max-width: 100%;
        padding: 0;
        margin: 0 auto;
        width: calc(100% - 40px);
    }

    .about .container {
        padding-left: 10px;
        padding-right: 10px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .about-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .map-title {
        font-size: 1.8rem;
    }

    .map-container iframe {
        height: 250px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Products Section */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--light-green);
    border-top: 1px solid rgba(124, 179, 66, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border-left-color: var(--light-blue);
    border-top-color: var(--light-blue);
    background: linear-gradient(135deg, var(--light-green) 0%, var(--dark-green) 100%);
    color: var(--white);
}

.product-card:hover h3,
.product-card:hover p {
    color: var(--white);
}

.product-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.product-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Why Us Section */
.why-us {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--dark-green) 100%);
    color: var(--white);
}

.why-us .section-title {
    color: var(--white);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.why-us-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-us-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.why-us-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.why-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.why-us-card p {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--white);
    line-height: 1.6;
}


