/*
 * ┌─────────────────────────────────────────────────────────────────┐
 * │  STEP 4 of 13 — css/navigation.css                              │
 * │                                                                 │
 * │  The sticky top navbar and the hamburger menu for mobile.       │
 * │                                                                 │
 * │  KEY CONCEPT: position: sticky.                                 │
 * │  Unlike position: fixed (which removes an element from flow),   │
 * │  sticky keeps the element in flow until you scroll past it,     │
 * │  then it "sticks" to top: 0. The z-index: 1000 ensures it      │
 * │  floats above all section content.                              │
 * │                                                                 │
 * │  KEY CONCEPT: the hamburger is hidden on desktop (display:none) │
 * │  and revealed at 768px in responsive.css. This file only sets   │
 * │  its base (desktop) appearance. The active animation for the    │
 * │  X transform is also in responsive.css since it only applies    │
 * │  at mobile widths.                                              │
 * │                                                                 │
 * │  The JS that wires the click events lives in js/navigation.js.  │
 * │                                                                 │
 * │  ▶  Next: See css/components.css (Step 5)                      │
 * └─────────────────────────────────────────────────────────────────┘
 */

/* ===================================
   Navigation
   =================================== */
#navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: background-color var(--transition-fast);
    /* Minimum touch target for mobile */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: var(--transition-medium);
    border-radius: 2px;
}
