@import url(/stylesheets/root.css);

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
    background-color: var(--primary-clr);
    font-family: "Poppins", sans-serif;
    width: 100vw;
    position: relative;
}

main {
    position: relative;
}

.menu-overlay {
    background-color: rgba(0, 0, 0, 0.387);
    position: fixed;
    width: 100%;
    Height: 100vh;
    top: 0;
    z-index: 100;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

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


.nav {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0) + 20px);
    right: 20px;
    background-color: rgba(133, 133, 133, 0.184);
    backdrop-filter: blur(20px);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--white-clr);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.nav:hover {
    cursor: pointer;
    transform: scale(1.02);
    transition: 0.5s;
}
.nav img {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    transition: 0.5s;
}
.menu {
        display: none;
        color: var(--white-clr);
}

.menu.active {
    display: flex;
    position: fixed;
    top: 85px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 50px;
    width: 350px;
    border-radius: 30px;
    text-align: left;
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
    justify-content: space-between;
}
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.menu ul li {
    display: flex;
    align-items: center; 
    font-style: italic;
}
.menu ul li:hover {
    transform: translateX(5px);
    transition: 0.3s; 
}
 .menu ul li img {
    width: 25px;
    height: 25px;
    margin-right: 18px;
 }

 @media screen and (max-width: 400px) {
     .menu {
        width: 270px;
        padding:35px;
     }
     .menu ul {
        gap: 40px;
        font-size: 18px;
     }

}

.menu-container {
    position: relative;
    width: 100%;
    height: fit-content;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    width: 120px;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0) + 35px);
    left: 35px;
    z-index: 1000;
    animation: fadein 0.6s ease-in;
}

.hide {
    display: none;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }    
}