/* =========================================
   إعدادات متغيرة حديثة متطورة
========================================= */
:root {
    /* الألوان الأساسية */
    --primary: #502b78;
    --primary-light: #613787;
    --primary-dark: #392a5e;
    --primary-glow: rgba(80, 43, 120, 0.35);
    
    --secondary: #25a7c9;
    --secondary-light: #46cde6;
    --secondary-dark: #1b7f97;
    --secondary-glow: rgba(37, 167, 201, 0.35);
    
    --accent: #5b5ca2;
    --accent-light: #7476c5;
    --accent-dark: #444583;
    --accent-glow: rgba(91, 92, 162, 0.35);
    
    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3388b6;
    
    /* تدرجات الألوان للوضع الليلي */
    --dark: #0f172a;
    --darker: #020617;
    --dark-light: #1e293b;
    --dark-transparent: rgba(2, 6, 23, 0.95);
    
    --light: #f8fafc;
    --light-dark: #e2e8f0;
    --light-transparent: rgba(248, 250, 252, 0.05);
    
    --gray: #94a3b8;
    --gray-light: #cbd5e1;
    --gray-dark: #475569;
    
    /* ألوان الوضع النهاري الجميلة */
    --day-primary: #502b78;
    --day-primary-light: #613787;
    --day-primary-dark: #4338ca;
    
    --day-secondary: #10b981;
    --day-secondary-light: #34d399;
    --day-secondary-dark: #059669;
    
    --day-accent: #f59e0b;
    --day-accent-light: #fbbf24;
    --day-accent-dark: #d97706;
    
    --day-bg: #f8fafc;
    --day-bg-secondary: #f1f5f9;
    --day-bg-card: #ffffff;
    --day-bg-hover: #f8fafc;
    
    --day-text: #1e293b;
    --day-text-secondary: #64748b;
    --day-text-muted: #94a3b8;
    
    --day-border: #e2e8f0;
    --day-border-hover: #cbd5e1;
    
    /* التدرجات الحديثة */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-primary-reverse: linear-gradient(135deg, var(--primary-light), var(--primary));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
    --gradient-dark: linear-gradient(135deg, var(--dark), var(--darker));
    --gradient-light: linear-gradient(135deg, var(--light), var(--light-dark));
    
    /* تدرجات الوضع النهاري */
    --day-gradient-primary: linear-gradient(135deg, var(--day-primary), var(--day-primary-light));
    --day-gradient-secondary: linear-gradient(135deg, var(--day-secondary), var(--day-secondary-light));
    --day-gradient-accent: linear-gradient(135deg, var(--day-accent), var(--day-accent-light));
    --day-gradient-card: linear-gradient(135deg, #ffffff, #f8fafc);
    --day-gradient-hero: linear-gradient(135deg, #f8fafc, #e2e8f0);
    
    --gradient-purple-blue: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gradient-blue-green: linear-gradient(135deg, #06b6d4, #10b981);
    --gradient-sunset: linear-gradient(135deg, #f59e0b, #ec4899);
    --gradient-ocean: linear-gradient(135deg, #3b82f6, #06b6d4);
    
    /* الظلال الحديثة */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-3xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    
    /* ظلال الوضع النهاري */
    --day-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --day-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --day-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --day-shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    --day-shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
    
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --day-shadow-glow: 0 0 40px rgba(79, 70, 229, 0.15);
    --shadow-glow-secondary: 0 0 40px rgba(16, 185, 129, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(245, 158, 11, 0.3);
    
    /* الظلال الداخلية */
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-inner-lg: inset 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    /* انتقالات سلسة */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* زوايا دائرية */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* تأثيرات blur */
    --blur-sm: blur(4px);
    --blur-md: blur(8px);
    --blur-lg: blur(12px);
    --blur-xl: blur(16px);
    
    /* أنيميشن متغيرات */
    --animation-speed-slow: 3s;
    --animation-speed-normal: 2s;
    --animation-speed-fast: 1s;

/* قياسات تباعد موحّدة (Spacing scale) */
--section-py: 120px;
--section-py-md: 96px;
--section-py-sm: 72px;
--section-header-mb: 56px;
--grid-gap: 24px;
--grid-mb: 48px;
--card-gap: 48px;
--block-mb: 56px;

}



/* Legacy section class mapping (for older HTML section class names) */
.services, .process {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(180deg, var(--darker) 0%, rgba(2, 6, 23, 0.8) 100%);
}
body.light-theme .services,
body.light-theme .process {
    background: linear-gradient(180deg, var(--day-bg) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.portfolio {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.8) 0%, var(--darker) 100%);
}
body.light-theme .portfolio {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, var(--day-bg) 100%);
}

.about {
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 992px) {
    :root { --section-py: var(--section-py-md); }
}
@media (max-width: 576px) {
    :root { --section-py: var(--section-py-sm); --section-header-mb: 40px; --grid-gap: 18px; --grid-mb: 36px; --card-gap: 28px; --block-mb: 40px; }
}

/* Clickable cards */
a.service-card, a.blog-card, a.project-card {
    color: inherit;
    text-decoration: none;
}
.card-link { cursor: pointer; }

/* Centered section actions */
.section-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* =========================================
   إعدادات عامة متطورة
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --typing-caret-color: var(--primary);
    --textglow-soft: rgba(99, 102, 241, 0.5);
    --textglow-strong: rgba(99, 102, 241, 0.8);
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* خلفية متدرجة متحركة للوضع الليلي */
body.dark-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
    animation: gradientShift 20s ease infinite alternate;
}

/* خلفية متدرجة متحركة للوضع النهاري */
body.light-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
    animation: gradientShift 20s ease infinite alternate;
}

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

/* الوضع النهاري - إعدادات أساسية */
body.light-theme {
    background-color: var(--day-bg);
    color: var(--day-text);
    --typing-caret-color: var(--day-primary);
    --textglow-soft: rgba(79, 70, 229, 0.3);
    --textglow-strong: rgba(79, 70, 229, 0.5);
}

/* تخصيص شريط التمرير المتطور */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
    border-radius: var(--radius-full);
}

body.light-theme ::-webkit-scrollbar-track {
    background: var(--day-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--dark);
    transition: var(--transition-normal);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: var(--day-gradient-primary);
    border: 2px solid var(--day-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary-reverse);
    transform: scale(1.1);
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--day-gradient-primary);
}

::-webkit-scrollbar-corner {
    background: var(--dark);
}

body.light-theme ::-webkit-scrollbar-corner {
    background: var(--day-bg);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   شاشة التحميل المتطورة
========================================= */
.advanced-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

body.light-theme .advanced-loader {
    background: var(--day-bg);
}

.advanced-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.loader-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s ease-in-out infinite, rotate 20s linear infinite;
    box-shadow: var(--shadow-glow);
}

body.light-theme .loader-icon {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

.loader-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite reverse;
}

body.light-theme .loader-icon::before {
    background: var(--day-gradient-primary);
}

.loader-icon i {
    font-size: 48px;
    color: white;
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

.loader-text {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    animation: textGlow 2s ease-in-out infinite alternate;
}

body.light-theme .loader-text {
    background: var(--day-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.loader-text span {
    color: var(--light);
}

body.light-theme .loader-text span {
    color: var(--day-text);
}

.loader-progress {
    width: 400px;
    max-width: 90%;
    margin: 0 auto 24px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

body.light-theme .progress-bar {
    background: rgba(15, 23, 42, 0.1);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    animation: loading 2s ease-in-out forwards;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
}

body.light-theme .progress-bar::after {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

@keyframes loading {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.progress-text {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

body.light-theme .progress-text {
    color: var(--day-text-secondary);
}

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

.loader-stats {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.loader-stat {
    text-align: center;
    padding: 0 20px;
}

.loader-stat .stat-number {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
}

body.light-theme .loader-stat .stat-number {
    background: var(--day-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.loader-stat .stat-label {
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

body.light-theme .loader-stat .stat-label {
    color: var(--day-text-secondary);
}

/* =========================================
   خلفية الجسيمات
========================================= */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   شريط اللغة المتطور
========================================= */
.language-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: var(--blur-lg);
    z-index: 1002;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .language-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--day-border);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.language-switcher {
    display: flex;
    gap: 12px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

body.light-theme .lang-option {
    background: rgba(15, 23, 42, 0.05);
    color: var(--day-text);
}

.lang-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

body.light-theme .lang-option::before {
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.1), transparent);
}

.lang-option:hover::before {
    left: 100%;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .lang-option:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--day-text);
    border-color: var(--day-border);
}

.lang-option.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

body.light-theme .lang-option.active {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

.lang-option.active:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

body.light-theme .lang-option.active:hover {
    box-shadow: var(--day-shadow-xl);
}

.top-contact-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
    transition: var(--transition-fast);
}

body.light-theme .top-contact-info span {
    color: var(--day-text-secondary);
}

.top-contact-info span:hover {
    color: var(--primary-light);
}

body.light-theme .top-contact-info span:hover {
    color: var(--day-primary);
}

.top-contact-info i {
    font-size: 13px;
}

/* =========================================
   الهيدر المتطور
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: var(--blur-xl);
    z-index: 1001;
    padding: 20px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}


/* Offset header when language bar exists */
.language-bar + .header { top: 48px; }
body.light-theme .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--day-border);
    box-shadow: var(--day-shadow-lg);
}

.header.scrolled {
    padding: 16px 0;
    box-shadow: var(--shadow-xl);
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: var(--blur-xl);
}

body.light-theme .header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--day-shadow-xl);
}

.header.scroll-up {
    transform: translateY(0);
}

.header.scroll-down {
    transform: translateY(-100%);
}

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

/* الشعار المتطور */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    position: relative;
}

.logo-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

body.light-theme .logo-icon::before {
    background: var(--day-gradient-primary);
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--dark);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: 2;
}

body.light-theme .logo-icon::after {
    background: var(--day-bg);
}

.logo-icon i {
    position: relative;
    z-index: 3;
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: iconPulse 3s ease-in-out infinite;
}

/* Logo image support */
.logo-icon--img::before,
.logo-icon--img::after,
.logo-icon--img .logo-pulse {
    display: none !important;
}

.logo-icon--img {
    width: 64px;
    height: 64px;
}

.logo-icon--img .logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

body.light-theme .logo-icon--img .logo-img {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

body.light-theme .logo-icon i {
    background: var(--day-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

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

.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    z-index: 0;
    opacity: 0;
    animation: pulseGlow 2s ease-in-out infinite;
}

body.light-theme .logo-pulse {
    background: var(--day-gradient-primary);
}

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

.logo-text {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    transition: var(--transition-normal);
}

body.light-theme .logo-text {
    background: var(--day-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-text span {
    color: var(--light);
}

body.light-theme .logo-text span {
    color: var(--day-text);
}

.logo:hover .logo-text {
    transform: translateX(5px);
}

/* القائمة المتطورة */
.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    position: relative;
    padding: 14px 24px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

body.light-theme .nav-link {
    color: var(--day-text-secondary);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    z-index: -1;
}

body.light-theme .nav-link::before {
    background: var(--day-gradient-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

body.light-theme .nav-link::after {
    background: var(--day-gradient-primary);
}

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

body.light-theme .nav-link:hover {
    color: var(--day-text);
}

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

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: var(--light);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-inner);
}

body.light-theme .nav-link.active {
    color: var(--day-text);
    background: rgba(79, 70, 229, 0.1);
}

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

.nav-link.active::after {
    width: 60%;
    box-shadow: 0 0 20px var(--primary-glow);
}

body.light-theme .nav-link.active::after {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

/* القائمة المنسدلة المتطورة */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 500px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: var(--blur-xl);
    border-radius: var(--radius-xl);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-3xl);
    z-index: 1000;
}

body.light-theme .dropdown-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--day-border);
    box-shadow: var(--day-shadow-2xl);
}

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

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.dropdown-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.light-theme .dropdown-column h4 {
    color: var(--day-text);
    border-bottom: 2px solid rgba(79, 70, 229, 0.3);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    margin-bottom: 8px;
}

body.light-theme .dropdown-item {
    color: var(--day-text-secondary);
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    transform: translateX(5px);
}

body.light-theme .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--day-primary);
}

.dropdown-item i {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.dropdown-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

body.light-theme .dropdown-footer {
    border-top: 1px solid var(--day-border);
}

/* أزرار التنقل */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.request-service-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.request-service-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: var(--transition-slow);
    z-index: -1;
}

body.light-theme .request-service-btn::before {
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.2), transparent);
}

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

/* قائمة الموبايل */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    z-index: 1003;
}

body.light-theme .hamburger {
    background: rgba(15, 23, 42, 0.1);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

body.light-theme .hamburger:hover {
    background: rgba(15, 23, 42, 0.15);
}

.bar {
    width: 28px;
    height: 2px;
    background: var(--light);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

body.light-theme .bar {
    background: var(--day-text);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
   أزرار عامة متطورة
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    outline: none;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

body.light-theme .btn::before {
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.1), transparent);
}

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

/* زر أساسي */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

body.light-theme .btn-primary {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

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

body.light-theme .btn-primary:hover {
    box-shadow: var(--day-shadow-2xl);
}

/* زر مع تأثير 3D */
.btn-hover-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn-hover-3d:hover {
    transform: translateY(-3px) rotateX(5deg) rotateY(5deg);
}

.btn-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-normal);
}

body.light-theme .btn-glow {
    background: var(--day-gradient-primary);
}

.btn-hover-3d:hover .btn-glow {
    opacity: 0.5;
}

/* زر مع تأثير توهج */
.btn-hover-glow {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--light);
}

body.light-theme .btn-hover-glow {
    border: 2px solid var(--day-border);
    color: var(--day-text);
}

.btn-hover-glow:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: rgba(99, 102, 241, 0.1);
}

body.light-theme .btn-hover-glow:hover {
    border-color: var(--day-primary);
    color: var(--day-primary);
    box-shadow: var(--day-shadow-glow);
    background: rgba(79, 70, 229, 0.1);
}

/* أحجام الأزرار */
.btn-lg {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* زر الإرسال */
.btn-submit {
    position: relative;
}

.btn-submit .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-submit.loading .btn-loading {
    opacity: 1;
}

.btn-submit.loading span {
    opacity: 0;
}

/* زر ثانوي */
.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-glow-secondary);
}

.btn-secondary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

/* زر تفريغ */
.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body.light-theme .btn-outline {
    background: transparent;
    color: var(--day-text);
    border: 2px solid var(--day-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

body.light-theme .btn-outline:hover {
    border-color: var(--day-primary);
    color: var(--day-primary);
    background: rgba(79, 70, 229, 0.1);
}

/* =========================================
   القسم الرئيسي المتطور (Hero)
========================================= */
.hero {
    position: relative;
    padding: 200px 0 150px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

body.light-theme .hero {
    background: var(--day-gradient-hero);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.layer-1 {
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    transform: translateZ(0.1px) scale(1.1);
}

body.light-theme .layer-1 {
    background: radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
}

.layer-2 {
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    transform: translateZ(0.3px) scale(1.3);
}

body.light-theme .layer-2 {
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

.layer-3 {
    background: radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    transform: translateZ(0.6px) scale(1.6);
}

body.light-theme .layer-3 {
    background: radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

/* العناصر العائمة */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-md);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatElement 20s infinite ease-in-out;
    transition: var(--transition-normal);
    z-index: 1;
}

body.light-theme .floating-element {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--day-border);
    box-shadow: var(--day-shadow-lg);
}

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

body.light-theme .floating-element:hover {
    box-shadow: var(--day-shadow-xl);
}

.floating-element i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

body.light-theme .floating-element i {
    color: var(--day-primary);
}

.floating-element span {
    font-size: 13px;
    font-weight: 600;
    color: var(--light);
}

body.light-theme .floating-element span {
    color: var(--day-text);
}

.element-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-normal);
}

body.light-theme .element-glow {
    background: var(--day-gradient-primary);
}

.floating-element:hover .element-glow {
    opacity: 0.3;
}

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

.element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.element-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.element-4 {
    top: 40%;
    right: 25%;
    animation-delay: 15s;
}

.element-5 {
    top: 10%;
    right: 10%;
    animation-delay: 3s;
}

.element-6 {
    bottom: 20%;
    left: 15%;
    animation-delay: 8s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(-30px, 30px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, -30px) rotate(270deg);
    }
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 40px;
    backdrop-filter: var(--blur-md);
    animation: slideInLeft 0.8s ease;
}

body.light-theme .hero-badge {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--day-primary);
}

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

.hero-title {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.gradient-text {
    background: linear-gradient(to right, #fff 20%, var(--primary-light) 40%, var(--secondary-light) 60%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 3s linear infinite;
}

body.light-theme .gradient-text {
    background: linear-gradient(to right, var(--day-text) 20%, var(--day-primary-light) 40%, var(--day-secondary-light) 60%, var(--day-text) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

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

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--typing-caret-color);
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--typing-caret-color);
    }
}

}

.title-line {
    display: block;
    font-size: 48px;
    margin-top: 16px;
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: -1;
    border-radius: var(--radius-sm);
}

body.light-theme .highlight-text::after {
    background: var(--day-gradient-primary);
}

.hero-description {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

body.light-theme .hero-description {
    color: var(--day-text-secondary);
}

.highlight {
    color: var(--primary-light);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

body.light-theme .highlight {
    color: var(--day-primary);
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.2;
    border-radius: var(--radius-sm);
}

body.light-theme .highlight::before {
    background: var(--day-gradient-primary);
}

.hero-actions {
    display: flex;
    gap: 24px;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

body.light-theme .stat-card {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-glow);
}

body.light-theme .stat-card:hover {
    border-color: var(--day-primary);
    background: rgba(79, 70, 229, 0.1);
    box-shadow: var(--day-shadow-glow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

body.light-theme .stat-icon {
    background: var(--day-gradient-primary);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
}

body.light-theme .stat-number {
    background: var(--day-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 4px;
    display: block;
}

body.light-theme .stat-label {
    color: var(--day-text-secondary);
}

/* المؤشر البصري */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

body.light-theme .mouse {
    border: 2px solid rgba(15, 23, 42, 0.3);
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

body.light-theme .wheel {
    background: var(--day-primary);
}

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

.scroll-indicator span {
    font-size: 13px;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.light-theme .scroll-indicator span {
    color: var(--day-text-secondary);
}

/* =========================================
   قسم من نحن المتطور
========================================= */
.about-section {
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--section-header-mb);
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.light-theme .section-badge {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--day-primary);
}

.section-title {
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-theme .section-title {
    background: linear-gradient(to right, var(--day-text) 30%, var(--day-primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

body.light-theme .section-subtitle {
    color: var(--day-text-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* بطاقات المهمة والرؤية */
.mission-vision-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.mission-card, .vision-card {
    padding: 40px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.mission-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

body.light-theme .mission-card {
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.vision-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

body.light-theme .vision-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 24px;
}

body.light-theme .card-icon {
    background: var(--day-gradient-primary);
}

.vision-card .card-icon {
    background: var(--gradient-secondary);
}

body.light-theme .vision-card .card-icon {
    background: var(--day-gradient-secondary);
}

.mission-card h3, .vision-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--light);
}

body.light-theme .mission-card h3,
body.light-theme .vision-card h3 {
    color: var(--day-text);
}

.mission-card p, .vision-card p {
    color: var(--gray);
    line-height: 1.7;
}

body.light-theme .mission-card p,
body.light-theme .vision-card p {
    color: var(--day-text-secondary);
}

/* الخط الزمني */
.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

body.light-theme .timeline::before {
    background: var(--day-gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -30px;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
    box-shadow: var(--shadow-glow);
}

body.light-theme .timeline-year {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

.timeline-content {
    padding-left: 40px;
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--light);
}

body.light-theme .timeline-content h4 {
    color: var(--day-text);
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.6;
}

body.light-theme .timeline-content p {
    color: var(--day-text-secondary);
}

/* الجانب البصري */
.about-visual {
    position: relative;
}

.about-image {
    position: relative;
    margin-bottom: 60px;
}

.image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-3xl);
}

body.light-theme .image-container {
    box-shadow: var(--day-shadow-2xl);
}

.image-zoom {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover .image-zoom {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
    padding: 40px;
    opacity: 0;
    transition: var(--transition-normal);
}

body.light-theme .image-overlay {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.9), transparent);
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--light);
}

body.light-theme .overlay-content h4 {
    color: var(--day-text);
}

.overlay-content p {
    color: var(--gray);
    font-size: 16px;
}

body.light-theme .overlay-content p {
    color: var(--day-text-secondary);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(40px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

body.light-theme .shape {
    background: var(--day-gradient-primary);
}

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

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: -30px;
    background: var(--gradient-secondary);
    animation-delay: 2s;
}

body.light-theme .shape-2 {
    background: var(--day-gradient-secondary);
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 20%;
    background: var(--gradient-accent);
    animation-delay: 4s;
}

body.light-theme .shape-3 {
    background: var(--day-gradient-accent);
}

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

/* لماذا تختارنا */
.why-choose-us {
    margin-top: 60px;
}

.why-choose-us h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--light);
    text-align: center;
}

body.light-theme .why-choose-us h3 {
    color: var(--day-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    text-align: center;
}

body.light-theme .feature-item {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-glow);
}

body.light-theme .feature-item:hover {
    border-color: var(--day-primary);
    background: rgba(79, 70, 229, 0.1);
    box-shadow: var(--day-shadow-glow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

body.light-theme .feature-icon {
    background: var(--day-gradient-primary);
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--light);
}

body.light-theme .feature-item h4 {
    color: var(--day-text);
}

.feature-item p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
}

body.light-theme .feature-item p {
    color: var(--day-text-secondary);
}

/* =========================================
   قسم الخدمات المتطور
========================================= */
.services-section {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(180deg, var(--darker) 0%, rgba(2, 6, 23, 0.8) 100%);
}

body.light-theme .services-section {
    background: linear-gradient(180deg, var(--day-bg) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: var(--grid-mb);
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: var(--transition-normal);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.light-theme .service-card {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

body.light-theme .service-card::before {
    background: var(--day-gradient-primary);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-3xl);
}

body.light-theme .service-card:hover {
    background: var(--day-bg-hover);
    border-color: var(--day-primary);
    box-shadow: var(--day-shadow-2xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

body.light-theme .service-icon {
    background: var(--day-gradient-primary);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-icon i {
    font-size: 40px;
    color: white;
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-normal);
}

body.light-theme .icon-glow {
    background: rgba(15, 23, 42, 0.2);
}

.service-card:hover .icon-glow {
    width: 120px;
    height: 120px;
}

.service-content {
    flex: 1;
    margin-bottom: 32px;
}

.service-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--light);
}

body.light-theme .service-title {
    color: var(--day-text);
}

.service-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 16px;
}

body.light-theme .service-description {
    color: var(--day-text-secondary);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--gray);
}

body.light-theme .service-features span {
    background: rgba(15, 23, 42, 0.05);
    color: var(--day-text-secondary);
}

.service-features i {
    color: var(--secondary);
    font-size: 12px;
}

body.light-theme .service-features i {
    color: var(--day-secondary);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    padding: 12px 0;
}

body.light-theme .service-link {
    color: var(--day-primary);
}

.service-link i {
    transition: var(--transition-normal);
}

.service-link:hover {
    color: var(--primary-light);
    gap: 16px;
}

body.light-theme .service-link:hover {
    color: var(--day-primary-light);
}

.service-link:hover i {
    transform: translateX(-5px);
}

.link-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

body.light-theme .link-glow {
    background: var(--day-gradient-primary);
}

.service-link:hover .link-glow {
    transform: scaleX(1);
}

.services-cta {
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: 80px;
}

body.light-theme .services-cta {
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.cta-content h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--light);
}

body.light-theme .cta-content h3 {
    color: var(--day-text);
}

.cta-content p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

body.light-theme .cta-content p {
    color: var(--day-text-secondary);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* =========================================
   قسم المشاريع المتطور
========================================= */
.projects-section {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.8) 0%, var(--darker) 100%);
}

body.light-theme .projects-section {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, var(--day-bg) 100%);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

body.light-theme .filter-btn {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--day-border);
    color: var(--day-text-secondary);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transform: translateY(-2px);
}

body.light-theme .filter-btn:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--day-text);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

body.light-theme .filter-btn.active {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--dark);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

body.light-theme .project-card {
    background: var(--day-bg-card);
    box-shadow: var(--day-shadow-lg);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-3xl);
}

body.light-theme .project-card:hover {
    box-shadow: var(--day-shadow-2xl);
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent 50%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition-normal);
}

body.light-theme .project-overlay {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.9), transparent 50%);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

body.light-theme .project-category {
    background: var(--day-gradient-primary);
}

.overlay-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--light);
}

body.light-theme .overlay-content h3 {
    color: var(--day-text);
}

.overlay-content p {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

body.light-theme .overlay-content p {
    color: var(--day-text-secondary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

body.light-theme .project-link {
    color: var(--day-primary);
}

.project-link:hover {
    gap: 12px;
    color: var(--primary-light);
}

body.light-theme .project-link:hover {
    color: var(--day-primary-light);
}

.project-info {
    padding: 32px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--light);
    flex: 1;
}

body.light-theme .project-header h3 {
    color: var(--day-text);
}

.project-date {
    font-size: 14px;
    color: var(--gray);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

body.light-theme .project-date {
    color: var(--day-text-secondary);
    background: rgba(15, 23, 42, 0.05);
}

.project-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

body.light-theme .project-description {
    color: var(--day-text-secondary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

body.light-theme .project-tech span {
    background: rgba(79, 70, 229, 0.1);
    color: var(--day-primary);
}

.projects-cta {
    text-align: center;
    margin-top: 60px;
}

/* =========================================
   قسم آراء العملاء
========================================= */
.testimonials-section {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(180deg, var(--darker) 0%, rgba(2, 6, 23, 0.9) 100%);
}

body.light-theme .testimonials-section {
    background: linear-gradient(180deg, var(--day-bg) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.testimonials-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 80px;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 32px;
    animation: slideTestimonials 30s linear infinite;
    width: max-content;
}

.testimonial-card {
    min-width: 380px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: var(--transition-normal);
}

body.light-theme .testimonial-card {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
}

body.light-theme .testimonial-card:hover {
    border-color: var(--day-primary);
    background: var(--day-bg-hover);
    box-shadow: var(--day-shadow-xl);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.client-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}

body.light-theme .client-avatar {
    border: 3px solid var(--day-primary);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info {
    flex: 1;
}

.client-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 4px;
}

body.light-theme .client-info h4 {
    color: var(--day-text);
}

.client-info span {
    font-size: 14px;
    color: var(--gray);
}

body.light-theme .client-info span {
    color: var(--day-text-secondary);
}

.rating {
    display: flex;
    gap: 2px;
    color: var(--accent);
    font-size: 14px;
}

body.light-theme .rating {
    color: var(--day-accent);
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--light);
    font-style: italic;
}

body.light-theme .testimonial-content p {
    color: var(--day-text);
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .testimonial-footer {
    border-top: 1px solid var(--day-border);
}

.project-type {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
}

body.light-theme .project-type {
    color: var(--day-primary);
    background: rgba(79, 70, 229, 0.1);
}

.project-date {
    font-size: 14px;
    color: var(--gray);
}

body.light-theme .project-date {
    color: var(--day-text-secondary);
}

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

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.slider-prev, .slider-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition-normal);
}

body.light-theme .slider-prev,
body.light-theme .slider-next {
    background: rgba(15, 23, 42, 0.1);
    border: 1px solid var(--day-border);
    color: var(--day-text);
}

.slider-prev:hover, .slider-next:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

body.light-theme .slider-prev:hover,
body.light-theme .slider-next:hover {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-stats .stat-item {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

body.light-theme .testimonials-stats .stat-item {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

.testimonials-stats .stat-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

body.light-theme .testimonials-stats .stat-item:hover {
    border-color: var(--day-primary);
    background: rgba(79, 70, 229, 0.1);
    box-shadow: var(--day-shadow-glow);
}

.testimonials-stats .stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 12px;
}

body.light-theme .testimonials-stats .stat-number {
    background: var(--day-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.testimonials-stats .stat-label {
    font-size: 16px;
    color: var(--gray);
    font-weight: 600;
}

body.light-theme .testimonials-stats .stat-label {
    color: var(--day-text-secondary);
}

/* =========================================
   قسم المدونة
========================================= */
.blog-section {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.8) 0%, var(--darker) 100%);
}

body.light-theme .blog-section {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, var(--day-bg) 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: var(--grid-mb);
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    height: 100%;
}

body.light-theme .blog-card {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

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

body.light-theme .blog-card:hover {
    border-color: var(--day-primary);
    box-shadow: var(--day-shadow-2xl);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.light-theme .blog-category {
    background: var(--day-gradient-primary);
}

.blog-content {
    padding: 32px;
}

.blog-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 14px;
}

body.light-theme .blog-meta {
    color: var(--day-text-secondary);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--light);
    line-height: 1.3;
}

body.light-theme .blog-title {
    color: var(--day-text);
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

body.light-theme .blog-excerpt {
    color: var(--day-text-secondary);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

body.light-theme .blog-link {
    color: var(--day-primary);
}

.blog-link:hover {
    gap: 12px;
    color: var(--primary-light);
}

body.light-theme .blog-link:hover {
    color: var(--day-primary-light);
}

.blog-cta {
    text-align: center;
}

/* =========================================
   قسم الشركاء
========================================= */
.partners-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .partners-section {
    background: rgba(15, 23, 42, 0.02);
    border-top: 1px solid var(--day-border);
    border-bottom: 1px solid var(--day-border);
}

.partners-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    transition: var(--transition-normal);
}

body.light-theme .partner-logo {
    color: var(--day-text-secondary);
}

.partner-logo:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

body.light-theme .partner-logo:hover {
    color: var(--day-primary);
}

.partner-logo i {
    font-size: 48px;
}

.partner-logo span {
    font-size: 14px;
    font-weight: 600;
}

/* =========================================
   قسم الاتصال المتطور
========================================= */
.contact-section {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(180deg, var(--darker) 0%, rgba(2, 6, 23, 0.95) 100%);
}

body.light-theme .contact-section {
    background: linear-gradient(180deg, var(--day-bg) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--card-gap);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl);
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-xl);
    margin-bottom: var(--block-mb);
}

body.light-theme .contact-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--day-border);
}

.contact-info h3 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

body.light-theme .contact-info h3 {
    color: var(--day-text);
}

.contact-description {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

body.light-theme .contact-description {
    color: var(--day-text-secondary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

body.light-theme .contact-item {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

.contact-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(10px);
}

body.light-theme .contact-item:hover {
    border-color: var(--day-primary);
    background: rgba(79, 70, 229, 0.1);
}

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

body.light-theme .contact-icon {
    background: var(--day-gradient-primary);
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.5;
}

body.light-theme .icon-pulse {
    background: var(--day-gradient-primary);
}

.contact-icon i {
    font-size: 24px;
    color: white;
    position: relative;
    z-index: 1;
}

.contact-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--light);
}

body.light-theme .contact-text h4 {
    color: var(--day-text);
}

.contact-text p, .contact-text a {
    color: var(--gray);
    line-height: 1.6;
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
}

body.light-theme .contact-text p,
body.light-theme .contact-text a {
    color: var(--day-text-secondary);
}

.contact-text a:hover {
    color: var(--primary);
}

body.light-theme .contact-text a:hover {
    color: var(--day-primary);
}

.social-links h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--light);
}

body.light-theme .social-links h4 {
    color: var(--day-text);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .social-icon {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
    color: var(--day-text-secondary);
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

body.light-theme .social-icon:hover {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

/* نموذج الاتصال */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .contact-form-container {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

.contact-form-header {
    margin-bottom: 20px;
}

.contact-form-header h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--light);
}

body.light-theme .contact-form-header h3 {
    color: var(--day-text);
}

.contact-form-header p {
    color: var(--gray);
    font-size: 16px;
}

body.light-theme .contact-form-header p {
    color: var(--day-text-secondary);
}

.advanced-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 12px;
}

body.light-theme .form-group label {
    color: var(--day-text);
}

.form-group label i {
    color: var(--primary);
    font-size: 16px;
}

body.light-theme .form-group label i {
    color: var(--day-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--light);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-normal);
    outline: none;
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
    color: var(--day-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group select:focus,
body.light-theme .form-group textarea:focus {
    border-color: var(--day-primary);
    background: var(--day-bg-hover);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

body.light-theme .form-focus-border {
    background: var(--day-gradient-primary);
}

.form-group input:focus ~ .form-focus-border,
.form-group select:focus ~ .form-focus-border,
.form-group textarea:focus ~ .form-focus-border {
    width: 100%;
}

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

.char-count {
    text-align: right;
    font-size: 13px;
    color: var(--gray);
    margin-top: 8px;
}

body.light-theme .char-count {
    color: var(--day-text-secondary);
}

/* رفع الملفات */
.file-upload .upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 12px;
}

body.light-theme .file-upload .upload-area {
    border: 2px dashed var(--day-border);
}

.file-upload .upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

body.light-theme .file-upload .upload-area:hover {
    border-color: var(--day-primary);
    background: rgba(79, 70, 229, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--gray);
    margin-bottom: 16px;
    display: block;
}

body.light-theme .upload-area i {
    color: var(--day-text-secondary);
}

.upload-area p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 0;
}

body.light-theme .upload-area p {
    color: var(--day-text-secondary);
}

.upload-area span {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

body.light-theme .upload-area span {
    color: var(--day-primary);
}

.uploaded-files {
    margin-top: 16px;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

body.light-theme .uploaded-file {
    background: rgba(15, 23, 42, 0.05);
}

.uploaded-file:last-child {
    margin-bottom: 0;
}

.form-submit {
    margin-top: 22px;
}

.form-note {
    font-size: 13px;
    color: var(--gray);
    text-align: center;
    margin-top: 20px;
}

body.light-theme .form-note {
    color: var(--day-text-secondary);
}

.form-note a {
    color: var(--primary);
    text-decoration: none;
}

body.light-theme .form-note a {
    color: var(--day-primary);
}

.form-note a:hover {
    text-decoration: underline;
}

/* خريطة الموقع */
.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    position: relative;
    box-shadow: var(--shadow-3xl);
}

body.light-theme .contact-map {
    box-shadow: var(--day-shadow-2xl);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body.light-theme .map-placeholder {
    background: linear-gradient(135deg, var(--day-primary), var(--day-secondary));
}

.map-overlay {
    text-align: center;
    color: white;
    z-index: 1;
}

.map-overlay h4 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.map-overlay p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* =========================================
   الفوتر المتطور
========================================= */
.footer {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.95) 0%, var(--darker) 100%);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

body.light-theme .footer {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, var(--day-bg) 100%);
    border-top: 1px solid var(--day-border);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

body.light-theme .footer::before {
    background: linear-gradient(90deg, transparent, var(--day-primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-company {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    text-decoration: none;
}

.footer-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 40px;
    font-size: 16px;
}

body.light-theme .footer-description {
    color: var(--day-text-secondary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 14px;
}

body.light-theme .footer-contact p {
    color: var(--day-text-secondary);
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
}

body.light-theme .footer-contact i {
    color: var(--day-primary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.5fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--light);
    position: relative;
    padding-bottom: 12px;
}

body.light-theme .footer-column h4 {
    color: var(--day-text);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

body.light-theme .footer-column h4::after {
    background: var(--day-gradient-primary);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column ul li a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light-theme .footer-column ul li a {
    color: var(--day-text-secondary);
}

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

body.light-theme .footer-column ul li a:hover {
    color: var(--day-primary);
}

.footer-column ul li a::before {
    content: '›';
    font-size: 18px;
    color: var(--primary);
    opacity: 0;
    transition: var(--transition-fast);
}

body.light-theme .footer-column ul li a::before {
    color: var(--day-primary);
}

.footer-column ul li a:hover::before {
    opacity: 1;
}

.newsletter-column {
    display: flex;
    flex-direction: column;
}

.newsletter-column p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

body.light-theme .newsletter-column p {
    color: var(--day-text-secondary);
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 30px;
}

body.light-theme .input-group {
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
}

.input-group input {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 14px;
    outline: none;
}

body.light-theme .input-group input {
    color: var(--day-text);
}

.input-group button {
    padding: 16px 24px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
}

body.light-theme .input-group button {
    background: var(--day-gradient-primary);
}

.input-group button:hover {
    background: var(--gradient-primary-reverse);
    transform: scale(1.05);
}

body.light-theme .input-group button:hover {
    background: var(--day-gradient-primary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}


/* Footer social links (inline icons) */
.footer-social-links{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top: 14px;
}

.footer-social-links .social-link{
    width:44px;
    height:44px;
    border-radius: var(--radius-lg);
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--gray);
    text-decoration:none;
    transition: var(--transition-normal);
}

body.light-theme .footer-social-links .social-link{
    background: var(--day-bg-card);
    border: 1px solid var(--day-border);
    color: var(--day-text-secondary);
}

.footer-social-links .social-link:hover{
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

body.light-theme .footer-social-links .social-link:hover{
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .footer-bottom {
    border-top: 1px solid var(--day-border);
}

.copyright {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright p {
    color: var(--gray);
    font-size: 14px;
}

body.light-theme .copyright p {
    color: var(--day-text-secondary);
}

.footer-bottom-links {
    display: flex;
    gap: 32px;
}

.footer-bottom-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

body.light-theme .footer-bottom-links a {
    color: var(--day-text-secondary);
}

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

body.light-theme .footer-bottom-links a:hover {
    color: var(--day-primary);
}

/* =========================================
   زر العودة للأعلى المتطور
========================================= */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 125px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
    transform: translateY(20px);
}

body.light-theme .scroll-top {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

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

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-2xl);
}

body.light-theme .scroll-top:hover {
    box-shadow: var(--day-shadow-2xl);
}

.scroll-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

body.light-theme .scroll-glow {
    background: var(--day-gradient-primary);
}

/* =========================================
   نافذة الدردشة المتطورة
========================================= */
.chat-widget {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 380px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: var(--blur-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-3xl);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-normal);
}

body.light-theme .chat-widget {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--day-border);
    box-shadow: var(--day-shadow-2xl);
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .chat-header {
    border-bottom: 1px solid var(--day-border);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--light);
    font-weight: 600;
}

body.light-theme .chat-title {
    color: var(--day-text);
}

.chat-title i {
    color: var(--primary);
    font-size: 20px;
}

body.light-theme .chat-title i {
    color: var(--day-primary);
}

.chat-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-fast);
}

body.light-theme .chat-close {
    color: var(--day-text-secondary);
}

.chat-close:hover {
    color: var(--light);
    transform: rotate(90deg);
}

body.light-theme .chat-close:hover {
    color: var(--day-text);
}

.chat-body {
    padding: 24px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

body.light-theme .message-content {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.chat-message.user .message-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-theme .chat-message.user .message-content {
    background: rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.message-content p {
    color: var(--light);
    font-size: 14px;
    line-height: 1.6;
}

body.light-theme .message-content p {
    color: var(--day-text);
}

.chat-input {
    display: flex;
    gap: 12px;
}

.chat-input input {
    flex: 1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--light);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

body.light-theme .chat-input input {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--day-border);
    color: var(--day-text);
}

.chat-input input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

body.light-theme .chat-input input:focus {
    border-color: var(--day-primary);
    background: rgba(15, 23, 42, 0.08);
}

.send-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-theme .send-btn {
    background: var(--day-gradient-primary);
}

.send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-glow);
}

body.light-theme .send-btn:hover {
    box-shadow: var(--day-shadow-glow);
}

.chat-toggle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1001;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-normal);
}

body.light-theme .chat-toggle {
    background: var(--day-gradient-primary);
    box-shadow: var(--day-shadow-glow);
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-2xl);
}

body.light-theme .chat-toggle:hover {
    box-shadow: var(--day-shadow-2xl);
}

.chat-toggle i {
    font-size: 28px;
}

.chat-notification {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* =========================================
   نظام الإشعارات المتطور
========================================= */
.notifications-container {
    position: fixed;
    top: 100px;
    right: 40px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

.notification {
    position: relative;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: var(--blur-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-3xl);
    animation: slideInRight 0.3s ease forwards;
    transform: translateX(100%);
    opacity: 0;
}

body.light-theme .notification {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--day-border);
    box-shadow: var(--day-shadow-2xl);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: progressBar 5s linear forwards;
}

body.light-theme .notification::before {
    background: linear-gradient(90deg, var(--day-primary), var(--day-secondary));
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.hide {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--danger);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

.notification.info {
    border-left: 4px solid var(--info);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--success);
}

body.light-theme .notification-icon {
    background: rgba(16, 185, 129, 0.05);
}

.notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

body.light-theme .notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.05);
}

.notification.warning .notification-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

body.light-theme .notification.warning .notification-icon {
    background: rgba(245, 158, 11, 0.05);
}

.notification.info .notification-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

body.light-theme .notification.info .notification-icon {
    background: rgba(59, 130, 246, 0.05);
}

.notification-title {
    font-weight: 700;
    color: var(--light);
    font-size: 16px;
}

body.light-theme .notification-title {
    color: var(--day-text);
}

.notification-message {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

body.light-theme .notification-message {
    color: var(--day-text-secondary);
}

.notification-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

body.light-theme .notification-close {
    color: var(--day-text-secondary);
}

.notification-close:hover {
    color: var(--light);
    transform: rotate(90deg);
}

body.light-theme .notification-close:hover {
    color: var(--day-text);
}

/* =========================================
   تأثيرات الحركة العامة
========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    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);
    }
}

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

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

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

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 20px var(--textglow-soft);
    }
    50% {
        text-shadow: 0 0 40px var(--textglow-strong);
    }
}

    50% {
        text-shadow: 0 0 40px rgba(79, 70, 229, 0.5);
    }
}

/* =========================================
   تأثيرات Hover المتقدمة
========================================= */
.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-10px);
}

.hover-scale {
    transition: var(--transition-normal);
}

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

.hover-rotate {
    transition: var(--transition-normal);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-glow {
    transition: var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

body.light-theme .hover-glow:hover {
    box-shadow: var(--day-shadow-glow);
}

/* تأثيرات التركيز */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

body.light-theme .focus-ring:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* تأثيرات النص */
.text-gradient-animate {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientText 3s linear infinite;
}

body.light-theme .text-gradient-animate {
    background: linear-gradient(90deg, var(--day-primary), var(--day-secondary), var(--day-accent), var(--day-primary));
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
}

/* تأثيرات الخلفية */
.bg-gradient-animate {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--primary-light));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

body.light-theme .bg-gradient-animate {
    background: linear-gradient(-45deg, var(--day-primary), var(--day-secondary), var(--day-accent), var(--day-primary-light));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* =========================================
   إستجابة الأجهزة المحمولة
========================================= */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 32px;
    }
    
    .hero-title {
        font-size: clamp(32px, 6vw, 52px);
    }
    
    .title-line {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .mission-vision-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 40px;
    }
    
    .advanced-contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .language-bar + .header { top: 40px; }

    .header {
        top: 0;
        padding: 16px 0;
    }
    
    .language-bar {
        padding: 10px 0;
    }
    
    .language-bar .container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .top-contact-info {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: var(--blur-xl);
        flex-direction: column;
        padding: 120px 32px 32px;
        transition: var(--transition-normal);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1002;
        overflow-y: auto;
    }
    
    body.light-theme .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid var(--day-border);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1003;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        min-width: auto;
        display: none;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dropdown-column h4 {
        margin-top: 24px;
        margin-bottom: 12px;
    }
    
    .dropdown-footer {
        margin-top: 24px;
    }
    
    .hero {
        padding: 160px 0 100px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .title-line {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .floating-element {
        width: 60px;
        height: 60px;
    }
    
    .floating-element i {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .services-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .chat-toggle {
        bottom: 20px;
        right: 20px;
    }

    .scroll-top {
        bottom: 20px;
        right: 95px;
    }
    
    .chat-widget {
        right: 20px;
        bottom: 100px;
        width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .title-line {
        font-size: 24px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-cta {
        padding: 40px 20px;
    }
    
    .cta-content h3 {
        font-size: 24px;
    }
    
    .contact-wrapper {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        min-width: 280px;
        padding: 30px;
    }
    
    .notification {
        width: calc(100vw - 40px);
        right: 20px;
    }
}

/* تحسينات الطباعة */
@media print {
    .advanced-loader,
    .language-bar,
    .header,
    .hero-actions,
    .floating-elements,
    .scroll-indicator,
    .testimonials-slider,
    .chat-toggle,
    .chat-widget,
    .scroll-top,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        padding: 50px 0 !important;
        break-inside: avoid;
    }
    
    .hero {
        padding: 100px 0 !important;
    }
    
    .gradient-text {
        background: none !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
}

/* =========================================
   Layout Fixes v9 (auto-generated)
========================================= */
:root{
  --langbar-h: 0px;
  --header-h: 0px;
  --fixed-stack-h: 0px;
}

/* Prevent content from sitting under fixed language bar + header */
body{
  padding-top: var(--fixed-stack-h, 0px);
}

/* Always offset the fixed header by the language-bar height (0 if none) */
.header{
  top: var(--langbar-h, 0px) !important;
}

/* Mobile dropdown support (JS toggles .active) */
@media (max-width: 768px){
  .dropdown.active .dropdown-content{ 
    display:block;
    opacity:1;
    visibility:visible;
    transform:none;
  }
  /* Make the offcanvas menu start after fixed stack */
  .nav-menu{
    padding-top: calc(var(--fixed-stack-h, 0px) + 56px) !important;
  }
}

/* Lock background scrolling when mobile menu is open */
body.no-scroll{
  overflow:hidden;
  height:100vh;
}

/* Fix floating buttons overlap */
.scroll-top{
  bottom: 92px !important;
}
.chat-toggle{
  bottom: 32px !important;
}

/* Reduce oversized hero spacing now that body is padded */
.hero{
  padding-top: calc(var(--fixed-stack-h, 0px) + 72px) !important;
  padding-bottom: 96px !important;
  min-height: auto !important;
}
@media (max-width: 768px){
  .hero{
    padding-top: calc(var(--fixed-stack-h, 0px) + 56px) !important;
    padding-bottom: 72px !important;
  }
}
@media (max-width: 480px){
  .hero{
    padding-top: calc(var(--fixed-stack-h, 0px) + 48px) !important;
    padding-bottom: 64px !important;
  }
}
