/* Plug-and-Play Animations */

/* 1. Staggered Entrance Animation */
.bento-box {
    opacity: 0;
    animation: fadeUpEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeUpEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Delay staggered for sequential entrance effect */
.bento-box:nth-child(1) { animation-delay: 0.1s; }
.bento-box:nth-child(2) { animation-delay: 0.2s; }
.bento-box:nth-child(3) { animation-delay: 0.3s; }
.bento-box:nth-child(4) { animation-delay: 0.4s; }
.bento-box:nth-child(5) { animation-delay: 0.5s; }
.bento-box:nth-child(6) { animation-delay: 0.6s; }

/* 2. Micro Animations for Icons */
@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
@keyframes softBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.fa-server {
    animation: softPulse 2s ease-in-out infinite;
}

.location-row .fa-map-marker-alt {
    animation: softBounce 2s ease-in-out infinite;
}

/* 3. Cursor Spotlight Effect */
.bento-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(255, 255, 255, 0.08),
        transparent 40%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.bento-box:hover::before {
    opacity: 1;
}
