Generative AI in Depth: A Survey of Recent Advances, Model Variants, and Real-World Applications