Long an outsider in Western politics, Portugal came in from the cold after the 1974 Carnation Revolution.