I'm not an expert at all, but it sounds to me like you were either in the sleep paralysis phase or that you were transitioning from SP to lucid dreaming. That's just my ignorant opinion, though.