Some elements of your question have been considered in earlier answers here. While you're waiting for fresh contributions, you might like to review some or all of them; collectively they pose some interesting questions about the thesis of Austro-Hungarian decline:
Was Austria-Hungary in decline pre-WW1?, also with u/k_hopz
Was Austria-Hungary considered a powerful country on the eve of WW1, was it seen as comparable to France, Great Britain of Russia?, with, you guessed it, u/k_hopz