/* ================================
   Brands/Partners Section V2 - Compact
   ================================ */

.companies-section {
    padding: 48px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.companies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.companies-header {
    text-align: center;
    margin-bottom: 24px;
}

.companies-header h2 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.companies-header p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.8rem;
}

.companies-viewport {
    position: relative;
    overflow: hidden;
    padding: 24px 0;
}

.companies-viewport::before,
.companies-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.companies-viewport::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.companies-viewport::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.companies-track {
    display: flex;
    align-items: center;
    gap: 70px;
    animation: scrollBrands 30s linear infinite;
    width: max-content;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(0.3);
    cursor: pointer;
}

.company-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

.company-logo-img {
    height: 32px;
    width: auto;
    max-width: 65px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.company-item:hover .company-logo-img {
    transform: scale(1.08);
}

.company-logo {
    font-size: 2.2rem;
    color: #1a1a1a;
}

.company-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 40px));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .companies-section {
        padding: 40px 0;
    }

    .companies-track {
        gap: 50px;
    }

    .company-logo {
        font-size: 1.8rem;
    }

    .company-name {
        font-size: 0.9rem;
    }

    .company-logo-img {
        height: 28px;
        max-width: 55px;
    }

    .companies-viewport::before,
    .companies-viewport::after {
        width: 60px;
    }
}
