/* Client Logos Custom CSS for Portfolio Section */

.portfolio-one__bottom {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    width: 100%;
}

.portfolio-one__marquee-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.portfolio-one__marquee {
    display: flex;
    animation: scroll 40s linear infinite;
    width: max-content;
    will-change: transform;
}

.portfolio-one__marquee:hover {
    animation-play-state: paused;
}

.portfolio-one__logo-item {
    flex-shrink: 0;
    margin: 0 40px;
    padding: 30px 50px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.portfolio-one__logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.portfolio-one__logo-item:hover::before {
    left: 100%;
}

.portfolio-one__logo-item:hover {
    transform: translateY(-15px) scale(1.08) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(78, 205, 196, 0.3);
    background: linear-gradient(145deg, #ffffff 0%, #e8f4f8 100%);
}

.portfolio-one__logo-item img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(1);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 3s ease-in-out infinite;
}

.portfolio-one__logo-item:hover img {
    filter: brightness(1.1);
    opacity: 1;
    transform: scale(1.1);
    animation: none;
}

/* Staggered animation delays for items */
.portfolio-one__logo-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-one__logo-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-one__logo-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-one__logo-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-one__logo-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-one__logo-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-one__logo-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-one__logo-item:nth-child(8) { animation-delay: 0.8s; }

/* Keyframe Animations */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

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

/* Background pattern animation */
.portfolio-one__bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(20px) translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .portfolio-one__logo-item {
        margin: 0 25px;
        padding: 25px 35px;
        min-width: 160px;
        min-height: 100px;
    }

    .portfolio-one__logo-item img {
        max-width: 140px;
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .portfolio-one__logo-item {
        margin: 0 15px;
        padding: 20px 25px;
        min-width: 120px;
        min-height: 80px;
    }

    .portfolio-one__logo-item img {
        max-width: 100px;
        max-height: 50px;
    }

    .portfolio-one__logo-item:hover {
        transform: translateY(-10px) scale(1.05);
    }
}
