@keyframes scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes selected {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes particle-animation {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--end-x), var(--end-y));
        opacity: 0;
    }
}

.animate-scan {
    animation: scan 3s linear infinite;
}

.animate-selected {
    animation: selected 2s infinite;
}

.animate-fade-in {
    opacity: 0;
    animation: fade-in 1s forwards;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(0, 116, 217, 0.7);
    border-radius: 50%;
    animation: particle-animation 3s linear infinite;
}

.particle-1 {
    top: 30%;
    right: 45%;
    --end-x: 80px;
    --end-y: -60px;
}

.particle-2 {
    top: 70%;
    right: 60%;
    --end-x: -70px;
    --end-y: -40px;
    animation-delay: 0.5s;
}

.particle-3 {
    top: 40%;
    right: 70%;
    --end-x: -50px;
    --end-y: 70px;
    animation-delay: 1s;
}

.particle-4 {
    top: 60%;
    right: 40%;
    --end-x: 60px;
    --end-y: 60px;
    animation-delay: 1.5s;
}

.particle-5 {
    top: 50%;
    right: 50%;
    --end-x: 40px;
    --end-y: 0px;
    animation-delay: 2s;
}

/* Talent Matcher Animation Styles */
@keyframes pulse-slow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes selected {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 200, 0, 0);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(0, 200, 0, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 200, 0, 0);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite ease-in-out;
}

.animate-fade-in {
    animation: fade-in 1s forwards;
    opacity: 0;
}

.animate-scan {
    animation: scan 3s infinite linear;
}

.animate-selected {
    animation: selected 2s infinite ease-in-out;
}

/* Responsive styles for the illustration */
@media (max-width: 768px) {

    /* Adjust the main personnel network */
    .w-64.h-64.relative {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    /* Center person icon (HR) */
    .absolute.w-24.h-24.bg-white.rounded-full {
        width: 20px;
        height: 20px;
        z-index: 20;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .absolute.w-24.h-24.bg-white.rounded-full i {
        font-size: 10px;
    }

    /* Person icons */
    .absolute.w-16.h-16.bg-blue-500.rounded-full,
    .absolute.w-16.h-16.bg-blue-600.rounded-full,
    .absolute.w-16.h-16.bg-blue-400.rounded-full,
    .absolute.w-16.h-16.bg-blue-700.rounded-full,
    .absolute.w-16.h-16.bg-green-500.rounded-full {
        width: 12px;
        height: 12px;
    }

    /* Adjust positions of people icons */
    .absolute.top-0.right-8 {
        top: 15%;
        right: 15%;
    }

    .absolute.top-10.left-0 {
        top: 15%;
        left: 15%;
    }

    .absolute.bottom-0.right-4 {
        bottom: 15%;
        right: 15%;
    }

    .absolute.bottom-8.left-8 {
        bottom: 15%;
        left: 15%;
    }

    .absolute.top-24.right-28 {
        top: 50%;
        right: 35%;
    }

    /* Make icons smaller */
    .absolute i.fas {
        font-size: 8px;
    }

    /* Rating indicators */
    .absolute.-top-6.bg-white {
        top: -15px;
        font-size: 8px;
        padding: 2px 4px;
    }

    /* Floating elements */
    .absolute.top-10.right-10,
    .absolute.bottom-10.left-10,
    .absolute.top-10.left-10,
    .absolute.bottom-10.right-10 {
        display: none;
    }
}

@media (max-width: 480px) {
    .w-64.h-64.relative {
        width: 180px;
        height: 180px;
    }
}

/* Particle animations */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(0, 116, 217, 0.3);
    pointer-events: none;
}

.particle-1 {
    top: 20%;
    left: 30%;
    animation: float 4s infinite ease-in-out;
}

.particle-2 {
    top: 70%;
    left: 60%;
    animation: float 6s infinite ease-in-out;
}

.particle-3 {
    top: 40%;
    left: 80%;
    animation: float 5s infinite ease-in-out;
}

.particle-4 {
    top: 80%;
    left: 20%;
    animation: float 7s infinite ease-in-out;
}

.particle-5 {
    top: 30%;
    left: 50%;
    animation: float 8s infinite ease-in-out;
}