#companies {
    background-color: #dddddd;
    padding-top: 50px;
    padding-bottom: 50px;
}

#companies h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

#companies p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.company-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: max-content; /* Ensures the container is only as wide as the logos inside */
    gap: 50px; /* Add space between logos */
    animation: scrollLogos 30s linear infinite; /* Continuous scroll effect */
}

.company-logo img {
    max-height: 100px; /* Adjust the logo size */
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); /* Shadow effect */
    opacity: 0.9;
}

.company-logo:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.company-logos {
    overflow: hidden; /* Prevent the logos from overflowing the container */
    white-space: nowrap; /* Prevent wrapping */
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Scroll logos to the left */
    }
}

/* Optional: Styling for the scrollbar */
.company-logos::-webkit-scrollbar {
    height: 8px;
}

.company-logos::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.company-logos::-webkit-scrollbar-thumb:hover {
    background: #555;
}





