Prime Minister Narendra Modi on Sunday met South African President Cyril Ramaphosa on the sidelines of the G20 Summit here and the two leaders discussed cooperation in various areas, including trade, investment, mining, critical minerals, AI and food security.