Harnessing AI for Cybersecurity: Real-Time Detection and Mitigation of Online Threats- A Survey | Synapse