/* 
 * Photo Animations CSS
 * This file contains animations specifically for photo elements
 */

/* Photo Animation Keyframes */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRotate {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 111, 97, 0.3);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(255, 111, 97, 0);
    }
}

@keyframes floatPhoto {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Photo Animation Classes */
.photo-zoom-in {
    opacity: 0;
    animation: zoomIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.photo-slide-up {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.photo-fade-rotate {
    opacity: 0;
    animation: fadeInRotate 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.photo-ripple {
    animation: ripple 2s linear infinite;
}

.photo-float {
    animation: floatPhoto 6s ease-in-out infinite;
}

/* Staggered Animation Delays */
.photo-delay-100 { animation-delay: 0.1s; }
.photo-delay-200 { animation-delay: 0.2s; }
.photo-delay-300 { animation-delay: 0.3s; }
.photo-delay-400 { animation-delay: 0.4s; }
.photo-delay-500 { animation-delay: 0.5s; }
.photo-delay-600 { animation-delay: 0.6s; }
.photo-delay-700 { animation-delay: 0.7s; }
.photo-delay-800 { animation-delay: 0.8s; }

/* Shimmer Effect for Photo Cards */
.photo-shimmer {
    position: relative;
    overflow: hidden;
}

.photo-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
}

/* Hover Animation Effects */
.photo-hover-zoom {
    transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.photo-hover-zoom:hover {
    transform: scale(1.05);
}

.photo-hover-lift {
    transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.photo-hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.photo-hover-rotate {
    transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.photo-hover-rotate:hover {
    transform: rotate(2deg);
}

/* Scroll-triggered Animation Classes */
.photo-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.photo-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.photo-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.photo-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.photo-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.photo-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.photo-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Photo Grid Animation */
.photo-grid-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.photo-grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Photo Masonry Animation */
.photo-masonry-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.photo-masonry-item.visible {
    opacity: 1;
    transform: scale(1);
}
