/* Import a modern font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Modern CSS Variable Definitions */
:root {
    --primary-color: #22b03c; /* A more vibrant, modern blue */
    --primary-hover-color: #136d93;
    --secondary-color: #f7f9fc;
    --text-color: #2c3e50;
    --subtle-text-color: #576c81;
    --white-color: #ffffff;
    --border-color: #eaecf2;
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] { text-align: right; }
[dir="ltr"] { text-align: left; }

.container {
    max-width: 1140px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

header {
    background: var(--white-color);
    padding: 0.5rem 0; /* Reduced padding for a shorter header */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px; /* Set a minimum height for the header */
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.main-nav {
    display: none; /* Hidden on mobile by default */
    flex-direction: column;
    width: 250px;
    background-color: var(--white-color);
    position: absolute;
    top: 75px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

[dir="rtl"] .main-nav { left: 20px; right: auto; }
[dir="ltr"] .main-nav { right: 20px; left: auto; }

.main-nav.active {
    display: flex; /* Shown when hamburger is clicked */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    width: 100%;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s, background-color 0.3s;
    padding: 0.9rem 1.5rem;
    display: block;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.main-nav .menu-divider {
    padding: 0.2rem 1.5rem;
}

.main-nav .menu-divider hr {
    border: none;
    border-top: 1px solid var(--border-color);
}

.hamburger {
    display: block;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger .line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    margin: 6px 0;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-switcher-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.lang-switcher-btn .fa-globe {
    font-size: 1.1rem;
}

/* Styles for the new header button */
.btn-header {
    display: none; /* Hidden on mobile by default */
}

.hero {
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center center;
    color: var(--white-color);
    padding: 9rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 30, 60, 0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}
.btn:hover {
    background: var(--primary-hover-color);
    transform: translateY(-2px);
}

.section { padding: 5rem 0; }
.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4rem;
    font-family: var(--heading-font);
    color: var(--text-color);
}

#contact.section { padding-bottom: 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.07);
}
.service-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.service-card p { color: var(--subtle-text-color); }

#about-summary, #about { background: var(--secondary-color); }

.about-summary-text, #about > .container > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-summary-text {
    margin-bottom: 2rem;
    color: var(--subtle-text-color);
}

.about-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.about-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.07);
}

.about-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.about-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--subtle-text-color);
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info { max-width: 100%; }
.contact-info p {
     margin-bottom: 1.5rem;
     font-size: 1.25rem;
     justify-content: start;
}
.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: none;
}
.contact-info .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}
[dir="rtl"] .contact-info .icon { margin-left: 15px; }
[dir="ltr"] .contact-info .icon { margin-right: 15px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 104, 255, 0.2);
}
.contact-form .btn { width: 100%; }

footer {
    background: #1c2833;
    color: #aeb6bf;
    text-align: center;
    padding: 3rem 0;
}
.footer-social-links a {
    color: var(--white-color);
    margin: 0 15px;
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}
footer p {
    margin-top: 1.5rem;
    font-size: 1rem;
}

/* --- Responsive Media Queries --- */

@media (min-width: 993px) {
    header .container {
        display: grid;
        grid-template-columns: auto 1fr auto; /* logo | nav | right-controls */
        align-items: center;
        gap: 2rem;
    }

    .main-nav {
        display: flex;
        justify-content: center;
        position: static;
        width: auto;
        border: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
        flex-direction: row;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        width: auto;
        align-items: center;
        gap: 1.5rem;
    }

    .main-nav ul li a {
        padding: 0.2rem 0; /* Reduced padding for a shorter look */
    }

    .main-nav ul li a:hover {
        background-color: transparent;
        color: var(--primary-color);
    }

    .main-nav .menu-divider, .main-nav .btn-in-menu {
        display: none;
    }

    .hamburger {
        display: none;
    }
    
    .btn-header {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem; /* Matched to lang switcher */
        padding: 8px 12px; /* Matched to lang switcher */
        font-size: 16px; /* Matched to lang switcher */
        font-weight: 600; /* Matched to lang switcher */
        border: 1px solid var(--border-color); /* Matched to lang switcher */
        background-color: var(--primary-color); /* Override for green color */
        color: var(--white-color); /* Override for white text */
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .btn-header:hover {
        background-color: var(--primary-hover-color);
        border-color: var(--primary-hover-color);
    }
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { text-align: center; }
    .contact-info p { justify-content: center; }
    
    .btn-header {
        display: none; /* Hide desktop shop button on mobile */
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2.5rem; }
