I have this worry about cryptocurrencies from all the time. If there is a situation in a country then the first thing they stop is either Internet or electricity, it will be harder to use a crypto in that moment. Was there any solution for this in crypto.? Has anyone thought of something to solve this issue..?
No. The assumption behind crypto is that electricity will always be there and the internet will always be there.
The internet is pretty robust in that it's designed to work even if some nodes are down. You would have to take down the entire world's internet cables to stop it.
Electricity is more vulnerable. Most electric grids are centralised and can be hacked by hostile countries. And they usually need fuel to power them, so if a country runs out of access to coal or gas, then they're stuffed. Solar panels only work when the sun shines and wind turbines only work when the wind blows, and battery technology is still in it's infancy so power can't be stored.