The House of Saud are the biggest problem causing instability in the region that's a given, and now with MBS as crown prince they're now much more toxic, Iran had many times reached out to them to come to an understanding and improve ties, but we know that did not come to fruition, both sides need to engage in deescalating the situation, even if one side has to swallow their pride.
I seriously don't know what the hell these sick oil sheikhs are doing.. I mean like you said destroying countries around you only empowers Israel and the US war machines. I also think it was idiotic of your president volunteering to destabilize Syria, what did that get Turkey? up to 4 million refugees? Syria was a strong buffer state, you talk about a 'gateway' that gateway was Syria, now its an open proxy playground and Israel and other powers go in and out when ever they want, Israel recently bombed Iraq, I'm pretty sure it was through the Syrian Airspace. Syria now is pretty much destroyed and many of its people are either displaced or killed. Just look at Afghanistan, its been nearly 20 bloody years and the Americans still don't want to leave due to its strategic significance, which is a very big liability to Pakistan.
The Zionists and western warmongers, have successfully played Muslims against each other through divide and conquer the oldest trick in the book, but illiterate dullards keep falling for it, we're pretty much doing their job for them. The last standing Muslim powers are Turkey, Iran and Pakistan, of which two are already facing existential threats. I also agree if Iran is attacked, then the two lasting powers are next e.g. with the recent Indian annexation of Kashmir, and Saudi Arabia calling out Turkey on Cyprus sovereignty.. all this is being carefully orchestrated to eventually allow Israel to go ahead and build the temple, without any friction.
As for turkey to begin producing better rockets/ cruise missiles, that's a given... I think Pakistan and Turkey should work closer on offensive/ defensive weapons with like minded countries like Ukraine, South Africa and China who all have a strong independent military industrial base, especially with the latter.