*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    
}

body{
    min-height: 100vh;

}

nav.bar{
    background-color: rgb(1, 19, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    
    color: white;
    animation: navem 0.8s ease-in-out;
}

.list {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.list li {
    position: relative;
}

.list li a {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    color: rgba(255, 255, 255, 0.82);

    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;

    text-decoration: none;

    border-radius: 10px;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

/* pastki chiziq */
.list li a::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 4px;

    width: 0;
    height: 2px;

    background: white;
    border-radius: 10px;

    transform: translateX(-50%);

    transition: width 0.3s ease;
}

/* hover */
.list li a:hover {
    color: white;

    background: rgba(255, 255, 255, 0.08);

    transform: translateY(-2px);
}

.list li a:hover::after {
    width: 45%;
}

/* bosilganda */
.list li a:active {
    transform: translateY(0) scale(0.96);
}

.logo{
    font-size: 25px;
    font-family: "Cinzel", serif;
    font-weight: 600;
    letter-spacing: 2px;
}

@keyframes navem {
    0%{
        transform: translateY(-100px);
    }
    100%{
        transform: translateY(0px);
    }
}