/* --- COLOR PALETTE & VARIABLES --- */
:root {
    --bg-main: #ffffff;      /* Clean white background */
    --bg-card: #f8f9fa;      /* Light gray card background */
    --bg-card-hover: #f0f2f4; /* Slightly darker for hover states */
    --text-primary: #1a3d2e; /* Dark elegant green for headings */
    --text-secondary: #4a6b5d; /* Muted green for body text */
    --accent: #1a3d2e;       /* Dark green accent */
    --accent-light: #2a5c45; /* Slightly lighter green */
    --accent-hover: #0f2a1f; /* Darker green for hovers */
    --accent-glow: rgba(26, 61, 46, 0.1); /* Subtle green glow */
    --border-color: #d1d9d5; /* Light green-gray border */
    --border-hover: #1a3d2e; /* Dark green border on hover */
}

/* RESET & BASICS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 20px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
}

.logo img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}

/* Shrunk navbar on scroll */
.navbar.scrolled {
    padding: 10px 20px;
}

.navbar.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    box-shadow: 0 4px 20px rgba(26, 61, 46, 0.25);
    transform: translateY(-1px);
}

/* Nav right section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.lang-btn svg {
    flex-shrink: 0;
}

.lang-btn .chevron {
    transition: transform 0.3s;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    min-width: 120px;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.lang-option:hover {
    background-color: var(--bg-card);
    color: var(--accent);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO SECTION */
.hero {
    padding: 180px 20px 120px;
    text-align: left;
    background: radial-gradient(ellipse at 20% 50%, rgba(26, 61, 46, 0.04) 0%, transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--accent);
    font-weight: 700;
    max-width: 700px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* MAIN BUTTON DESIGN */
.cta-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    box-shadow: 0 6px 25px rgba(26, 61, 46, 0.25);
    transform: translateY(-2px);
}

/* MISSION SECTION */
.mission {
    padding: 100px 20px;
    background-color: var(--bg-card);
}

.mission h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.mission-text .mission-lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.mission-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* PRODUCTS SECTION */
.products {
    padding: 100px 20px;
}

.products h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.product-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card) 100%);
    border-radius: 16px;
    padding: 60px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.product-info h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.product-tagline {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.product-highlights {
    list-style: none;
    margin-bottom: 40px;
}

.product-highlights li {
    color: var(--text-secondary);
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.product-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
}

.product-highlights li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

/* FEATURES SECTION */
.features {
    padding: 100px 20px;
    background-color: var(--bg-card);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 20px var(--accent-glow);
    background: #ffffff;
}

.feature-icon {
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* HOW IT WORKS SECTION */
.how-it-works {
    padding: 100px 20px;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px var(--accent-glow);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.step h3 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-arrow {
    color: var(--accent);
    opacity: 0.5;
}

/* CONTACT SECTION */
.contact {
    padding: 100px 20px;
    background-color: var(--bg-card);
    text-align: center;
}

.contact h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.contact-intro {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-info {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.contact-item svg {
    color: var(--accent);
}

/* FOOTER */
footer {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    padding: 50px 20px 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 140px 20px 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 40px 30px;
    }

    .mission, .products, .features, .how-it-works, .contact {
        padding: 80px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero {
    text-align: right;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

[dir="rtl"] .mission-content {
    direction: rtl;
}

[dir="rtl"] .product-highlights li {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .product-highlights li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .product-highlights li::after {
    left: auto;
    right: 6px;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .steps {
    flex-direction: row-reverse;
}

[dir="rtl"] .step-arrow {
    transform: scaleX(-1);
}

@media (max-width: 900px) {
    [dir="rtl"] .steps {
        flex-direction: column;
    }

    [dir="rtl"] .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-right .nav-cta {
        display: none;
    }

    .nav-right {
        order: 2;
    }

    .mobile-menu-btn {
        order: 3;
    }

    [dir="rtl"] .footer-content {
        flex-direction: column;
    }
}
