@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap);
/* Modern Landing Page Styles - Dark Theme */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0B0E17;
    /* Very Dark Blue/Black */
    --bg-card: #141721;
    --bg-card-border: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-muted: #9ca3af;
    --grid-color: rgba(255, 255, 255, 0.03);
    --accent-purple: #818cf8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    /* Grid Background Pattern */
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center top;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Noto Naskh Arabic', sans-serif;
}

.landing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-bottom: 80px;
}

.logo img {
    height: 35px;
    /* Adjusted size */
}

/* Navigation */
.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.nav a:hover {
    color: white;
}

/* Language Switcher & Dropdown */
.language-switcher {
    position: relative;
    margin-left: 10px;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e1e2d;
    /* Dark card bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    /* Remove bullets */
    min-width: 160px;
    display: none;
    /* Hidden by default */
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin: 10px 0 0 0 !important;
    /* Force margin overrides */
}

.dropdown-menu.show {
    display: block;
    /* Bootstrap JS toggles this class */
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
}

.dropdown-item img,
.dropdown-toggle img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    -o-object-fit: cover;
       object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .dropdown-menu {
    right: auto;
    left: 0;
}

.btn-signin {
    padding: 10px 28px;
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    /* Rounded pill shape */
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-signin:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0px 0 100px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}


/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 120px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: Icon background glow */
    /* background: rgba(99, 102, 241, 0.1); 
    border-radius: 12px;*/
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Plans Section */
.plans {
    padding: 40px 0 80px;
    text-align: center;
}

.plans h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 60px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    color: #0B0E17;
    /* Dark text inside white card */
    text-align: left;
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

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

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    margin: 20px 0 0 0;
    color: #111827;
}

[dir="rtl"] .plan-price {
    direction: ltr;
    justify-content: flex-end;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 8px;
    margin-right: 2px;
}

.price-int {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.price-dec {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 8px;
}

.btn-plan {
    margin-top: 24px;
    margin-bottom: 32px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: #F3F4F6;
    /* Light gray button */
    color: #111827;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Primary/Dark Button for Contact Us/Get Started inside white card */
.btn-plan-dark {
    background: #0B0E17;
    color: white;
}

.btn-plan-dark:hover {
    background: #1f2937;
    color: white;
}

.plan-includes {
    font-size: 0.75rem;
    color: #9CA3AF;
    /* Gray-400 */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    /* Push to bottom if content varies */
}

.plan-features li {
    display: flex;
    /* Align icon and text */
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #4B5563;
    /* Gray-600 */
    font-weight: 500;
}

/* Custom Check Icon */
.plan-features li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #E0E7FF;
    /* Light indigo circle */
    color: #4f46e5;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

[dir="rtl"] .plan-features li::before {
    margin-right: 0;
    margin-left: 10px;
}


/* Footer */
.footer {
    text-align: center;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid var(--bg-card-border);
}

.footer h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer p {
    color: #6B7280;
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1e1e2d;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
}

.modal-content h2 {
    color: var(--text);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.modal-success {
    text-align: center;
    color: #4caf50;
    padding: 32px 0;
}

.modal-success i {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal-success p {
    color: #4caf50;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2b2b36;
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.error-message {
    color: #ff5252;
    margin-bottom: 16px;
    text-align: center;
}

/* Mobile Menu Toggle - Default Hidden */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Responsive */
@media (max-width: 900px) {

    .features,
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        position: relative;
        padding: 20px 0;
        margin-bottom: 60px;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 25px;
        z-index: 1001;
    }

    [dir="rtl"] .mobile-menu-toggle {
        right: auto;
        left: 0;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: #1e1e2d;
        /* Match dropdown/modal bg */
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        border: 1px solid var(--bg-card-border);
        align-items: flex-start;
        /* Align text to start */
    }

    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    /* Adjust button in nav */
    .btn-signin {
        margin-top: 10px;
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Adjust language switcher in mobile menu */
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .language-switcher .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 0;
    }

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

    .features,
    .plans-grid {
        grid-template-columns: 1fr;
    }
}
