Sanskrit belongs to the Indo-Aryan branch of the Indo-European languages and is a classical language of South Asia. Sanskrit is the most sacred language of Hinduism. All the religious texts and the philosophy of Hinduism were written in Sanskrit. The ancient book of Jainism and Buddhist text was also written in Sanskrit.
It was the language to the link between the middle and south-east Asia, and upon transmission of Hindu and Buddhist culture to Southeast Asia, East Asia, and Central Asia in the early medieval era, it became a language of religion and high culture, and of the political elites in some of these regions. As a result, Sanskrit had a lasting impact on the languages of South Asia, Southeast Asia, and East Asia, especially in their formal and learned vocabularies.
As an ancient language, the difficulty of the language is very high. You need to be careful when learning the language and need to give more time. The language can be learned as a professional or as a hobby. To learn Sanskrit you need to have access to the resources that are helpful to your process. There are various books for learners that provide ample knowledge about the language.