/* Testimonials Section Styles */
.testimonials-section {
    padding: 140px 0;
    background-color: #0A0C10;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(125, 128, 255, 0.08), transparent 70%);
    z-index: 0;
    border-radius: 50%;
    transform: translate(20%, -30%);
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 95, 11, 0.05), transparent 70%);
    z-index: 0;
    border-radius: 50%;
    transform: translate(-30%, 30%);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 4rem;
    font-weight: 500;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    font-family: var(--font-title);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #99A2B2;
    margin: 0 auto 80px;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.testimonial-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 120px;
    z-index: 1;
    overflow: visible;
    min-height: 480px;
    padding: 0 70px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    transform: scale(0.95);
    transform-origin: center;
    filter: blur(5px);
}

.testimonial-slide.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
    filter: blur(0);
}

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    position: absolute;
    top: 40px;
    left: 40px;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: white;
    margin: 60px 0 40px;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(125, 128, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-author:hover .author-image {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(125, 128, 255, 0.3);
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: white;
    margin: 0 0 4px;
}

.author-info p {
    font-size: 0.875rem;
    color: #99A2B2;
    margin: 0;
}

.testimonial-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: center;
}

.metric-box {
    background: linear-gradient(135deg, rgba(125, 128, 255, 0.1), rgba(255, 95, 11, 0.05));
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, box-shadow;
}

.metric-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.metric-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(125, 128, 255, 0.05), rgba(255, 95, 11, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-box:hover::before {
    opacity: 1;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #7D80FF;
    margin-bottom: 8px;
    position: relative;
}

.metric-label {
    display: block;
    font-size: 1rem;
    color: white;
    position: relative;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.prev-btn, .next-btn {
    background: rgba(125, 128, 255, 0.15);
    border: 1px solid rgba(125, 128, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(125, 128, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.prev-btn:active, .next-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn:focus, .next-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(125, 128, 255, 0.5);
}

.prev-btn svg, .next-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.carousel-indicators {
    display: flex;
    gap: 12px;
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 12, 16, 0.7);
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(125, 128, 255, 0.2);
    z-index: 30;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 128, 255, 0.6), rgba(255, 95, 11, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.indicator:hover::after {
    opacity: 0.5;
}

.indicator.active {
    background-color: #7D80FF;
    transform: scale(1.2);
}

.indicator.active::after {
    opacity: 1;
}

.customer-logos {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 60px;
    padding-top: 30px;
}

.customer-logos h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    margin-bottom: 40px;
    font-family: var(--font-title);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin: 0 auto;
    max-width: 1100px;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item img {
    max-width: 100%;
    max-height: 40px;
    filter: grayscale(100%) brightness(200%);
    transition: filter 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.logo-item:hover img {
    filter: grayscale(0%) brightness(100%);
}

/* Add keyframe animation for indicators */
@keyframes indicatorPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(125, 128, 255, 0.7);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 10px rgba(125, 128, 255, 0);
    }
    100% {
        transform: scale(1.2);
        box-shadow: 0 0 0 0 rgba(125, 128, 255, 0);
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .testimonials-section h2 {
        font-size: 3.5rem;
    }
    
    .testimonial-slide {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
    
    .prev-btn, .next-btn {
        width: 44px;
        height: 44px;
    }
    
    .prev-btn svg, .next-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 991px) {
    .testimonial-slide {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-carousel {
        min-height: 700px;
        padding: 0 20px;
    }
    
    .testimonial-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .carousel-indicators {
        bottom: -60px;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 80px 0 160px;
    }
    
    .testimonial-carousel {
        min-height: 800px;
        margin-bottom: 60px;
        padding: 0 20px;
    }
    
    .testimonial-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .carousel-controls {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -100px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0;
        z-index: 30;
        padding: 0 20px;
    }
    
    .carousel-indicators {
        position: absolute;
        bottom: -130px;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 12px;
        z-index: 40;
    }
    
    .quote-icon {
        transform: scale(0.8);
        top: 25px;
        left: 25px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .customer-logos {
        margin-top: 80px;
        position: relative;
        z-index: 20;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .testimonials-section {
        padding: 80px 0 200px;
    }
    
    .testimonial-carousel {
        min-height: 850px;
        padding: 0 10px;
        margin-bottom: 80px;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        margin: 40px 0 25px;
        font-size: 0.95rem;
    }
    
    .metric-box {
        padding: 15px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .carousel-controls {
        bottom: -120px;
        padding: 0 20px;
    }
    
    .carousel-indicators {
        bottom: -150px;
        padding: 10px 16px;
        gap: 12px;
        z-index: 50;
        background-color: rgba(10, 12, 16, 0.8);
        border: 1px solid rgba(125, 128, 255, 0.3);
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .testimonial-section-divider {
        height: 60px;
        margin-top: 40px;
    }
    
    .customer-logos {
        margin-top: 100px;
    }
}

/* Divider between carousel and customer logos */
.testimonial-section-divider {
    height: 40px;
    width: 100%;
    position: relative;
    margin-top: 30px;
}

/* Customer logos section spacing */
.customer-logos {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 60px;
    padding-top: 30px;
} 