I doubt nations on Earth will phase out fossil fuels in the next 50 years due to economic forces.
Yes, we have the technology (nuclear, solar, hydro, etcetera), as well as the raw materials (we have enough lithium sources on Earth), but there is no real political desire to do so in most countries (only talk of taking action—but no real action).
👉🏾 The world came tantalizingly close to a deal to phase out fossil fuels - The Verge https://www.theverge.com/2023/12/13/23993937/dubai-un-climate-change-conference-cop28-united-nations-fossil-fuels