Analysis on this loss would be great.


In general, too many pawn moves in the opening. It's better to get your pieces out as quickly as possible.
Your opponent left his king in the center for a long time. You should think about attacking the king when it's left in the center and the board is opened up by pawn exchanges.
5. g3. In this position, there is no need to fianchetto your bishop. It had nice potential homes on d3 and e2.
16. Nxb6. Can't black just take this knight with the queen?
18. Nxd5. How about 18. Qa4+ forking the king and bishop. Also, this forces 18. ... Kd8 and now the king can never castle.

16. Bc3 why not ok better is 16. Nxe5 then Qxe5 loses the bishop to 17 Bc3.
And 19. Bc3 stops his tricks. You allowed his pieces to come to life. If you look at the position a few moves back with his Q on f6 and the centre blocked, it doesnt look good for black. I think you can let him castle and attack using the queen as a target to gain time, maybe.
25. Qxd8 then Be2, Bxc4 and Rxb2
You can get out of the skewer with Nf6. (Qxf6, Qxd3) 28. ... Kg7 29. Qc3 threatens a double check and mate on g7. 28. ... Kh8 29. Qc3 allows a discovery winning the exchange back. You're completely lost after what you play.
It looks like you play quite well but miss tactics. Then, so do I so who am I to say!

To end discussion on the possibilities for white on 18th move
18 Qa4+ is forced mate 18... Kd8 19. Qd7++
and only thing that black can actualy do is to prolong it with bishop or queen sacs



I'll see what i can do, I believe this should be accurate
16 Nxd5.. I would take with the queen, it puts more pressure on the long diaganol and up any material it's not a bad idea to get the queens off the board
18.. You missed mate with Qa4+ Kd8 19 Qd7#
19.. I actually would have taken the pawn here. I know that it loses material but it's only a point and i think you're more or less even, whereas when you save the rook you are almost guaranteed to lose material going after that extremely powereful pawn
31 Nd3.. "I think now Na6 would have been better"
31.. Na6 actually loses a good ammount of material i believe.. he responds Ra8! pinning the knight and putting a double attack on it which you cant really respond to, then after that whole mess he can choose to take the knight or better yet Qc8+ Rxc8 bxc8=Q. however, you are forced into an extremely awkward position and as you noticed open to forks no matter what because the passed pawn has put you into such a situation
All in all I can't say you played too terribly but the game was over with the discovered attack on the rook I think, you lost all material and initiative advantages you might have had to that passed pawn
I am relatively new to chess so and comments or guidance on my general game would be greatly appreciated. Thanks
My opponent really outplayed me here (I played white).