local hosts=("8.8.8.8" "1.1.1.1" "codeberg.org" "archlinux.org")

echo "\033[36m🌐 Testing connectivity...\033[0m"

for host in "${hosts[@]}"; do
    if ping -c 1 -W 2 "$host" &>/dev/null; then
        echo "✅ $host: reachable"
    else
        echo "❌ $host: unreachable"
    fi
done
