I think pride is the way you behave, not the way you think. If you always behave humbly, then I think you have succeeded. What is in your mind is your own business, I think.
I think pride comes from the vain notion that we make ourselves according to our own volition. Hence we take God for granted and become unthankful.