header{
    box-sizing: border-box;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 60px;

    position: fixed;
    top: 0;
    color: var(--primary);
    z-index: 1000; /* Ensure it stays on top of other content */
    margin-bottom: -100px;
    text-transform: uppercase;

    /* Add these properties */
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px var(--shadow-clear), 0 2px 4px -2px var(--shadow-clear);
    z-index: 10;
}


header.invertHead .container{
    color: var(--light);
}

/* Add this new class */
header.scrolled {
    height: 60px;
    background-color: var(--light);
    color: var(--primary-fade);
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px var(--shadow-light), 0 2px 4px -2px var(--shadow-light);
}

header.invertHead.scrolled .container{
    color: var(--primary);
}
header .container{
    width: 1140px;
    max-width: 1140px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wide-container{
    /*width: 1140px;*/
    max-width: 1260px;
    padding-left: 60px;
    padding-right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a{
    text-decoration: none;
    color: inherit;
}

header .head{
    font-size: 24px;
    /*padding-left: 80px;*/
    font-weight: 100;
    color: var(--secondary);
}
header .head span{
    font-weight: 600;
    letter-spacing: 1.1px;
    color: var(--primary);
}
header.invertHead .head span{
    color: var(--light);
}
header.invertHead.scrolled .head span{
    color: var(--primary);
}

header ul{

    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

header ul li{
    padding: 0px 4px 0px 4px;
}
header ul li a{
    text-decoration: none;
    color: inherit;
}
header ul li a .item{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
header ul li a .item span{
    margin-bottom: 4px;
    letter-spacing: 1.2px;
    font-weight: 500;
    transition: all 0.4s ease-in-out;
}
header ul li a .item .underline{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-fade);
    transition: all 0.2s ease-in-out;
}
header.invertHead ul li a .item .underline {
    background-color: var(--light);
}
header.invertHead.scrolled ul li a .item .underline {
    background-color: var(--primary-fade);
}
header ul li a .item:hover span{
    text-shadow: 0px 0px 1px var(--primary-fade);
}
header ul li a .item:hover .underline{
    width: 100%;
}


header ul li a .item.active .underline{
    width: 100%;
}

.head_spacer{
    min-height: 100px;
}




/* Media query for screens less than 860px wide */
@media screen and (max-width: 860px) {
  .wide-container{
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }


}
