Relying solely on domestic raw materials nets you a mid-19th-century economy. Even railroads disappear for want of those elements critical for alloy steels to make the rails out of. Without them, railroads can't carry a tenth of what they do today, and even at that the rails deform so quickly that they have to be replaced in just a few months in high traffic areas.
See what reading books gets you? You won't learn stuff like that watching videos on Utoob.
In that case, you can enlighten us on what specific elements are needed and whether they are no deposits in the US and Canada or whether the deposits are not competitive with e.g. South African mines in the current geopolitical environment.
Furthermore, more inter-state conflict does not mean that trade stops nor that the US has to be involved with one or the other of the parties in conflict.
The US is the main advocate of cutting off trade with nations that we have an actual or possible conflict with. Other nations seem happy to continue trade, e.g. I believe that gas is still flowing to Europe from Russia via Ukrainian pipelines.
And other countries avoid identifying parties to conflicts as their own friends or foes. e.g. China is avoiding that in Ukraine and Israel.