/**
 * Animations CSS
 * Consolidated file for all animations
 * Replaces: scroll-animations.css, typing-animation.css
 */

/* ============================================
   SCROLL-BASED ANIMATIONS
   ============================================ */

/* Scroll-based fade-in animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animations for child elements */
.fade-in-section .fade-in-section {
    transition-delay: 0.2s;
}

/* Section-specific animations */
.safety-section.fade-in-section,
.examples-section.fade-in-section,
.getting-started-section.fade-in-section,
.playground-rules.fade-in-section,
.popular-tools.fade-in-section,
.feedback-section.fade-in-section {
    transition-delay: 0s;
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   TYPING ANIMATION (FOOTER)
   ============================================ */

/* Typing wrapper */
body .typing-wrapper {
    display: inline-block;
    position: relative;
}

/* Typing text with gradient animation */
body .typing-text {
    display: inline-block;
    font-weight: 500;
    background: linear-gradient(90deg, #4a90e2, #8e44ad, #4a90e2);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: gradientText 6s linear infinite;
}

/* Typing cursor */
body .typing-cursor {
    display: inline-block;
    font-weight: 500;
    color: #4a90e2;
    animation: cursorBlink 0.7s infinite;
    margin-left: 2px;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Cursor blinking animation */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Gradient text animation */
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

