Sounds like you were in sleep paralysis and pretty close to transitioning into a dream, but got too excited at the last moment due to all the crazy stuff that was going on.
Next time do the exact same thing and stay calm, remember not to try too hard!