The Bright Side of AI in Shaping the Green Future