/* Animations & scroll reveals */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

.animate-fade-up {
    animation: fadeUp 1s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

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

/* Parallax layers */
.parallax-layer {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Card glow on hover */
.glow-hover {
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 40px rgba(0, 120, 212, 0.25), 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 188, 242, 0.35);
}

/* AI network pulse */
.ai-node {
    animation: nodePulse 3s ease-in-out infinite;
}

.ai-node:nth-child(2) { animation-delay: 0.5s; }
.ai-node:nth-child(3) { animation-delay: 1s; }
.ai-node:nth-child(4) { animation-delay: 1.5s; }

@keyframes nodePulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
