/* ---- Scroll Animations ---- */
.portfolio-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-animate-delay-1 { transition-delay: 0.1s; }
.portfolio-animate-delay-2 { transition-delay: 0.2s; }
.portfolio-animate-delay-3 { transition-delay: 0.3s; }
.portfolio-animate-delay-4 { transition-delay: 0.4s; }

/* Stagger animation for grids */
.portfolio-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.portfolio-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.portfolio-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.portfolio-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.portfolio-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.portfolio-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.portfolio-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.portfolio-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.portfolio-stagger.visible > *:nth-child(9) { transition-delay: 0.45s; }

.portfolio-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Keyframes ---- */
@keyframes portfolioFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portfolioBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* ---- Particles / Decorative Elements ---- */
.portfolio-floating-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.portfolio-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 168, 232, 0.3);
    border-radius: 50%;
    animation: portfolioFloat 6s ease-in-out infinite;
}

.portfolio-dot:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.portfolio-dot:nth-child(2) { left: 30%; top: 60%; animation-delay: 1s; animation-duration: 8s; }
.portfolio-dot:nth-child(3) { left: 60%; top: 30%; animation-delay: 2s; animation-duration: 7s; }
.portfolio-dot:nth-child(4) { left: 80%; top: 70%; animation-delay: 0.5s; animation-duration: 9s; }
.portfolio-dot:nth-child(5) { left: 50%; top: 85%; animation-delay: 1.5s; animation-duration: 6s; }
.portfolio-dot:nth-child(6) { left: 20%; top: 45%; animation-delay: 3s; animation-duration: 10s; }

@keyframes portfolioFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.6; }
}

