/**
 * Counter Animation CSS
 * Smooth animation styles for counter elements
 */

/* Counter item base styles */
.tk-countitem h3 {
    transition: opacity 0.3s ease;
}

/* Counter animation class */
.tk-counter-animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Animated state */
.tk-countitem h3.animated {
    opacity: 1;
}

/* Fade in animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Add pulse effect when animation starts */
.tk-countitem h3.animated {
    animation: none;
}

/* Smooth number transition */
.tk-countitem h3 {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Counter wrapper animation delay */
.tk-counternum li {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.tk-counternum li:nth-child(1) {
    animation-delay: 0.1s;
}

.tk-counternum li:nth-child(2) {
    animation-delay: 0.2s;
}

.tk-counternum li:nth-child(3) {
    animation-delay: 0.3s;
}

.tk-counternum li:nth-child(4) {
    animation-delay: 0.4s;
}

.tk-counternum li:nth-child(5) {
    animation-delay: 0.5s;
}

.tk-counternum li:nth-child(6) {
    animation-delay: 0.6s;
}

/* Enhanced counter styles */
.tk-countitem {
    position: relative;
    overflow: hidden;
}

/* Optional: Add subtle scale effect on hover */
.tk-countitem:hover h3 {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tk-counternum li {
        animation-delay: 0s !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .tk-counter-animate,
    .tk-counternum li,
    .tk-countitem h3 {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
