Master AI-Driven Cybersecurity: From Threat Detection to Defense Strategies in the Age of Generative AI