/* Animations for the single image in About section */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

.image-container.animated {
    animation: pulse 5s infinite ease-in-out;
}

.image-container.animated:hover {
    animation-play-state: paused;
}

/* Slider animations and transitions */
.statement-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.statement-slide {
    opacity: 0.7;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.statement-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Multi-image hover effects */
.multi-image {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease,
                filter 0.4s ease;
    filter: saturate(0.9) brightness(0.95);
}

.multi-image:hover {
    transform: translateY(-10px) scale(1.02);
    filter: saturate(1.1) brightness(1.05);
    z-index: 10;
}

/* Fade-in animations for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-element {
    opacity: 0;
}

.fade-in {
    animation: fadeInUp 0.8s forwards ease-out;
}

/* Smooth background transitions between sections */
.project-item {
    position: relative;
    transition: background-color 0.5s ease;
}

/* Hero content animations */
.hero-content {
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Button hover animations */
.cta-button a {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button a:hover:before {
    left: 0;
}

/* Slider controls animations */
.slider-button {
    transition: transform 0.2s ease, background-color 0.3s ease;
}

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

.slider-button:active {
    transform: scale(0.95);
}
