header ul li {
    text-decoration: none;
    list-style: none;
    font-weight: 500;
}
header {
    width: 100%;
    background-color: white;
    box-shadow: 0 1px 10px grey;
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 4;
    
}

header ul li a {
    color: black;
    text-decoration: none;
}

.logo {

    display: flex;
}

.amaga-logo {
    height: 4rem;
    width: 5rem;
    margin-left: 1rem;
    margin-right: auto;
}

.amaga-logo-text {
    font-size: 1.5rem;
    position: relative;
    top: 18px;
    left: 10px;
}

nav {
    display: flex;
    align-items: center;

}
.nav-links {
    display: flex;
    align-items: center;
    margin-right: 3rem;
}

.nav-link {
    margin-right: 2.5rem;
    color: black;
    white-space: nowrap;
    
}
.page-link {
    position: relative;
    color: black;
}
.page-link::after {
    content: '';
    position: absolute;
    
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: var(--red-color);
    
    transition: transform 0.25s ease-out;
    transform-origin: center;

}
.page-link:hover:after {
    transform-origin: center;
    transform: scaleX(1);
   
}


.page-link i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--dark-color);
}



/* navigation - selected */


.selected {
    background-color: var(--red-color);
    padding: .6rem 1.5rem;
    border-radius: 3rem;
    color: white;
   
}

.selected i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: white;
}
.selected a {
    
    color: white;
}





/* mobile nav */

.mobile-nav-link i {
    margin-right: .5rem;
    font-size: 1.2rem;
}


.mobile-nav-links {
    list-style: none;
    background-color: var(--dark-color);
    position: absolute;
    z-index: 4;
    top: 4.25rem;
    width: 100%;
    text-align: center;

    padding: .8rem;

    position: fixed;

    transform-origin: top center;
    transform: scaleY(0);
    

    transition: .4s all;
    
}

.mobile-nav-link {
    margin-bottom:  .8rem;
  
}
.mobile-nav-link a {
    text-decoration: none;
    color: white;
    transition: .3s all ease-out;
    
    transform: scale(0);
    opacity: 0;
}

.mobile-nav-link a:hover {
    color: red;
    background-color: white;
    padding: .3rem .8rem;
    border-radius: 5px;
    
   
}


.mobile-nav-links-visible {
    transform: scaleY(1);

}



/* for nav a tags */

.mobile-nav-link .opacity-change {
    opacity: 1;
    
    
}





/* hamburger */

.hamburger {
    width: 45px;
    height: 30px;

    
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    
    display: none;

 
}



.hamburger .first-line {
    width: 100%;
    height: 4px;
    background-color: var(--dark-color);
    position: absolute;
    top: 0px;
    right: 12px;

    transition: all .6s;


}
.hamburger .second-line {
    width: 100%;
    height: 4px;
    background-color: var(--dark-color);
    position: absolute;
    top: 12.5px;
    right: 12px;
    
    

    transition: all .6s;


   
}
.hamburger .third-line {
    width: 100%;
    height: 4px;
    background-color: var(--dark-color);
    position: absolute;
    top: 25.5px;
    opacity: 1;
    right: 12px;
    


    transition: all .6s;
}


/* hamburger-animation */

.hamburger .first-line-animation {
    transform: rotateZ(-45deg) translateY(15px);
    right: 12px;
    margin-top: 4px;
}

.hamburger .second-line-animation {
    opacity: 0;   
    right: 200px;
   
}

.hamburger .third-line-animation {
    transform: rotateZ(45deg) translateY(-15px);
    right: 12px;
   
}




@media (max-width: 800px) {

    /* mobile nav*/

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .amaga-logo-text {
        font-size: 1.3rem;
        top: 23px;
    }


}