Check Your Internet and DNS
nslookup cluster0.mongodb.net
If it fails, your network or DNS settings might be blocking access to MongoDB Atlas.