/* ================= VARIABLES ================= */
:root {
    --primary: #6366f1; /* Indigo */
    --primary-dark: #4f46e5;
    --accent: #ec4899; /* Pink */
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

/* ================= RESET & BASE ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: var(--font-en); /* Default English Font */
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL Support */
body[dir="rtl"] {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

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

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

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

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-actions { display: flex; gap: 15px; align-items: center; }

.lang-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    transition: 0.3s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ================= HERO SECTION ================= */
.hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p { color: var(--gray); font-size: 1.1rem; margin-bottom: 30px; max-width: 500px; }

.hero-btns { display: flex; gap: 15px; }

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--dark);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Hero Visual (Abstract) */
.hero-visual { position: relative; height: 350px; display: flex; justify-content: center; align-items: center; }
.circle-bg {
    width: 300px; height: 300px; background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    border-radius: 50%; z-index: -1; animation: pulse 5s infinite ease-in-out;
}
.floating-card {
    position: absolute; background: white; padding: 15px 25px; border-radius: 12px;
    box-shadow: var(--shadow); font-weight: bold; display: flex; align-items: center; gap: 8px;
    animation: float 6s infinite ease-in-out;
}
.c1 { top: 20%; left: 10%; color: #3b82f6; }
.c2 { bottom: 20%; right: 10%; color: var(--accent); animation-delay: 2s; }
.c3 { top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--dark); color: white; animation: none; padding: 20px; border-radius: 16px; }

/* ================= CARDS & SERVICES ================= */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--gray); }

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

.card, .usecase-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid transparent;
}
.card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.2); }

.icon-box {
    width: 50px; height: 50px; background: #eff6ff; color: var(--primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* Use Case Specifics */
.bg-light { background: #f1f5f9; }
.usecase-card .tag {
    background: #e0e7ff; color: var(--primary-dark); font-size: 0.75rem;
    padding: 4px 10px; border-radius: 20px; font-weight: 700; display: inline-block; margin-bottom: 10px;
}

/* ================= FAQ ================= */
.narrow { max-width: 800px; }
.acc-item { background: white; margin-bottom: 15px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.acc-btn {
    width: 100%; padding: 20px; text-align: inherit; background: none; border: none;
    font-weight: 600; cursor: pointer; display: flex; justify-content: space-between;
    font-family: inherit; font-size: 1rem;
}
.acc-content { max-height: 0; overflow: hidden; transition: 0.3s; padding: 0 20px; color: var(--gray); }
.acc-item.active .acc-content { padding-bottom: 20px; max-height: 150px; }
.acc-item.active i { transform: rotate(45deg); transition: 0.3s; }

/* ================= CONTACT ================= */
.contact-section { background: linear-gradient(135deg, #1e1b4b, #312e81); color: white; }
.contact-box { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-box h2 { margin-bottom: 30px; }
.input-group { margin-bottom: 15px; }
.input-group input, .input-group textarea {
    width: 100%; padding: 15px; border-radius: 8px; border: none; font-family: inherit;
}
.full-width { width: 100%; }

/* ================= FOOTER ================= */
footer { background: var(--dark); color: #94a3b8; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); }
footer .container { display: flex; justify-content: space-between; align-items: center; }
.socials a { color: white; font-size: 1.2rem; margin-inline-start: 15px; }

/* ================= ANIMATIONS & RESPONSIVE ================= */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -250px; height: 100vh; width: 250px;
        background: white; flex-direction: column; padding-top: 80px;
        transition: 0.3s; box-shadow: -5px 0 15px rgba(0,0,0,0.1); align-items: flex-start;
    }
    
    body[dir="rtl"] .nav-links { right: auto; left: -250px; box-shadow: 5px 0 15px rgba(0,0,0,0.1); }
    
    .nav-links.active { right: 0; }
    body[dir="rtl"] .nav-links.active { left: 0; }

    .nav-links a { padding: 15px 25px; width: 100%; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; }
    .hero h1 { font-size: 2.2rem; }
    footer .container { flex-direction: column; gap: 20px; }
}