.navbar {
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: absolute;
    top: 20px;
    width: fit-content;
    z-index: 1001; 
    border-radius: 50px;
    padding: 10px;
    animation: slideDown 0.7s ease;
    transition: color 0.3s ease;
    display: none;
}

.logo {
    display: inline-block;
    width: 80px;
    height: auto;
    margin-right: 2px;
    margin-bottom: -30px;
    margin-top: -5px;
    margin-right: 200px;
    margin-left: 30px;
}


.navbar a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 23px;
    margin-bottom: 15px;
    animation: slideDown 0.7s ease;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.9s ease-out;
    animation: fadeIn 2s ease-in-out forwards;
    z-index: 1001
}
.navbar a.active {
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    z-index: 1001
}


.navbar a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, text-shadow 0.3s ease-in-out;
}


.navbar a:hover::before {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
    width: 100%;
}

.toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 13px;
    background-color: transparent;
    border: 0px ;
    border-radius: 100%;
    font-size: 35px;
    color: white;
    cursor: pointer;
    z-index: 1003;
    display: none;
}

@media screen and (min-width: 1100px) {
    .navbar {
        display: block;
    }
}

@media screen and (max-width: 1100px) {
    .navbar {
        display: none;
        background-color: rgba(255, 255, 255, 0.8);
    }
    .logo {
        display: none;
    }
}

@media screen and (max-width: 1100px) {
    .toggle-btn {
        display: block;
    }
}

@media screen and (max-width: 1100px) {
    .navbar a {
        display: block;
        margin: 10px auto;
        margin-left:200px;
        margin-right: 200px;
        animation: slideDown 0.7s ease;
        color:rgba(0, 0, 0, 0.7);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}