/* === ANIMATIONS.CSS === */
/* assets/css/animations.css */
/* НАЗНАЧЕНИЕ: Scroll reveal, hover transitions, gradient mesh */
/* РАЗМЕР: ~150 строк */

/* --- Fade in up (основная) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Fade in (простая) --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Scale in --- */
@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Slide in from left --- */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Slide in from right --- */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Pulse (для иконок) --- */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- Float (для декоративных элементов) --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Gradient shift (для gradient mesh) --- */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* --- Counter animation --- */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Glowing border animation --- */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: var(--shadow-sm);
    }
    50% {
        box-shadow: var(--shadow-glow);
    }
}

/* --- Hover state for interactive elements --- */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* --- Page enter animation --- */
.page-enter {
    animation: fadeInUp 0.4s ease both;
}

/* --- Hero text animation --- */
.hero-animate h1 {
    animation: fadeInUp 0.6s ease both;
}

.hero-animate .lead {
    animation: fadeInUp 0.6s ease 0.15s both;
}

.hero-animate .btn,
.hero-animate .badge {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-animate .registration-form {
    animation: scaleIn 0.6s ease 0.4s both;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
