Complex Berry phase and imperfect non-Hermitian phase transitions