Here's why this happens:
* Speed of light changes: Light travels at different speeds in different media. For example, light travels faster in air than in water.
* Angle of incidence: When light strikes the interface at an angle, one part of the wavefront enters the new medium before the other. This change in speed causes the wavefront to bend, resulting in refraction.
The amount of bending depends on:
* The angle of incidence: The steeper the angle, the more bending.
* The refractive indices of the two media: The greater the difference in refractive indices, the more bending.
Here's an analogy:
Imagine a car driving on a smooth road. If the car enters a rough field, the wheels on one side of the car will slow down first, causing the car to turn. Similarly, when light enters a new medium, the part of the wavefront that hits the interface first slows down, causing the wavefront to bend.