@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;700&display=swap');

:root {
    --primary-color: #2563eb; /* أزرق عصري */
    --secondary-color: #1e40af;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --white: #ffffff;
    --success: #22c55e;
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}

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

/* --- Navbar --- */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.form-container { background: rgb(233, 233, 233);justify-self: center; padding: 20px;margin-top: 100px; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);}
input { width: 300px;display: block;height: 50px; border: 0px; background-color: white; margin: 10px 0;border-radius: 12px; padding: 10px; box-sizing: border-box; }
.toggle-link { color: rgb(99, 99, 255); font-size: 16px; cursor: pointer; text-align: center; display: block; margin: 20px 0px;}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

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

.nav-links a {
    font-weight: 500;
    color: #475569;
    transition: 0.3s;
}

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

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

/* زر تغيير اللغة */
.lang-btn {
    background: none;
    border: 0px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* لون خلفية الشاشة */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* لضمان بقائها في المقدمة */
    transition: opacity 0.5s ease; /* تأثير اختفاء ناعم */
}

/* شكل دائرة التحميل */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
        padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    display: inline-block;
}

.btn-primary:hover { background: var(--secondary-color); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
    min-height: 85vh;
}

.hero-content { max-width: 50%; }

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

/* --- Features Section --- */
.features {
    padding: 5rem 5%;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.feature-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: #eff6ff;
    padding: 15px;
    border-radius: 12px;
    width: fit-content;
    margin-inline: auto;
}

/* --- Pricing --- */
.pricing {
    padding: 5rem 5%;
    background: var(--white);
    text-align: center;
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.price-card {
    background: var(--white);
    border: 2px solid rgb(213, 213, 213);
    border-radius: 20px;
    padding: 3rem 2rem;
    width: 320px;
    position: relative;
    transition: 0.3s;
}

.price-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
}

.price-header .amount { font-size: 3rem; font-weight: 800; }
.price-features { margin: 2rem 0; text-align: start; }
.price-features li { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.Check_Feature { color: var(--success); }

/* --- Footer & Contact --- */
.footer {
    background: var(--dark-color);
    color: #94a3b8;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.lang-switcher select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 0px solid #e2e8f0;
    background-color: #ffffff;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-switcher select:hover {
    border: 1px solid var(--primary-color);
    background-color: #f8fafc;
}

/* لضمان تناسق الخطوط داخل القائمة */
.lang-switcher option {
    border: 0px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
}
.footer-brand h2 {
     color: var(--white); 
     margin-bottom: 1rem; 
    }
.contact-info p { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.contact-info i { color: var(--primary-color); }

/* زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px; /* سيتغير تلقائيا مع RTL/LTR */
    background-color: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover { background-color: #1ebc57; transform: scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 2rem; }
    .hero-content { max-width: 100%; margin-bottom: 3rem; }
    .nav-links { display: none; } /* يمكن تحويلها لقائمة جانبية */
    .price-card.popular { transform: scale(1); }
    .whatsapp-float { bottom: 20px; right: 20px; }
}
@media (max-width: 400px) {
    .btn{    font-size: 10px;}
}