/* Client Logo Slider */
.clients-slider-wrapper {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.clients-slider {
    display: flex;
    gap: 60px;
    animation: scrollClients 30s linear infinite;
    width: fit-content;
}

.clients-slider:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(50, 17, 204, 0.05) 0%, rgba(250, 79, 7, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-logo::before {
    opacity: 1;
}

.client-logo {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(50, 17, 204, 0.15);
    background: #fb53140a;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}


@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Portfolio Slider */
.portfolio-slider-wrapper {
    position: relative;
    padding: 20px 0;
    margin: 0;
}

.portfolio-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 15px;
    scroll-snap-type: x mandatory;
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
}

.portfolio-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 340px;
    max-width: 420px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(50, 17, 204, 0.25);
    border-color: rgba(50, 17, 204, 0.1);
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: visible;
    background:var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.portfolio-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.portfolio-category {
    background: linear-gradient(135deg, #3211CC 0%, #FA4F07 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-content {
    padding: 25px 30px 30px;
    background: white;
}

.portfolio-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.portfolio-content p {
    margin: 0 0 18px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 48px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    background: rgba(50, 17, 204, 0.08);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Portfolio Navigation Buttons */
.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3211CC 0%, #FA4F07 100%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(50, 17, 204, 0.3);
    opacity: 0.9;
}

.portfolio-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 25px rgba(50, 17, 204, 0.4);
}

.portfolio-nav:active {
    transform: translateY(-50%) scale(1.05);
}

.portfolio-prev {
    left: 10px;
}

.portfolio-next {
    right: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .portfolio-item {
        flex: 0 0 calc(50% - 20px);
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    .clients-slider {
        gap: 40px;
        animation-duration: 20s;
    }

    .client-logo {
        width: 150px;
        height: 80px;
        padding: 15px;
    }

    .portfolio-slider-wrapper {
        padding: 20px 40px;
    }

    .portfolio-item {
        flex: 0 0 calc(100% - 20px);
        min-width: 280px;
    }

    .portfolio-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 20px;
    }

    .portfolio-content h3 {
        font-size: 18px;
    }

    .portfolio-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .portfolio-slider-wrapper {
        padding: 20px 30px;
    }

    .portfolio-nav {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}
