/* Header Wrapper Context */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0; /* Creates the floating gap from top of viewport */
    z-index: 1000;
    pointer-events: none; /* Allows clicks to pass through empty header areas */
}

/* The Floating Pill Bar */
.floating-nav-container {
    pointer-events: auto; /* Re-enables interaction for the actual nav element */
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px; /* Constrained elegant width matching reference */
    width: 90%;
    margin: 0 auto;
    padding: 8px 12px 8px 24px; /* Left padded to breathe; right tight for CTA */
    background-color: rgba(10, 11, 12, 0.85); /* Deep charcoal/near-black */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Rounded Pill Styling */
    border-radius: 100px;
    border: 1px solid rgba(181, 184, 188, 0.15); /* Subdued Chrome accent ring */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    /* Smooth transition for scroll dynamic morphing */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll Active State (Triggered by JS) */
.floating-nav-container.nav-scrolled {
    max-width: 800px;
    background-color: rgba(6, 7, 8, 0.95);
    border-color: rgba(181, 184, 188, 0.3); /* Chrome shines brighter on scroll */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Logo Sizing */
.nav-logo-wrapper {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 32px; /* Perfect scale inside the pill */
    width: auto;
    object-fit: contain;
}

/* Nav links alignment */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--chrome-light);
    text-shadow: 0 0 8px rgba(245, 246, 247, 0.4);
}

/* Pill Call To Action Button (Matches right capsule style) */
.nav-btn-cta {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #24272b 0%, #121315 100%);
    color: var(--chrome-mid);
    border: 1px solid rgba(181, 184, 188, 0.25);
    border-radius: 100px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-btn-cta:hover {
    color: var(--chrome-light);
    border-color: var(--chrome-mid);
    box-shadow: 0 0 12px rgba(181, 184, 188, 0.15);
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
   
/* Force the toggle container to stay completely hidden on widescreen layouts */
.nav-kebab-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    /* Hide the default horizontal link alignment */
    .nav-list {
        display: none; /*[cite: 21]*/
        position: absolute;
        top: 75px; /* Sits perfectly beneath the floating bar pill[cite: 21]*/
        right: 20px;
        width: 220px;
        background-color: rgba(18, 19, 21, 0.98); /* Solid dark charcoal matching layout framework[cite: 21]*/
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(181, 184, 188, 0.2); /* Metallic border profile accents[cite: 21]*/
        border-radius: 16px;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
    }
    
    /* Reveal layer rule used by JS toggle class injection hook */
    .nav-list.open {
        display: flex; /*[cite: 21]*/
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-list .nav-link {
        display: block;
        width: 100%;
        padding: 6px 0;
        font-size: 0.9rem;
    }

    /* Kebab Button Core Styles (Enforces strict vertical dot stacking) */
    .nav-kebab-toggle {
        display: flex !important; /* Forces visibility on mobile screens */
        flex-direction: column !important; /* Fixes stacking direction */
        justify-content: center !important; 
        align-items: center !important;
        gap: 3px !important; /* Creates clear spacing between the three separate dots */
        width: 36px;
        height: 36px;
        background: rgba(36, 39, 43, 0.5);
        border: 1px solid rgba(181, 184, 188, 0.15);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* The individual dots */
    .kebab-dot {
        display: block !important;
        width: 4px;
        height: 4px;
        background-color: var(--chrome-mid); /* Metallic grey standard nodes[cite: 21]*/
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    /* Interactive hover states on click activation */
    .nav-kebab-toggle:hover,
    .nav-kebab-toggle.active {
        border-color: var(--chrome-light); /*[cite: 21]*/
        background-color: rgba(36, 39, 43, 0.8); /*[cite: 21]*/
    }

    .nav-kebab-toggle:hover .kebab-dot,
    .nav-kebab-toggle.active .kebab-dot {
        background-color: var(--chrome-light); /* Illuminates chrome white elements[cite: 21]*/
        box-shadow: 0 0 8px var(--chrome-light); /*[cite: 21]*/
    }
    
    /* Disables rotation to keep the three dots neatly upright during drop-down animation */
    .nav-kebab-toggle.active {
        transform: scale(1.05);
    }

    .nav-cta-wrapper {
        display: none; /* Hides main CTA inline positioning frame for viewport balancing[cite: 21]*/
    }
}