Afghanistan is a largely agrarian, complex country that has struggled through decades of poverty and strife.