/* Tubelight Navigation Bar */
.tubelight-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 0.375rem 0;
    background: transparent; /* allow grid to show through */
    backdrop-filter: none;
}

/* Cream Palette Navbar Container */


.nav-item {
    position: relative;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
}

.nav-item:hover {
    color: var(--accent-primary);
}

.nav-item.active {
    background: var(--bg-card);
    color: var(--accent-primary);
    border: 1px solid rgba(196, 150, 90, 0.25);
}

/* Text visibility */
.nav-text {
    display: none;
}

@media (min-width: 768px) {
    .nav-text {
        display: inline;
    }
}

/* Mobile hamburger */
.navbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.navbar-toggle .bar { display: none; }
.navbar-toggle-icon { filter: invert(16%) sepia(9%) saturate(707%) hue-rotate(336deg) brightness(97%) contrast(91%); }

@media (min-width: 768px) {
    .navbar-toggle { display: none; }
}

.mobile-drawer { display: none; position: fixed; top: 105px; left: 56px; right: 0; background: var(--bg-card); padding: 0.5rem; z-index: 49; border-radius: 12px;}
.mobile-link { display: block; padding: 0.75rem 1rem; color: var(--text-primary); text-decoration: none; border-radius: 8px; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; border: 1px solid transparent; transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.mobile-link::before { content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background 0.2s ease, transform 0.2s ease; }
.mobile-link:hover, .mobile-link:focus-visible { background: linear-gradient(90deg, rgba(196, 150, 90, 0.14), rgba(196, 150, 90, 0.06)); color: var(--text-primary); }
.mobile-link:hover::before, .mobile-link:focus-visible::before { background: var(--accent-primary); transform: translateY(-50%) scale(1.2); }
.mobile-link:active { transform: translateY(1px); }

/* Stronger hover feedback when a mouse is present */
@media (hover: hover) and (pointer: fine) {
  .mobile-link:hover, .mobile-link:focus-visible {
    background: rgba(196, 150, 90, 0.18);
    border-color: rgba(196, 150, 90, 0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.04);
  }
}

@media (max-width: 767px) {
    .navbar-container { display: none !important; }
    .mobile-drawer[aria-hidden="false"] { display: block; }
}

/* Icon visibility */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Tubelight Effect */
.tubelight-effect {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-item.active .tubelight-effect {
    opacity: 1;
}

.tubelight-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 9999px;
    animation: tubeLightPulse 2s ease-in-out infinite;
}

.tubelight-glow-2 {
    position: absolute;
    top: -0.5rem;
    left: -1rem;
    width: 3rem;
    height: 1.5rem;
    background: rgba(196, 150, 90, 0.2);
    border-radius: 9999px;
    filter: blur(8px);
    animation: tubeLightGlow 2s ease-in-out infinite;
}

.tubelight-glow-3 {
    position: absolute;
    top: -0.25rem;
    left: 0;
    width: 2rem;
    height: 1.5rem;
    background: rgba(196, 150, 90, 0.2);
    border-radius: 9999px;
    filter: blur(4px);
    animation: tubeLightGlow 2s ease-in-out infinite 0.5s;
}

/* Tubelight Animations */
@keyframes tubeLightPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(0.9);
    }
}

@keyframes tubeLightGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Enhanced hover effects */
.nav-item:hover .tubelight-effect {
    opacity: 0.5;
}

.nav-item:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .navbar-container {
        gap: 0.5rem;
        padding: 0.2rem;
    }
    
    .nav-item {
        padding: 0.5rem;
        min-width: 2.25rem;
        height: 2.25rem;
    }
}

/* Desktop specific adjustments */
@media (min-width: 768px) {
    .nav-item {
        padding: 0.5rem 1.5rem;
        min-width: auto;
        height: 2.5rem;
    }
}

/* Smooth transition for active state changes */
.nav-item .tubelight-effect {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced glassmorphism for better visibility */


/* Active state background animation */
.nav-item.active {
    background: linear-gradient(45deg, rgba(96, 165, 250, 0.1), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.1);
} 