When light reflects off a material denser (with higher refractive index) than the external medium, it undergoes a polarity inversion.
When light reflects off a material denser (with higher refractive index) than the external medium, it undergoes a 180° phase reversal.