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

:root {
    /* Color Palette */
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #EDE9FE;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #1E1B4B; /* Deeper purple-tinted dark */
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

[dir="rtl"] body {
    text-align: right;
}

/* Language Visibility */
html[lang="en"] .ar { display: none; }
html[lang="ar"] .en { display: none; }

[dir="rtl"] {
    direction: rtl;
}

[dir="ltr"] {
    direction: ltr;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Components */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-700);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn-outline {
    padding: 0.5rem 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
        gap: 1.5rem;
    }

    [dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    [dir="rtl"] .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
    }
    
    .header-actions .btn-primary {
        display: none;
    }
}


/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    background: radial-gradient(circle at top right, var(--primary-light), transparent);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Services */
.services {
    padding: 8rem 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
}

/* Features/Loyalty */
.loyalty {
    padding: 8rem 0;
}

.loyalty-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.loyalty-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.stat-box h4 {
    font-size: 2rem;
    color: var(--primary);
}

/* Areas */
.areas {
    padding: 8rem 0;
    background: var(--dark);
    color: var(--white);
}

.areas h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 4rem;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.area-tag {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.area-tag.active {
    background: var(--primary);
    border-color: var(--primary);
}

.area-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Content Pages (Privacy/Terms) */
.content-page { 
    padding: calc(var(--header-height) + 4rem) 0 8rem; 
    background: var(--gray-50);
}

.content-wrapper { 
    width: 100%; 
    background: var(--white); 
    padding: 4rem; 
    border-radius: 2rem; 
    box-shadow: var(--shadow-lg); 
}

.content-wrapper h1 { 
    font-size: 2.5rem; 
    margin-bottom: 2rem; 
    color: var(--primary); 
    border-bottom: 2px solid var(--primary-light); 
    padding-bottom: 1rem; 
}

.content-wrapper h2 { 
    font-size: 1.5rem; 
    margin: 2.5rem 0 1.25rem; 
    color: var(--dark); 
    border-left: 4px solid var(--primary); 
    padding-left: 1rem; 
}

[dir="rtl"] .content-wrapper h2 {
    border-left: none;
    border-right: 4px solid var(--primary);
    padding-left: 0;
    padding-right: 1rem;
}

.content-wrapper h3 { 
    font-size: 1.25rem; 
    margin: 1.5rem 0 1rem; 
    color: var(--gray-800); 
}

.content-wrapper p, .content-wrapper li { 
    color: var(--gray-600); 
    margin-bottom: 1rem; 
    line-height: 1.8; 
}

.content-wrapper ul { 
    margin-left: 1.5rem; 
    list-style-type: disc; 
    margin-bottom: 1.5rem; 
}

[dir="rtl"] .content-wrapper ul {
    margin-left: 0;
    margin-right: 1.5rem;
}

.last-updated { 
    color: var(--gray-400); 
    font-size: 0.9rem; 
    margin-bottom: 2rem; 
}
   
/* Footer */
footer {
    padding: 5rem 0 2rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1.5rem;
    color: var(--gray-600);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Language Specific */
[dir="rtl"] .hero-btns a + a {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .stat-box {
    border-left: none;
    border-right: 4px solid var(--primary);
}

[dir="rtl"] .content-wrapper h2 {
    border-left: none;
    border-right: 4px solid var(--primary);
    padding-left: 0;
    padding-right: 1rem;
}

[dir="rtl"] .footer-links h4::after {
    left: auto;
    right: 0;
}

/* Responsive Improvements */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-text p {
        margin: 0 auto 2.5rem;
    }
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    .loyalty-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }
    .nav-container {
        padding: 0 1rem;
    }
    .nav-links {
    }
    .header-actions {
        gap: 0.5rem;
    }
    .header-actions .btn-primary {
        display: none;
    }
    .header-actions .btn-outline {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
    .logo {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    .logo img {
        height: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .footer-info .logo {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .content-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-btns a {
        margin: 0 !important;
        width: 100%;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .stat-box {
        padding: 1.5rem;
    }
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: white;
}

/* Forms & Interactive */
.form-control {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--gray-50);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

[lang="ar"] .en { display: none !important; }
[lang="en"] .ar { display: none !important; }
