Century-long data of Kodaikanal Observatory reveals clues to Sun's future