/* Testimonial Section Styles */
#testimonials {
    padding: 100px 0;
    background-color: #f8fafc;
    width: 100%;
}

.testimonial-container {
    max-width: 1600px;

    margin: 0 auto;
    padding: 0 0px;

}

/* Section Header */
.testimonial-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonial-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.2;
}

.testimonial-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    max-width: 1200px;

    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    gap: 30px;
}

/* Testimonial Card */
.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(29, 78, 216, 0.15);
    border-color: rgb(29, 78, 216);
}

/* Client Profile */
.client-profile {
    flex-shrink: 0;
}

.profile-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f5f9;
    transition: border-color 0.3s ease;
}

.testimonial-card:hover .profile-img {
    border-color: rgb(29, 78, 216);
}

/* Testimonial Content */
.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-text {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
}

.client-info {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.client-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 4px;
}

.client-role {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dot:hover::after {
    opacity: 1;
}

.dot.active {
    background: rgb(29, 78, 216);
    transform: scale(1.2);
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 20%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    z-index: 10;
    opacity: 0;
}

.testimonial-carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-arrow:hover {
    background: rgb(29, 78, 216);
    color: white;
    border-color: rgb(29, 78, 216);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    #testimonials {
        padding: 60px 0;
    }
    
    .testimonial-title {
        font-size: 2.2rem;
    }
    
    .testimonial-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonial-header {
        margin-bottom: 40px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        padding: 25px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .profile-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        padding: 0 20px;
    }
    
    .testimonial-title {
        font-size: 1.8rem;
    }
    
    .testimonial-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .client-profile {
        align-self: center;
    }
    
    .profile-img {
        width: 80px;
        height: 80px;
    }
    
    .carousel-dots {
        margin-top: 30px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Animation for carousel transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-card.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Auto-slide animation helper */
.carousel-track.auto-slide {
    transition: transform 0.6s ease-in-out;
}