/* Modern Statistics Section */
.statistics-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.statistics-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-box {
    perspective: 1000px;
    height: 250px;
}

.stat-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.stat-box:hover .stat-inner {
    transform: rotateY(180deg);
}

.stat-front,
.stat-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.1);
}

.stat-front {
    background: white;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, var(--primary), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.stat-back {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: rotateY(180deg);
}

.stat-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
    font-family: 'Montserrat', sans-serif;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 600;
}

.stat-back p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Achievement Bar */
.achievement-bar {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.achievement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: slideRight 3s linear infinite;
}

@keyframes slideRight {
    to {
        left: 100%;
    }
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Modern Testimonials Section */
.testimonials-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.testimonials-modern .section-title {
    color: white;
}

.testimonials-modern .section-subtitle {
    color: var(--gray-400);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-item.featured {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent);
    transform: scale(1.05);
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.testimonial-quote {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.3;
}

.rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.rating i {
    color: #FFD700;
    font-size: 1rem;
}

.testimonial-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    min-height: 100px;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.author-details h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-details p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 500;
    position: relative;
}

.badge-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.badge-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.badge-item:hover::after {
    width: 100%;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item.featured {
        transform: scale(1);
    }
    
    .achievement-bar {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .statistics-modern,
    .testimonials-modern {
        padding: 60px 0;
    }
    
    .stat-box {
        height: 220px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }
}