A perfect IV Pokemon is a Pokemon with some its IVs (usually 4-5 of them) at the maximum value of 31. This can be extended to the right Nature, too. To see your Pokemon's IVs you need an NPC called the IV Judge (or Stats Judge), which is located at the Battle Tree.