I was brought up in the Catholic Church. After I was Confirmed at age 13, I decided to became more of an atheist.
My choice to become an atheist was not so much about being against God or my religion. I simply want dto overcome inhibitions created by my religious teachings. I was approaching this with psychology, which was easier to do, from a more godless atheist POV.
For example, the Church would teach no sex before marriage. I did not wish to be a hypocrite, so I felt I needed to leave the high road team, and join the low road team, that used relative morality to justify any choice. But I never went too far, but I kept my eye on the high road, as I walk the low road. I tread to be a good person. I was still spiritual looking for what was common to all, but wanting a more a secular view.
I returned closer to religion in my late twenties. This decision was connected to unconscious mind research I was doing on myself; explore the collective unconscious to gain first person data. The research had reached a point there it was getting scary due to dissociation and unconscious inductions that would induce the fear of going insane. It was good data, but I was getting over my head in the deep water. I could be conscious in dreams and sometimes the dreams would continue after I woke.
During one scary experience, I could feel shear terror in my body but my mind was calm. I remembered the power of prayer. After a few Our Fathers and Hail Marys, the fear in mu body subsided, and I was able to regain my objective observational point of view, as a scientist, so I could analyze the imagery. I realized that prayer was like a shield and my reason was like my sword as I explored the caves off my psyche. After that I had no more fear and could ride out the intensity.
Religion is about the IT of the brain and consciousness with prayers like command lines to the archetypes. These worked in these unique places I had opened. Not much later I read the Bible from cover to cover, highlighting for bible prophesies. This induced a new stage of research, that became like a mystical psychosis, connected to prophesy symbolism; update in the operating system.
Now I consider myself somewhere in the middle between science and religion, theism and atheism. I try to merge the two which gives me a unique POV. I tend to side with religion mostly because it takes the tougher road, walking in faith instead of data.