/* Company.css */

/* Companies section styling */
.companies-section {
    padding: 80px 20px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.companies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e6f7ff 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.companies-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.companies-title {
    color: #0A2647;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.companies-title span {
    color: #00B4D8;
    position: relative;
}

.companies-title span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00B4D8;
    border-radius: 2px;
}

.companies-description {
    color: #64748b;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 32px;
    margin: 40px 0;
    place-items: center;
}

.company-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0A2647, #00B4D8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card:hover::before {
    opacity: 1;
}

.company-logo {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(60%);
    transition: all 0.3s ease;
}

.company-card:hover .company-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.company-name {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.company-card:hover .company-name {
    opacity: 1;
    transform: translateY(0);
}

.companies-more {
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
    margin: 24px 0;
}

.companies-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0A2647;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number span {
    color: #00B4D8;
    font-size: 24px;
    margin-left: 4px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#companies-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .company-card {
        height: 100px;
    }
    
    .companies-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .companies-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .companies-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    #companies-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .company-card {
        height: 90px;
    }
}
