I learned Spanish and Portuguese. I took Spanish classes in Mexico but I became fluent by traveling in Latin America. With Portuguese it was similar. I was stuck in Europe for most of 2020 so I spent two months in Portugal. In my opinion, the best way to learn a language is to take a short course in order to get the basics and then just practice by talking every day. Dating someone who only speaks the language you're learning also helps:)