.customer-container {
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.customer-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.3) 50%,
        transparent 100%);
}

.customer-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.3) 50%,
        transparent 100%);
}

.customer-shell {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 12px;
}

.customer-track {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 18px 20px;
    border-radius: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
}

.customer-track::before,
.customer-track::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right,
        rgba(15, 15, 25, 1) 0%,
        rgba(15, 15, 25, 0.8) 20%,
        rgba(15, 15, 25, 0) 100%);
}

.customer-track::after {
    right: 0;
    background: linear-gradient(to left,
        rgba(15, 15, 25, 1) 0%,
        rgba(15, 15, 25, 0.8) 20%,
        rgba(15, 15, 25, 0) 100%);
}

.customer-track::before {
    left: 0;
}

.customer-track-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 48px;
    will-change: transform;
    animation: scroll-infinite 30s linear infinite;
}

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

.customer-container .customer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 14px;
    padding: 22px 18px;
    text-align: center;
    min-width: 230px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 16px;
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.customer-container .customer-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(145deg,
        rgba(99, 102, 241, 0.2),
        rgba(139, 92, 246, 0.1),
        transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.customer-container .customer-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2),
                0 0 0 1px rgba(99, 102, 241, 0.1);
}

.customer-container .customer-item:hover::before {
    opacity: 1;
}

.customer-container .customer-item img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    background-color: transparent;
    padding: 0;
    filter: grayscale(20%) brightness(0.85) contrast(0.95);
    opacity: 0.75;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.customer-container .customer-item:hover img {
    filter: grayscale(0%) brightness(1.05) contrast(1.1);
    opacity: 1;
    transform: scale(1.08);
}

.customer-container .customer-item span {
    font-family: "Inter", Helvetica, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    opacity: 0.7;
    text-wrap: balance;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.customer-container .customer-item:hover span {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.customer-logo {
    width: 190px;
    height: 190px;
    object-fit: contain;
    background: transparent;
    padding: 0;
}

.customer-logo--light-bg {
    background-color: white !important;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.customer-container .customer-item:hover .customer-logo--light-bg {
    background-color: white !important;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

@media (max-width: 1200px) {
    .customer-container .customer-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 25px;
    }

    .customer-container .customer-item {
        max-width: 200px;
    }
}

@media (max-width: 992px) {
    .customer-container .customer-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }

    .customer-container .customer-item {
        max-width: 180px;
        padding: 25px 15px;
    }

    .customer-container .customer-item img {
        width: 120px;
        height: 80px;
    }

    .customer-container .customer-item span {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .customer-container .customer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .customer-container .customer-item {
        max-width: none;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .customer-container {
        padding: 80px 0;
    }

    .customer-container .customer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .customer-container .customer-item {
        min-height: 150px;
        padding: 20px 15px;
    }

    .customer-container .customer-item img {
        width: 70px;
        height: 70px;
    }

    .customer-container .customer-item span {
        font-size: 15px;
    }
}
