/* Gallery item animations */
@keyframes itemEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.gallery-item {
    animation: itemEntrance 0.8s var(--easing) forwards;
    opacity: 0;
}

/* Delay animations for each item */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }

/* Hover pulse effect */
@keyframes hoverPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.gallery-item:hover {
    animation: hoverPulse 1.5s infinite;
}

/* Glitch effect on hover */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.gallery-item:hover img, .gallery-item:hover video {
    animation: glitch 0.5s linear infinite alternate;
}

/* Lightbox entrance */
@keyframes lightboxEnter {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

.lightbox.show .lightbox-content {
    animation: lightboxEnter 0.5s var(--easing) forwards;
}

/* Button hover effects */
@keyframes btnHover {
    0% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-5px) rotateX(10deg); }
    100% { transform: translateY(0) rotateX(0); }
}

.filter-btn:hover {
    animation: btnHover 0.5s var(--easing);
}

/* Neon flicker */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color),
                     0 0 40px var(--primary-color);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.neon-text {
    animation: neonFlicker 3s infinite;
}

/* Background pulse */
@keyframes bgPulse {
    0% { background-color: rgba(0, 0, 0, 0.9); }
    50% { background-color: rgba(20, 0, 0, 0.9); }
    100% { background-color: rgba(0, 0, 0, 0.9); }
}

header {
    animation: bgPulse 10s infinite;
}