/* ===== ULTRA MODERN DESIGN SYSTEM ===== */

/* Auto Zoom to 80% - Improved Version */
html {
    zoom: 0.8;
}

/* Fallback for Firefox */
@-moz-document url-prefix() {
    html {
        zoom: 1;
        transform: scale(0.8);
        transform-origin: 0 0;
        width: 125%; /* Compensate for scaling */
    }
}

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

:root {
    /* Futuristic Color Palette */
    --primary: #00d4ff;
    --secondary: #ff0080;
    --accent: #7c3aed;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff4757;
    
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #2d1b69;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #6b7280;
    
    /* Neon Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff0080 100%);
    --gradient-secondary: linear-gradient(135deg, #ff0080 0%, #00ff88 100%);
    --gradient-tertiary: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
    --gradient-neon: linear-gradient(45deg, #00d4ff, #ff0080, #7c3aed, #00ff88);
    
    /* Enhanced Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 212, 255, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 16px 32px rgba(0, 212, 255, 0.2);
    --shadow-xl: 0 24px 48px rgba(0, 212, 255, 0.25);
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.5);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Futuristic Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: neonPulse 15s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    33% { 
        transform: scale(1.1) rotate(2deg);
        opacity: 1;
    }
    66% { 
        transform: scale(0.95) rotate(-2deg);
        opacity: 0.9;
    }
}

/* Font Awesome Icons Protection */
.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .fa-light, .fa-duotone {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

/* Fix Arabic text spacing issues */
[dir="rtl"], .font-arabic, [lang="ar"] {
    letter-spacing: -0.02em;
    word-spacing: -0.1em;
}

/* Specific Arabic text optimization */
[dir="rtl"] p, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
.font-arabic p, .font-arabic h1, .font-arabic h2, .font-arabic h3, .font-arabic h4, .font-arabic h5, .font-arabic h6 {
    letter-spacing: -0.01em;
    word-spacing: -0.05em;
    text-rendering: optimizeLegibility;
}

/* Center text alignment for main content sections */
.text-center {
    text-align: center !important;
}

/* Enhanced text centering for section titles and descriptions */
section .text-center h2,
section .text-center h3,
section .text-center p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Center alignment for RTL content */
[dir="rtl"] .text-center,
[dir="rtl"] section .text-center h2,
[dir="rtl"] section .text-center h3,
[dir="rtl"] section .text-center p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure proper centering for all content containers */
.max-w-3xl.mx-auto,
.max-w-4xl.mx-auto,
.max-w-7xl.mx-auto {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Arabic Font Support */
body[dir="rtl"] {
    font-family: 'Tajawal', 'Noto Sans Arabic', 'Inter', sans-serif;
}

.font-arabic {
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
}

.font-latin {
    font-family: 'Inter', sans-serif;
}

/* ===== MODERN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== MODERN UTILITY CLASSES ===== */
.gradient-bg {
    background: var(--gradient-primary);
}

.gradient-bg-secondary {
    background: var(--gradient-secondary);
}

.gradient-bg-tertiary {
    background: var(--gradient-tertiary);
}

/* ===== ADVANCED GLASS EFFECT ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.4);
}

/* ===== NEON EFFECTS ===== */
.neon-glow {
    animation: neonGlow 3s ease-in-out infinite;
}

.text-neon {
    animation: textNeon 3s ease-in-out infinite;
}

.border-neon {
    border: 2px solid #00d4ff;
    animation: borderNeon 4s ease-in-out infinite;
}

.pulse-neon {
    animation: pulseNeon 2s ease-in-out infinite;
}

.glow-primary {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.glow-secondary {
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.glow-accent {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.7);
    transition: box-shadow 0.3s ease;
}

/* ===== MODERN BUTTONS ===== */

/* Button Loading State */
.btn.loading {
    pointer-events: none;
    position: relative;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

.btn.loading span {
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Sizes */
.btn-sm {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    min-width: 120px;
}

.btn-lg {
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Button Focus States */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

/* Button Active States */
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-outline:active {
    transform: translateY(-1px) scale(0.98);
}

/* Button Disabled States */
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(50%);
}

.btn:disabled:hover,
.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
.btn-outline:disabled:hover {
    transform: none;
    box-shadow: none;
    background: initial;
    border-color: initial;
    filter: grayscale(50%);
}

/* Button Group */
.btn-group {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: auto;
}

/* Responsive Button Styles */
@media (max-width: 768px) {
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-width: 140px;
    }
    
    .btn-sm {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .btn-lg {
        padding: 1.3rem 2.5rem;
        font-size: 1rem;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
        min-width: 120px;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    letter-spacing: 0.5px;
    min-width: 160px;
    text-align: center;
    font-family: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 1;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

/* Button Text */
.btn span,
.btn-primary span,
.btn-secondary span,
.btn-outline span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.25), 0 2px 10px rgba(78, 205, 196, 0.15);
    backdrop-filter: blur(10px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.4s ease;
    z-index: 1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.35), 0 4px 15px rgba(78, 205, 196, 0.25);
    filter: brightness(1.1) saturate(1.05);
    background: linear-gradient(135deg, #ff5252 0%, #26d0ce 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 1.2rem 2.5rem;
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    text-align: center;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(78, 205, 196, 0.2) 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.4s ease;
    z-index: 1;
}

.btn-secondary:hover::after {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(78, 205, 196, 0.15) 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.25), 0 2px 15px rgba(78, 205, 196, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3), 0 2px 15px rgba(78, 205, 196, 0.2);
    border-color: var(--secondary);
}

/* Links */
a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

/*
a:hover {
    color: #8b5cf6;
}
*/

/* ===== MODERN NAVIGATION ===== */
nav {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(30px);
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2);
    border-bottom-color: rgba(255, 107, 107, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== MODERN HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(255, 107, 107, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 75% 25%, rgba(78, 205, 196, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(69, 183, 209, 0.1) 0%, transparent 70%);
    animation: heroFloat 25s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 107, 107, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(78, 205, 196, 0.05) 50%, transparent 70%);
    animation: heroShimmer 30s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    33% { transform: translateY(-30px) rotate(2deg) scale(1.02); }
    66% { transform: translateY(-15px) rotate(-1deg) scale(0.98); }
}

@keyframes heroShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    text-align: center;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    font-weight: 400;
    text-align: center;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    width: 100%;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.stat-item i {
    font-size: 1.2rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MODERN CARDS ===== */
.feature-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: #6366f1;
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2), 0 0 40px rgba(139, 92, 246, 0.1);
}

/* FAQ Section */
.faq-toggle {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    outline: none;
}

.faq-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-toggle.active i {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
    opacity: 0;
}

.faq-content.show {
    max-height: 500px;
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    33% { transform: translateY(-30px) rotate(2deg) scale(1.02); }
    66% { transform: translateY(-15px) rotate(-1deg) scale(0.98); }
}

@keyframes heroShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .feature-card {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 1rem;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .feature-card {
        padding: 1rem;
        text-align: center;
    }
}

/* Enhanced RTL Support with Performance Optimizations */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    font-feature-settings: "liga" 1, "kern" 1, "dlig" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: auto;
    word-spacing: 0.02em;
    letter-spacing: 0.005em;
}

/* Arabic Typography Enhancements */
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    text-align: right;
}

body[dir="rtl"] p,
body[dir="rtl"] .text-content {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Enhanced Arabic Font Support */
.font-arabic {
    font-family: 'Tajawal', 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-feature-settings: "liga" 1, "kern" 1, "dlig" 1;
    text-rendering: optimizeLegibility;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic Text Improvements */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] div {
    line-height: 1.7;
    word-spacing: 0.1em;
}

/* Arabic Button Styling */
[dir="rtl"] button,
[dir="rtl"] .btn {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Arabic Navigation */
[dir="rtl"] .nav-link {
    font-weight: 500;
}

body[dir="rtl"] .text-center {
    text-align: center !important;
}

/* RTL Navigation - Keep Original Layout */
body[dir="rtl"] nav {
    direction: ltr;
}

body[dir="rtl"] nav * {
    direction: ltr;
}

/* RTL Buttons - Keep Icons on Left */
body[dir="rtl"] button {
    direction: ltr;
    text-align: center;
}

body[dir="rtl"] button span {
    direction: rtl;
}

/* RTL Content Sections */
body[dir="rtl"] .hero-content,
body[dir="rtl"] .feature-content,
body[dir="rtl"] .section-content {
    text-align: center;
}

/* RTL Grid Layouts - Preserve Structure */
body[dir="rtl"] .grid {
    direction: ltr;
}

body[dir="rtl"] .grid > .feature-card,
body[dir="rtl"] .grid > .content-card {
    direction: rtl;
    text-align: right;
}

/* RTL Footer - Keep Same Layout as English */
body[dir="rtl"] footer {
    direction: ltr;
    text-align: center;
}

body[dir="rtl"] footer .grid {
    direction: ltr;
}

body[dir="rtl"] footer .grid > div {
    direction: ltr;
    text-align: center;
}

body[dir="rtl"] footer h3,
body[dir="rtl"] footer p,
body[dir="rtl"] footer a {
    text-align: center;
}

body[dir="rtl"] footer .flex {
    justify-content: center;
}

/* RTL Language Toggle - Keep Icon Position */
body[dir="rtl"] #langToggle {
    direction: ltr;
    flex-direction: row;
}

body[dir="rtl"] #langToggle span {
    direction: rtl;
}

/* RTL Demo Card - Preserve Layout */
body[dir="rtl"] .demo-card,
body[dir="rtl"] .browser-header,
body[dir="rtl"] .extension-interface {
    direction: ltr;
}

body[dir="rtl"] .demo-card .text-content {
    direction: rtl;
    text-align: right;
}

/* RTL FAQ Section */
body[dir="rtl"] .faq-item {
    text-align: center;
}

body[dir="rtl"] .faq-toggle {
    direction: ltr;
    justify-content: space-between;
}

body[dir="rtl"] .faq-toggle span {
    direction: rtl;
    text-align: center;
    flex: 1;
}

/* RTL Badges and Status */
body[dir="rtl"] .badge,
body[dir="rtl"] .status-indicator {
    direction: ltr;
}

body[dir="rtl"] .badge span,
body[dir="rtl"] .status-indicator span {
    direction: rtl;
}

/* Dark Theme Enhancements */
.bg-dark {
    background-color: #0f172a;
}

.bg-dark-light {
    background-color: #1e293b;
}

.bg-dark-lighter {
    background-color: #334155;
}

.text-primary {
    color: #6366f1;
}

.text-secondary {
    color: #8b5cf6;
}

.text-accent {
    color: #06b6d4;
}

.border-primary {
    border-color: #6366f1;
}

.border-secondary {
    border-color: #8b5cf6;
}

.border-accent {
    border-color: #06b6d4;
}

/* Center alignment for all text elements */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

p {
    text-align: center;
}

.text-center {
    text-align: center !important;
}

section {
    text-align: center;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}

/* Selection Styling */
::selection {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

::-moz-selection {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

/* ===== MODERN FOOTER ===== */
footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.footer-section:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: #6366f1;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.7;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.footer-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem 2rem 0;
}