What ideology do you believe is driving Iran? To me it just looks like "survive and deter unprovoked attacks from a genocidal aggressor, and don't become Syria 2.0"
I think it's the actions of the United States and Israel that beggar niche ideological explanations at this point.