Thankyou for your question.
Custody of a child is decided by considering the welfare of the child, as held in the case of Sheoli Hati v. Somnath Das. Parents seeking custody has to prove that interest and welfare of the child shall be protected by them better than the opposite party.
A suit for Visitation Rights can be filed, which will be right of permanent meeting of the minor child.
A Writ of Habeas Corpus can be filed in the Supreme Court under Article 32 or in the High Court under Article 226 of the Indian Constitution.
Under Section 26 of Hindu Marriage Act, the court is authorized to pass interim orders in any proceeding under the Act with respect to custody maintenance, and education of minor children. This section can also revoke, suspend or vary previously passed orders.
Guardianship and Wards act, 1890 also talks about guardianship and custody of minor children.
It was held in the case of Gaurav Nagpal v. Sumedha Nagpal that children are not mere chattels nor are they toys for parents. There has to be a proper balance between requirements of the minor children and the rights of the respective parents.
Hope this answers your question.