/* ============================================
   STATISTICS COUNTER
   ============================================ */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin: 60px 0;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--primary-main) 0%, var(--secondary-main) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 600;
}

/* ============================================
   TECH IMAGE OVERLAY - Performance Optimized
   ============================================ */
.tech-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    /* Performance: Reserve space to prevent CLS */
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    contain: layout style paint;
}

.tech-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* GPU acceleration for smoother transitions */
    will-change: transform;
    transform: translateZ(0);
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.9) 0%, rgba(2, 132, 199, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-decoration: none;
    cursor: pointer;
}

.tech-card:hover .tech-overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.overlay-icon {
    color: var(--white);
    font-size: 2rem;
    font-style: normal;
    animation: slideRight 0.8s ease-in-out infinite;
}

@keyframes slideRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* ============================================
   QUOTE BUTTON
   ============================================ */
.tech-quote-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
}

.tech-quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 138, 0, 0.4);
}

/* Mobile Responsiveness for Stats and Tech Enhancements */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 35px 20px;
        margin: 40px 0;
    }

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

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

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

    .overlay-text {
        font-size: 1.1rem;
    }

    .tech-quote-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}