/* Navbar Style */
.navbar {
    position: fixed;
    /* Always Fixed Now */
    top: 0;
    width: 100%;
    z-index: 1000;
    /* High z-index */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    height: var(--navbar-height);
    display: none;
    /* Hidden by default on mobile */
    align-items: center;
    transition: all 0.3s;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .navbar {
        display: flex;
        /* Visible on desktop */
    }

    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 2rem;
    }
}

.nav-links a {
    font-weight: 700;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- 3. Floating Glass Dock (Mobile Nav) --- */
/* Overrides existing .bottom-nav styles */
.bottom-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(15, 23, 42, 0.85);
    /* Dark Slate */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    /* Pill shape */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
}

.nav-item {
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 0.25rem;
    transition: 0.3s;
    text-decoration: none;
    background: none;
    /* Reset */
    border: none;
    /* Reset */
}

.nav-item.active,
.nav-item:hover {
    color: white;
    transform: translateY(-2px);
    background: none;
    /* Reset */
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

/* The "Start" Button floating above */
/* Pulse Animation for Mobile Dock */
@keyframes float-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.nav-item.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    justify-content: center;
    margin-top: -2.5rem;
    /* Pull it up out of the bar */
    border: 4px solid var(--bg-light);
    /* Cutout effect matches bg */
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);

    /* ADDED PULSE */
    animation: float-pulse 2s infinite;
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
}