Not so much as losing faith in God or a higher power but rather a distrust of all organized religion. Once I started to study the actual biblical canonization process of how the various books were "selected" by particular individuals to be either included or excluded from the bible it illustrated that politics was involved on so many levels. One also has to wonder if there is one "truth" why are there so many different denominations?
Secondly basic logic and intelligence became a factor.
Samson killed (1000) men with the jawbone of a donkey. Really???
Adam lived to be 930 years old. Seriously??
Noah had his first child after the age of 500
The earth is less than 10,000 years old. (Tell that to the dinosaurs!)
God made the world in 6 days and "rested on the 7th". Does he get tired?
God created foreign languages to keep people from building a tower from earth to heaven. (Note: They had no space suits or oxygen to breathe)
"And the Lord said, Behold, the people is one, and they have all one language; and this they begin to do: and now nothing will be restrained from them, which they have imagined to do.
Go to, let us go down, and there confound their language, that they may not understand one another's speech." (He didn't think we'd have interpreters)
God wrestling with Jacob and losing!
God and Satan making a wager on Job loyalty and faith.
And then there are the various contradictions
Exodus 20:13 - Thy shall not kill (One of the 10 Commandments)
Exodus 21:17 -And he that curseth his father, or his mother, shall surely be put to death.
Exodus 31:15 - Whoever does any work on the Sabbath day shall be put to death.
Exodus 32:28 - "And the children of Levi did according to the word of Moses: and there fell of the people that day about three (thousand men).
That's just one example with conflicting scriptures in the same book!
Like you I too I came across many Christian hypocrites in my time and realized everyone of them "cherry picks" which scriptures they'll follow and which ones they won't. Essentially they were like anyone else.
Ecclesiastes 7:20 - "For there is not a just man upon earth, that doeth good, and sinneth not."
Ultimately I came to the conclusion that God made man and man made religion.