﻿/* Enhanced Stats Section Styles - No Conflicts */
.stats-enhanced {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

    /* Animated Background Pattern */
    .stats-enhanced::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
        animation: stats-pattern-move 15s ease-in-out infinite;
        pointer-events: none;
    }

    .stats-enhanced::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        animation: stats-pulse-large 10s ease-in-out infinite;
        pointer-events: none;
    }

/* Wave Top */
.stats-wave-top-enhanced {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" fill="white"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".3"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

/* Wave Bottom */
.stats-wave-bottom-enhanced {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" fill="white"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".3"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

/* Container */
.stats-container-enhanced {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 2;
}

/* Section Header (Optional) */
.stats-header-enhanced {
    text-align: center;
    margin-bottom: 60px;
    animation: stats-fadeInUp 1s ease-out;
}

.stats-header-title-enhanced {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.stats-header-subtitle-enhanced {
    font-size: 1.15rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Stats Grid */
.stats-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    position: relative;
}

/* Stat Item */
.stat-item-enhanced {
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: stats-fadeInUp 1s ease-out both;
    overflow: hidden;
}

    .stat-item-enhanced:nth-child(1) {
        animation-delay: 0.1s;
    }

    .stat-item-enhanced:nth-child(2) {
        animation-delay: 0.2s;
    }

    .stat-item-enhanced:nth-child(3) {
        animation-delay: 0.3s;
    }

    .stat-item-enhanced:nth-child(4) {
        animation-delay: 0.4s;
    }

    .stat-item-enhanced:nth-child(5) {
        animation-delay: 0.5s;
    }

    .stat-item-enhanced:nth-child(6) {
        animation-delay: 0.6s;
    }

    .stat-item-enhanced::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.6s;
    }

    .stat-item-enhanced:hover::before {
        left: 100%;
    }

    .stat-item-enhanced:hover {
        transform: translateY(-10px) scale(1.03);
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }

/* Stat Icon */
.stat-icon-enhanced {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

    .stat-icon-enhanced::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: inherit;
        opacity: 0.3;
        filter: blur(15px);
        transform: scale(1.2);
        transition: all 0.5s ease;
    }

.stat-item-enhanced:hover .stat-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

    .stat-item-enhanced:hover .stat-icon-enhanced::before {
        opacity: 0.5;
        transform: scale(1.4);
    }

.stat-icon-enhanced i {
    position: relative;
    z-index: 1;
    animation: stats-icon-float 3s ease-in-out infinite;
}

/* Stat Number */
.stat-number-enhanced {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-item-enhanced:hover .stat-number-enhanced {
    transform: scale(1.05);
}

/* Stat Label */
.stat-label-enhanced {
    display: block;
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.4;
}

/* Stat Description (Optional) */
.stat-description-enhanced {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Progress Bar (Optional) */
.stat-progress-enhanced {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

.stat-progress-bar-enhanced {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    position: relative;
    overflow: hidden;
}

    .stat-progress-bar-enhanced::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
        animation: stats-progress-shine 2s infinite;
    }

.stat-item-enhanced.animated .stat-progress-bar-enhanced {
    width: var(--progress-width, 100%);
}

/* Divider Lines */
.stats-grid-enhanced .stat-item-enhanced:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.25rem;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Animations */
@keyframes stats-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stats-pattern-move {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

@keyframes stats-pulse-large {
    0%, 100% {
        opacity: 0.08;
        transform: scale(1) translate(0, 0);
    }

    50% {
        opacity: 0.12;
        transform: scale(1.1) translate(-10%, 10%);
    }
}

@keyframes stats-icon-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes stats-progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-enhanced {
        padding: 80px 0;
    }

    .stats-grid-enhanced {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }

    .stat-item-enhanced {
        padding: 2rem 1.5rem;
    }

    .stat-number-enhanced {
        font-size: 3rem;
    }

    .stat-icon-enhanced {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }

    .stats-grid-enhanced .stat-item-enhanced:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-enhanced {
        padding: 60px 0;
    }

    .stats-container-enhanced {
        padding: 0 1.5rem;
    }

    .stats-header-enhanced {
        margin-bottom: 40px;
    }

    .stats-header-title-enhanced {
        font-size: 2rem;
    }

    .stats-header-subtitle-enhanced {
        font-size: 1rem;
    }

    .stats-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item-enhanced {
        padding: 1.8rem 1.2rem;
    }

    .stat-icon-enhanced {
        width: 65px;
        height: 65px;
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .stat-number-enhanced {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }

    .stat-label-enhanced {
        font-size: 1rem;
    }

    .stat-description-enhanced {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-enhanced {
        padding: 50px 0;
    }

    .stats-container-enhanced {
        padding: 0 1rem;
    }

    .stats-header-title-enhanced {
        font-size: 1.7rem;
    }

    .stats-header-subtitle-enhanced {
        font-size: 0.95rem;
    }

    .stats-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .stat-item-enhanced {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .stat-icon-enhanced {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .stat-number-enhanced {
        font-size: 2.2rem;
    }

    .stat-label-enhanced {
        font-size: 0.95rem;
    }

    .stat-description-enhanced {
        font-size: 0.8rem;
    }

    .stats-wave-top-enhanced,
    .stats-wave-bottom-enhanced {
        height: 70px;
    }
}
