/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 204, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 102, 255, 0.03) 0%, transparent 50%);
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin: 60px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatUp 0.8s ease-out forwards;
    animation-play-state: paused;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 102, 255, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 204, 255, 0.05) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066FF, #00CCFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    animation: pulse 2s infinite;
}

.quote-icon i {
    font-size: 24px;
    color: white;
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2d3748;
    font-weight: 400;
    margin: 0 0 30px 0;
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.author-avatar::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #0066FF, #00CCFF);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .author-avatar::before {
    opacity: 1;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author-avatar img {
    transform: scale(1.1);
}

.author-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #0066FF, #00CCFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-title {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066FF;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #0066FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.social-link i {
    font-size: 14px;
}

/* Company Stats */
.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066FF, #00CCFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon i {
    font-size: 24px;
    color: white;
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0066FF, #00CCFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: countUp 2s ease-out;
}

.stat-label {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(0, 102, 255, 0.4);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px 0;
    }
    
    .testimonial-card {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .testimonial-card blockquote {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .quote-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 25px;
    }
    
    .quote-icon i {
        font-size: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-top: 25px;
    }
    
    .author-avatar {
        width: 70px;
        height: 70px;
    }
    
    .author-info h4 {
        font-size: 1.2rem;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 50px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        margin: 30px 0;
    }
    
    .testimonial-card {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .testimonial-card blockquote {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .testimonials-section {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .testimonial-card {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
    }
    
    .testimonial-card blockquote {
        color: #e2e8f0;
    }
    
    .author-info h4 {
        color: #f7fafc;
    }
    
    .author-title {
        color: #a0aec0;
    }
    
    .stat-card {
        background: rgba(45, 55, 72, 0.8);
        color: #e2e8f0;
    }
    
    .stat-label {
        color: #a0aec0;
    }
}

/* Print styles */
@media print {
    .testimonials-section {
        background: white !important;
        color: black !important;
    }
    
    .testimonial-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .quote-icon,
    .author-social {
        display: none !important;
    }
}