/* Landing Page Styles - Mobile First */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #1a202c;
    --light: #f7fafc;
    --gray: #718096;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h2 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.nav {
    display: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    background: var(--light);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: #e2e8f0;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    margin-top: 10px;
    min-width: 120px;
    display: none;
    overflow: hidden;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.3s;
}

.lang-option:hover,
.lang-option.active {
    background: var(--light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-hero-primary,
.btn-hero-secondary,
.btn-pricing,
.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary,
.btn-hero-primary,
.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover,
.btn-hero-primary:hover,
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary,
.btn-hero-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover,
.btn-hero-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-pricing {
    background: var(--primary);
    color: var(--white);
    width: 100%;
}

.btn-pricing:hover {
    background: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-hero-secondary {
    border-color: var(--white);
    color: var(--white);
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light);
}

.about-grid {
    display: grid;
    gap: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-desc {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--light);
}

.how-it-works .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-desc {
    font-size: 15px;
    color: var(--gray);
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
}

.pricing .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

[dir="rtl"] .badge {
    right: auto;
    left: 20px;
}

.pricing-plan {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.pricing-price {
    margin-bottom: 30px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.period {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-top: 5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: start;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--gray);
    font-size: 15px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: var(--white);
    color: var(--primary);
    padding: 15px 50px;
    font-size: 18px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-text,
.footer-powered {
    font-size: 14px;
    opacity: 0.8;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 56px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Mobile Menu */
.nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
}