:root {
    --primary-color: #07913A;
    --secondary-color: #045724;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --accent-color: #FFA000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Naskh Arabic', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Language specific styles */
html[data-lang="ar"] {
    direction: rtl;
    font-family: 'Noto Naskh Arabic', serif;
}

html[data-lang="en"] {
    direction: ltr;
    font-family: 'Poppins', sans-serif;
}

.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
}

html[data-lang="en"] .language-switcher {
    right: auto;
    left: 1rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: var(--white);
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

html[data-lang="ar"] [data-lang="ar"],
html[data-lang="en"] [data-lang="en"] {
    background: var(--primary-color);
    color: var(--white);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 1rem 4rem;
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.logo img {
    height: 80px;
    width: auto;
}

.hero-content {
    max-width: 800px;
    margin: 2rem auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.no-ads {
    margin-top: 1rem;
    font-weight: bold;
}

section {
    padding: 4rem 2rem;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.app-preview {
    background-color: var(--light-bg);
}

.screenshots {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshots img {
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screenshots img:hover {
    transform: scale(1.05);
}

.testimonials {
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.rating {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.user-name {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.features-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.features-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

html[data-lang="ar"] .features-list li:hover {
    transform: translateX(-5px);
}

html[data-lang="en"] .features-list li:hover {
    transform: translateX(5px);
}

.contact {
    background-color: var(--light-bg);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 2rem 0;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
}

.privacy-link {
    margin-top: 1rem;
}

.privacy-link a {
    color: var(--primary-color);
    text-decoration: none;
}

footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
}

.rating {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .screenshots img {
        max-width: 100%;
    }

    .language-switcher {
        top: 0.5rem;
        right: 0.5rem;
    }

    html[data-lang="en"] .language-switcher {
        right: auto;
        left: 0.5rem;
    }
}