Science and Ultimate Reality: Quantum Theory, Cosmology, and Complexity