What do you think about the following sac?

Context: I am playing as white. I noticed that during my chess journey I have been victim of the infamous content overload. I used to watch too many tutorials and stuff instead of simply playing the game and understand it. Now I think that a better approach would be playing the game alone, with just the key ideas in mind. In this case I tried the king gambit without any knowledge of the moves to perform. I only knew that the key idea of the kings gambit is to target f7. In this case I let my opponent to take my knight in f3, with the idea of developing my queen there and stack it with the rook after castling, gaining a good control on that file. The engine didn't like my sac. I wanted to ask you opinion on this matter. I want to understand the game deeply. Thank you for your reply!

https://preview.redd.it/nnxwyvl7kihe1.png?width=777&format=png&auto=webp&s=f4b40da7d3ece84697c0ca6b091d8abd28cd2d71