Can a vector have zero component along a line and still have nonzero magnitude?
Yes, any vector has zero component along the direction perpendicular to it. Like, A vector along x-axis has zero component along Y-axis.