How did I lose here??

Sort:
qeqitonemalipo
1. c4 Nf6 2. Nc3 g6 3. h3 Bg7 4. g4 d6 5. Bg2 O-O 6. e3 e5 7. Nf3 Be6 8. d3 c6 9. Qb3 Qb6 10. Qc2 a5 11. Na4 Qc7 12. Bd2 Na6 13. a3 d5 14. c5 e4 15. Nd4 Nd7 16. b4 exd3 17. Qxd3 Ne5 18. Qc2 Nc4 19. Bc3 Rae8 20. O-O Bc8 21. b5 Nb8 22. bxc6 bxc6 23. Nb6 Ba6 24. Nxc4 Bxc4 25. Rfb1 Na6 26. Rb6 Nxc5 27. Rxc6 Qa7 28. Rd6 Rd8 29. Nc6 1-0 the middlegame was confusing. I shuffled pieces and hadn't found any opportunities
bigD521

For what it is worth, the engine shows 28. ...Rd8 was where you went wrong. Evaluation went from -0.2 to +4.2. According to the engine had you played 28. ..Ne4 it would have been at -0.27

edited to add --- presuming you are black.