Used to express contrast between expectation and reality, or to indicate a purpose for doing something
Long explanation:
The ~のに grammar point has two main usages. The first is to express contrast between an expectation and reality, with translations like 'even though', 'despite' or 'in spite of' in English. The second is to indicate a purpose for doing something, translated as 'in order to' or 'for the purpose of'. The formation differs depending on whether it is used with a verb, い-adjective, な-adjective, or noun.