Aside from the Art of Problem Solving books mentioned by others, you may find https://web.evanchen.cc/faq-contest.html worth reading. I learnt a lot about math (contests (strategy, experience), undergraduate material, etc.) and more by deep-diving into Evan's site.