/* Animations for AskAlex.one landing page */

/* Fade in animation for elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* Pulse animation for limited spots counter */
@keyframes spotPulse {
    0% {
        transform: scale(1);
        color: rgba(236, 72, 153, 1);
    }
    50% {
        transform: scale(1.1);
        color: rgba(139, 92, 246, 1);
    }
    100% {
        transform: scale(1);
        color: var(--color-accent-2);
    }
}

/* Glow animation for accent elements */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(236, 72, 153, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(236, 72, 153, 0.5);
    }
}

/* Slide in animation for horizontal elements */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to elements */
.hero-content h1 {
    animation: fadeIn 1s ease-out;
}

.hero-content .subheadline {
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-content .cta-group {
    animation: fadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-content .trust-badges {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-image img {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* No Trial Section Animations */
.no-trial-content.animated .no-trial-image img {
    animation: slideInLeft 0.8s ease-out forwards;
}

.no-trial-content.animated .no-trial-text {
    animation: slideInRight 0.8s ease-out forwards;
}

.no-trial-content .no-trial-image img,
.no-trial-content .no-trial-text {
    opacity: 0;
}

/* Self-Worth Animations */
.worth-slider.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

.worth-slider {
    opacity: 0;
}

.worth-option {
    transition: all 0.3s ease;
}

.worth-option:hover .worth-price {
    animation: spotPulse 1s infinite;
}

/* Animation classes added via JavaScript */
.value-card.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

.pricing-feature.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

.testimonial-card.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Hover animations */
.btn-primary:hover, .btn-accent:hover {
    animation: pulse 1.5s infinite;
}

.btn-secondary:hover {
    animation: glow 1.5s infinite;
}

/* Additional animation for floating CTA */
.floating-cta {
    animation: fadeIn 1s ease-out 1s forwards, pulse 2s infinite 2s;
    opacity: 0;
}

/* Header animations */
header.sticky {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

/* Mobile menu animation */
.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-secondary-bg);
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    animation: fadeIn 0.3s ease-out;
}

/* Animation for counter elements */
.counter-number {
    position: relative;
    overflow: hidden;
}

.counter-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    animation: glow 1.5s infinite;
}

/* Pulse animation for spots counter when updating */
.counter-number.pulse {
    animation: spotPulse 1s;
} 