This is the first time, I hear about the 3 months notice. (I am not a person from IT side, I am from Civil engineering side).
normally, one month notice period is enough for the most of jobs even for the government sector. if you couldn't give one month notice you have to pay the one month...