Change dropdown text color based no current page

Hello,

II have a horizontal menu in my header with a transparent background:

But as you can see it is difficult too read on this background. While on other pages on my site it’s no problem (because they have a lighter background), like so:

I’m wondering if I can change the style (or textcolor) based on which page the viewer is currently on. So in my case I’d make the textcolor white when needed (like in image “A: Transparent Background” above) and leave it black when not.

If it’s not the ready-made Wix menu but your own custom menu, then you can change the background by code.