When Did Portugal Become Its Own Country