/* css/animations.css */

/* --- Starfield Canvas (The Fix) --- */
.space-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* CRITICAL: Put it BEHIND sections but ABOVE site background */
    z-index: 0; /* Not -999, just -1 */
    
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.8;
}


/* BUT: Show through HERO specifically */
body:has(.hero-section) .space-particles,
.hero-section ~ .space-particles,
.hero-section::before { /* Any of these selectors */
    z-index: 0 !important; /* Bring stars to visible layer */
}

/* Ensure sections allow the canvas to show if they have transparency */
/* But since we moved Z-index up, this matters less now. */

/* --- Scroll Reveal Logic (Unchanged) --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Delays */
.metrics-container .metric-shard:nth-child(2) { transition-delay: 0.1s; }
.metrics-container .metric-shard:nth-child(3) { transition-delay: 0.2s; }
.services-grid .holo-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .holo-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .holo-card:nth-child(4) { transition-delay: 0.3s; }