/* Testimonials Section Styles */
#testimonials {
    background: #f8f9fa;
    position: relative;
}

/* Testimonial Stats */
.testimonial-stats {
    margin-bottom: 3rem;
}

.stat-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333c4;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testimonial Cards */
.testimonial-card {
    border: none;
    border-radius: 15px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    position: relative;
    z-index: 2;
}

.testimonial-avatar {
    margin-bottom: 1rem;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.1);
}

.testimonial-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: #adb5bd;
}

.testimonial-stars {
    margin-bottom: 1rem;
}

.testimonial-stars i {
    font-size: 1.2rem;
    margin: 0 0.1rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-stars .fa-star {
    transform: scale(1.2);
}

.testimonial-quote {
    font-style: italic;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    padding: 1rem 0;
    margin: 0;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 3rem;
    color: #667eea;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-quote::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 3rem;
    color: #667eea;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author small {
    color: #6c757d;
    font-size: 0.85rem;
}

.testimonial-project {
    margin-top: 1rem;
}

.testimonial-project .badge {
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 15px;
}

.testimonial-technologies {
    margin-top: 0.5rem;
}

.testimonial-technologies .badge {
    background: #f8f9fa;
    color: #e9ecef;
    border: 1px solid #e9ecef;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
}

.testimonial-social {
    margin-top: 1rem;
}

.testimonial-social .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

.testimonial-date {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.testimonial-date small {
    color: #adb5bd;
    font-size: 0.8rem;
}

/* Testimonial Filters */
.testimonial-filters {
    margin-top: 2rem;
}

.testimonial-filters .filter-btn {
    margin: 0.25rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
}

.testimonial-filters .filter-btn:hover,
.testimonial-filters .filter-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Call to Action */
.testimonial-cta {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.testimonial-cta>* {
    position: relative;
    z-index: 2;
}

.testimonial-cta h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonial-cta .lead {
    color: #6c757d;
    margin-bottom: 2rem;
}

.testimonial-cta .btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.testimonial-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial Rating Animation */
.testimonial-card:hover .testimonial-stars .text-warning {
    animation: starGlow 0.5s ease-in-out;
}

@keyframes starGlow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Counter Animation */
.stat-number[data-count] {
    opacity: 0;
    transform: translateY(20px);
}

.stat-number.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-stats {
        margin-bottom: 2rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .testimonial-card .card-body {
        padding: 1.5rem;
    }

    .testimonial-image,
    .testimonial-avatar-placeholder {
        width: 60px;
        height: 60px;
    }

    .testimonial-avatar-placeholder {
        font-size: 1.5rem;
    }

    .testimonial-quote {
        font-size: 0.9rem;
    }

    .testimonial-cta {
        padding: 2rem 1.5rem;
    }

    .testimonial-filters .filter-btn {
        margin: 0.2rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .testimonial-card .card-body {
        padding: 1rem;
    }

    .testimonial-quote::before,
    .testimonial-quote::after {
        font-size: 2rem;
    }

    .testimonial-cta {
        padding: 1.5rem 1rem;
    }

    .testimonial-cta h4 {
        font-size: 1.3rem;
    }

    .testimonial-cta .lead {
        font-size: 1rem;
    }
}

/* Animation Delays */
.fade-in-up[data-delay="100"] {
    transition-delay: 0.1s;
}

.fade-in-up[data-delay="200"] {
    transition-delay: 0.2s;
}

.fade-in-up[data-delay="300"] {
    transition-delay: 0.3s;
}

.fade-in-up[data-delay="400"] {
    transition-delay: 0.4s;
}

.fade-in-up[data-delay="500"] {
    transition-delay: 0.5s;
}

.fade-in-up[data-delay="600"] {
    transition-delay: 0.6s;
}