When you were opening your eyes, you most likely had a false awakening where you weren't actually awake but actually still dreaming.