/* استایل‌های تصاویر متحرک - مشابه alis.ir */

/* ===== SVG Animated Images ===== */
.animated-svg {
    width: 100%;
    height: auto;
    display: block;
}

.animated-svg svg {
    width: 100%;
    height: 100%;
}

/* ===== Network Icon Animation ===== */
.network-animated {
    width: 300px;
    height: 300px;
    animation: pulse 3s ease-in-out infinite;
}

.network-animated:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ===== Liquid Splash Animation ===== */
.liquid-splash {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.liquid-splash-1 {
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.liquid-splash-2 {
    bottom: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.liquid-splash-3 {
    top: 50%;
    right: 30%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 4s;
}

/* ===== Product Image Animation ===== */
.animated-product {
    position: relative;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.animated-product:hover {
    transform: scale(1.05) translateY(-10px);
}

.animated-product img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* ===== Icon Rotation Animation ===== */
.rotating-icon {
    animation: rotate 20s linear infinite;
}

.rotating-icon-fast {
    animation: rotate 5s linear infinite;
}

/* ===== Glow Effect ===== */
.glowing-image {
    filter: drop-shadow(0 0 20px rgba(139, 195, 74, 0.5));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(139, 195, 74, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(139, 195, 74, 0.8));
    }
}

/* ===== Fade In Animation for Images ===== */
.fade-in-image {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.fade-in-image-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-image-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-image-delay-3 {
    animation-delay: 0.6s;
}

/* ===== Slide In Animation ===== */
.slide-in-image {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 0.8s ease-out forwards;
}

.slide-in-image-left {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInLeft 0.8s ease-out forwards;
}

/* ===== Bounce Animation ===== */
.bounce-image {
    animation: bounce 2s ease-in-out infinite;
}

/* ===== Pulse Animation ===== */
.pulse-image {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Shake Animation ===== */
.shake-image {
    animation: shake 2s ease-in-out infinite;
}

/* ===== Zoom In Animation ===== */
.zoom-in-image {
    animation: zoomIn 0.8s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Hover Effects ===== */
.image-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.image-hover-scale {
    transition: transform 0.3s ease;
}

.image-hover-scale:hover {
    transform: scale(1.1);
}

.image-hover-glow {
    transition: filter 0.3s ease;
}

.image-hover-glow:hover {
    filter: drop-shadow(0 0 25px rgba(139, 195, 74, 0.7));
}

/* ===== Loading Animation for Images ===== */
.image-loading {
    background: linear-gradient(
        90deg,
        rgba(139, 195, 74, 0.1) 0%,
        rgba(139, 195, 74, 0.2) 50%,
        rgba(139, 195, 74, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===== Responsive Images ===== */
@media (max-width: 768px) {
    .liquid-splash {
        width: 200px;
        height: 200px;
        opacity: 0.4;
    }
    
    .network-animated {
        width: 200px;
        height: 200px;
    }
}

/* ===== Performance Optimization ===== */
.animated-svg,
.animated-product,
.liquid-splash {
    will-change: transform, opacity;
}

/* ===== Lazy Loading Support ===== */
.lazy-animate {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-animate.loaded {
    opacity: 1;
}
