.client-counter {
    font-size: 1.5em; /* Increase font size for visibility */
    font-weight: bold; /* Make it bold */
    text-align: center; /* Center the text */
    margin-bottom: 20px; /* Add space below the counter */
    color: var(--text-color); /* Use text color variable for better contrast */
    transition: color 0.3s; /* Smooth color transition */
}

.client-counter span {
    color: var(--primary-color); /* Use primary color variable for the number */
    transition: transform 0.3s; /* Smooth scaling effect */
}

.client-counter:hover span {
    transform: scale(1.2); /* Slightly enlarge the number on hover */
}

.clients .carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0; /* Add padding for better spacing */
}

.clients .carousel-inner {
    display: flex;
    justify-content: flex-start;
    animation: slide 15s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate; /* Faster and smoother animation */
}

.clients .carousel-item {
    flex: 0 0 25%; /* Show 4 items per view for a fuller look */
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease; /* Smooth transform on hover */
}

.clients .carousel-item:hover {
    transform: scale(1.1); /* Slightly enlarge the item on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Emphasize hovered item */
}

.clients .carousel-item .card {
    background: var(--card-background); /* Use card background variable */
    padding: 20px; /* Padding inside the card */
    box-shadow: 0 4px 8px var(--shadow-color); /* Use shadow color variable */
    border-radius: 8px; /* Rounded corners for the card */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure the card takes full height of the item */
}

.clients .carousel-item img {
    max-width: 100%;
    height: auto;
    max-height: 120px; /* Adjust height for better visibility */
    object-fit: contain;
    transition: filter 0.3s ease; /* Smooth hover effect */
}

@media (max-width: 768px) {
    .clients .carousel-item {
        flex: 0 0 50%; /* Show 2 items per view for better visibility */
    }
    .clients .carousel-item img {
        max-height: 150px; /* Increase height for better visibility on mobile */
    }
}

@media (max-width: 480px) {
    .clients .carousel-item {
        flex: 0 0 50%; /* Show 2 items per view for better visibility */
    }
    .clients .carousel-item img {
        max-height: 150px; /* Adjust height for better visibility on small screens */
        width: 100%; /* Make the image take full width of the card */
    }
}

.clients .carousel-item img:hover {
    filter: brightness(1.2); /* Brighten the logo on hover */
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Glowing effect on logos */
.clients .carousel-item img {
    animation: glow 2s ease-in-out infinite alternate; /* Faster glowing effect */
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

/* Pause the animation when hovering over the carousel */
.clients .carousel-inner:hover {
    animation-play-state: paused;
}