Fixed navbar goes under other elements on scroll

Hi - I’ve created a navbar and set it to fixed. However, it only works for the first two sections and then it starts to go underneath all the other elements when scrolling. You can still see it in the background but the other elements are shown above it. I feel like I’ve tried everything and searched this forum but can’t find a fix! Can anyone help? Thank you!!