/* ===== Industry Stats Section ===== */
.stats {
    max-width: 100%;
    margin: 0;
    padding: 5rem 2rem;
    background: linear-gradient(270deg, #f0f5f8 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(45, 106, 122, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(107, 163, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3.5rem;
    color: #4a5568;
    position: relative;
    z-index: 2;
}

.stats-heading .accent {
    color: #2d6a7a;
    font-weight: 800;
    font-style: italic;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 106, 122, 0.05), transparent);
    transition: left 0.7s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.99);
    border: 2px solid #2f777e;
}

.stat-icon {
    font-size: 3.5rem;
    min-width: 5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    background: linear-gradient(135deg, #2d6a7a 0%, #6ba3aa 100%);
    -webkit-background-clip: text; /* clip the background to text */
    -webkit-text-fill-color: transparent;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(12deg);
    filter: drop-shadow(0 8px 20px rgba(45, 106, 122, 0.3));
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a2744;
    margin-bottom: 0.25rem;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-number {
    color: #2d6a7a;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d6a7a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.95rem;
    color: #5a6577;
    line-height: 1.6;
    margin: 0;
}

.gradient-icon {
    font-size: 50px; /* size of the icon */
    background: linear-gradient(45deg, #FF6B6B, #FFD93D);
    -webkit-background-clip: text; /* clip the background to text */
    -webkit-text-fill-color: transparent; /* make the text itself transparent */
}

/* Animated Counter for Stats */
@keyframes countup {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.stat-number.counting {
    animation: countup 2s ease-out;
}

/* ===== Responsive: Stats ===== */
@media (min-width: 640px) {
    .stat-card {
        flex-direction: row;
    }

    .stat-icon {
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .stats-heading {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .stats {
        padding: 6rem 3rem;
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-card {
        padding: 2rem;
    }

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