/* --- شاشة التحميل (Preloader) --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    animation: float-logo 3s ease-in-out infinite;
}

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

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.9));
        transform: scale(1.05);
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 20px;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 212, 255, 0.8), 
        rgba(0, 212, 255, 1),
        rgba(138, 43, 226, 0.8)
    );
    border-radius: 10px;
    width: 0%;
    animation: loading-animation 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

@keyframes loading-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* تأثير إضافي - جزيئات متحركة */
.preloader::before,
.preloader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: particle-float 8s ease-in-out infinite;
}

.preloader::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent);
    top: 20%;
    left: 10%;
}

.preloader::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4), transparent);
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -30px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(20px, 30px); }
}

/* Responsive للشاشات الصغيرة */
@media (max-width: 768px) {
    .logo-container {
        width: 140px;
        height: 140px;
    }
    
    .loading-bar {
        width: 250px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .preloader::before,
    .preloader::after {
        width: 200px;
        height: 200px;
    }
}

/* --- إعدادات الخط المحلي --- */
@font-face {
    font-family: 'Nahdi Black';
    src: url('fonts/Nahdi-Black.woff2') format('woff2'),
         url('fonts/Nahdi-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- الإعدادات العامة --- */
:root {
    --bg-color: #0A0A0B;
    --primary-text-color: #ffffff;
    --secondary-text-color: #b8b8b8;
    --accent-color: #00d4ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

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

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--primary-text-color);
    font-family: 'Nahdi Black', 'Poppins', sans-serif;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* خلفية متحركة محسّنة مع تأثير نيون */
body::before {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    left: 20%;
    top: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), rgba(0, 255, 255, 0.2) 40%, transparent 70%);
    box-shadow: 0 0 100px rgba(0, 212, 255, 0.3), 0 0 200px rgba(0, 212, 255, 0.1);
    animation: float-1 15s ease-in-out infinite, neon-pulse-1 3s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    right: 20%;
    bottom: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.35), rgba(255, 0, 255, 0.2) 40%, transparent 70%);
    box-shadow: 0 0 100px rgba(138, 43, 226, 0.3), 0 0 200px rgba(138, 43, 226, 0.1);
    animation: float-2 18s ease-in-out infinite, neon-pulse-2 4s ease-in-out infinite;
}

/* أنيميشن محسّن - حركة بسيطة */
@keyframes float-1 { 
    0%, 100% { transform: translate(0, 0); } 
    50% { transform: translate(50px, -30px); } 
}

@keyframes float-2 { 
    0%, 100% { transform: translate(0, 0); } 
    50% { transform: translate(-40px, 40px); } 
}

/* تأثير نيون نابض */
@keyframes neon-pulse-1 {
    0%, 100% { 
        opacity: 0.4;
        box-shadow: 0 0 100px rgba(0, 212, 255, 0.3), 0 0 200px rgba(0, 212, 255, 0.1);
    }
    50% { 
        opacity: 0.5;
        box-shadow: 0 0 120px rgba(0, 212, 255, 0.4), 0 0 240px rgba(0, 212, 255, 0.15);
    }
}

@keyframes neon-pulse-2 {
    0%, 100% { 
        opacity: 0.35;
        box-shadow: 0 0 100px rgba(138, 43, 226, 0.3), 0 0 200px rgba(138, 43, 226, 0.1);
    }
    50% { 
        opacity: 0.45;
        box-shadow: 0 0 120px rgba(138, 43, 226, 0.4), 0 0 240px rgba(138, 43, 226, 0.15);
    }
}

/* إيقاف الأنيميشن على الهواتف لتحسين الأداء */
@media (max-width: 768px) {
    body::before,
    body::after {
        animation: float-1 15s ease-in-out infinite, float-2 18s ease-in-out infinite;
        box-shadow: none;
    }
}

html[dir="ltr"] body { font-family: 'Poppins', sans-serif; }
html[dir="ltr"] .about-text, html[dir="ltr"] .offer-features, html[dir="ltr"] .project-text { text-align: left; }
html[dir="ltr"] .skill-level { transform-origin: left; }
html[dir="ltr"] .btn-primary i { margin-right: 0; margin-left: 8px; }
html[dir="ltr"] .projects-list .project-item:nth-child(even) { direction: ltr; }
html[dir="ltr"] .projects-list .project-item:nth-child(even) .project-text { text-align: right; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }
section { padding: 100px 0; border-bottom: var(--glass-border); }
.section-title { 
    text-align: center; 
    font-size: 2.8rem; 
    margin-bottom: 50px; 
    font-weight: 700; 
    color: #fff;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.4),
        0 0 20px rgba(0, 212, 255, 0.2);
}
.section-subtitle { text-align: center; max-width: 600px; margin: -30px auto 40px auto; color: var(--secondary-text-color); }

/* --- قائمة التنقل (Navbar) --- */
.main-header { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    background: rgba(10, 10, 11, 0.95);
    border-bottom: var(--glass-border);
}
.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.nav-start { display: flex; align-items: center; gap: 20px; }
.nav-end { display: flex; align-items: center; gap: 35px; }
.nav-logo { 
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}
.lang-switcher { 
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: var(--primary-text-color); 
    padding: 6px 12px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 700;
    font-size: 0.85rem;
}
.nav-menu { display: flex; list-style: none; gap: 35px; }
.nav-link { color: var(--primary-text-color); text-decoration: none; font-size: 1rem; position: relative; padding-bottom: 5px; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; right: 0; background-color: var(--accent-color); }
html[dir="ltr"] .nav-link::after { right: auto; left: 0; }
.whatsapp-header-icon { 
    color: #25D366; 
    font-size: 1.8rem; 
    text-decoration: none;
    filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.5))
            drop-shadow(0 0 10px rgba(37, 211, 102, 0.3));
    transition: all 0.3s ease;
}

.whatsapp-header-icon:hover {
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.8))
            drop-shadow(0 0 20px rgba(37, 211, 102, 0.6))
            drop-shadow(0 0 30px rgba(37, 211, 102, 0.4));
    transform: scale(1.15);
}
.back-btn { padding: 0; width: 45px; height: 45px; font-size: 1.2rem; display: flex; justify-content: center; align-items: center; background-color: transparent; color: var(--accent-color); }

/* --- قسم الهيرو --- */
.hero-section { 
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    border: none;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    left: 0;
    right: 0;
}

/* تأثيرات المونتاج - Timeline متحرك */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(0, 212, 255, 0.03) 48px,
            rgba(0, 212, 255, 0.03) 50px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 48px,
            rgba(0, 212, 255, 0.02) 48px,
            rgba(0, 212, 255, 0.02) 50px
        );
    animation: grid-move 20s linear infinite;
    opacity: 0.6;
    z-index: 0;
}

@keyframes grid-move {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 50px 0, 0 50px; }
}

/* أيقونات المونتاج المتحركة */
.hero-section::after {
    content: '🎬 ✂️ 🎥 ���️ 📹 🎨 ⚡ 🎭';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    opacity: 0.04;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 60px;
    padding: 40px;
    animation: float-icons 25s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 40px;
}

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

/* خط Timeline أفقي متحرك */
.hero-content::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-color) 20%,
        rgba(0, 212, 255, 0.5) 40%,
        var(--accent-color) 60%,
        transparent 100%
    );
    animation: timeline-scan 4s ease-in-out infinite;
    box-shadow: 0 0 15px var(--accent-color);
    z-index: -1;
}

@keyframes timeline-scan {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Keyframes نقاط متحركة */
.hero-content::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, var(--accent-color) 3px, transparent 3px),
        radial-gradient(circle, rgba(138, 43, 226, 0.8) 2px, transparent 2px);
    background-size: 120px 120px, 80px 80px;
    background-position: 0 0, 40px 40px;
    opacity: 0.1;
    animation: keyframes-pulse 15s linear infinite;
    z-index: -1;
}

@keyframes keyframes-pulse {
    0% { background-position: 0 0, 40px 40px; }
    100% { background-position: 120px 120px, 160px 160px; }
}

/* إيقاف التأثيرات الثقيلة على الهواتف */
@media (max-width: 768px) {
    .hero-section::before {
        animation: none;
    }
    .hero-section::after {
        font-size: 1.8rem;
        gap: 30px;
        letter-spacing: 20px;
        animation: none;
    }
    .hero-content::before,
    .hero-content::after {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 { 
    font-size: 3rem; 
    margin-bottom: 30px; 
    color: #fff; 
    white-space: nowrap;
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.5),
        0 0 30px rgba(0, 212, 255, 0.3),
        0 0 45px rgba(0, 212, 255, 0.1);
}
.hero-content h1 .brand-name { font-weight: normal; color: #fff; }
.hero-content p { 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin: 0 auto 40px auto; 
    line-height: 2; 
}
.hero-subtitle {
    line-height: 2.2 !important;
}
.hero-highlight {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.25rem;
}
.btn-primary { 
    display: inline-block; 
    padding: 14px 35px; 
    border-radius: 50px; 
    font-size: 1rem; 
    font-weight: 700; 
    text-decoration: none; 
    cursor: pointer; 
    border: 2px solid var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
    color: #fff; 
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 10px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 10px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.4),
        0 0 60px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* --- قسم من أنا --- */
.about-content { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; justify-content: center; }
.about-image { 
    flex: 0 0 450px; 
    width: 450px; 
    height: 450px; 
    border-radius: 30px; 
    overflow: hidden; 
    position: relative; 
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}
.about-personal-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-text { 
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.about-text h3 { font-size: 1.8rem; margin-bottom: 15px; color: #fff; }
.about-text p { margin-bottom: 15px; }

/* --- قسم ليه تختارني؟ --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.feature-card { 
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border); 
    border-radius: 20px; 
    padding: 35px; 
    text-align: center; 
}
.feature-icon { 
    width: 70px; 
    height: 70px; 
    line-height: 70px; 
    border-radius: 50%; 
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-color); 
    font-size: 2rem; 
    margin: 0 auto 20px auto;
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2),
        inset 0 0 15px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.6),
        0 0 50px rgba(0, 212, 255, 0.4),
        0 0 75px rgba(0, 212, 255, 0.2),
        inset 0 0 25px rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
}
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }

/* --- قسم المهارات --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.skill-card { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border); 
    border-radius: 20px; 
    padding: 25px;
}
.skill-icon { 
    font-size: 2.5rem; 
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6))
            drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.8))
            drop-shadow(0 0 25px rgba(0, 212, 255, 0.6))
            drop-shadow(0 0 40px rgba(0, 212, 255, 0.4));
    transform: scale(1.1);
}
.skill-details { flex-grow: 1; }
.skill-details h3 { margin: 0 0 10px 0; font-size: 1.1rem; color: #fff; font-family: 'Poppins', sans-serif; }
.skill-bar { 
    width: 100%; 
    height: 10px; 
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px; 
    overflow: hidden;
}
.skill-level { 
    height: 100%; 
    background: linear-gradient(90deg, var(--accent-color), rgba(0, 212, 255, 0.6));
    border-radius: 10px; 
    width: var(--skill-percent); 
    transform-origin: right; 
}
.skill-percent { font-size: 1rem; font-weight: 700; color: var(--accent-color); font-family: 'Poppins', sans-serif; }

/* --- قسم البرامج --- */
.tools-section { padding: 80px 0; }
.tools-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    max-width: 1200px;
    margin: 0 auto;
}
.tool-card { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border); 
    border-radius: 20px; 
    padding: 25px;
    position: relative;
    overflow: hidden;
}
.tool-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 0 10px rgba(0, 212, 255, 0.2),
        inset 0 0 10px rgba(0, 212, 255, 0.05);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon-wrapper {
    border-color: var(--accent-color);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2),
        inset 0 0 15px rgba(0, 212, 255, 0.1);
    transform: scale(1.05);
}
.tool-icon {
    width: 100%;
    height: 100%;
}
.tool-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tool-details {
    flex-grow: 1;
}
.tool-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.tool-card .skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.tool-card .skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), rgba(0, 212, 255, 0.6));
    border-radius: 10px;
    width: var(--skill-percent);
    transform-origin: right;
    position: relative;
    overflow: hidden;
}
.tool-card .skill-percent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Poppins', sans-serif;
}

/* --- قسم الإحصائيات --- */
.stats-section { padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.stat-card { 
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border); 
    border-radius: 20px; 
    padding: 45px 25px; 
    text-align: center; 
    position: relative;
    overflow: hidden;
}
.stat-icon { 
    width: 80px; 
    height: 80px; 
    line-height: 80px; 
    border-radius: 50%; 
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-color); 
    font-size: 2.2rem; 
    margin: 0 auto 20px auto;
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2),
        inset 0 0 15px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.6),
        0 0 50px rgba(0, 212, 255, 0.4),
        0 0 75px rgba(0, 212, 255, 0.2),
        inset 0 0 25px rgba(0, 212, 255, 0.2);
    transform: scale(1.1) rotate(360deg);
}
.stat-number { 
    font-size: 3rem; 
    font-weight: 700; 
    color: var(--accent-color); 
    margin-bottom: 10px; 
    font-family: 'Poppins', sans-serif;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.8),
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 45px rgba(0, 212, 255, 0.4),
        0 0 60px rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
}
.stat-card p { color: var(--secondary-text-color); font-size: 1.1rem; }

/* --- قسم المشاريع (الرئيسية) --- */
.projects-video-container {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    position: relative;
    aspect-ratio: 16 / 9;
}
.project-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.all-projects-btn { display: table; margin: 40px auto 0 auto; }

/* Responsive للفيديو */
@media (max-width: 1024px) {
    .projects-video-container {
        max-width: 700px;
        width: 95%;
    }
}

@media (max-width: 768px) {
    .projects-video-container {
        max-width: 100%;
        width: 95%;
        aspect-ratio: 16 / 9;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .projects-video-container {
        width: 100%;
        border-radius: 10px;
        aspect-ratio: 16 / 9;
    }
}

/* تصميم المشاريع المفصل في صفحة projects.html */
.projects-list .project-item { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
    margin-bottom: 100px; 
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border); 
    border-radius: 25px; 
    overflow: hidden; 
    padding: 40px; 
}
.projects-list .project-item:nth-child(even) { flex-direction: row-reverse; }
.project-image { flex: 0 0 40%; max-width: 400px; }
.project-image img { 
    width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-text { flex: 1; }
.project-text h3 { font-size: 2rem; color: #fff; margin-bottom: 15px; }
.project-title-en { font-family: 'Arial', sans-serif; letter-spacing: 1px; }
.project-desc { color: var(--secondary-text-color); margin-bottom: 30px; }
.project-text .btn-primary i { margin-right: 8px; }

/* --- قسم تواصل معي --- */
.contact-section { border-bottom: none; min-height: 50vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.social-links { margin-top: 30px; display: flex; gap: 40px; align-items: center; }
.social-links a { 
    color: var(--secondary-text-color); 
    font-size: 2.5rem; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; 
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 0 10px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.1),
        inset 0 0 10px rgba(0, 212, 255, 0.05);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.4),
        0 0 60px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px) scale(1.1);
}

/* --- الفوتر (Footer) --- */
.main-footer { 
    text-align: center; 
    padding: 40px 20px; 
    margin-top: 60px; 
    border-top: var(--glass-border); 
    color: var(--secondary-text-color);
    background: rgba(255, 255, 255, 0.02);
}

.developer-credit {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.developer-credit p {
    margin: 5px 0;
    font-size: 0.85rem;
}

.developer-credit strong {
    color: var(--accent-color);
    font-weight: 700;
}

.order-now {
    font-size: 0.9rem;
    color: var(--primary-text-color);
    margin: 8px 0 5px 0;
    font-weight: 600;
}

.developer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.developer-contact a {
    color: var(--secondary-text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .developer-credit p {
        font-size: 0.8rem;
    }
    
    .developer-contact a {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}

/* --- Responsive Design (للهواتف) --- */
@media (max-width: 768px) {
    section { padding: 40px 0; }
    .navbar { padding: 5px 15px; }
    .nav-menu { display: none; }
    .nav-start { order: 1; }
    .nav-end { order: 2; }
    html[dir="ltr"] .nav-start { order: 2; }
    html[dir="ltr"] .nav-end { order: 1; }

    .hero-content h1 { font-size: clamp(1.5rem, 7vw, 2rem); white-space: normal; line-height: 1.3; }
    .hero-content p { font-size: 0.9rem; }
    .btn-primary { padding: 10px 25px; font-size: 0.9rem; }

    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
    p { font-size: 0.9rem; }

    .about-content { gap: 30px; }
    .about-image { height: auto; max-width: 90%; flex-basis: auto; }
    .about-text { text-align: center; }
    .about-text h3 { font-size: 1.5rem; }

    .projects-grid { 
        grid-template-columns: 1fr 1fr 1fr; 
        gap: 15px; 
        padding: 0 20px;
    }
    .project-card { 
        aspect-ratio: 1 / 1; 
    }

    .projects-list .project-item, 
    .projects-list .project-item:nth-child(even) { 
        flex-direction: column; 
        gap: 25px; 
        padding: 20px; 
        margin-bottom: 50px; 
    }
    .project-image { 
        max-width: 100%; 
    }
    .project-text { 
        text-align: center; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .project-desc {
        flex-grow: 1;
    }
    
    .skills-grid, .features-grid, .tools-grid { grid-template-columns: 1fr; }
    .offer-card { padding: 30px; }
    .social-links { gap: 30px; }
    .social-links a { font-size: 2rem; }
}
