It’s even more complicated, Jinnah the Pakistan independence leader ( Who hated Ghandi. Viewed him as a pious fraud !) was completely secular, an atheist in fact though enough of an opportunist or pragmatist to know that Hindu & Muslim couldn’t coexist peacefully in one state. There had to be a Muslim state separated from a Hindu state. He gave Pakistan a secular constitution Eventhough I’ve been told that Pakistan means land of the faithful in Pashtun. Like I said he was ever the opportunist. As long as he was alive the state of Pakistan sort of barely functioned.
Even more interesting is that none of his family followed him to Pakistan. They stayed back in Bombay. Jinnah never sold his house in Bombay. He was all about the money...and the US and Brits gave him lots of it...
And yes, Jinnah was Muslim in name only. He didnt even own a Koran. He never went to Mosque. His children who are now in India dont practice Islam. His sister disowned him...she recently died in Bombay.