is it possible to change water fog colour at different y levels?

starting this off with saying that ive got basically no experience in datapacks. the first time i tried was an earlier version of this but there was ice everywhere on top and i didnt know how to get rid of it, so i put it on indefinite hiatus, and starting back up now. (fixed the ice issue now)

I've got this deep sea world datapack that im working on for a server with some friends, and im trying to make it a bit more immersive by darkening the water fog as you go further down. I've used the misode datapack generator to get the worldgen down and I've got the ocean already. all i need now is to get the water fog.

so far, ive considered shaders but i need it to work with geyser because ive got a few friends on bedrock, so sadly that wont work. i also thought about somehow changing dimension when travelling downwards, but then id assume that you wouldnt be able to build between certain y levels.

Continue to help post