/* navbar */

nav {
    width: 100%;
    align-items: center;
    padding: 15px 25px;
    background: var(--navbar-background);
    box-shadow: inset 0px -1px transparent;
    display: flex;
    justify-content: space-between;
    z-index: 0;
}

.nav-icon {
    display: flex;
    align-items: center;
}

.nav-icon img {
    width: 350px;
}


.hamburger {
    display: none;
}
.navlinks-container a {
    margin: 0 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: var(--navbar-color);
    display: inline-block;
    position: relative;
}

.navlinks-container a::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background-color: var(--navbar-color);
    transition: transform 0.3s ease-out;
}

.navlinks-container a:hover::after {
    transform: scaleX(1);
}

.contact-button button {
    font-size: 16px;
    min-width: 90px;
    padding: 10px 5px;
    margin: 0.5px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    background-color: var(--background-main1);
    color: var(--navbar-color);
}
.contact-button.interior {
    display: none;
}

.contact-button button:hover {
opacity: 0.8;
}

@media (max-width: 1100px) {
    nav {
        padding: 15px 20px;
        position: relative;
    }

    .nav-icon {
        order: 2;
        margin: 0 auto;
    }

    .main-navlinks {
        order: 1;
    }

    /* .hamburger */
    .hamburger {
        width: 20px;
        height: 20px;
        cursor: pointer;
        border: none;
        display: flex;
        background-color: transparent;
        align-items: center;
        position: relative;
    }
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--navbar-color);
        position: absolute;
        pointer-events: none;
        transition: opacity 0.3s 0.15s ease-out;
    }

    .hamburger span:nth-child(1), .hamburger span:nth-child(3) {
        transition: transform 0.3s ease-out;
    }

    .hamburger span:nth-child(1) {
        transform: translateY(7px);
    }
    .hamburger span:nth-child(3) {
        transform: translateY(-7px);
    }

    .hamburger.open span:nth-child(1){
        transform: translate(0) rotate(135deg);
    }
    .hamburger.open span:nth-child(2){
        opacity: 0;
        transition: opacity 0s ease-out;
    }
    .hamburger.open span:nth-child(3){
        transform: translate(0) rotate(-135deg);
    }

    .navlinks-container {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: absolute;
        background-color: var(--navbar-background);
        top: 100%;
        left: 5px;
        height: min-content;
        min-height: 10vh;    
        padding: 15px 50px 15px 20px;
        margin-top: 4px;
        transform: translateY(-300%);
        z-index: -1;
        width: calc(100% - 10px);
    }
    .open {
        transform: translate(0%);
    }
    .navlinks-container a {
        font-size: 18px;
        margin: 10px 0;
    }

    .nav-contact {
        order: 3;
    }
}

@media (max-width: 600px) {
    .navlinks-container {
        flex-direction: column;
        padding: 10px;
    }

    .navlinks-container > * {
        margin: 15px !important;
    }

    .contact-button.interior {
        display: inline-block;
    }

    .nav-contact {
        display: none;
    }
}

@media (max-width: 420px) {
    
    .nav-icon img {
        width: 200px;
    }
}