Wickets fell around him but the Indian skipper kept his calm and raced to his 18th Test century.