/* Counters Section Styles - css/counters.css */
.counters-section {
    position: relative;
    width: 100%;
    padding: 80px 40px;
    margin: 40px 0;
    background: #002238;
    backdrop-filter: blur(10px);
    border-radius: 0;
    overflow: hidden;
}

.counters-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.counter-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.counter-circle {
    position: relative;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.counter-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.counter-item:hover .counter-circle {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.counter-item:hover .counter-circle::before {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.counter-item:hover .counter-number {
    transform: scale(1.1);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.counter-label {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    line-height: 1.4;
}

.counter-item:hover .counter-label {
    opacity: 1;
    transform: translateY(-2px);
}

/* Animation delays for staggered effect */
.counter-item:nth-child(1) {
    transition-delay: 0s;
}

.counter-item:nth-child(2) {
    transition-delay: 0.1s;
}

.counter-item:nth-child(3) {
    transition-delay: 0.2s;
}

.counter-item:nth-child(4) {
    transition-delay: 0.3s;
}

/* Pulse animation for active counters */
@keyframes pulse {
    0% {
    }
    70% {
    }
    100% {
    }
}

.counter-item.counting .counter-circle {
    animation: pulse 2s ease-in-out;
}

/* Visual Composer Integration - Make counters full width within stretched rows */
.vc_row[data-vc-stretch-content="true"] .counters-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.vc_row[data-vc-full-width="true"] .counters-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.vc_row.vc_row-no-padding .counters-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Responsive design */
@media (max-width: 1024px) {
    .counters-section {
        padding: 60px 30px;
    }
    
    .counters-container {
        gap: 30px;
        max-width: 900px;
    }
    
    .counter-circle {
        width: 130px;
        height: 130px;
    }
    
    .counter-number {
        font-size: 42px;
    }
    
    .counter-label {
        font-size: 16px;
    }
    
    /* Ensure full width on tablets for stretched rows */
    .vc_row[data-vc-stretch-content="true"] .counters-section,
    .vc_row[data-vc-full-width="true"] .counters-section,
    .vc_row.vc_row-no-padding .counters-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

@media (max-width: 768px) {
    .counters-section {
        padding: 50px 20px;
    }
    
    .counters-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        max-width: 600px;
    }
    
    .counter-circle {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .counter-number {
        font-size: 36px;
    }
    
    .counter-label {
        font-size: 15px;
    }
    
    /* Ensure full width on mobile for stretched rows */
    .vc_row[data-vc-stretch-content="true"] .counters-section,
    .vc_row[data-vc-full-width="true"] .counters-section,
    .vc_row.vc_row-no-padding .counters-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

@media (max-width: 480px) {
    .counters-section {
        padding: 40px 15px;
    }
    
    .counters-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 300px;
    }
    
    .counter-circle {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    
    .counter-number {
        font-size: 32px;
    }
    
    .counter-label {
        font-size: 14px;
    }
    
    /* Ensure full width on small mobile for stretched rows */
    .vc_row[data-vc-stretch-content="true"] .counters-section,
    .vc_row[data-vc-full-width="true"] .counters-section,
    .vc_row.vc_row-no-padding .counters-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .counters-section {
        background: #002238;
        /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); */
    }
    
    .counter-circle {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.03);
    }
    
    .counter-number,
    .counter-label {
        color: white;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .counter-item,
    .counter-circle,
    .counter-number,
    .counter-label {
        transition: none;
    }
    
    .counter-circle {
        animation: none;
    }
}

/* Print styles */
@media print {
    .counters-section {
        background: none;
        /* box-shadow: none; */
        border: 1px solid #ccc;
        border-radius: 0;
        padding: 20px;
    }
    
    .counters-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .counter-circle {
        border-color: #333;
        background: none;
        /* box-shadow: none; */
    }
    
    .counter-number,
    .counter-label {
        color: #000;
        text-shadow: none;
    }
}

/* RTL Support */
[dir="rtl"] .counter-label {
    direction: rtl;
    text-align: center;
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-item.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Glow effect for counting */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

.counter-item.counting .counter-number {
    animation: glow 0.5s ease-in-out;
} 