When a material's particle size is reduced to the nanoscale, quantum confinement occurs. This makes electron energy levels discrete and further apart, increasing the band gap. The more the particle size decreases, the stronger the quantum confinement effect, which requires more energy for electronic transitions. Consequently, the absorption spectrum shifts towards higher energies and shorter wavelengths, a phenomenon known as a blue shift.