/* Пульсация для ссылки на waitlist */
@keyframes pulseOnce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-once {
    animation: pulseOnce 1s ease;
}

/* Эффект свечения для кнопки Waitlist */
@keyframes buttonGlow {
    0% {
        box-shadow: 0 0 5px rgba(79, 70, 229, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(79, 70, 229, 0.5);
    }
}

.btn-glowing {
    animation: buttonGlow 1.5s infinite;
}

/* Стили для выделения активных полей ввода */
.input-focused {
    position: relative;
}

.input-focused::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.input-focused.active::after {
    transform: scaleX(1);
}

/* Анимация для бейджа формы */
@keyframes badgeRotate {
    0% {
        transform: rotate(15deg);
    }
    25% {
        transform: rotate(18deg);
    }
    50% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(12deg);
    }
    100% {
        transform: rotate(15deg);
    }
}

.form-badge {
    animation: badgeRotate 6s infinite ease-in-out;
}

/* Анимация движения частиц */
@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(-5px, 15px);
    }
    75% {
        transform: translate(-15px, -5px);
    }
}

.waitlist-particles .particle {
    animation: particleFloat 15s infinite ease-in-out;
}

/* Анимация для баннера предрегистрации */
@keyframes bannerPulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pre-registration-banner::before {
    background-size: 200% 200%;
    animation: bannerPulse 5s infinite;
}

/* Анимация для иконки подарка в баннере */
@keyframes giftWiggle {
    0%, 100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.banner-icon i {
    animation: giftWiggle 2s infinite ease-in-out;
}

/* Анимация свечения для бейджа Beta Tester */
@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.8);
    }
}

.form-badge {
    animation: float 6s infinite ease-in-out, badgeGlow 3s infinite ease-in-out;
}

/* Эффект появления формы waitlist */
.form-box {
    transform: translateY(20px);
    opacity: 0;
    animation: formAppear 1s forwards ease-out;
    animation-delay: 0.5s;
}

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

/* Анимация для успешной отправки формы */
@keyframes successPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.waitlist-success {
    animation: successPop 0.5s forwards ease-out;
}

/* Анимация Beta-бейджа в футере */
@keyframes betaBadgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.footer-beta-badge {
    animation: betaBadgePulse 3s infinite ease-in-out;
}
.animated.delay-3s {
    animation-delay: 3s;
}

.animated.fast {
    animation-duration: 0.8s;
}

.animated.faster {
    animation-duration: 0.5s;
}

.animated.slow {
    animation-duration: 2s;
}

.animated.slower {
    animation-duration: 3s;
}

.fade-in {
    animation-name: fadeIn;
}

.slide-up {
    animation-name: slideUp;
}

.slide-in-right {
    animation-name: slideInRight;
}

.slide-in-left {
    animation-name: slideInLeft;
}

.pulse {
    animation-name: pulse;
}

.glow {
    animation-name: glow;
}

/* Hover Animations */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.7);
}

.hover-float:hover {
    animation: float 3s ease-in-out infinite;
}

/* Text Animation for Hero Typing Effect */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    width: 0;
    animation: typing 3.5s steps(40, end) 1s forwards,
               blink 0.75s step-end infinite;
}