header{
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 100px;
    z-index: 100;
    display: flex;
    align-content: center;
}
header .container{
    margin-top: 10px !important;
}
header .menu-inner{
    position: relative;
}
header .logo{
    position: absolute;
    left: 20px;
    top: 30px;
}
header .menu-icon{
    width: 35px;
    height: 35px;
    background-image: url('/wp-content/themes/titan-packaging/assets/images/menu-icon.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    right: 20px;
    top: 40px;
}
header .menu-icon:hover{
    cursor: pointer;
}
header .logo-img{
    height: 40px;
}
header .main-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Initial state - Hidden above the screen */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
header .close-icon{
    position: absolute;
    top: 50px;
    right: 20px;
    width: 50px;
    height: 50px;
    opacity: 0;
    transition: .2s;
    background-image: url(/wp-content/themes/titan-packaging/assets/images/menu-close-yellow.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
header .close-icon:hover{
    cursor: pointer;
    transform: rotate(360deg);
    color: var(--titanBlue);
    transition: .2s;
}
header .menu-inner.open .close-icon{
    opacity: 1;
    transition: 2.5s;
}
header .menu-inner.open .close-icon{
    z-index: 10000;
}
header .header .menu-icon{
    z-index: 10;
}
header .main-menu.open {
    /* Move into view */
    transform: translateY(0%);
    opacity: 1;
    z-index: 1001;
}

header .main-menu li{
    flex-basis: 100%;
    justify-content: center;
    margin-bottom: 10px;
}
header .main-menu li a:focus,
header .main-menu li a:focus-visible{
    outline: unset;
}

header .search-icon{
    width: 35px;
    height: 35px;
    background-image: url('/wp-content/themes/titan-packaging/assets/images/search-icon.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    right: 100px;
    top: 40px;
    position: absolute;
    right: 0px;
    top: 0px;
}
header .search-inner form input.search-submit{
    background-image: url(/wp-content/themes/titan-packaging/assets/images/search-icon.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 35px;
    height: 35px;
    background-color: transparent;
    border: unset;
    position: absolute;
    right: 0px;
    z-index: 100;
}
header .search-bar{
    position: absolute;
    right: 100px;
    top: 40px;
    max-width: 250px;
    width: 100%;
    display: flex;
    justify-content: right;
    height: 50px;
}
header .search-bar .search-inner{
    position: relative;
}
header .search-field{
    position: absolute;
    right: 60px;
    background: transparent;
    border: unset;
    border-bottom: 1px solid #fff;
    height: 50px;
    color: #fff;
    top: -7px;
}
header .search-inner form input.search-submit:focus,
header .search-inner form input.search-submit:focus-visible,
header .search-field:focus,
header .search-field:focus{
    outline: unset;
}

header .search-inner form input.search-submit{
    display: none;
}
header .search-bar.active .search-inner form input.search-submit{
    display: block;
    transition: 0.5s;
}
header .search-field{
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
header .search-bar{
    overflow: hidden;
}
header .search-bar.active .search-field{
    transform: translateY(0%);
    opacity: 1;
}
.search-bar input[type="search"]::-webkit-search-cancel-button {
    filter: invert(1); /* Inverts the color (white on dark backgrounds) */
    cursor: pointer;
}


.no-logo header .logo{
    display: none;
}

.blue-logo header .menu-icon,
.blue-logo header .search-bar,
.blue-logo header .logo{
    filter: brightness(0) saturate(100%) invert(24%) sepia(76%) saturate(2544%) hue-rotate(234deg) brightness(85%) contrast(123%);
    
}


.search-bar input[type="search"]::-webkit-input-placeholder {
    color: white;
  }
  
.search-bar input[type="search"]::-moz-placeholder {
    color: white;
  }
  
.search-bar input[type="search"]:-ms-input-placeholder {
    color: white;
  }
  
.search-bar input[type="search"]::placeholder {
    color: white;
  }
  

/* Mobile Styles */

@media screen and (max-width: 800px){
    header .search-bar{
        right: 70px;
    }
    header .logo{
        top: 40px;
        display: none;
    }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #444;
        width: 100%;
        padding: 10px;
    }

    .main-nav.open {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }
}
