This looked like an even game to me up to about the pin 21. Bg5. Black was able to unpin that pinned knight quickly with a check (21...Ng4+), which not only rendered that bishop move useless, but forced your king to the kingside to protect your h2-pawn. You had probably run into time pressure at that point. As a result of that shift of your king to the kingside, your king was unable to adequately protect the queenside pawns, which Black exploited by seizing control of the b-file by doubling rooks there, combined with a bishop aimed at the isolated a-pawn there. After that a pawn had to fall, which likely would have been decisive.
Alhough you managed to get your king back to the queenside to protect the c-pawn, that shift took a few moves, and Black expertly took advantage of that time period to pile on pressure on the kingside (this strategy is called "alternation."), such as using one pawn (Black's h-pawn) to blockade two pawns (g-pawn, h-pawn), which gave him a winning position. In retrospect White probably would have lasted longer just giving up the a-pawn. This was a rather instructive game, I thought. I had to play through it a few times to determine cause-and-effect.
----------
(p. 25)
Alternation Relying on a spatial edge to shift attacks between two
different enemy weaknesses until the defender must make a conces-
sion. A term used by Aron Nimzovich (1886-1935), a great player and
influential theorist.
Pandolfini, Bruce. 1995. Chess Thinking. New York: Simon & Schuster.
Besides calculate faster so you have time to play endgames, any comment is welcome.