Perpendicular Categories with Applications to Representations and Sheaves