There wasn’t all that much risk involved, since you had an amazing hand, and if you’re beat in that spot, you can’t really do much about it. The main mistake is that you bet too aggressively with your good hand, so it’s hard to get value from it, although in this case it worked out
Preflop is good.
On the flop, you should bet smaller, don’t pot it. By potting, the only hands that call you are pocket pairs and Kx and 3x. However, by betting 1/3, you can get calls from a ton more hands, such as Ax and possible Qx. Then, on the future streets, you can bet bigger to get more value from the pairs.
Another reason that you shouldn’t pot it is that you don’t want to pot it with your bluffs there. If your opponent catches on, they’ll realize that you only pot it there with your value hands. However, if you bet smaller, you can do so with both your bluffs AND your value hands, which makes it harder for your opponent to make a decision.
The turn shove is also not great, because you basically have the nuts, and want the opponent to possibly hit a pair on the river. A better decision would be to check or bet small on the turn, and then shove the river. That way, you give your opponent the opportunity to improve their hand and call you on the river. The hands that call you on the turn shove will call on the river, but now there are even more hands that you get value from that improved on the river. One last benefit is that you look more suspicious by checking the turn, which will make your opponent call lighter.
Optimal line imo: bet 400(1/3) on flop, 700(~1/3) on turn, 3700(pot sized shove) on river.
Would love to hear other ideas as well!