How do you Finland?

I'm legit curious how did Finland became such a nice and fun country, given its turbulent history of being colonized and invaded so often.

I'm asking this because most high-HDI countries are former colonial empires or have a ton of natural resources.

Finland, on the other hand, isn't a oil power like Norway, never had a colonial periphery to exploit, and somehow, all of a sudden, just decided to be cool and developed.

What happened? I'm Brazilian and my country could easily be well-developed, but somehow we are always trapped in this half-assed industrialization chain, corruption and a couple other Latin American problems. Is the Finnish model replicable in other countries? Do we need to hire Finns to organize our country?

Kiitos in advance.