The country prospered in the past half century as a modern , technologically advanced European state and member of NATO and the EU .