/* ============================================
   ANIMATION UTILITIES
   ============================================ */

/* ── Scroll Reveal ── */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ── Staggered Children ── */
.project-card:nth-child(1), .ctf-card:nth-child(1), .skill-category:nth-child(1) { transition-delay: 0ms; }
.project-card:nth-child(2), .ctf-card:nth-child(2), .skill-category:nth-child(2) { transition-delay: 100ms; }
.project-card:nth-child(3), .ctf-card:nth-child(3), .skill-category:nth-child(3) { transition-delay: 200ms; }
.project-card:nth-child(4), .ctf-card:nth-child(4), .skill-category:nth-child(4) { transition-delay: 300ms; }
.ctf-card:nth-child(5), .skill-category:nth-child(5) { transition-delay: 400ms; }
.ctf-card:nth-child(6), .skill-category:nth-child(6) { transition-delay: 500ms; }

.game-card:nth-child(1) { transition-delay: 0ms; }
.game-card:nth-child(2) { transition-delay: 100ms; }
.game-card:nth-child(3) { transition-delay: 200ms; }
.game-card:nth-child(4) { transition-delay: 300ms; }
.game-card:nth-child(5) { transition-delay: 400ms; }
.game-card:nth-child(6) { transition-delay: 500ms; }

.exp-card:nth-child(1) { transition-delay: 0ms; }
.exp-card:nth-child(2) { transition-delay: 150ms; }
.exp-card:nth-child(3) { transition-delay: 300ms; }

.timeline-item:nth-child(1) { transition-delay: 0ms; }
.timeline-item:nth-child(2) { transition-delay: 200ms; }

/* ── Hero Entrance ── */
.hero-badge {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.1s;
}

.hero-name .hero-line:nth-child(1) {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.3s;
}

.hero-name .hero-line:nth-child(2) {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.45s;
}

.hero-subtitle {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.6s;
}

.hero-desc {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.75s;
}

.hero-cta {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.9s;
}

.hero-stats {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 1.1s;
}

.scroll-indicator {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 1.5s;
}

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

/* ── Ambient Gradient Animation (background effect) ── */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
