/* --- Stunning Navbar Upgrades --- */
.glass-nav {
    background: rgba(15, 23, 42, 0.1); /* Highly transparent at the top */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* This class gets added by Javascript when you scroll down */
.glass-nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Animated Hover Links */
.nav-link {
    position: relative;
    padding-bottom: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #38bdf8;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px #38bdf8;
    transform: translateX(-50%);
}

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

/* Light-glare effect for the Login Button */
.login-btn-stunning {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-btn-stunning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.login-btn-stunning:hover::before {
    left: 100%;
}


/* Pad the body on mobile so content doesn't hide behind the bottom nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; 
    }
}
