/* Testimonials Section - New Vanilla Design */
.testimonials-section {
    width: 100%;
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Work Sans', sans-serif;
}

/* Background decoration */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Container */
.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Header Section */
.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.testimonials-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.testimonials-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Centered Layout */
.testimonials-container-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.testimonials-container-center.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Testimonial Card - Fixed Size to Prevent Flickering */
.featured-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fixed dimensions to prevent flickering */
    height: 480px;
    max-width: 800px;
    width: 100%;
    
    /* Flex layout for consistent content distribution */
    display: flex;
    flex-direction: column;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


.featured-card:hover  {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.featured-card:hover::before {
    left: 100%;
}


/* Remove side cards styles - no longer needed */

/* Card Header - Fixed height */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* Don't shrink */
    height: 80px; /* Fixed height for consistency */
}

.quote-mark {
    font-size: 4rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
    opacity: 0.3;
    font-family: serif;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover .star {
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* Testimonial Content - Flexible to fill space */
.testimonial-content {
    flex: 1;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
    margin: 0;
    transition: color 0.3s ease;
    
    /* Consistent text area */
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card .testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
   
}

.testimonial-card:hover .testimonial-text {
    color: #1f2937;
}

/* Client Info - Fixed at bottom */
.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto; /* Push to bottom */
    flex-shrink: 0; /* Don't shrink */
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.featured-card .client-avatar {
    width: 60px;
    height: 60px;
}

.avatar-placeholder {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.featured-card .avatar-placeholder {
    font-size: 1.125rem;
}

.client-details {
    flex: 1;
}

.client-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.featured-card .client-name {
    font-size: 1.125rem;
}

.client-position {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.125rem 0;
}

.client-company {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* Navigation Dots */
.testimonials-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.testimonials-navigation.animate {
    opacity: 1;
    transform: translateY(0);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    transform: scale(1.3);
    background: #9ca3af;
}

.nav-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.nav-dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}




.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-container-center {
        padding: 0 1rem;
    }
    
    .featured-card {
        max-width: 600px;
        padding: 2.5rem;
        height: 450px; /* Slightly smaller on tablet */
    }
    
    .card-header {
        height: 70px; /* Adjust header height */
    }
    
   
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonials-container {
        padding: 0 1rem;
    }
    
    .testimonials-title {
        font-size: 2.5rem;
    }
    
    .featured-card {
        padding: 2rem;
        max-width: 500px;
        height: 420px; /* Mobile height */
    }
    
    .card-header {
        height: 60px; /* Smaller header on mobile */
    }
    
    .featured-card .testimonial-text {
        font-size: 1.125rem; /* Smaller text on mobile */
        line-height: 1.6;
        
    }
    
 
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonials-description {
        font-size: 1rem;
    }
    
    .featured-card {
        padding: 1.5rem;
        max-width: 400px;
        height: 380px; /* Compact mobile height */
    }
    
    .card-header {
        height: 50px; /* Compact header */
        margin-bottom: 1rem;
    }
    
    .quote-mark {
        font-size: 2.5rem; /* Smaller quote mark */
    }
    
    .featured-card .testimonial-text {
        font-size: 1rem; /* Smaller text for small screens */
        line-height: 1.5;
        
    }
    
    
}

/* Animation delays for staggered entrance */
.testimonial-card {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-play-state: paused;
}

.featured-card {
    animation-delay: 0.3s;
}

/* Remove side card animation delays - no longer needed */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Play animations when visible */
.testimonials-section.visible .testimonial-card {
    animation-play-state: running;
}