well you have heard about nalanda university look how it looks
well india was so rich we were developed india's gdp in ancient times was about 36% or we can say about 1/3 or 1/4 of the world we just fell down from there when islamic invaders invaded and came into the power they destroyed almost most of the temples and made mosques upon them .
if u want more information just follow me and comment below .
thanks.