:root {
    --primary-color: #6A0DAD;
    /* Violet */
    --secondary-color: #F3F0F7;
    /* Light Violet/Gray */
    --accent-color: #2EC4B6;
    /* Teal */
    --bg-color: #FFFFFF;
    /* White */
    --text-color: #1E1E1E;
    /* Dark Gray/Black */
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --text-muted: #666666;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu-toggle {
    display: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(106, 13, 173, 0.05), rgba(46, 196, 182, 0.05)), url('images/hero_bg.png') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

/* Fallback for placeholder */
.hero:not([style*="url"]) {
    background: linear-gradient(135deg, var(--secondary-color), var(--white));
}

.hero-content {
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(106, 13, 173, 0.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
    background-color: #550a8a;
    /* Darker Violet */
}

/* Services Section */
.service-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.service-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 40px;
}

.service-image {
    flex: 1;
    height: 400px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    flex: 1;
    padding: 40px;
    text-align: left;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-muted);
}

.app-store-badges {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.app-store-badges img {
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.app-store-badges img:hover {
    transform: scale(1.05);
}

/* About Section */
.about-section {
    background-color: var(--secondary-color);
    padding: 80px 20px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.about-content p {
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.5rem;
    transition: opacity 0.3s, color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Image Placeholders */
.placeholder-container {
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
    padding: 20px;
    text-align: center;
    border: 2px dashed #ccc;
}

.placeholder-text {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.placeholder-desc {
    font-size: 0.9rem;
    font-style: italic;
}

/* RTL Support for Arabic */
html[lang="ar"] {
    direction: rtl;
}

html[lang="ar"] .service-content {
    text-align: right;
}

html[lang="ar"] .nav-links {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
    }

    .service-image {
        width: 100%;
        height: 250px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 2px solid var(--primary-color);
    }

    .nav-links.active {
        display: flex;
    }

    .lang-switch {
        position: static;
        margin-top: 15px;
        display: inline-block;
        background: var(--secondary-color);
        padding: 5px 15px;
        border-radius: 20px;
        color: var(--primary-color);
    }

    html[lang="ar"] .lang-switch {
        position: static;
    }
}