@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* НОВАЯ АНИМАЦИЯ ДЛЯ СЕКЦИИ */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes featureSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
        transform: scale(1.1);
    }
}

@keyframes drift {
    from { 
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    to { 
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.feature-item {
    animation: featureSlideIn 0.6s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

/* Анимации для карточек */
.card {
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
}

/* Анимации для графиков */
.chart-container {
    animation: fadeInScale 0.8s ease-out;
    animation-fill-mode: both;
}

.chart-container:nth-child(1) { animation-delay: 0.1s; }
.chart-container:nth-child(2) { animation-delay: 0.2s; }
.chart-container:nth-child(3) { animation-delay: 0.3s; }

/* Улучшенные кнопки */
.chart-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.chart-btn:hover::before {
    left: 100%;
}

.chart-btn:hover {
    background: var(--gradient-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* Загрузочная анимация */
.loading-skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Анимация для метрик */
.metric-card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }
