Jesus didn't die for you because you are perfect, He died for you because you aren't! You're not good enough to go to heaven, but Jesus is, and if you believe in Him then His death on the cross will pay the penalty for all your sins so that you can be accepted by God and have eternal life.