/* Modern Clients Section Styles */
.clients-section {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #f5f7fa 100%);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

/* Decorative shapes */
.clients-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 66, 113, 0.03) 0%, rgba(16, 66, 113, 0) 70%);
    z-index: 0;
}

.clients-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 183, 42, 0.05) 0%, rgba(244, 183, 42, 0) 70%);
    z-index: 0;
}

.section-header {
    position: relative;
    padding-bottom: 20px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--wp-primary), var(--wp-yellow));
    border-radius: 3px;
}

.section-subtitle {
    margin-top: 10px;
    animation: fadeInUp 0.5s ease-out;
}

.section-description {
    max-width: 800px;
    margin: 15px auto 0;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    animation: fadeInUp 0.7s ease-out;
}

.bg-primary-subtle {
    background-color: rgba(16, 66, 113, 0.1);
}

.text-primary {
    color: var(--wp-primary) !important;
}

/* Client Stats */
.client-stats-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: none;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.client-stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--wp-primary), var(--wp-yellow));
    z-index: 1;
}

.client-stats-container:hover {
    transform: translateY(-10px);
}

.client-stat-item {
    padding: 35px 15px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.client-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #eee, transparent);
}

.client-stat-item.featured {
    background: linear-gradient(135deg, rgba(16, 66, 113, 0.03) 0%, rgba(16, 66, 113, 0) 100%);
}

.client-stat-item.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--wp-yellow);
    z-index: 1;
}

.client-stat-icon {
    position: relative;
    width: 70px;
    height: 70px;
    background: #f4f4f4; /* Light gray background */
    color: #666; /* Gray icon color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.client-stat-icon i {
    /* No rotation initially */
    transition: all 0.5s ease;
}

.client-stat-value {
    position: relative;
    font-size: 3rem;
    font-weight: 800;
    color: var(--wp-primary); /* Direct color instead of gradient */
    line-height: 1;
    margin-bottom: 15px;
}

.client-stat-value span {
    position: relative;
    top: -10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp-yellow); /* Direct color instead of gradient */
}

.client-stat-label {
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
    position: relative;
}

.client-stat-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--wp-yellow);
    transition: width 0.3s ease;
}

.client-stat-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.8);
}

.client-stat-item:hover .client-stat-icon {
    background: var(--wp-yellow);
    color: var(--wp-primary);
}

.client-stat-item:hover .client-stat-icon i {
    transform: scale(1.1);
}

.client-stat-item:hover .client-stat-label::after {
    width: 40px;
}

/* Client Logos */
.client-logos-container {
    margin-top: 60px;
    position: relative;
}

.client-logos-container::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--wp-primary));
}

.client-logos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.client-logos-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wp-primary);
    margin-bottom: 0;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.client-logos-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: var(--wp-yellow);
    border-radius: 3px;
}

.client-logo-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.client-logo-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(16, 66, 113, 0.05) 0%, rgba(16, 66, 113, 0) 100%);
    transition: height 0.5s ease;
    z-index: -1;
}

.client-logo-box img {
    max-height: 75px;
    max-width: 100%;
    filter: grayscale(30%); /* Reduced grayscale effect */
    opacity: 1; /* Full opacity */
    transition: all 0.5s ease;
    object-fit: contain;
    transform: scale(1);
}

.client-hover-content {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--wp-primary) 0%, #1a6fb5 100%);
    color: white;
    padding: 12px 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    text-align: center;
}

.client-name {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.client-project {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 3px;
}

.client-logo-box:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    border-color: rgba(16, 66, 113, 0.2);
}

.client-logo-box:hover::before {
    height: 100%;
}

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

.client-logo-box:hover .client-hover-content {
    bottom: 0;
    opacity: 1;
}

.featured-partner {
    border: none;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--wp-primary), var(--wp-yellow)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.featured-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--wp-yellow) 0%, #f8c649 100%);
    color: var(--wp-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(244, 183, 42, 0.3);
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Client More Container */
.client-more-container {
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(16, 66, 113, 0.03) 0%, rgba(16, 66, 113, 0) 100%);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 66, 113, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 1;
}

.client-more-container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(16, 66, 113, 0.15);
}

.client-more-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 66, 113, 0.03) 0%, rgba(16, 66, 113, 0) 70%);
    z-index: -1;
}

.client-more-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(244, 183, 42, 0.05) 0%, rgba(244, 183, 42, 0) 70%);
    z-index: -1;
}

.client-more-text h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wp-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.client-more-text h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--wp-yellow);
    border-radius: 3px;
}

.client-more-text p {
    color: #555;
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.client-more-action .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(16, 66, 113, 0.15);
    transition: all 0.3s ease;
}

.client-more-action .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 66, 113, 0.2);
}

.client-more-action .btn i {
    transition: transform 0.3s ease;
}

.client-more-action .btn:hover i {
    transform: translateX(5px);
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .client-stats-container {
        margin-bottom: 30px;
    }

    .client-stat-item {
        padding: 25px 15px;
    }

    .client-stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .client-stat-value {
        font-size: 2.5rem;
    }

    .client-logo-box {
        height: 120px;
        padding: 15px;
    }

    .client-logo-box img {
        max-height: 60px;
    }

    .client-more-container {
        padding: 30px;
    }

    .client-more-action {
        margin-top: 20px;
    }

    .client-logos-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .client-stat-item:not(:last-child)::after {
        display: none;
    }

    .client-stat-item:not(:last-child) {
        border-bottom: 1px solid rgba(16, 66, 113, 0.1);
    }

    .section-header::after {
        width: 60px;
    }

    .client-more-container {
        padding: 25px;
    }

    .client-more-text h4 {
        font-size: 1.4rem;
    }

    .client-logo-box:hover {
        transform: translateY(-5px);
    }
}