True!Hinduism, as a way of life is really perfect, as it gives freedom to 'quest for truth' on your own.
It is sometimes misleading to use English words for Indic concepts. If you are talking about Jati, it is based on occupation and it became rigid. It is a social issue that has nothing to do with Dharma.Caste system is the greatest obstacle for the prosperity of Hinduism.
If you are talking about Varna, then that is a Dharmic concept. It is not hereditary and it represents a state of spiritual evolution.