/* 🚀 Advanced Video Effects - تأثيرات فيديو متقدمة */

/* Enhanced video container with 3D effects */
.hero-image.enhanced {
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
}

/* 3D rotation on hover */
.hero-image.enhanced:hover {
    transform: rotateY(5deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Parallax effect for video */
.hero-image.enhanced video {
    transform: translateZ(20px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Gradient border effect */
.hero-image.gradient-border {
    position: relative;
    background: linear-gradient(45deg, 
        #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3
    );
    padding: 3px;
    border-radius: 25px;
}

.hero-image.gradient-border::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #000;
    border-radius: 22px;
    z-index: 1;
}

.hero-image.gradient-border video {
    position: relative;
    z-index: 2;
    border-radius: 22px;
}

/* Animated gradient border */
.hero-image.gradient-border {
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glitch effect */
.hero-image.glitch {
    position: relative;
}

.hero-image.glitch::before,
.hero-image.glitch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 25px;
    z-index: -1;
}

.hero-image.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    background: linear-gradient(45deg, 
        rgba(255, 0, 0, 0.1), 
        rgba(0, 255, 0, 0.1), 
        rgba(0, 0, 255, 0.1)
    );
}

.hero-image.glitch::after {
    animation: glitch-2 2s infinite linear alternate-reverse;
    background: linear-gradient(-45deg, 
        rgba(255, 255, 0, 0.1), 
        rgba(255, 0, 255, 0.1), 
        rgba(0, 255, 255, 0.1)
    );
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

/* Neon glow effect */
.hero-image.neon {
    box-shadow: 
        0 0 5px rgba(0, 255, 255, 0.5),
        0 0 10px rgba(0, 255, 255, 0.3),
        0 0 15px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.1);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow: 
            0 0 5px rgba(0, 255, 255, 0.5),
            0 0 10px rgba(0, 255, 255, 0.3),
            0 0 15px rgba(0, 255, 255, 0.2),
            0 0 20px rgba(0, 255, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.8),
            0 0 20px rgba(0, 255, 255, 0.6),
            0 0 30px rgba(0, 255, 255, 0.4),
            0 0 40px rgba(0, 255, 255, 0.2);
    }
}

/* Morphing effect */
.hero-image.morph {
    transition: border-radius 0.6s ease;
}

.hero-image.morph:hover {
    border-radius: 50%;
}

.hero-image.morph:hover video {
    border-radius: 50%;
}

/* Ripple effect */
.hero-image.ripple {
    position: relative;
    overflow: visible;
}

.hero-image.ripple::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%);
    animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Glass morphism effect */
.hero-image.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Holographic effect */
.hero-image.holographic {
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.1),
        rgba(0, 255, 0, 0.1),
        rgba(0, 0, 255, 0.1),
        rgba(255, 255, 0, 0.1),
        rgba(255, 0, 255, 0.1),
        rgba(0, 255, 255, 0.1)
    );
    background-size: 400% 400%;
    animation: holographic 4s ease infinite;
}

@keyframes holographic {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particle effect background */
.hero-image.particles {
    position: relative;
}

.hero-image.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 70px 70px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Responsive adjustments for advanced effects */
@media (max-width: 768px) {
    .hero-image.enhanced:hover {
        transform: rotateY(3deg) rotateX(1deg);
    }
    
    .hero-image.gradient-border {
        padding: 2px;
    }
    
    .hero-image.gradient-border::before {
        top: 2px;
        left: 2px;
        right: 2px;
        bottom: 2px;
        border-radius: 20px;
    }
    
    .hero-image.gradient-border video {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .hero-image.enhanced:hover {
        transform: rotateY(2deg) rotateX(0.5deg);
    }
    
    .hero-image.gradient-border {
        padding: 1px;
    }
    
    .hero-image.gradient-border::before {
        top: 1px;
        left: 1px;
        right: 1px;
        bottom: 1px;
        border-radius: 18px;
    }
    
    .hero-image.gradient-border video {
        border-radius: 18px;
    }
}

/* Performance optimizations */
.hero-image.enhanced,
.hero-image.gradient-border,
.hero-image.glitch,
.hero-image.neon,
.hero-image.morph,
.hero-image.ripple,
.hero-image.glass,
.hero-image.holographic,
.hero-image.particles {
    will-change: transform, box-shadow, border-radius;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-image.enhanced:hover,
    .hero-image.enhanced video,
    .hero-image.gradient-border,
    .hero-image.glitch::before,
    .hero-image.glitch::after,
    .hero-image.neon,
    .hero-image.morph:hover,
    .hero-image.ripple::after,
    .hero-image.holographic,
    .hero-image.particles::before {
        animation: none;
        transition: none;
    }
    
    .hero-image.enhanced:hover {
        transform: none;
    }
    
    .hero-image.morph:hover {
        border-radius: 25px;
    }
    
    .hero-image.morph:hover video {
        border-radius: 25px;
    }
}
