Nothing wrong or special with PORTD on this one. Config fuses seems fine. Something's wrong somewhere in your whole code.