/**
 * Homepage specific styles
 */

/* Additional hero animations */
.hero-cta .btn {
    position: relative;
    overflow: hidden;
}

.hero-cta .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Feature cards hover effect */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--success-color), 
        var(--warning-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

/* News card animation */
.news-card {
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(13, 110, 253, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover::before {
    opacity: 1;
}

/* Testimonial avatars */
.avatar {
    font-size: 1.2rem;
}

/* Stats counter animation - will be triggered by JS */
.stat-item h2 {
    counter-reset: num var(--num);
}

/* CTA Section gradient animation */
.bg-gradient-primary {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating animation for hero stats */
@keyframes floatSlow {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(2deg); 
    }
}

.floating-card.stat-card-1 {
    animation: floatSlow 4s ease-in-out infinite;
}

.floating-card.stat-card-2 {
    animation: floatSlow 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Badge pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-content .badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile optimizations */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-features {
        max-width: 500px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-cta .btn {
        width: 100%;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
}
