Pakistan foreign policy must respond to shifting trends: Qureshi