I have a Galaxy S2 SGH-I777 and tried to root the phone using the link mentioned in Samsung Galaxy S2 SGH-I777 (AT&T): Root and ClockworkMod Recovery It all seemed to work fine and I was even able to get a "PASS" message on my odin software but after that when the phone rebooted, it flashed a Galaxy S2 GT-I9100 message and the phone is literally a brick now 
I don't know why it is happening because the file I installed has the name SGH-I777-ATTGalaxyS2RootStockZedomaxKernel. Any way to recover the phone back to the original state?

I don't know why it is happening because the file I installed has the name SGH-I777-ATTGalaxyS2RootStockZedomaxKernel. Any way to recover the phone back to the original state?