 
        /* تنسيق النافذة المنبثقة */
.system-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.system-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.system-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    text-align: right;
}

.system-modal-overlay.active .system-modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 20px;
}

.modal-features-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.modal-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.modal-features-list li {
    position: relative;
    padding-right: 24px;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-features-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #2563eb;
    font-weight: bold;
}

.modal-footer-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.modal-action-btn {
    flex: 1;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
}

.modal-close-text-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.modal-close-text-btn:hover {
    background: #e2e8f0;
}
        /* تعريف متغيرات الألوان - الوضع الفاتح هو الافتراضي الآن */
        :root {
            --primary: #ff7a00;
            --primary-hover: #ff912a;
            --primary-rgb: 255, 122, 0;
            --radius-lg: 20px;
            --radius-md: 14px;
            --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            
            /* الوضع الفاتح الانيق */
            --bg-dark: #f8fafc;
            --bg-surface: #ffffff;
            --bg-surface-hover: #f1f5f9;
            --nav-bg: rgba(255, 255, 255, 0.8);
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border: rgba(15, 23, 42, 0.06);
            --border-hover: rgba(255, 122, 0, 0.4);
            --shadow: rgba(15, 23, 42, 0.05);
            --grid-color: rgba(0, 0, 0, 0.02);
        }

        /* الوضع الداكن عند التفعيل */
        html.dark-mode {
            --bg-dark: #070b12;
            --bg-surface: #101622;
            --bg-surface-hover: #151d2d;
            --nav-bg: rgba(16, 22, 34, 0.75);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --border: rgba(255, 255, 255, 0.05);
            --border-hover: rgba(255, 122, 0, 0.3);
            --shadow: rgba(0, 0, 0, 0.4);
            --grid-color: rgba(255, 122, 0, 0.03);
        }

        /* إعادة ضبط عامة */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body { 
            font-family: 'Cairo', sans-serif; 
            background-color: var(--bg-dark); 
            color: var(--text-main);
            overflow-x: hidden;
            width: 100%;
            transition: background-color 0.4s ease, color 0.4s ease;
        }

        .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        /* حركات الظهور الانسيابية */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: var(--transition);
        }
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* العناوين والترويسات */
        .section-header { text-align: center; margin-bottom: 60px; }
        .section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.5px; }
        .section-title span { color: var(--primary); }
        .section-subtitle { color: var(--text-muted); margin-top: 12px; font-size: clamp(15px, 1.8vw, 17px); max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }

        /* --- الهيدر والنافبار العائم --- */
        header {
            position: fixed;
            top: 20px; left: 0; right: 0;
            z-index: 9999;
            transition: var(--transition);
        }
        nav {
            background: var(--nav-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            padding: 10px 0; 
            border-radius: 100px;
            transition: var(--transition);
        }
        header.scrolled nav {
            box-shadow: 0 20px 40px var(--shadow);
            padding: 6px 0;
        }
        .nav-container { display: flex; justify-content: space-between; align-items: center; }
        
        .logo { 
            display: inline-flex; 
            align-items: center; 
            font-weight: 900; 
            font-size: 26px; 
            padding: 4px 0;
        }
        .logo img { 
            height: 52px; 
            width: auto; 
            object-fit: contain; 
            display: block;
            transition: var(--transition);
        }
        header.scrolled .logo img {
            height: 46px; 
        }
        .logo span { color: var(--primary); }

        .nav-menu { display: flex; align-items: center; gap: 24px; }
        .nav-links { display: flex; gap: 4px; }
        .nav-links > li > a { 
            font-weight: 600; 
            color: var(--text-muted); 
            padding: 10px 18px;
            border-radius: 100px;
            font-size: 15px;
            transition: var(--transition);
        }
        .nav-links > li > a:hover, .nav-links > li > a.active {
            color: var(--text-main);
            background: var(--bg-surface-hover);
        }

        .nav-actions { display: flex; align-items: center; gap: 16px; }
        
        .theme-toggle {
            background: var(--bg-surface-hover);
            border: 1px solid var(--border);
            color: var(--text-main);
            width: 44px; height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: var(--transition);
        }
        .theme-toggle:hover {
            border-color: var(--primary);
        }
        .theme-toggle svg { 
            width: 20px; 
            height: 20px; 
            transition: var(--transition);
        }
        
        html.dark-mode .theme-toggle .icon-sun { display: none; }
        html:not(.dark-mode) .theme-toggle .icon-moon { display: none; }

        .btn-primary {
            background: var(--primary);
            color: #ffffff !important;
            padding: 14px 32px;
            border-radius: 100px;
            font-weight: 700;
            font-size: 15px;
            box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
            transition: var(--transition);
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 32px rgba(var(--primary-rgb), 0.4);
            background: var(--primary-hover);
        }
        .btn-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }

        .menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); }
        .menu-toggle svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; }

        /* القوائم المنسدلة */
        .dropdown { position: relative; }
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 15px); right: 0;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            min-width: 260px;
            padding: 12px;
            border-radius: var(--radius-md);
            opacity: 0; visibility: hidden;
            transform: translateY(10px);
            transition: var(--transition);
            box-shadow: 0 30px 60px var(--shadow);
        }
        .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
        .dropdown-menu li a {
            display: block; padding: 12px 16px; border-radius: 10px;
            color: var(--text-muted); font-weight: 600; font-size: 14px; transition: var(--transition);
        }
        .dropdown-menu li a:hover { color: var(--text-main); background: var(--bg-surface-hover); }

        /* --- إعدادات منصة التأثير ثلاثي الأبعاد للكروت --- */
        .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
        
        .flip-card {
            background-color: transparent;
            height: 380px;
            perspective: 1000px;
            cursor: pointer;
        }
        .flip-card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
        }
        .flip-card:hover .flip-card-inner,
        .flip-card.flipped .flip-card-inner {
            transform: rotateY(180deg);
        }
        .flip-card-front, .flip-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            padding: 40px 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .flip-card-front {
            background: var(--bg-surface);
            color: var(--text-main);
        }
        .flip-card-back {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
            color: #ffffff;
            transform: rotateY(180deg);
            border-color: var(--primary);
        }
        .flip-card-back h3 { font-size: 22px; font-weight: 700; color: #ffffff; }
        .flip-card-back p {
            color: rgba(255, 255, 255, 0.9) !important;
            font-size: 14px;
            line-height: 1.8;
            margin-top: 12px;
        }
        .feature-icon {
            width: 60px; height: 60px; background: rgba(var(--primary-rgb), 0.08);
            border-radius: 16px; display: flex; align-items: center; justify-content: center;
            margin-bottom: 28px; transition: var(--transition);
        }
        .feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 2; transition: var(--transition); }
        .flip-card:hover .feature-icon { background: rgba(255,255,255,0.2); }
        .flip-card:hover .feature-icon svg { stroke: #ffffff; }
        .flip-card-front h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
        .flip-card-front p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
        .flip-hint { margin-top: auto; font-size: 12px; color: var(--text-muted); font-weight: 600; opacity: 0.7; }

        /* --- قسم الرئيسية --- */
        .hero {
            min-height: 100vh;
            display: flex; align-items: center;
            position: relative; padding-top: 140px; padding-bottom: 80px;
            background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 40px 40px;
            background-position: center top;
        }
        .hero::before {
            content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at 50% -20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%);
            pointer-events: none;
        }
        .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
        .hero-text { text-align: right; z-index: 5; }
        
        .hero-badge {
            display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--primary-rgb), 0.08);
            border: 1px solid rgba(var(--primary-rgb), 0.15); padding: 8px 18px; border-radius: 100px;
            color: var(--primary); font-size: 14px; font-weight: 700; margin-bottom: 24px;
        }
        .hero-badge-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }
        
        .hero-title { font-size: clamp(38px, 5.5vw, 64px); font-weight: 900; line-height: 1.2; letter-spacing: -1px; }
        .hero-title span { color: var(--primary); position: relative; }
        .hero-desc { color: var(--text-muted); font-size: clamp(16px, 2vw, 19px); margin: 28px 0 44px; max-width: 620px; line-height: 1.8; font-weight: 400; }
        
        .hero-visual { position: relative; width: 100%; height: 460px; display: flex; align-items: center; justify-content: center; }
        .hero-tech-card {
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(var(--primary-rgb), 0.03) 100%);
            border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; height: 100%;
            box-shadow: 0 40px 80px var(--shadow); position: relative; overflow: hidden;
            display: flex; flex-direction: column; padding: 24px;
        }
        .tech-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px; }
        .tech-dots { display: flex; gap: 6px; }
        .tech-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }
        html.light-mode .tech-dot { background: rgba(0,0,0,0.1); }
        .tech-dot:nth-child(1) { background: #ff5f56; }
        .tech-dot:nth-child(2) { background: #ffbd2e; }
        .tech-dot:nth-child(3) { background: #27c93f; }
        
        .tech-title { font-size: 12px; font-weight: 700; color: var(--text-muted); font-family: monospace; letter-spacing: 1px; }
        .tech-body { display: flex; flex-direction: column; gap: 14px; flex-grow: 1; justify-content: center; position: relative; }
        .tech-line { height: 12px; background: rgba(255,255,255,0.03); border-radius: 4px; width: 100%; }
        html.light-mode .tech-line { background: rgba(0,0,0,0.03); }
        
        .tech-chart {
            position: absolute; inset: 20px; display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; z-index: 2;
        }
        .chart-bar { width: 100%; background: linear-gradient(to top, rgba(var(--primary-rgb), 0.1), var(--primary)); border-radius: 8px 8px 0 0; animation: barGrow 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform-origin: bottom; }
        
        .floating-element {
            position: absolute; background: var(--bg-surface); border: 1px solid rgba(var(--primary-rgb), 0.2);
            padding: 16px; border-radius: var(--radius-md); box-shadow: 0 20px 40px var(--shadow);
            display: flex; align-items: center; gap: 12px; z-index: 3; animation: float 6s ease-in-out infinite;
        }
        .fe-1 { top: 40px; right: -30px; animation-delay: 0s; }
        .fe-2 { bottom: 60px; left: -30px; animation-delay: 3s; }
        
        .fe-icon { width: 40px; height: 40px; background: rgba(var(--primary-rgb), 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
        .fe-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
        .fe-text h5 { font-size: 14px; font-weight: 700; }
        .fe-text p { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

        @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } }
        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
        @keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

        /* --- قسم الخدمات الرقمية وتأثيرات التتبع المضيء للأصبع بالجوال --- */
        section { padding: 100px 0; }
        .services-clean-grid { 
            display: grid; 
            grid-template-columns: repeat(2, 1fr); 
            gap: 32px; 
        }
        .service-clean-card {
            background: var(--bg-surface); 
            border: 1px solid var(--border);
            border-radius: var(--radius-lg); 
            padding: 40px; 
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                        box-shadow 0.5s ease, 
                        border-color 0.4s ease, 
                        background-color 0.4s ease;
            display: flex; 
            flex-direction: column; 
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        /* خط التأثير المضيء السفلي المخصص للجوال */
        .service-clean-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0%;
            height: 4px;
            background: linear-gradient(90deg, transparent, var(--primary));
            transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .service-card-top {
            display: flex;
            align-items: flex-start;
            gap: 24px;
        }
        .service-clean-icon {
            width: 56px; height: 56px; 
            background: rgba(var(--primary-rgb), 0.06);
            border: 1px solid rgba(var(--primary-rgb), 0.1);
            border-radius: 14px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            flex-shrink: 0;
            transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, border-color 0.3s;
        }
        .service-clean-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 2; transition: transform 0.4s ease, stroke 0.3s; }
        
        /* تأثير الـ Hover على الكمبيوتر */
        .service-clean-card:hover {
            background: var(--bg-surface-hover); 
            border-color: var(--border-hover);
            transform: translateY(-6px); 
            box-shadow: 0 30px 60px var(--shadow);
        }
        .service-clean-card:hover .service-clean-icon {
            background: var(--primary);
            border-color: var(--primary);
            transform: scale(1.1) rotate(-8deg);
        }
        .service-clean-card:hover .service-clean-icon svg { stroke: #ffffff; }

        /* الكلاس الديناميكي عالي التأثير للجوال (يتم تفعيله تلقائياً بالجافاسكريبت) */
        .service-clean-card.dynamic-trigger {
            border-color: var(--primary);
            background: linear-gradient(135deg, var(--bg-surface) 70%, rgba(var(--primary-rgb), 0.05) 100%);
            box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.12);
            transform: translateY(-4px) scale(1.02);
        }
        /* تمدد خط التحميل المضيء أسفل الكرت */
        .service-clean-card.dynamic-trigger::after {
            width: 100%;
        }
        /* قفزة ودوران الأيقونة لشد الانتباه */
        .service-clean-card.dynamic-trigger .service-clean-icon {
            background: var(--primary);
            border-color: var(--primary);
            transform: scale(1.18) rotate(-12deg);
        }
        .service-clean-card.dynamic-trigger .service-clean-icon svg {
            stroke: #ffffff;
            transform: scale(1.1);
        }

        .service-clean-info h3 { 
            font-size: 21px; 
            font-weight: 800; 
            color: var(--text-main);
            margin-bottom: 12px;
            line-height: 1.4;
        }
        .service-clean-info p { 
            color: var(--text-muted); 
            font-size: 15px; 
            line-height: 1.75; 
        }
        
        .service-clean-action {
            display: inline-flex; 
            align-items: center; 
            gap: 6px; 
            margin-top: 32px;
            color: var(--primary); 
            font-weight: 700; 
            font-size: 14px; 
            transition: var(--transition);
            width: fit-content;
        }
        .service-clean-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: var(--transition); }
        .service-clean-card:hover .service-clean-action svg,
        .service-clean-card.dynamic-trigger .service-clean-action svg { transform: translateX(-4px); }

        /* --- فورمة الاتصال --- */
        .contact-wrapper {
            display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px;
            background: var(--bg-surface); border-radius: var(--radius-lg);
            border: 1px solid var(--border); padding: 50px; position: relative;
        }
        .contact-info h2 { font-size: 38px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
        .contact-info p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 40px; }
        
        .info-meta { display: flex; flex-direction: column; gap: 24px; }
        .info-meta-item { display: flex; align-items: center; gap: 16px; font-size: 16px; }
        .info-meta-item svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; }

        .contact-form { display: flex; flex-direction: column; gap: 20px; }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .contact-form input, .contact-form textarea {
            width: 100%; background: var(--bg-surface-hover); border: 1px solid var(--border);
            padding: 16px 20px; border-radius: var(--radius-md); color: var(--text-main); font-family: inherit;
            font-size: 15px; outline: none; transition: var(--transition);
        }
        .contact-form input:focus, .contact-form textarea:focus {
            border-color: var(--primary); background: var(--bg-surface);
            box-shadow: 0 0 20px rgba(255, 122, 0, 0.1);
        }

        /* --- الفوتر --- */
        footer {
            background: var(--bg-surface); border-top: 1px solid var(--border);
            padding: 80px 0 40px; color: var(--text-muted); transition: background-color 0.4s ease;
        }
        .footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 60px; margin-bottom: 50px; }
        .footer-brand p { margin-top: 20px; line-height: 1.8; max-width: 360px; }
        .footer-brand .logo img { height: 58px; } 
        .footer-links h4 { color: var(--text-main); font-size: 18px; font-weight: 700; margin-bottom: 24px; }
        .footer-links ul { display: flex; flex-direction: column; gap: 14px; }
        .footer-links a { transition: var(--transition); font-size: 15px; }
        .footer-links a:hover { color: var(--primary); padding-right: 6px; }
        
        .footer-bottom {
            border-top: 1px solid var(--border); padding-top: 30px;
            display: flex; justify-content: space-between; align-items: center; font-size: 14px;
        }

        /* الشاشات المتوسطة والصغيرة */
        @media (max-width: 1140px) {
            .services-clean-grid { grid-template-columns: 1fr; gap: 24px; }
            .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 60px; }
            .hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
            .hero-desc { margin-left: auto; margin-right: auto; }
            .contact-wrapper { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
            .footer-grid { grid-template-columns: 1fr; gap: 40px; }
        }

        @media (max-width: 768px) {
            header { top: 0; }
            nav { border-radius: 0; border-left: none; border-right: none; border-top: none; padding: 12px 0; }
            .logo img { height: 44px; } 
            header.scrolled .logo img { height: 40px; }
            .menu-toggle { display: block; }
            .nav-menu {
                position: fixed; top: 75px; right: -100%; width: 100%; height: calc(100vh - 75px);
                background: var(--bg-surface); flex-direction: column; padding: 40px 24px; gap: 30px;
                transition: var(--transition); z-index: 999; border-top: 1px solid var(--border);
            }
            .nav-menu.active { right: 0; }
            .nav-links { flex-direction: column; width: 100%; gap: 10px; }
            .nav-links > li > a { display: block; text-align: center; padding: 14px; font-size: 18px; }
            .nav-actions { flex-direction: column; width: 100%; gap: 20px; }
            .theme-toggle { width: 50px; height: 50px; }
            .btn-nav-wrap { width: 100%; }
            .btn-nav-wrap .btn-primary { width: 100%; justify-content: center; padding: 16px; }
            .service-card-top { flex-direction: column; gap: 16px; }
            .form-row { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
            section { padding: 60px 0; }
            .hero-visual { height: 380px; }
            .floating-element { display: none; }
            .flip-card { height: 340px; }
        }
        /* --- التصميم المعتمد على الصورة والنصوص (Image & Text Composition) --- */
.image-text-composition {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* إعدادات الصورة الرئيسية */
.main-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 30px;
    z-index: 1;
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.15);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    border: 4px solid #ffffff; /* إطار أبيض أنيق حول الصورة */
}

html.dark-mode .hero-main-img {
    border-color: #1a202c; /* إطار داكن في الوضع الليلي */
}

/* الإضاءة الخلفية للصورة */
.image-overlay-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 4s infinite alternate;
}

/* البطاقات النصية العائمة */
.info-card {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    min-width: 270px;
}

/* التوافق مع الوضع الداكن */
html.dark-mode .info-card {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* أيقونات البطاقات */
.card-icon {
    width: 48px; 
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--primary);
}

.card-icon svg { width: 24px; height: 24px; }

/* نصوص البطاقات */
.card-text h4 {
    font-size: 16px; 
    font-weight: 800; 
    color: var(--text-main); 
    margin-bottom: 4px; 
}
.card-text p {
    font-size: 13px; 
    color: var(--text-muted); 
    font-weight: 500; 
    line-height: 1.4;
}

/* أماكن وحركة البطاقات */
.card-right {
    top: 50px; 
    right: -40px;
    animation: floatImageCard 5s ease-in-out infinite;
}

.card-left {
    bottom: 50px; 
    left: -40px;
    animation: floatImageCard 6s ease-in-out infinite 1s;
}

/* حركات الأنيميشن */
@keyframes floatImageCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .main-image-wrapper { width: 240px; height: 240px; }
    .card-right { top: -10px; right: -10px; min-width: 240px; }
    .card-left { bottom: -10px; left: -10px; min-width: 240px; }
}
/* --- التصميم المرئي الجديد: النواة الذكية (Smart Core) --- */
.smart-core-container {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الحلقات المدارية */
.core-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.ring-1 { 
    width: 260px; height: 260px; 
    border: 1px dashed rgba(var(--primary-rgb), 0.5); 
    animation: spin 20s linear infinite; 
}
.ring-2 { 
    width: 360px; height: 360px; 
    border: 1px solid rgba(var(--primary-rgb), 0.1); 
    border-left: 2px solid var(--primary); 
    animation: spin-reverse 25s linear infinite; 
}
.ring-3 { 
    width: 460px; height: 460px; 
    border: 1px dashed rgba(0, 0, 0, 0.08); 
    animation: spin 35s linear infinite; 
}
html.dark-mode .ring-3 { border-color: rgba(255,255,255,0.06); }

/* النواة المركزية */
.core-center {
    position: relative;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
.core-diamond {
    width: 85px; height: 85px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff5e00 100%);
    border-radius: 22px;
    transform: rotate(45deg);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.35), inset 0 0 20px rgba(255,255,255,0.3);
    animation: floatDiamond 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.core-diamond svg {
    width: 40px; height: 40px; stroke: #ffffff;
    transform: rotate(-45deg); /* لمعاكسة دوران المربع وجعل الأيقونة مستقيمة */
}
.core-glow-pulse {
    position: absolute;
    width: 100px; height: 100px;
    background: var(--primary);
    border-radius: 26px;
    transform: rotate(45deg);
    animation: pulseCore 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 1;
}

/* الوحدات البرمجية العائمة */
.tech-module {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    z-index: 20;
    display: flex; align-items: center; gap: 14px;
}
html.dark-mode .tech-module {
    background: rgba(16, 22, 34, 0.85);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* أماكن الوحدات وحركتها */
.module-top-right {
    top: 30px; right: 0;
    animation: floatMod 5s ease-in-out infinite 0.5s;
}
.module-bottom-left {
    bottom: 50px; left: -10px;
    animation: floatMod 6s ease-in-out infinite 1s;
}
.module-bottom-right {
    bottom: 100px; right: 10px;
    animation: floatMod 5.5s ease-in-out infinite 1.5s;
}

/* تفاصيل نصوص الأكواد */
.module-code { 
    font-family: monospace; font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.5;
}
.module-code .keyword { color: #ff5f56; } 
.module-code .comment { color: #27c93f; font-weight: 400; }
.module-code .bracket { color: var(--text-muted); }

.status-ok { 
    color: #27c93f; font-size: 11px; margin-top: 6px; display: flex; align-items: center; gap: 6px; font-family: sans-serif;
}
.module-dot { 
    width: 10px; height: 10px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); 
}
.module-icon { 
    width: 40px; height: 40px; background: rgba(var(--primary-rgb), 0.1); color: var(--primary); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center; 
}
.module-info h5 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.module-info p { font-size: 12px; color: var(--text-muted); font-family: monospace; letter-spacing: 0.5px; }

/* حركات الأنيميشن (Keyframes) */
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes floatDiamond { 
    0%, 100% { transform: rotate(45deg) translateY(0) translateX(0); } 
    50% { transform: rotate(45deg) translateY(-10px) translateX(-10px); } 
}
@keyframes floatMod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseCore { 0% { opacity: 0.5; transform: rotate(45deg) scale(1); } 100% { opacity: 0; transform: rotate(45deg) scale(1.7); } }

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .smart-core-container { transform: scale(0.85); height: 400px; }
    .module-top-right { right: -20px; }
    .module-bottom-left { left: -20px; }
    .module-bottom-right { right: -20px; bottom: 80px; }
}

.core-logo-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    /* هذا السطر سيقوم بإعادة تعديل الشعار ليكون مستقيماً */
    transform: rotate(-45deg); 
    /* إذا كنت تستخدم فلتر الألوان، اتركه كما هو */
    filter: brightness(0) invert(1);
}

/* تحديث الكود القديم للـ core-diamond للسماح بمرونة الشعار */
.core-diamond {
    width: 85px; height: 85px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff5e00 100%);
    border-radius: 22px;
    transform: rotate(45deg);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.35), inset 0 0 20px rgba(255,255,255,0.3);
    animation: floatDiamond 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
