/* تحسينات إضافية للقائمة الجانبية */

/* تأثيرات انتقالية جميلة للقائمة الجانبية */
@media (max-width: 767px) {
    .nav-menu {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* تأثير الانزلاق للروابط */
    .nav-link {
        position: relative;
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: right 0.6s ease;
    }
    
    .nav-link:hover::before {
        right: 100%;
    }
    
    /* تأثير النبضة لوسائل التواصل */
    .sidebar-social-links a {
        position: relative;
    }
    
    .sidebar-social-links a::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255,255,255,0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }
    
    .sidebar-social-links a:hover::after {
        width: 100%;
        height: 100%;
    }
    
    /* تأثير التموج عند النقر */
    .nav-link,
    .sidebar-social-links a {
        position: relative;
        overflow: hidden;
    }
    
    .nav-link:active,
    .sidebar-social-links a:active {
        transform: scale(0.95);
    }
    
    /* تحسين الخطوط والألوان */
    .sidebar-logo img {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        transition: filter 0.3s ease;
    }
    
    .sidebar-logo img:hover {
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    }
    
    /* تحسين النص في القائمة */
    .nav-link {
        font-family: 'Cairo', sans-serif;
        letter-spacing: 0.5px;
    }
    
    .sidebar-social h4 {
        font-family: 'Cairo', sans-serif;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    /* تحسين رقم الهاتف */
    .sidebar-contact a {
        font-family: 'Cairo', sans-serif;
        letter-spacing: 1px;
        position: relative;
    }
    
    .sidebar-contact a::before {
        content: '📞';
        margin-left: 8px;
        font-size: 14px;
    }
    
    /* تحسين حقوق الطبع والنشر */
    .sidebar-footer p {
        font-family: 'Cairo', sans-serif;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-footer:hover p {
        opacity: 1;
    }
    
    /* تأثيرات الحركة عند فتح القائمة */
    .nav-menu.active .sidebar-logo {
        animation: slideInDown 0.5s ease;
    }
    
    .nav-menu.active .nav-list li {
        animation: slideInRight 0.5s ease;
        animation-fill-mode: both;
    }
    
    .nav-menu.active .nav-list li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-list li:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.active .nav-list li:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu.active .nav-list li:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu.active .nav-list li:nth-child(5) { animation-delay: 0.3s; }
    .nav-menu.active .nav-list li:nth-child(6) { animation-delay: 0.35s; }
    .nav-menu.active .nav-list li:nth-child(7) { animation-delay: 0.4s; }
    .nav-menu.active .nav-list li:nth-child(8) { animation-delay: 0.45s; }
    .nav-menu.active .nav-list li:nth-child(9) { animation-delay: 0.5s; }
    
    .nav-menu.active .sidebar-social {
        animation: slideInUp 0.5s ease 0.6s both;
    }
    
    .nav-menu.active .sidebar-footer {
        animation: fadeIn 0.5s ease 0.7s both;
    }
}

/* الرسوم المتحركة */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* تحسينات إضافية للشاشات الكبيرة */
@media (min-width: 768px) {
    /* إخفاء القائمة الجانبية على الشاشات الكبيرة */
    .nav-overlay,
    .nav-menu.active {
        display: none !important;
    }
}

/* تحسين الأداء */
.nav-menu * {
    will-change: transform, opacity;
}

.nav-menu.active * {
    will-change: auto;
}