/* ========================================
   STATS SECTION - ENHANCED DESIGN
   ======================================== */

.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid rgba(86, 99, 71, 0.1);
}

.stat-item {
    text-align: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid rgba(86, 99, 71, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), rgba(86, 99, 71, 0.3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(86, 99, 71, 0.15);
    border-color: rgba(86, 99, 71, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(86, 99, 71, 0.02) 100%);
}

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

.stat-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 18px;
    animation: iconBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    line-height: 1;
}

.stat-item:nth-child(1) .stat-icon {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) .stat-icon {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) .stat-icon {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) .stat-icon {
    animation-delay: 0.4s;
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1.5px;
    line-height: 1;
    display: block;
}

.stat-number[data-count] {
    animation: countUp 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: capitalize;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stat-item {
        padding: 30px 20px;
    }

    .stat-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

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

@media (max-width: 768px) {
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 50px;
        padding-top: 40px;
    }

    .stat-item {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .stat-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(86, 99, 71, 0.1);
    }

    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

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

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

@media (max-width: 480px) {
    .testimonials-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

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

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