I don't understand how any sane person can go from rational thinking to believing in a religion. My guess is that you weren't really all that sure in the first place and that you didn't really understand what is was that you believed. You're also still quite young and it's only natural for you to explore your "options".
"The life of a man is of no greater importance to the universe than that of an oyster." - David Hume