Why does atomic radius decrease across a period from left to right?

The atomic radius decreases across a period from left to right due to the increasing nuclear charge (the number of protons in the nucleus). As more protons are added, the positive charge of the nucleus attracts the electrons more strongly, pulling them closer to the nucleus. Although electrons are added to the same energy level, the increased nuclear charge overcomes the effect of electron-electron repulsion, leading to a smaller atomic radius.