This is where everyone gets confused about the Special Theory of Relativity, the speed of light is *not* constant if you change the medium through which it propogates.
If you measure the speed of light out in space (in vacuum) it will be a bit faster than if you measure it here on Earth (in the atmosphere). Light travels the fastest in vacuum.
The speed of light is however constant regardless of the relative motion between the light source and observer. Imagine if someone was moving very fast towards you (say at a speed v), shining a torch at you. You would naturally expect that the speed of light that you would measure would be c+v. This is wrong, since you can't just add the velocities as vectors anymore (in relativistic physics). Instead of measuring c+v, you would measure c. No matter what relative velocity you move with respect to the light source, no matter which inertial frame of reference you're in, you will always measure the speed of light in vacuum to be c
This doesn't alter the fact that light travels more slowly in media other than vacuum (e.g. air, water).