when light goes from a slow medium to a fast
Total internal reflection occurs when light goes from a slow high index of refraction medium to a fast low index of refraction medium. With total internal reflection, light refracts so much it actually refracts back into the first medium. This is how fiber optic cables work: no light leaves the wire.