In the 1980s and 1990s , the country lived beyond its means , maintaining a bloated public service and accumulating a large foreign debt .