Can't program ATmega with ICSP on custom pcb
Can you program the same chip outside the board? I hope you have put the chip in a DIP socket. Doesn't apply to SMD though. In that case make sure the chip itself isn't faulty. Although rarely, but sometimes it so happens that the chip is configured to expect a crystal oscillator at the XTAL pins. try providing that and see if it runs.