One of the keys to understanding projectile motion is the idea of the independence of x and y. The motion in the vertical direction is completely independent of the motion in the horizontal direction.
Any two-dimensional projectile motion situation can be viewed as two independent one-dimensional motion problems.