/* animations.css - تأثيرات حركية للموقع */

/* تأثيرات الظهور المتدرج عند التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تأثيرات ظهور من اليسار */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* تأثيرات ظهور من اليمين */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* تأثير تكبير عند الظهور */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* تأثيرات للبطاقات والأزرار */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* تأثير نبض للأزرار */
.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* تأثير تدوير للأيقونات */
.rotate-on-hover:hover {
    animation: rotate 0.5s ease-in-out;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* تأثير خلفية متحركة */
.animated-bg {
    background: linear-gradient(-45deg, #f8fafc, #e0f2fe, #dbeafe, #eff6ff);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* تأثير تمويج للصور */
.wave-effect {
    position: relative;
    overflow: hidden;
}

.wave-effect:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(2) translateX(-75%) translateY(-75%) rotate(-30deg);
    transition: transform 0.6s ease-out;
}

.wave-effect:hover:after {
    transform: scale(2) translateX(0%) translateY(0%) rotate(-30deg);
}

/* تأثير تلاشي للصور عند التحويم */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    background-color: rgba(15, 23, 42, 0.3);
}

/* تأثير تحميل متدرج */
.progress-line {
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #f59e0b, #0891b2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.3s ease-out;
}

/* تأثير تمرير سلس بين الأقسام */
html {
    scroll-behavior: smooth;
}