Djokovic near perfect in reaching quarter-finals