AI in Cybersecurity: Threat Detection and Digital Protection