@keyframes subtleGoldFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

nav {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav:not(.scrolled) {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(52, 73, 94, 0.1);
}

.nav-left a {
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-left a:hover {
    color: transparent;
    background: linear-gradient(90deg, 
        #c0392b, /* Darker red */
        #e74c3c, /* Accent red */
        #f39c12, /* Orange */
        #e74c3c, /* Accent red */
        #c0392b  /* Darker red */
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: warmLiquidFlow 4s linear infinite;
    text-shadow: 0 0 2px rgba(231, 76, 60, 0.3);
}

.nav-right {
    display: flex;
    gap: 25px;
}

.nav-right a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-right a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-right a:hover {
    color: var(--primary-color);
}

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

.nav-mobile {
    display: none;
}

#mobile-menu {
    display: none;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

    .nav-mobile {
        display: block;
    }

    #menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background-color: var(--primary-color);
        color: var(--text-light);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
        box-shadow: 0 4px 6px rgba(52, 73, 94, 0.1);
    }

    #menu-toggle:hover {
        background-color: var(--secondary-color);
    }

    #menu-toggle:active {
        transform: scale(0.98);
    }

    #menu-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
    }

    #mobile-menu {
        display: none;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 15px 5%;
        box-shadow: 0 4px 6px rgba(52, 73, 94, 0.1);
    }

    #mobile-menu.open {
        display: flex;
    }

    #mobile-menu a {
        text-decoration: none;
        color: var(--text-secondary);
        font-weight: 400;
        font-size: 1rem;
        transition: color 0.3s ease;
    }

    #mobile-menu a:hover {
        color: var(--primary-color);
    }
}