If you are unable to connect to Steam, your antivirus or firewall may be preventing you from accessing the online service.
🛠 Disable your antivirus and firewall.
Try disabling your antivirus program and firewall and re-launching the game. Make sure the program is not running in the background.
Additional troubleshooting steps can be found on the Steam forum.