Light follows a path of minimum time due to Fermat's principle, which states that this path leads to constructive interference among neighboring paths, while other paths result in destructive interference. When light transitions between media, some light is reflected and some refracted, as not all light can pass through without reflection. The amount of light reflected is determined by the boundary conditions of electromagnetic fields, which can be analyzed using Fresnel equations. These equations help explain the relationship between the refractive indices of the materials and the resulting light behavior. Understanding these principles is essential for comprehending the nature of light's interaction with different media.