The reason it doesn’t reset is because nothing above the loop upon looping over is reset to the numbers you have up top.
Basically after the loop ends it retains the value after the fade and what you would need to do is when the fade is done you can add the delay and then set your brightness to 0 or whatever it needs to be so when it loops back up, the value will be ready for another fade.