/**
 * VTC Counter Module - Modern UI/UX Design
 * Unique class prefixes to prevent conflicts: vtc-cnt-7x9m2
 */

/* Counter Section Container */
.vtc-cnt-7x9m2-section {
    position: relative;
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}

.vtc-cnt-7x9m2-section.vtc-cnt-dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* White overlay for background images */
.vtc-cnt-7x9m2-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
    pointer-events: none;
}

.vtc-cnt-7x9m2-section.vtc-cnt-dark-mode::after {
    background: rgba(15, 23, 42, 0.9);
}

/* Animated Background Pattern */
.vtc-cnt-7x9m2-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--vtc-primary-color, #4A90E2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--vtc-secondary-color, #fe6c3f) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--vtc-accent-color, #10b981) 0%, transparent 50%);
    animation: vtc-cnt-7x9m2-float 20s ease-in-out infinite;
}

@keyframes vtc-cnt-7x9m2-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -20px) scale(1.1); }
    66% { transform: translate(20px, -10px) scale(0.9); }
}

/* Container - Ensure content is above overlay */
.vtc-cnt-7x9m2-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.vtc-cnt-7x9m2-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.vtc-cnt-7x9m2-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--vtc-primary-color, #4A90E2);
    margin-bottom: 15px;
    position: relative;
    padding: 8px 20px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 30px;
}

.vtc-cnt-7x9m2-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.vtc-cnt-dark-mode .vtc-cnt-7x9m2-title {
    color: #f1f5f9;
}

.vtc-cnt-7x9m2-title-accent {
    background: linear-gradient(135deg, var(--vtc-primary-color, #4A90E2) 0%, var(--vtc-secondary-color, #fe6c3f) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vtc-cnt-7x9m2-desc {
    font-size: 18px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

.vtc-cnt-dark-mode .vtc-cnt-7x9m2-desc {
    color: #94a3b8;
}

/* Counter Grid */
.vtc-cnt-7x9m2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Counter Card */
.vtc-cnt-7x9m2-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.vtc-cnt-dark-mode .vtc-cnt-7x9m2-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
}

.vtc-cnt-7x9m2-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vtc-primary-color, #4A90E2), var(--vtc-secondary-color, #fe6c3f));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.vtc-cnt-7x9m2-card:hover::before {
    transform: scaleX(1);
}

.vtc-cnt-7x9m2-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(74, 144, 226, 0.1);
}

.vtc-cnt-dark-mode .vtc-cnt-7x9m2-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(74, 144, 226, 0.3);
}

/* Icon Container */
.vtc-cnt-7x9m2-icon-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtc-cnt-7x9m2-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--vtc-primary-color, #4A90E2) 0%, var(--vtc-secondary-color, #fe6c3f) 100%);
    opacity: 0.1;
    transition: all 0.4s ease;
}

.vtc-cnt-7x9m2-card:hover .vtc-cnt-7x9m2-icon-bg {
    opacity: 0.2;
    transform: rotate(10deg) scale(1.1);
}

.vtc-cnt-7x9m2-icon {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--vtc-primary-color, #4A90E2);
}

.vtc-cnt-7x9m2-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vtc-cnt-7x9m2-icon i {
    transition: transform 0.4s ease;
}

.vtc-cnt-7x9m2-card:hover .vtc-cnt-7x9m2-icon i {
    transform: scale(1.2);
}

/* Number Container */
.vtc-cnt-7x9m2-number-wrap {
    margin-bottom: 15px;
    position: relative;
}

.vtc-cnt-7x9m2-number {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: inline-flex;
    align-items: baseline;
}

.vtc-cnt-dark-mode .vtc-cnt-7x9m2-number {
    color: #f1f5f9;
}

.vtc-cnt-7x9m2-number-value {
    position: relative;
    display: inline-block;
}

.vtc-cnt-7x9m2-suffix {
    font-size: 36px;
    font-weight: 600;
    color: var(--vtc-secondary-color, #fe6c3f);
    margin-left: 5px;
}

/* Label */
.vtc-cnt-7x9m2-label {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.vtc-cnt-dark-mode .vtc-cnt-7x9m2-label {
    color: #94a3b8;
}

/* Loading State */
.vtc-cnt-7x9m2-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 144, 226, 0.1);
    border-top-color: var(--vtc-primary-color, #4A90E2);
    border-radius: 50%;
    animation: vtc-cnt-7x9m2-spin 1s linear infinite;
}

@keyframes vtc-cnt-7x9m2-spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vtc-cnt-7x9m2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .vtc-cnt-7x9m2-title {
        font-size: 40px;
    }
    
    .vtc-cnt-7x9m2-number {
        font-size: 46px;
    }
    
    .vtc-cnt-7x9m2-suffix {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .vtc-cnt-7x9m2-section {
        padding: 80px 0;
    }
    
    .vtc-cnt-7x9m2-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vtc-cnt-7x9m2-header {
        margin-bottom: 50px;
    }
    
    .vtc-cnt-7x9m2-title {
        font-size: 32px;
    }
    
    .vtc-cnt-7x9m2-desc {
        font-size: 16px;
    }
    
    .vtc-cnt-7x9m2-card {
        padding: 30px 20px;
    }
    
    .vtc-cnt-7x9m2-icon-wrap {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .vtc-cnt-7x9m2-icon {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .vtc-cnt-7x9m2-number {
        font-size: 40px;
    }
    
    .vtc-cnt-7x9m2-suffix {
        font-size: 28px;
    }
    
    .vtc-cnt-7x9m2-label {
        font-size: 14px;
    }
}

/* Animation Classes */
.vtc-cnt-7x9m2-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: vtc-cnt-7x9m2-fadeUp 0.8s ease forwards;
}

.vtc-cnt-7x9m2-animate:nth-child(1) { animation-delay: 0.1s; }
.vtc-cnt-7x9m2-animate:nth-child(2) { animation-delay: 0.2s; }
.vtc-cnt-7x9m2-animate:nth-child(3) { animation-delay: 0.3s; }
.vtc-cnt-7x9m2-animate:nth-child(4) { animation-delay: 0.4s; }

@keyframes vtc-cnt-7x9m2-fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.vtc-cnt-7x9m2-card:focus-visible {
    outline: 2px solid var(--vtc-primary-color, #4A90E2);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .vtc-cnt-7x9m2-bg-pattern {
        display: none;
    }
    
    .vtc-cnt-7x9m2-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}