PWM Code to for mosfet gate

Check the datasheet for the PWM settings of the timers (as you've been doing already), set them to your liking. You use OCRxA or OCRxB to set the duty cycle. The datasheet reading I leave to you, I don't have it all memorised either. It's all explained quite extensively there.

Then you offset one of the timers by 128:

TCNT1 = 0;
TCNT2 = 128;

In two lines immediately following one another.

That should give two PWM signals offset by 180°. Pins are set HIGH when TCNT1 resp TCNT2 overflow to 0 (so halfway the cycle of the other), and set to LOW at a point in time depending on what value you set the respective OCRxx registers to. OCRxx = 25 for 10% duty cycle, or 230 for 90% duty cycle, or well anything between 0 and 255.