/* General Styling */
:root {
    --primary-color: #27ae60;
    --secondary-color: #2c3e50;
    --background-color: #ffffff;
    --light-bg-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --font-family-ar: 'Cairo', sans-serif;
    --font-family-en: 'Poppins', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family-ar);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    text-align: right;
}

html[lang="en"] body {
    font-family: var(--font-family-en);
    text-align: left;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--secondary-color);
    font-weight: 700;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; }
.text-center { text-align: center; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover { color: #2ecc71; }

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    position: sticky; top: 0; z-index: 1000;
    padding: 1rem 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
html[lang="en"] .nav-links { padding-left: 0; }
.nav-link { font-weight: 600; color: var(--secondary-color); padding-bottom: 5px; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.controls { display: flex; align-items: center; gap: 1rem; }
#lang-switcher {
    background: none; border: 1px solid var(--primary-color);
    color: var(--primary-color); padding: 0.4rem 0.8rem;
    border-radius: 5px; cursor: pointer; font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}
#lang-switcher:hover { background-color: var(--primary-color); color: var(--white); }
.menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/hero.jpg') center/cover no-repeat;
    color: var(--white); text-align: center;
    padding: 100px 0; display: flex; align-items: center; justify-content: center; min-height: 80vh;
}
.hero-section h1 { color: var(--white); }
.hero-section p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; margin-inline: auto; }
.cta-button {
    background-color: var(--primary-color); color: var(--white);
    padding: 1rem 2.5rem; border-radius: 50px;
    font-weight: 700; font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}
.cta-button:hover { background-color: #2ecc71; transform: translateY(-3px); }
.cta-button.secondary { background-color: var(--secondary-color); }
.cta-button.secondary:hover { background-color: #34495e; }

/* Content Sections */
.content-section { padding: 80px 0; }

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Featured Product Section */
.featured-product-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}
.featured-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.featured-text, .featured-image {
    flex: 1;
    min-width: 300px;
}
.featured-text h2 { text-align: inherit; }
.featured-text h3 { color: var(--primary-color); margin-top: -1.5rem; margin-bottom: 1rem; }
.featured-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
html[lang="ar"] .featured-image { order: -1; }

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--white);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--white); border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card h3 { padding: 1.5rem; margin: 0; }

/* Testimonials Section */
#testimonials { background-color: var(--light-bg-color); }
.testimonial { max-width: 700px; margin: 0 auto; }
.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}
.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* Contact Page specific styles */
.contact-page { text-align: center; padding: 60px 0; }
.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; margin: 3rem 0;
}
.contact-card { padding: 2rem; background-color: var(--light-bg-color); border-radius: 8px; }
.contact-card .social-links a { margin: 0 10px; font-weight: 600; font-size: 1.1rem; }
.map-container { border-radius: 8px; overflow: hidden; border: 3px solid var(--light-bg-color); }


/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--light-bg-color);
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0;
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 1rem 0; gap: 0;
    }
    .nav-links.active { display: flex; }
    .nav-links li { text-align: center; }
    .nav-link { display: block; padding: 1rem; border-bottom: 1px solid #eee; }
    .nav-link:hover { background-color: #f8f8f8; border-bottom-color: #f8f8f8; }
    .menu-toggle { display: block; }

    html[lang="ar"] .featured-image { order: 0; }
    .featured-text { text-align: center; }
    .featured-content {
        flex-direction: column;
    }
}