/* Navigation */
.main-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 3px solid rgba(255, 215, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gleefulText 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: rgb(7, 51, 145);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(44, 115, 201, 0.932);
    position: relative;
    overflow: hidden;
}

.nav-link:hover::before {
    left: 100%;
}

/* Hide current page link on mobile only */
@media only screen and (max-width: 768px) {
    .nav-link.current-page {
        display: none;
    }

    /* Reduce spacing between menu items by 20% on mobile */
    .nav-links {
        gap: 0.6rem; /* Slightly less space between items */
        margin-left: 1rem; /* More space between logo and menu items */
    }

    /* Prevent Webwallet from being highlighted or underlined on mobile */
    .nav-link[href*="GleeCoin-webwallet"]:hover,
    .nav-link[href*="GleeCoin-webwallet"].active {
        background: transparent;
        color: #333;
        text-decoration: none;
    }

    .nav-container {
        padding: 0.5rem 1rem; /* Reduced padding */
        justify-content: space-between;
    }

    .logo h1 {
        font-size: 1.2rem; /* Smaller logo */
        margin-right: 0.5rem;
    }

    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
        color: #000000; /* Change to black */
        text-shadow: none; /* Remove shading */
        background: transparent; /* Ensure no background shading */
    }
}

/* Adjust other media queries for finer control */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1.2rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-links {
        gap: 0.6rem;
    }
    
    .nav-links > * {
        margin-left: 0.4rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media only screen and (min-width: 361px) and (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 0.4rem;
    }
    
    .nav-links > * {
        margin-left: 0.3rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}

@media only screen and (max-width: 360px) {
    .nav-container {
        padding: 0.4rem 0.6rem;
    }
    
    .logo h1 {
        font-size: 1.0rem;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-links > * {
        margin-left: 0.2rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}