/* ========================================
   Animations & Movements
   ======================================== */

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

@keyframes gentleRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

@keyframes gentleRotateReverse {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-2deg);
    }
}

@keyframes scalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Apply animations */
.collage-item {
    animation: floatUp 6s ease-in-out infinite;
}

.collage-item:nth-child(2n) {
    animation: floatDown 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

.collage-item:nth-child(3n) {
    animation: gentleRotate 8s ease-in-out infinite;
    animation-delay: 1s;
}

.collage-item:nth-child(4n) {
    animation: floatUp 9s ease-in-out infinite;
    animation-delay: 1.5s;
}

.collage-item:nth-child(5n) {
    animation: gentleRotateReverse 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* Prevent animation on mobile to improve performance */
@media (max-width: 768px) {
    .collage-item {
        animation: none !important;
    }
}

.collage-item:hover {
    animation-play-state: paused;
    transform: scale(1.05) !important;
    z-index: 10;
}

.featured-content-item {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.featured-content-item:nth-child(1) {
    animation-delay: 0.2s;
}

.featured-content-item:nth-child(2) {
    animation-delay: 0.4s;
}

.featured-content-item:nth-child(3) {
    animation-delay: 0.6s;
}

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

/* Subtle animations for page elements */
.hero-content h1,
.page-header h1 {
    animation: fadeInUp 1s ease-out;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-item,
.featured-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating animation for WhatsApp button */
.whatsapp-float {
    animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

