/* Enhanced Counter Section Styles */
.counter-area.counter-two {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.counter-area.counter-two::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.counter-area.counter-two .container {
    position: relative;
    z-index: 2;
}

.counter-area.counter-two .counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.counter-area.counter-two .counter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.counter-area.counter-two .counter-content {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.counter-area.counter-two .counter-content:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.counter-area.counter-two .counter-content i {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.counter-area.counter-two .counter-content:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.counter-area.counter-two .counter-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.counter-area.counter-two .counter-content:hover h2 {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.counter-area.counter-two .counter-content .target {
    font-size: 36px;
    color: #ffd700;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.counter-area.counter-two .counter-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.counter-area.counter-two .counter-content:hover p {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Odometer Animation Enhancement */
.counter-area.counter-two .odometer {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Floating Animation for Icons */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.counter-area.counter-two .counter-content i {
    animation: float 3s ease-in-out infinite;
}

.counter-area.counter-two .counter-content:nth-child(1) i {
    animation-delay: 0s;
}

.counter-area.counter-two .counter-content:nth-child(2) i {
    animation-delay: 0.5s;
}

.counter-area.counter-two .counter-content:nth-child(3) i {
    animation-delay: 1s;
}

.counter-area.counter-two .counter-content:nth-child(4) i {
    animation-delay: 1.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .counter-area.counter-two .counter {
        padding: 40px 20px;
        border-radius: 20px;
    }
    
    .counter-area.counter-two .counter-content {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .counter-area.counter-two .counter-content i {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .counter-area.counter-two .counter-content h2 {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .counter-area.counter-two .counter-content .target {
        font-size: 28px;
    }
    
    .counter-area.counter-two .counter-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .counter-area.counter-two .counter {
        padding: 30px 15px;
    }
    
    .counter-area.counter-two .counter-content {
        padding: 15px 10px;
    }
    
    .counter-area.counter-two .counter-content i {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .counter-area.counter-two .counter-content h2 {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .counter-area.counter-two .counter-content .target {
        font-size: 24px;
    }
    
    .counter-area.counter-two .counter-content p {
        font-size: 14px;
    }
}

/* Pulse Animation for Numbers */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.counter-area.counter-two .counter-content:hover h2 {
    animation: pulse 0.6s ease-in-out;
}

/* Glow Effect */
.counter-area.counter-two .counter-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.counter-area.counter-two .counter-content:hover::after {
    opacity: 1;
}
