Did you even bother to look up how many years of proven reserves of oil there are? The answer: 47 years at current levels... that takes us to 2060.
The world consumes 35.4 billion barrels of oil per year. Normally, around 12 billion new barrels of oil are discovered annually. So, at the current rate of consumption and the current rate discovery, we have over 60 years of oil reserves.
If those estimates are correct, by then, population estimates has the world population beginning to decline. We have the technology today to "make" carbon fuel. And we have the technologies to produce abundant global energy using nuclear energy as the "backbone" of the energy supply and supplementing it with green energy and fossil fuels and other sources.
We do need a rational energy strategy, but that does not entail cutting back its use, but extending its use globally and producing it abudantly.
There is no shortage of water or food. There are places on the planet where there is a shortage of "cheap" water. We have the technology to make water available, but many countries are simply unwilling to invest in "clean" water. Remember, the supply of water never changes, only the mix between drinkable water and undrinkable water, nature can't keep up with our demand for drinkable water, so we have to invest in producing it.
We have the capacity to grow all the food the world needs and more. Food needs water (not even clean drinking water), CO2 (got that), and Nitrogen (natural gas or animal waste (including human). All of these are available.
Literacy rates are at a global high, in fact, that is part of the problem. We have educated people faster than we have created jobs for them. I am not suggesting cutting back on education, but rather creating more human economic activity (jobs).
The most challenges to the "human condition" exist in countries where governments interfere to much with the economy. Sometimes, they are socialist countries where government undermines the desire of humans to produce for themselves, in other countries totalitarian regimes seize the wealth that should be going back into their economy as investments, other countries disincentivize people to work rather than boost the value of work by subsidizing it, etc.
Singapore was an economic miracle thirty years ago, because it focused singularly on making its economy more robust and that massive increase in economic activity funded education, health care, food, energy, housing, etc. The formula has not changed and energy continues and will continue to be abundant as long as the sun rises every morning... ever since the 60s, when I was a child, people have predicted the end of oil, yet today we have more than we did in the 60s and frankly we have the technology when oil becomes to expensive to use other sources of energy.
When government policy is less focused on pursuading people to invest more power in government and instead focuses on elevating the standards of living of their people through greater economic activity, then things get better.