/* Trust Indicators Enhanced Animations CSS */

/* Stats Container Animation */
.trust-stats-container {
    opacity: 0;
    transform: translateY(40px);
    animation: trustStatsSlideUp 0.8s ease-out 0.2s forwards;
}

@keyframes trustStatsSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Individual Stat Item Animations */
.trust-stat-item {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: trustStatSlideUp 0.6s ease-out forwards;
}

.trust-stat-item:nth-child(1) { animation-delay: 0.1s; }
.trust-stat-item:nth-child(2) { animation-delay: 0.2s; }
.trust-stat-item:nth-child(3) { animation-delay: 0.3s; }
.trust-stat-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes trustStatSlideUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Icon Container */
.trust-icon-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.trust-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.trust-stat-item:hover .trust-icon-container::before {
    transform: translateX(100%);
}

.trust-stat-item:hover .trust-icon-container {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 
        0 10px 25px rgba(13, 62, 126, 0.15),
        0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced Counter Animation */
.trust-counter {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
    position: relative;
}

.trust-counter.counting {
    color: var(--trapay-primary);
    transform: scale(1.05);
}

.trust-counter.completed {
    animation: counterPulse 0.6s ease-in-out;
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--trapay-success); }
    100% { transform: scale(1); }
}

/* Icon Hover Effects */
.trust-stat-item i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.trust-stat-item:hover i {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(1.2);
}

/* Hover Card Effect */
.trust-stat-item:hover {
    transform: translateY(-8px);
    background: transparent !important;
}

.trust-stat-item:hover .trust-counter {
    color: var(--trapay-success);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Progress Ring Animation for Counters */
.trust-counter-wrapper {
    position: relative;
}

.trust-counter-wrapper::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--trapay-primary), var(--trapay-success));
    transition: width 2s ease-out;
    border-radius: 1px;
    opacity: 0;
}

.trust-counter.counting + .trust-counter-wrapper::after {
    width: 100%;
    opacity: 1;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .trust-stat-item {
        animation-delay: 0s !important;
    }
    
    .trust-stat-item:hover {
        transform: translateY(-4px);
    }
    
    .trust-icon-container {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .trust-counter {
        font-size: 1.5rem;
    }
}

/* Section Background Enhancement */
.trust-indicators-section {
    /* background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%); */
    position: relative;
    overflow: hidden;
}

/* .trust-indicators-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(13, 62, 126, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
} */

/* Title Animation */
.trust-title {
    opacity: 0;
    transform: translateY(20px);
    animation: trustTitleSlideUp 0.6s ease-out forwards;
}

@keyframes trustTitleSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtitle Animation */
.trust-subtitle {
    opacity: 0;
    transform: translateY(15px);
    animation: trustSubtitleSlideUp 0.6s ease-out 0.1s forwards;
}

@keyframes trustSubtitleSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Border */
.trust-border {
    background: linear-gradient(90deg, transparent, rgba(13, 62, 126, 0.2), transparent);
    height: 1px;
    margin: 0 auto;
    width: 60%;
    animation: borderGrow 1s ease-out 0.5s forwards;
    transform: scaleX(0);
}

@keyframes borderGrow {
    to {
        transform: scaleX(1);
    }
}