Luckily, we have a gigantic fusion reactor in the sky that's not set to be decommissioned any time in the next billion years and which outputs orders of magnitude more energy than is needed by our civilization. Otherwise, we'd be screwed :P
There's an immense amount of energy stored in every atom.
Technology can capture energy, and the amount of energy we capture increases every year.