/* 🎨 متغيرات CSS المتطورة */
:root {
    /* الألوان الأساسية */
    --primary-color: #283A83;
    --primary-light: #3B4A9E;
    --primary-dark: #1E2B61;
    --primary-rgb: 40, 58, 131;
    --secondary-color: #057590;
    --secondary-light: #0891A6;
    --secondary-dark: #045762;
    --secondary-rgb: 5, 117, 144;
    --accent-color: #06b6d4;
    --accent-light: #22D3EE;
    --accent-dark: #0891B2;
    --accent-rgb: 6, 182, 212;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --white: #ffffff;
    --black: #000000;
    
    /* ألوان إضافية للتدرجات */
    --neon-blue: #00F5FF;
    --neon-purple: #BF40BF;
    --neon-green: #39FF14;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(0, 0, 0, 0.1);
    --chart-grid: rgba(255, 255, 255, 0.1);
    --chart-ai: var(--primary-color);
    --chart-traditional: var(--accent-color);
    
    /* ألوان الخلفية والنص */
    --bg-primary: #ffffff;
    --bg-primary-rgb: 255, 255, 255;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-bg-hover: #f8fafc;
    
    /* التدرجات */
    --gradient-primary: linear-gradient(135deg, #283A83 0%, #057590 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    /* الظلال */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 64px rgba(0, 0, 0, 0.2);
    
    /* الانتقالات */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* متغيرات الوضع الفاتح */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.2);
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #1e293b;
    
    /* ارتفاع الشاشة الديناميكي للأجهزة المحمولة */
    --vh: 1vh;
}

/* 🌙 الوضع الداكن */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.1);
    --card-bg: #1e293b;
    --header-bg: rgba(15, 23, 42, 0.95);
    --header-text: #f1f5f9;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 64px rgba(0, 0, 0, 0.6);
}

/* 🔧 إعادة تعيين الأنماط */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🎯 تحسينات إمكانية الوصول */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10001;
    border-radius: 4px;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* تحسين التباين للوضوح */
.high-contrast {
    filter: contrast(1.5);
}

/* تحسين التركيز */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* تحسينات للقائمة المتنقلة على الجوال */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .nav-menu {
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 30px;
    }
    
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .nav-item {
        margin-bottom: 5px;
    }
    
    .nav-link {
        padding: 12px 15px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .nav-link:active {
        transform: scale(0.98);
    }
}

/* إزالة تأثيرات الحركة للمستخدمين الذين يفضلون عدم الحركة */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* النمط الداكن */
[data-theme="dark"] {
    --bg-primary: #0f1419;
    --bg-primary-rgb: 15, 20, 25;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-bg-hover: #334155;
    --chart-grid: rgba(255, 255, 255, 0.15);
    --chart-ai: var(--accent-light);
    --header-bg: rgba(15, 20, 25, 0.9);
    --shadow-sm: 0 1px 2px 0 rgba(255, 255, 255, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(255, 255, 255, 0.1);
    --chart-traditional: var(--secondary-light);
}

/* تحسينات النماذج للوصولية */
.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    min-height: 1.25rem;
}

.error-message.show {
    display: block;
}

.help-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: var(--error-color);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: var(--success-color);
}

.submit-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: none;
}

.submit-status.success {
    background-color: var(--success-color);
    color: white;
    display: block;
}

.submit-status.error {
    background-color: var(--error-color);
    color: white;
    display: block;
}

/* تحسينات التنقل */
nav[role="navigation"] a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    background-color: rgba(40, 58, 131, 0.1);
}

/* تحسينات أداء الصور */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* تحسينات الضوء العالي للنصوص */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --bg-primary: #ffffff;
        --border-color: #000000;
    }
    
    [data-theme="dark"] {
        --text-primary: #ffffff;
        --bg-primary: #000000;
        --border-color: #ffffff;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition-normal);
    overflow-x: hidden;
}

/* 🎯 المساعدات العامة */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 🌟 شاشة التحميل */
.loading-screen {
    position: fixed;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.loading-screen.hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

/* إخفاء شاشة التحميل عند اكتمال التحميل */
body.loaded .loading-screen,
.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden !important;
}

.loading-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.loading-icon {
    font-size: 2rem;
    animation: bounce 1.5s ease-in-out infinite;
}

.loading-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-icon:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

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

/* 📊 شريط التقدم */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 9999;
}

.reading-progress {
    height: 100%;
    background: var(--gradient-secondary);
    width: 0%;
    transition: width 0.2s ease;
}

/* ✨ الشريط العلوي المتطور */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}



.header-main {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition-normal);
}

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

/* تحسين الشعار */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--header-text);
    transition: var(--transition-normal);
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon {
    font-size: 1.5rem;
    color: white;
    z-index: 2;
    transition: var(--transition-normal);
}

.logo-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, var(--accent-color) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0;
    transition: var(--transition-normal);
    animation: particleFloat 3s ease-in-out infinite;
}

.logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
}

.logo:hover .logo-particles {
    opacity: 0.3;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
}

/* تحسين القائمة */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 0.875rem;
}

/* القوائم المنسدلة */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    color: var(--accent-color);
}

.dropdown-item div {
    flex: 1;
}

.dropdown-item span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dropdown-item small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* أزرار الإجراءات */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-toggle,
.notifications-toggle,
.theme-toggle {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: relative;
    z-index: 10;
}

.search-toggle:hover,
.notifications-toggle:hover,
.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.theme-toggle {
    cursor: pointer;
}

.theme-toggle:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.theme-toggle-active {
    animation: theme-toggle-pulse 0.3s ease;
}

@keyframes theme-toggle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.theme-toggle i {
    transition: transform 0.15s ease;
}

.theme-toggle:hover i {
    transform: scale(1.1);
}

/* الإشعارات */
.notifications-wrapper {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1000;
    margin-top: 0.5rem;
}

.notifications-wrapper:hover .notifications-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h4 {
    margin: 0;
    font-size: 1rem;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.875rem;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: rgba(6, 182, 212, 0.05);
    border-right: 3px solid var(--accent-color);
}

.notification-item i {
    margin-top: 0.25rem;
}

.notification-item p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.view-all {
    display: block;
    text-align: center;
    padding: 0.75rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    border-top: 1px solid var(--border-color);
}



/* زر العرض التوضيحي */
.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* شريط البحث */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 800px;
    margin: 10% auto;
    padding: 2rem;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.25rem;
}

#searchInput {
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 4rem;
    border: none;
    outline: none;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.search-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.search-close:hover {
    background: var(--bg-secondary);
}

.search-suggestions {
    margin-top: 2rem;
    text-align: center;
    color: white;
}

.search-suggestions h4 {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.suggestions-list {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.suggestion-tag:hover {
    background: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--header-text);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* الرسوم المتحركة */
@keyframes particleFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* إخفاء العناصر في الهواتف */
@media (max-width: 768px) {
    .search-toggle,
    .notifications-wrapper,
    .cta-button {
        display: none;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* 🎨 القسم الرئيسي المحسن */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    padding: 8rem 0 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleDrift 20s linear infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: right;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.title-accent {
    display: block;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 1s both;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 1.4s both;
}

.hero-cta {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.hero-cta:hover .btn-ripple {
    transform: scale(1);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.8s ease 1.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease 1.8s both;
}

.hero-image {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
}

.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.illustration-bg {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.data-flow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.data-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color);
    animation: dataFlow 2s ease-in-out infinite;
}

.point-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.point-2 {
    top: 50%;
    right: 20%;
    animation-delay: 0.7s;
}

.point-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 1.4s;
}

.data-connection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(6, 182, 212, 0.5);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeInUp 0.8s ease 2s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 0.5rem;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s ease-in-out infinite;
}

.hero-scroll-indicator span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* قسم من نحن */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(6,182,212,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(6,182,212,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-points {
    margin: 2rem 0;
}

.about-point {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.point-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.point-icon i {
    color: white;
    font-size: 1.5rem;
}

.point-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.point-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-achievements {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievement i {
    font-size: 2rem;
    color: var(--accent-color);
}

.achievement-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.achievement-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.about-visual {
    position: relative;
}

.about-image {
    position: relative;
    height: 400px;
}

.image-frame {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tech-circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: techPulse 4s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation-delay: 1.5s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 40%;
    animation-delay: 3s;
}

/* الرسوم المتحركة */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes particleDrift {
    0% { transform: translateX(0px); }
    100% { transform: translateX(-50px); }
}

@keyframes dataFlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scrollDown {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes techPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 🎯 الأزرار المحسنة */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 48px;
}

.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;
}

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

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn i {
    font-size: 1.125rem;
    transition: var(--transition-fast);
}

.btn:hover i {
    transform: scale(1.1);
}

.btn span {
    position: relative;
    z-index: 1;
}

.full-width {
    width: 100%;
}

/* أزرار خاصة */
.hero-cta {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    color: var(--primary-color);
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-demo {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 📊 الإحصائيات */
.stats {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

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

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 🛠️ الخدمات */
.services {
    padding: 6rem 0;
}

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

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.service-features i {
    color: var(--success-color);
    font-size: 0.875rem;
}

.service-card:hover .service-features li {
    transform: translateX(5px);
}

/* 🤖 المميزات */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 📞 التواصل */
.contact {
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* 🦶 التذييل */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* 🔝 زر العودة للأعلى */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* 🎯 التنبيهات */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--success-color);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

/* 💻 تحسينات الأجهزة اللوحية الكبيرة */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .title-accent {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* 📱 الأجهزة اللوحية المتوسطة */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .logo-title {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .header-tools {
        gap: 0.5rem;
    }
    
    .hero {
        min-height: 85vh;
        padding: 5rem 0 3rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-accent {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* 📱 الهواتف المحمولة الكبيرة والأجهزة اللوحية الصغيرة */
@media (max-width: 768px) {
    /* إخفاء العناصر غير الضرورية */
    .search-toggle,
    .notifications-wrapper,
    .cta-button {
        display: none;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    /* الحاوي الرئيسي */
    .container {
        padding: 0 1rem;
    }
    
    /* الشريط العلوي */
    .header-main {
        padding: 1rem 0;
    }
    
    .logo-title {
        font-size: 1.125rem;
    }
    
    .header-tools {
        gap: 0.75rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    /* قائمة التنقل المحسنة للجوال */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--border-color);
        max-height: 75vh;
        overflow-y: auto;
        z-index: 9999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1.125rem 1rem;
        border-radius: 0.75rem;
        font-size: 1rem;
        font-weight: 500;
        transition: var(--transition-fast);
        border: 2px solid transparent;
    }
    
    .nav-link:hover {
        background: var(--accent-color);
        color: white;
        transform: translateX(8px);
    }
    
    .nav-link i {
        width: 20px;
        font-size: 1.125rem;
    }
    
    /* القوائم المنسدلة في الجوال */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        margin: 0.5rem 0 0 1rem;
        border-radius: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
    }
    
    .dropdown-item:hover {
        background: var(--accent-color);
        color: white;
    }

    /* تحريك القائمة */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background: var(--accent-color);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: var(--accent-color);
    }

    /* القسم الرئيسي */
    .hero {
        min-height: 85vh;
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .title-accent {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .hero-feature {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-stat {
        padding: 1rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.8rem;
    }

    /* عناوين الأقسام */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 30px;
        height: 3px;
    }

    /* الشبكات */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* البطاقات */
    .service-card,
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-card h3,
    .feature-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p,
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* قسم من نحن */
    .about-content {
        text-align: center;
    }
    
    .about-achievements {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .about-points {
        margin: 1.5rem 0;
    }
    
    .about-point {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .about-point i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    /* العناصر العائمة */
    .floating-card {
        position: relative;
        margin-bottom: 1rem;
        animation: none;
        transform: none !important;
    }
    
    /* الاتصال */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* البحث */
    .search-container {
        margin: 10% auto 5%;
        padding: 1rem;
    }
    
    .search-box {
        border-radius: 1rem;
    }
    
    #searchInput {
        padding: 1rem 3.5rem;
        font-size: 1rem;
    }
    
    .suggestions-list {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .suggestion-tag {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }
    
    /* إخفاء الرسوم التوضيحية */
    .hero-illustration {
        display: none;
    }
}

/* 📱 الهواتف المحمولة الصغيرة */
@media (max-width: 480px) {
    /* الحاويات والمسافات */
    .container {
        padding: 0 0.75rem;
    }
    
    /* الشريط العلوي */
    .header-main {
        padding: 0.875rem 0;
    }
    
    .logo {
        gap: 0.75rem;
    }
    
    .logo-container {
        width: 35px;
        height: 35px;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .header-tools {
        gap: 0.5rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    /* القسم الرئيسي */
    .hero {
        padding: 4rem 0 2rem;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.1;
    }
    
    .title-accent {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-features {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-feature {
        font-size: 0.85rem;
    }

    .hero-buttons {
        gap: 0.875rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        margin-top: 1.5rem;
    }
    
    .hero-stat {
        padding: 0.875rem;
    }
    
    .hero-stat-number {
        font-size: 1.375rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }

    /* عناوين الأقسام */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        width: 25px;
        height: 2px;
    }

    /* الشبكات والبطاقات */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .service-card,
    .feature-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3,
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    .service-card p,
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .service-card i,
    .feature-card i {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    /* قسم من نحن */
    .about-points {
        margin: 1rem 0;
    }
    
    .about-point {
        padding: 0.875rem;
        gap: 0.625rem;
    }
    
    .about-point i {
        font-size: 1.75rem;
    }
    
    .about-point h4 {
        font-size: 1rem;
    }
    
    .about-point p {
        font-size: 0.85rem;
    }

    /* الاتصال والنماذج */
    .contact-form {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.875rem;
    }

    /* البحث */
    .search-container {
        margin: 8% auto 5%;
        padding: 0.75rem;
    }
    
    .search-box {
        border-radius: 0.875rem;
    }
    
    #searchInput {
        padding: 0.875rem 3rem;
        font-size: 0.95rem;
    }
    
    .suggestions-list {
        gap: 0.375rem;
        margin-top: 0.875rem;
    }
    
    .suggestion-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* التنقل والقوائم */
    .nav-menu {
        padding: 1.25rem;
        max-height: 70vh;
    }
    
    .nav-link {
        padding: 1rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .dropdown-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }

    /* عناصر التحكم */
    .scroll-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    /* الإشعارات والتوست */
    .toast {
        max-width: 280px;
        font-size: 0.875rem;
        padding: 0.875rem;
    }
}

/* 📱 الهواتف الصغيرة جداً */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .logo-title {
        font-size: 0.925rem;
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
    
    .title-accent {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .hero-buttons .btn {
        max-width: 240px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }
    
    .hero-feature {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.875rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .service-card,
    .feature-card {
        padding: 1rem;
    }
    
    .service-card h3,
    .feature-card h3 {
        font-size: 0.95rem;
    }
    
    .service-card p,
    .feature-card p {
        font-size: 0.8rem;
    }
}



/* تحسينات للشاشات الكبيرة */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .title-accent {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* 🔄 تحسينات الاتجاه الأفقي للأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
        padding: 4rem 0 3rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 📱 تحسينات الاتجاه الأفقي للهواتف */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: 2rem 0 1.5rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .hero-stat {
        padding: 0.5rem;
    }
    
    .hero-stat-number {
        font-size: 1.125rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-card,
    .feature-card {
        padding: 1rem;
    }
}

/* 💻 تحسينات خاصة للأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 1024px) {
    /* تحسين المسافات بين العناصر */
    .section {
        padding: 4rem 0;
    }
    
    /* تحسين الأزرار للمس */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    /* تحسين الإدخال للمس */
    .form-group input,
    .form-group textarea {
        min-height: 48px;
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* تحسين النقر للأيقونات */
    .theme-toggle,
    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
    }
    
    /* تحسين النقر للروابط */
    .nav-link {
        min-height: 40px;
        padding: 0.75rem 1rem;
    }
    
    /* تحسين البطاقات للمس */
    .service-card,
    .feature-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* تحسين الإحصائيات */
    .stat-card {
        padding: 2rem;
    }
    
    /* تحسين البحث */
    #searchInput {
        min-height: 56px;
        font-size: 1.125rem;
    }
}

/* 🖱️ تحسينات خاصة للأجهزة اللوحية مع الماوس */
@media (min-width: 768px) and (max-width: 1024px) and (hover: hover) {
    .service-card:hover,
    .feature-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .nav-link:hover {
        transform: translateY(-2px);
    }
    
    .btn:hover {
        transform: translateY(-3px);
    }
}

/* 🎭 الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease both;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease both;
}

/* 🎨 تحسينات إمكانية الوصول */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 🎯 حالات التركيز */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 🔧 تحسينات الأداء */
.service-card,
.feature-card,
.stat-card {
    will-change: transform;
}

img {
    max-width: 100%;
    height: auto;
}

/* 🎪 تأثيرات إضافية */
.hover-lift:hover {
    transform: translateY(-5px);
}

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

.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 🚀 تحسينات احترافية للعناصر الجديدة */

/* 📊 تحسينات قسم الإحصائيات المتقدمة */
.advanced-stats {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.advanced-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(40, 58, 131, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.stats-dashboard {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    overflow-x: hidden;
}

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

@media (max-width: 768px) {
    .stats-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem;
        margin: 0 -0.5rem;
    }
    
    .stats-row::-webkit-scrollbar {
        height: 4px;
    }
    
    .stats-row::-webkit-scrollbar-track {
        background: rgba(var(--bg-primary-rgb), 0.1);
        border-radius: 4px;
    }
    
    .stats-row::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .stat-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-bottom: 0.5rem;
    }
    
    .stats-dashboard {
        padding-bottom: 1rem;
    }
}

.stat-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.active-card {
    transform: scale(1.02) !important;
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary-color) !important;
    z-index: 2;
}

.stat-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}

.stat-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
    z-index: 1;
}

.stat-icon-glow {
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.stat-card:hover .stat-icon-glow {
    opacity: 0.7;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-progress {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-growth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

.stat-growth i {
    font-size: 0.75rem;
}

/* تحسينات الرسم البياني */
.stats-chart {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.stats-chart.active {
    cursor: grabbing;
}

/* إزالة مؤشر الماوس للعناصر غير التفاعلية */
.decoration-dots,
.hero-particles,
.background-effects,
.stat-icon-glow,
.hero-image::before,
.hero-image::after,
.service-card::before,
.feature-card::before,
.parallax-bg,
.floating-element,
.animated-gradient,
.glow-effect {
    pointer-events: none;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.chart-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
}

.chart-scroll-hint,
.stats-scroll-hint {
    display: none;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .chart-scroll-hint,
    .stats-scroll-hint {
        display: block;
    }
    
    .mobile-only {
        display: block;
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.chart-container {
    height: 300px;
    position: relative;
    min-width: 400px; /* ضمان عرض أدنى للرسم البياني */
    margin-top: 2rem;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    position: relative;
    z-index: 2;
}

.chart-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.year-label {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.bar-group {
    display: flex;
    gap: 1rem;
    height: 250px;
    align-items: flex-end;
}

.bar {
    width: 40px;
    background: var(--primary-color);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-ai {
    background: linear-gradient(180deg, var(--chart-ai), var(--primary-dark));
}

.bar-traditional {
    background: linear-gradient(180deg, var(--chart-traditional), var(--secondary-dark));
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 1;
}

.grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--chart-grid);
}

.grid-line span {
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: rgba(var(--bg-primary-rgb), 0.7);
    padding: 0 4px;
    border-radius: 2px;
}

/* تحسينات الاستجابة للإحصائيات */
@media (max-width: 992px) {
    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .bar {
        width: 30px;
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bar {
        width: 25px;
    }
    
    .bar-value {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .bar-group {
        gap: 0.5rem;
    }
    
    .bar {
        width: 20px;
    }
}

/* 🏆 تحسين Hero Badge */
.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(40, 58, 131, 0.3);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
}

.badge-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 🎨 تحسين عنوان Hero */
.hero-title {
    margin-bottom: 2rem;
    position: relative;
}

.title-decoration {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.decoration-line {
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 1px;
}

.decoration-dots {
    display: flex;
    gap: 0.5rem;
}

.decoration-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.decoration-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.decoration-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

/* ⭐ تحسين Hero Features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.hero-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-features .feature-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-features .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(40, 58, 131, 0.3);
}

.hero-features .feature-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-features .feature-item:hover .feature-icon::after {
    opacity: 1;
}

.hero-features .feature-item span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* 🎯 تحسين الأزرار */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.btn-glass:hover .btn-shimmer {
    left: 100%;
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover .btn-glow {
    opacity: 1;
    filter: blur(8px);
}

.btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 📊 تحسين الإحصائيات */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
}

.hero-stats .stat-item {
    text-align: center;
    position: relative;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 1rem;
    color: white;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-icon::after {
    opacity: 1;
    animation: neon-pulse 1.5s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% { filter: blur(2px); }
    50% { filter: blur(4px); }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 🎨 تحسين القيم (بدلاً من الجوائز) */
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.value-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    padding: 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.value-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.value-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
}

/* 🌙 تحسينات النمط الداكن */
[data-theme="dark"] .hero-badge {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-features .feature-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hero-features .feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .hero-stats {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* تحسينات إضافية للنمط الداكن */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .header-main {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-link {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .stat-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* 📱 تحسينات شاملة للأجهزة المحمولة - مظهر التطبيق الأصلي */

/* إزالة العناصر المؤثرة على الأداء في الجوال */
.mobile-device .hero-particles,
.mobile-device .background-effects,
.mobile-device .decoration-dots,
.mobile-device .stat-icon-glow,
.mobile-device .hero-image::before,
.mobile-device .hero-image::after,
.mobile-device .service-card::before,
.mobile-device .feature-card::before,
.mobile-device .parallax-bg,
.mobile-device .floating-element,
.mobile-device .animated-gradient,
.mobile-device .glow-effect {
    display: none !important;
}

.mobile-device .hero-title {
    font-size: 1.8rem;
}

.mobile-device .hero-subtitle {
    font-size: 0.9rem;
}

.mobile-device .service-card,
.mobile-device .feature-card,
.mobile-device .stat-card {
    transform: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease !important;
    animation: none !important;
}

.mobile-device .service-card:hover,
.mobile-device .feature-card:hover,
.mobile-device .stat-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
}

/* تحسينات إضافية للجوال */
.mobile-device .header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(var(--bg-primary-rgb), 0.85);
    box-shadow: var(--shadow-sm);
    height: 60px;
    padding: 0;
}

.mobile-device .header-main .container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* تحسين أداء الهيدر على الجوال */
@media (max-width: 480px) {
    .header-main {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header-main.scrolled {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background-color: rgba(var(--bg-primary-rgb), 0.9);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

.mobile-device .nav-menu {
    max-height: 85vh;
    overflow-y: auto;
}

.mobile-device .hero {
    background-attachment: scroll;
}

.mobile-device .section-badge {
    transform: none !important;
}

.mobile-device .btn {
    padding: 0.75rem 1.25rem;
}

.mobile-device .btn-primary,
.mobile-device .btn-secondary {
    background-image: none;
}

.mobile-device .btn-primary {
    background-color: var(--primary-color);
}

.mobile-device .btn-secondary {
    background-color: var(--secondary-color);
}

/* تحسين أداء التمرير على الجوال */
.mobile-device {
    scroll-behavior: auto;
}

.mobile-device * {
    -webkit-tap-highlight-color: transparent;
}

/* تحسينات إضافية للجوال */
.mobile-device input,
.mobile-device select,
.mobile-device textarea {
    font-size: 16px !important; /* منع تكبير الشاشة تلقائياً عند التركيز على حقول الإدخال */
}

.mobile-device .btn,
.mobile-device .nav-link,
.mobile-device .feature-item,
.mobile-device .service-card {
    touch-action: manipulation; /* تحسين استجابة اللمس */
}

/* تحسين الأداء على الأجهزة ذات الشاشات الصغيرة */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    .stat-card,
    .service-card,
    .feature-card {
        padding: 1rem;
    }
    
    .stats-chart {
        padding: 1rem 0.75rem;
    }
    
    .chart-container {
        min-width: 300px;
        height: 200px;
    }
    
    .bar {
        width: 15px;
    }
    
    .chart-scroll-hint {
        font-size: 0.7rem;
    }
}

/* تحسينات للأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .container {
        width: 90%;
    }
    
    .hero-content {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .services-grid, 
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .container {
        width: 85%;
    }
    
    .hero-content {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid, 
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        width: 100%;
    }
}

/* 📱 تحسينات الاستجابة */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid, 
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .about-text {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .about-values {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
    
    .header-main .container {
        padding: 0 1rem;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu {
        width: 250px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* تحسينات الهيدر للجوال */
    .header-main {
        padding: 0.5rem 0;
    }
    
    .header-main .container {
        padding: 0 0.5rem;
    }
    
    .logo-container {
        max-width: 40px;
        overflow: hidden;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-actions {
        gap: 0.25rem;
    }
    
    .search-toggle,
    .notifications-toggle,
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        padding: 0.75rem;
        width: 85%;
        max-width: 280px;
    }
    
    .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        font-size: 1rem;
        margin-left: 0.5rem;
    }
    
    /* تحسينات قسم Hero للجوال */
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-badge {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .badge-icon {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.6rem;
    }
    
    .badge-text {
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .title-line, 
    .title-highlight, 
    .title-accent {
        margin-bottom: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-features {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
    
    .feature-text {
        font-size: 0.75rem;
    }
    
    /* تحسينات الأقسام للجوال */
    section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    .section-badge {
        margin-bottom: 0.75rem;
    }
    
    /* تحسينات البطاقات للجوال */
    .service-card,
    .feature-card,
    .stat-card {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    .service-icon,
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .service-title,
    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-description,
    .feature-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* تحسينات الإحصائيات للجوال */
    .stats-dashboard {
        padding: 0;
    }
    
    .stats-row {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 1.25rem;
    }
    
    .stat-icon-wrapper {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-icon-wrapper i {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .stat-growth {
        font-size: 0.75rem;
    }
    
    .chart-header h3 {
        font-size: 1rem;
    }
    
    .chart-legend {
        gap: 1rem;
        font-size: 0.75rem;
    }
    
    .stats-chart {
        padding: 1.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
        border-radius: 0.5rem;
    }
    
    .chart-container {
        min-width: 350px;
        height: 250px;
    }
    
    .chart-bars {
        padding: 0 1rem;
    }
    
    .bar-group {
        gap: 0.5rem;
    }
    
    .bar {
        width: 18px;
    }
    
    .bar-value {
        font-size: 0.65rem;
        top: -20px;
    }
    
    .grid-line span {
        font-size: 0.65rem;
    }
    
    /* تحسينات التذييل للجوال */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.85rem;
    }
    
    .footer-logo {
        margin-bottom: 0.75rem;
    }
    
    .footer-logo i {
        font-size: 1.25rem;
        margin-left: 0.5rem;
    }
    
    .footer-logo span {
        font-size: 1rem;
    }
    
    .social-links {
        margin-top: 1rem;
    }
    
    .social-links a {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
        font-size: 0.75rem;
    }
}

/* 🚀 تحسينات متقدمة لمظهر التطبيق الأصلي على الجوال */

/* منع التمرير الأفقي والتكبير */
.mobile-device body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* تمكين التحديد للنصوص المهمة فقط */
.mobile-device p,
.mobile-device h1,
.mobile-device h2,
.mobile-device h3,
.mobile-device h4,
.mobile-device h5,
.mobile-device h6,
.mobile-device span,
.mobile-device a {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* شريط علوي ثابت يشبه التطبيقات الأصلية */
.mobile-device .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
}

/* تعديل المحتوى ليبدأ تحت الشريط الثابت */
.mobile-device main {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

/* تحسين التنقل السفلي */
.mobile-device .footer {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
    margin-top: auto;
}

/* تحسين الأقسام للعرض المتدفق */
.mobile-device .section {
    margin-bottom: 0.5rem;
}

.mobile-device .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* تحسين البطاقات لتبدو أكثر حداثة */
.mobile-device .service-card,
.mobile-device .feature-card {
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* تأثيرات اللمس للعناصر التفاعلية */
.mobile-device .btn:active,
.mobile-device .service-card:active,
.mobile-device .feature-card:active,
.mobile-device .nav-link:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* تحسين الأزرار للمس */
.mobile-device .btn {
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

/* تأثير الموجة عند النقر */
.mobile-device .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none;
}

.mobile-device .btn:active::after {
    width: 300px;
    height: 300px;
}

/* تحسين التنقل للجوال */
.mobile-device .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 2rem 1rem;
    z-index: 999;
    -webkit-overflow-scrolling: touch;
}

.mobile-device .nav-menu.show {
    transform: translateX(0);
}

.mobile-device .nav-item {
    margin-bottom: 0.5rem;
}

.mobile-device .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mobile-device .nav-link:hover,
.mobile-device .nav-link.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-device .nav-link i {
    margin-left: 12px;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.mobile-device .nav-link:active i {
    transform: scale(1.1);
}

/* خلفية شفافة عند فتح القائمة */
.mobile-device .nav-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-device .nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* تحسين النماذج للجوال */
.mobile-device input,
.mobile-device textarea,
.mobile-device select {
    min-height: 48px;
    border-radius: 12px;
    font-size: 16px; /* لمنع التكبير في iOS */
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-device input:focus,
.mobile-device textarea:focus,
.mobile-device select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 58, 131, 0.1);
}

/* إخفاء شريط التمرير في الجوال */
.mobile-device ::-webkit-scrollbar {
    display: none;
}

.mobile-device {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* تحسين المساحات الآمنة */
.mobile-device .header-main {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    height: 60px;
    display: flex;
    align-items: center;
}

.mobile-device .hero {
    padding-top: calc(2rem + env(safe-area-inset-top));
    padding-bottom: 2rem;
}

/* تحسين الصور للجوال */
.mobile-device img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    loading: lazy;
}

/* تحسين الإشعارات للجوال */
.mobile-device .toast {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 1rem;
    right: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* تحسين شاشة التحميل للجوال */
.mobile-device .loading-screen {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* تحسين الإحصائيات للجوال */
.mobile-device .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mobile-device .stat-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-device .stat-card:active {
    transform: scale(0.98);
}

/* تحسين القسم الرئيسي */
.mobile-device .hero-content {
    text-align: center;
    padding: 2rem 0;
}

/* تحسين القوائم المنسدلة للجوال */
.mobile-device .dropdown-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    -webkit-overflow-scrolling: touch;
}

.mobile-device .dropdown-menu.show {
    transform: translateY(0);
}

/* تحسين النصوص للقراءة المريحة */
.mobile-device .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mobile-device .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* تحسين الروابط */
.mobile-device a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    touch-action: manipulation;
}

.mobile-device a:active {
    color: var(--primary-dark);
}

/* تحسين الحاويات */
.mobile-device .card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-device .card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* إضافة مؤشر التحميل للصور */
.mobile-device img {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.mobile-device img[src] {
    background: none;
    animation: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* تحسين التمرير السلس */
.mobile-device {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* إضافة مساحة إضافية في الأسفل للتنقل الآمن */
.mobile-device body {
    padding-bottom: env(safe-area-inset-bottom);
}

/* تحسين أداء الانتقالات */
.mobile-device * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* إضافة تأثير النبض للعناصر المهمة */
@keyframes mobile-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.mobile-device .pulse {
    animation: mobile-pulse 2s infinite;
}

/* تحسين الإمكانية الوصولية */
.mobile-device .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.3s ease;
}

.mobile-device .skip-link:focus {
    top: 6px;
}

/* إضافة مؤشرات التفاعل */
.mobile-device .interactive {
    position: relative;
    overflow: hidden;
}

.mobile-device .interactive::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;
}

.mobile-device .interactive:active::before {
    left: 100%;
}