.navbar {
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    position: fixed;
    font-family: 'Outfit', sans-serif;
    width: 79%;
    max-width: 1400px;
    height: 80px;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    color: rgb(255, 255, 255);
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 0;
}

.nav-container {
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

nav {
    min-width: 0;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1.2px;
    background: rgb(255, 255, 255);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(202,187,85,0.15);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
    overflow: hidden;
    flex-wrap: nowrap;
}

nav ul li {
    position: relative;
    padding: 8px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 18px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: color 0.3s, background 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    display: block;
    position: absolute;
    height: 2.5px;
    width: 0;
    background: rgb(255, 255, 255);
    transition: width 0.2s ease;
    bottom: -6px;
    left: 0;
}

.nav-link:hover {
    color: rgb(255, 255, 255);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: rgb(255, 255, 255);
    border-radius: 2px;
}

@media screen and (max-width: 1400px) {
    .navbar {
        width: 95%;
        padding: 0 16px;
    }
}

@media screen and (max-width: 952px) {
    .navbar {
        height: 80px;
        width: 95%;
    }

    .nav-container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 30px;
    }

    nav {
        position: fixed;
        top: 79px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 80%;
        max-width: 1400px;
        background-color: rgb(0, 0, 0);
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        border-radius: 0 0 10px 10px; 
        border-left: none;
        z-index: 999; 
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }

    nav.active {
        max-height: 500px;
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
        padding: 20px 25px;    
        height: auto;
        width: auto;
        margin: 0;
    }

    nav ul li {
        width: 100%;
        padding: 12px 12px;
        overflow: hidden;
        white-space: nowrap;
        text-align: center;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 17px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link[href="#footer"] {
        background: none;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        color: rgba(255, 255, 255, 0.7);
        transform: none;
    }

    .nav-link[href="#footer"]:hover {
        background: none;
        transform: none;
        box-shadow: none;
        color: rgb(255, 255, 255);
    }
}

@media screen and (max-width: 808px) {
    .navbar {
        height: 80px;
        width: 95%;
    }

    .nav-container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 30px;
    }

    nav {
        top: 79px;
        width: 80%;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        width: 95%;
        top: 8px;
        height: 80px;
    }
    
    .logo {
        font-size: 30px;
    }

    nav {
        top: 79px;
        width: 80%;
    }

    nav ul {
        padding: 20px;
    }

    nav ul li {
        padding: 14px 10px;
    }
}

@media screen and (max-width: 360px) {
    .navbar {
        width: 95%;
        top: 8px;
        height: 80px;
    }

    .menu-toggle {
        display: flex;
    }
    
    .logo {
        text-align: center;
        font-size: 30px;
    }

    nav {
        top: 79px;
        width: 80%;
    }
}