.header-nav-bar {
    flex-wrap: nowrap;
    width: 70%;
    height: 100%;
}

.nav-component {
    position: relative;
    overflow: visible; /* Ensures glow isn't cut off */
    z-index: 1;
    border-bottom-left-radius: 10%;
    border-bottom-right-radius: 10%;
    flex: 1;
    min-width: 95px;
    max-width: 135px;
    height: 10.2vh;
}

.nav-link {
    flex: 1;
    margin-top: 7%;
    background-color: transparent;
}

.nav-icon {
    margin-bottom: clamp(3px, 1vh, 15px);
    width: clamp(30px, 3vw, 40px);
    height: clamp(30px, 3vh, 40px);
}

.nav-component-active {
    background: #0e1013;
}

.nav-component:hover {
    background: #16191e;
}

@keyframes centerLight {
    0% {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;  /* Fade in midway */
    }
    100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}
  
.nav-component::before {
    flex: 1;
    content: '';
    position: absolute;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
    height: 10px;
    border-radius: 10px;
    background: #00FFF5;
    box-shadow: 0 -10px 25px 5px #00FFF5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}
  
.nav-component:hover::before {
    animation: centerLight 0.4s forwards;
}


.nav-component.nav-component-active::before {
    opacity: 1;
}

.nav-component:hover.nav-component-active::before {
    animation: none;
}

.nav-button
{
    flex: 1;
    padding: 0;
    background-color: transparent;
    border: none;
    height: 100%;
    font-size: clamp(11px, min(1vw, 1.6vh), 17px) !important;
    font-family: 'Sans-serif', 'Arial';
    align-items : center;
}

.nav-component:hover .nav-button
{
    background-color: transparent; 
    border: none; 
    z-index: 1; 
    transition: all 0.5s ease;
    transform: scale(1.15);
}