Term: reverie
Example: yuriy shook himself from his reverie and proceed to cross the bridge
Definition: it's a state of consciousness in which you are more in your thoughts or in a fanciful planning