How do phase transitions, such as melting and boiling

How do phase transitions, such as melting and boiling, relate to the principles of thermodynamics, and how can the concept of critical points and universality help understand these transitions in different systems?Cosmology: Can you discuss the evidence for dark matter and dark energy in the universe, exploring their roles in the large-scale structure and dynamics of the cosmos and their implications for cosmological models?