Sounds like you may have had moderate to severe hypothermia.
A very bad mix, considering that hypothermia affects your ability to think & reason & the fact that you are most likely untrained in the cave/ overhead environment. I am not trying to bash you in any way,... but rather give you a warning. Going into a cave (or any overhead environment), untrained, is a deceptively easy way to die. Yes,.. it is easy when things go right,... but when things go wrong, it is most often violent & fatal. At 24 dives, there is absolutely no way you can know of all the dangers (at 200+ dives & as a Dive Master a few years ago, I did not know of them until I received training) That is why the training is so important. We train with special gas management plans, redundant air supply, How to handle events such as silt outs, loss of lights, loss of air supply, running, following & monitoring guidelines, entanglements, lost guidelines, lost buddies, situational, team/ buddy awareness & awareness of where we are in the cave system. I did the same foolish thing at vortex springs a few years ago & nearly wound up as a statistic. I learned my lesson,.. almost the last lesson I ever learned. Please! If you want to cave dive, get the proper training & experience. Yes, you may have to wait until you become more experienced, but remember, the caves are not going anywhere. They've been there for millions of years. They will wait for you. I know this is probably not what you want to hear, but it hurts the dive community as a whole when we lose one of our own..... Especially, because of something that could have easily been prevented by proper training & experience. The reason I am coming on rather strongly, is because when the untrained diver enters a cave & there is an accident, there is usually a lot of bad publicity (the media loves sensationalism) & a risk that the site may closed off to those of us who are trained. Once again, I implore you to get proper training before you venture into an underwater cave again. No amount of Open Water experience will prepare you to cave dive. It just is not worth the risk.