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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll-dot {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow); }
}

/* ===== Page Load ===== */
body.page-loaded .hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== Magnetic Button Effect ===== */
.magnetic-btn {
    transition: transform 0.15s ease;
}

/* ===== Skill Bar Animation Trigger ===== */
.skill-fill.animated {
    width: var(--level) !important;
}

/* ===== Project Filter Transition ===== */
.project-card {
    animation: fadeInUp 0.5s ease;
}

/* ===== Nav Toggle Animation ===== */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Stat Counter Glow ===== */
.stat-item:hover .stat-number {
    text-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Testimonial Slide ===== */
.t-slide {
    animation: fadeInUp 0.6s ease;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-indicator { animation: none; }
    .typing-cursor { animation: none; }
}
