Dear @Helpme786,
Welcome to the forum and thanks for sharing your experiences. I understand you are quite stressed at the moment finding out about this when you were preparing for a surgery.
To answer some of the issues you raise:
The majority of people get Hep B when they are children and it has stayed with them for that entire time without any symptoms.
This may have been what happened to you, but you need to get some additional tests to understand if this is a recent infection or from long ago. These tests will also let you know if it’s likely it will go away on its own or it will be with you for years. This thread might be useful: EXPLAINER: Lab results and their interpretation
You can marry and have children without infecting your wife, as many users here have done. Your partner simply needs make sure that they are vaccinated before you decide to start having sex. If the mother is negative for hep B, then there is no risk of passing it on to the child during birth (though they should be given birth dose vaccination just to protect them in the community). These thread give a bit more information and may be useful to you: Having children and Hepatitis B; When/how to disclose hep b in a potential relationship?.
Diet is pretty important and it is good that you are trying to eat healthily. Just be sure that fatty liver takes a long time to start to reverse (think about all the years that have led to the fatty liver, it’s very difficult to turn that around straight away). You sometimes need to be a bit patient and there’s not magic pill for it, just long and slow changes. This thread might also help answer some questions: Lifestyle changes, nutrition, and supplements for hep b; Fatty liver medication.
Hope this helps,
Thomas