How AI is Redefining Cybersecurity: From Threat Detection to Real-Time Response?