/* تحسينات إضافية للتصميم */

/* تأثيرات الجسيمات المتحركة */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* تأثيرات الضوء المتحرك */
.light-beam {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.8), transparent);
    animation: lightMove 4s ease-in-out infinite;
}

@keyframes lightMove {
    0%, 100% {
        transform: translateX(-50px) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(50px) rotate(45deg);
        opacity: 1;
    }
}

/* تحسينات للشعار */
.logo-glow {
    position: relative;
}

.logo-glow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #90EE90, #ffd700);
    border-radius: 20px;
    z-index: -1;
    animation: logoRotate 3s linear infinite;
    opacity: 0.7;
}

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

/* تأثيرات النص المتقدمة */
.text-shadow-glow {
    text-shadow: 
        0 0 5px rgba(255, 215, 0, 0.5),
        0 0 10px rgba(255, 215, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

/* تحسينات للأزرار والعناصر التفاعلية */
.interactive-element {
    position: relative;
    overflow: hidden;
}

.interactive-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.interactive-element:hover::before {
    left: 100%;
}

/* تأثيرات الخلفية المتقدمة */
.advanced-bg {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 80, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #2d5016 0%, #4a7c59 50%, #8fbc8f 100%);
    animation: bgShift 10s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

/* تحسينات للعداد */
.counter-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.counter-digit {
    display: inline-block;
    transform: rotateX(0deg);
    transition: transform 0.6s ease;
}

.counter-digit.flip {
    animation: digitFlip 0.6s ease;
}

@keyframes digitFlip {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

/* تأثيرات الهوفر المتقدمة */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .particle {
        width: 2px;
        height: 2px;
    }
    
    .light-beam {
        width: 1px;
        height: 50px;
    }
    
    .logo-glow::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
    }
}

/* تأثيرات التحميل */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* تأثيرات الانتقال السلس */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* تحسينات للنصوص العربية */
.arabic-text {
    font-feature-settings: "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
}

/* تأثيرات الظلال المتقدمة */
.advanced-shadow {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.1);
}

/* تحسينات للأيقونات */
.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

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

/* تأثيرات الخط المتحرك */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* تحسينات الأداء */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* تأثيرات الضباب */
.fog-effect {
    position: relative;
}

.fog-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(255, 255, 255, 0.1) 70%);
    pointer-events: none;
    animation: fogMove 8s ease-in-out infinite;
}

@keyframes fogMove {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.1); }
}
