:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-color: #ffffff;
    --accent-color: #ff9e42;
    /* Sunset sunny orange */
}

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

body {
    width: 100vw;
    height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    overflow: hidden;
    /* Prevent scrolling if just a background */
    background: url('Images/Wuhu%20Island.png') no-repeat center center/cover;
}

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Logo */
/* Logo */
.nav-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-left,
.nav-right {
    flex-shrink: 0;
    /* Prevent logo and mute button from shrinking */
}

/* Navigation Links */
/* Navigation Links */
.nav-center {
    display: flex;
    gap: 15px;
    flex: 1;
    /* Take up remaining space */
    min-width: 0;
    /* Enable shrinking below content size */
    overflow-x: auto;
    /* Scroll horizontally if needed */
    margin: 0 20px;
    align-items: center;
    /* Hide scrollbar for cleaner look, but allow scrolling */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-center::-webkit-scrollbar {
    display: none;
}

.nav-item {
    background: none;
    border: none;
    color: #000000;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
    flex-shrink: 0;
    /* Prevent items from squishing */
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #000000;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Right Section (Audio) */
.icon-btn {
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-nav {
        width: 95%;
        padding: 0 15px;
    }

    .nav-center {
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        margin: 0 10px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
    }

    .nav-center::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Opera */
    }

    .nav-item {
        font-size: 0.9rem;
        padding: 6px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-logo {
        height: 30px;
    }
}