Having grown up in a religious household first 22 years of my life I had a lot of trouble with anxiety when I stopped believing in god. I could not continue studying science and believing in god without feeling like a hypocrite (not to say those who do are ).
Meditation and being in the moment or at least trying to be in the moment has helped me a lot. There may not be a rhyme or reason to life but that doesn't mean you can't create one and have fun while doing so.