/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

body.rtl {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-toggle button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.language-toggle button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.hero-logo {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    min-width: 140px;
}

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

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Target Audience Section */
.target-audience {
    background: var(--bg-light);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.audience-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.audience-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.audience-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.audience-card blockquote {
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.audience-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Apply Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

.eligibility {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.eligibility h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
    text-align: center;
}

.eligibility-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.eligibility-list li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.apply-cta {
    text-align: center;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.apply-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.apply-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 16px;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-info p {
    margin-bottom: 8px;
    opacity: 0.8;
}

.contact-info p {
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RTL Support */
.rtl .nav-menu {
    direction: rtl;
}

.rtl .hero-buttons {
    direction: rtl;
}

.rtl .audience-card blockquote {
    padding-right: 20px;
    padding-left: 0;
    border-right: 4px solid var(--primary-color);
    border-left: none;
}

.rtl .language-toggle {
    left: 20px;
    right: auto;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections Mobile */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        padding: 24px;
    }
    
    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Target Audience Mobile */
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .audience-card {
        padding: 24px;
    }
    
    .audience-card h3 {
        font-size: 1.2rem;
    }
    
    /* Process Steps Mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Language Toggle Mobile */
    .language-toggle {
        top: 15px;
        right: 15px;
    }
    
    .language-toggle button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* CTA Mobile */
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
        padding: 0 16px;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px;
    }
    
    /* Apply Section Mobile */
    .eligibility {
        padding: 24px;
    }
    
    .apply-cta {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .audience-card {
        padding: 20px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.language-toggle button:focus,
.nav-menu a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .language-toggle,
    .navbar,
    .hero-buttons,
    .btn {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--text-dark);
    }
    
    section {
        padding: 20px 0;
    }
}

