/* Keyframe Animations */
@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingEffect {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Apply animations */
.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-visual {
    animation: fadeIn 1.2s ease 0.3s both;
}

.stats-bar {
    animation: slideUp 1s ease 0.5s both;
}

.gradient-text {
    animation: gradientPulse 3s ease infinite;
}

.code-line:nth-child(1) { animation: typingEffect 0.5s ease 0.5s both; }
.code-line:nth-child(2) { animation: typingEffect 0.5s ease 0.7s both; }
.code-line:nth-child(3) { animation: typingEffect 0.5s ease 0.9s both; }
.code-line:nth-child(4) { animation: typingEffect 0.5s ease 1.1s both; }
.code-line:nth-child(5) { animation: typingEffect 0.5s ease 1.3s both; }
.code-line:nth-child(6) { animation: typingEffect 0.5s ease 1.5s both; }
.code-line:nth-child(7) { animation: typingEffect 0.5s ease 1.6s both; }
.code-line:nth-child(8) { animation: typingEffect 0.5s ease 1.7s both; }
.code-line:nth-child(9) { animation: typingEffect 0.5s ease 1.8s both; }
.code-line:nth-child(10) { animation: typingEffect 0.5s ease 1.9s both; }
.code-line:nth-child(11) { animation: typingEffect 0.5s ease 2.0s both; }
.code-line:nth-child(12) { animation: typingEffect 0.5s ease 2.1s both; }
.code-line:nth-child(13) { animation: typingEffect 0.5s ease 2.2s both; }
.code-line:nth-child(14) { animation: typingEffect 0.5s ease 2.3s both; }
.code-line:nth-child(15) { animation: typingEffect 0.5s ease 2.4s both; }
.code-line:nth-child(16) { animation: typingEffect 0.5s ease 2.5s both; }

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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