Sticky nav bg color

Hi Everyone,

I need help with the animations on the Sticky Navbar. I have 4 full height sections and what I am trying to accomplish is that the background color of the Sticky Navbar changes to the background color of the section it is in. What I am doing wrong on the scroll into view animation? Any help is welcome.

You can check what I have so far on the link below.

Here is my site Read-Only: LINK
(how to share your site Read-Only link)