The Ottoman Empire always lagged behind European Empires, it tried modernizing only when it was too late and balkanization had already started.
As long as the majority of Turks keep being ideologically in line with everything that was wrong about the Turkey of 100 years ago than Turkey will keep underperforming. It needs an ideological renewal, that can then be pushed to the Middle East as an alternative to the religious extremism and sectarianism there.