A geometric approach to classical Lie algebras