Inequalities for linear combinations of orthogonal projections and applications