This function returns readable details such as the country's common and official name, capital,
region, subregion, population, area, and official languages.
The function sends a GET request to the REST Countries API. If the request is successful (HTTP 200),
it parses the JSON and extracts the key fields. If the country is not found or there's an error,
the function returns NULL
with a user-friendly message.