How does the theory of relativity revolutionize our understanding of space, time, and gravity? Discuss the implications of Einstein's general theory of relativity on cosmology and the nature of the universe. Additionally, explore the concept of quantum entanglement and its implications for the fundamental principles of quantum mechanics.