:root {
    /* ADHD-Friendly Primary Colors */
    --primary-color: rgb(89, 128, 89); /* Sage Green */
    --primary-light: rgb(140, 191, 140); /* Main Green Shade */
    --primary-dark: rgb(64, 89, 64); /* Complete Green Foreground */
    --primary-50: rgb(247, 248, 250); /* Background */
    --primary-100: rgb(201, 230, 220); /* Mint Accent */
    
    /* Secondary Colors - Lavender */
    --secondary-color: rgb(220, 216, 235); /* Lavender */
    --secondary-light: rgb(240, 238, 245); /* Light Lavender */
    --secondary-dark: rgb(200, 190, 220); /* Dark Lavender */
    
    /* Accent Colors - ADHD Status Colors */
    --accent-color: rgb(179, 217, 255); /* Mindful Blue */
    --accent-light: rgb(255, 204, 128); /* Focus Orange */
    --accent-dark: rgb(140, 179, 255); /* Progress Blue */
    
    /* Status Colors - ADHD Specific */
    --success-color: rgb(140, 191, 140); /* Complete Green */
    --warning-color: rgb(255, 204, 128); /* Focus Orange */
    --error-color: rgb(217, 220, 230); /* Todo Grey */
    
    /* Text Colors - ADHD Friendly */
    --text-primary: rgb(64, 70, 80); /* Foreground */
    --text-secondary: rgb(89, 128, 89); /* Sage Green */
    --text-tertiary: rgb(140, 191, 140); /* Complete Green */
    --text-light: rgb(220, 216, 235); /* Lavender */
    
    /* Background Colors - ADHD Friendly */
    --bg-primary: #ffffff; /* Pure White */
    --bg-secondary: rgb(247, 248, 250); /* Light Blue-Gray */
    --bg-tertiary: rgb(220, 216, 235); /* Lavender */
    --bg-accent: rgb(201, 230, 220); /* Mint */
    
    /* Border Colors */
    --border-light: rgb(220, 216, 235); /* Lavender */
    --border-medium: rgb(140, 191, 140); /* Complete Green */
    --border-dark: rgb(89, 128, 89); /* Sage Green */
        
    /* Shadows - Subtle and Professional */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: var(--spacing-2);
    margin: 0 var(--spacing-4);
}

.lang-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: 6px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

/* RTL Navigation */
html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

/* Skip Links for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--bg-secondary);
    padding: var(--spacing-4) 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-sm);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: var(--spacing-2);
    color: var(--text-tertiary);
}

.breadcrumb-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-secondary);
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.btn-login {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--spacing-16) 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-6);
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-8);
    line-height: 1.6;
    font-weight: 400;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: var(--spacing-3) var(--spacing-6);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.features {
    padding: var(--spacing-16) 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.features h2 {
    font-size: var(--font-size-3xl);
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--spacing-12);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-8);
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-primary);
    padding: var(--spacing-8);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-4);
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--font-size-base);
}

/* Platform Overview Section */
.platform-overview {
    padding: var(--spacing-16) 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.overview-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: var(--spacing-12);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.overview-content h2 {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-6);
    font-weight: 700;
}

.overview-text {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Technology Features Section */
.technology-features {
    padding: var(--spacing-16) 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.technology-features h2 {
    font-size: var(--font-size-3xl);
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--spacing-12);
    font-weight: 700;
}

/* Statistics Section */
.statistics {
    padding: var(--spacing-16) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.statistics h2 {
    font-size: var(--font-size-3xl);
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--spacing-12);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-8);
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-6);
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-2);
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Information Sections */
.information-sections {
    padding: var(--spacing-16) 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.information-sections h2 {
    font-size: var(--font-size-3xl);
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--spacing-12);
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-8);
}

.info-card {
    background: var(--bg-primary);
    padding: var(--spacing-8);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-card h3 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    font-weight: 600;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-6);
    font-size: var(--font-size-base);
}

/* About Preview Section */
.about-preview {
    padding: var(--spacing-16) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-12);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: var(--spacing-12);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.about-text h2 {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-6);
    font-weight: 700;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-base);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--primary-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 1px solid var(--border-light);
}

.about {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 400px;
    height: 300px;
    background: var(--gradient-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: var(--shadow-lg);
}

.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--spacing-12) 0 var(--spacing-4);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-6);
    font-size: var(--font-size-sm);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-2);
    transition: color 0.2s ease;
    font-size: var(--font-size-sm);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-4);
    text-align: center;
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6);
    }
    
    .overview-content {
        padding: var(--spacing-8);
    }
    
    .about-content {
        padding: var(--spacing-8);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: var(--spacing-4);
    }
    
    .info-card {
        padding: var(--spacing-6);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .overview-content h2,
    .technology-features h2,
    .statistics h2,
    .information-sections h2 {
        font-size: var(--font-size-2xl);
    }
}