/* Clients Section - Matching Style */
#clients {
    background: linear-gradient(135deg, #0f2847 0%, #1a4373 25%, #2a5a99 50%, #4A90E2 100%);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.clients-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.clients-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.3) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.clients-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(74, 144, 226, 0.15) 0%, transparent 50%);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(74, 144, 226, 0.3));
    top: 15%;
    left: -100px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float1 20s infinite ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(46, 92, 138, 0.3));
    bottom: 15%;
    right: -100px;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: float2 25s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 30px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) rotate(120deg) scale(1.15);
    }
    66% {
        transform: translate(30px, -40px) rotate(240deg) scale(0.85);
    }
}

.bg-particles span {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.bg-particles span:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 25%;
    animation-delay: 0s;
}

.bg-particles span:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 50%;
    left: 50%;
    animation-delay: 5s;
}

.bg-particles span:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 70%;
    right: 30%;
    animation-delay: 10s;
}

.bg-particles span:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 35%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.section-header h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Stats Banner */
.clients-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Clients Showcase Grid */
.clients-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

/* Client Card */
.client-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out backwards;
}

.client-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Stagger animation */
.client-card:nth-child(1) { animation-delay: 0.1s; }
.client-card:nth-child(2) { animation-delay: 0.2s; }
.client-card:nth-child(3) { animation-delay: 0.3s; }
.client-card:nth-child(4) { animation-delay: 0.4s; }
.client-card:nth-child(5) { animation-delay: 0.5s; }
.client-card:nth-child(6) { animation-delay: 0.6s; }

/* Client Card Header */
.client-card-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 25px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.client-logo-wrapper {
    /* flex: 1; Removed to center content */
    display: flex;
    justify-content: center;
    width: 100%;
}

.client-logo-wrapper img {
    width: 140px;
    height: 180px;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.client-card:hover .client-logo-wrapper img {
    opacity: 1;
    transform: scale(1.05);
}

.client-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.client-website:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* Client Info */
.client-info {
    padding: 25px;
}

.client-info h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.client-category {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Client Tags - Removed */

/* Testimonial */
.client-testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.testimonial-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    margin-top: 10px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.author-company {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.testimonial-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.testimonial-header h3 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.clients-cta {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.clients-cta h3 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.clients-cta > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

/* CTA Button */
.btn-clients {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-clients::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-clients:hover::before {
    width: 300px;
    height: 300px;
}

.btn-clients span,
.btn-clients svg {
    position: relative;
    z-index: 1;
}

.btn-clients:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.6);
}

.btn-clients svg {
    transition: transform 0.3s ease;
}

.btn-clients:hover svg {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .clients-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    #clients {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .clients-stats {
        gap: 20px;
        margin-bottom: 50px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .clients-showcase {
        gap: 25px;
        margin-bottom: 50px;
    }

    .client-testimonial {
        padding: 40px 30px;
    }

    .testimonial-text {
        font-size: 1.15rem;
    }

    .clients-cta {
        padding: 50px 30px;
    }

    .clients-cta h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #clients {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .clients-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-box {
        padding: 25px 15px;
    }

    .clients-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .client-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .client-website {
        align-self: flex-start;
    }

    .testimonial-text {
        font-size: 1.05rem;
    }

    .clients-cta h3 {
        font-size: 1.8rem;
    }

    .btn-clients {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .client-info h3 {
        font-size: 1.3rem;
    }

    .clients-cta h3 {
        font-size: 1.6rem;
    }
}