/* Granalytich Solutions - Logo Carousel Styles */

/* Client Logos Carousel Section */
.client-logos-section {
    background-color: var(--white);
    padding: 120px 0 60px 0;
    margin-top: 0; /* Removed gap between hero and logos section */
    overflow: hidden;
    position: relative;
}

.client-logos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title-logos {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-heading);
    color: var(--light-gray);
    margin-bottom: 40px;
    text-align: center;
}

.section-title-logos .highlight {
    color: var(--primary-navy);
    font-weight: 700;
}

/* Two-Row Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
    height: 225px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: contents;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Gradient Masks */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 10;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.carousel-row {
    position: absolute;
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 10px;
    will-change: transform;
    transform: translateZ(0);
}

.carousel-row.top {
    top: 20px;
}

.carousel-row.bottom {
    bottom: 20px;
    padding-left: 94px;
    animation-direction: normal;
    animation-duration: 30s;
}

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

/* Logo Styling */
.logo-item-clean {
    min-width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-item-clean:hover {
    transform: scale(1.05);
}

.logo-item-clean img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.9);
    transition: all 0.3s ease;
    will-change: transform, filter;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.logo-item-clean:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Tier 1 styling */
.logo-item-clean.tier-1 img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Tier Row Layout */
.tier-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tier-1-row {
    margin-bottom: 25px;
}

.tier-2-row {
    margin-bottom: 20px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: transparent;
    border: none;
    min-height: 80px;
    flex: 0 0 auto;
}

.client-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    background: white;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0.3) opacity(0.8);
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

/* Fix for Colorado Springs Utilities logo background */
.client-logo img[src*="colorado-springs-utilities"] {
    mix-blend-mode: multiply;
    filter: grayscale(0.3) opacity(0.8) contrast(1.2);
}

.client-logo:hover img[src*="colorado-springs-utilities"] {
    mix-blend-mode: multiply;
    filter: grayscale(0) opacity(1) contrast(1.2);
}

/* Tier 1 - Premium Federal Clients */
.client-logo.tier-1 {
    padding: 10px;
    height: 120px;
    border: 3px solid var(--accent-gold);
    background: transparent;
    width: 200px;
}

.client-logo.tier-1 img {
    filter: grayscale(0) opacity(0.9);
}

.client-logo.tier-1:hover {
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
    transform: translateY(-12px);
}

/* Tier 2 - Major Engineering Firms */
.client-logo.tier-2 {
    padding: 8px;
    height: 90px;
    width: 150px;
}

/* Tier 3 - Regional/Specialty Clients */
.client-logo.tier-3 {
    padding: 6px;
    height: 80px;
    width: 130px;
}