:root {
    --header-brand: var(--brand-main);
    --header-text-high: var(--text-high);
    --header-text-med: var(--text-med);
    --header-border: var(--border-subtle);
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-radius-md: 14px;
    --header-trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Component Reset to prevent interference with page styles */
.site-header, .site-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Floating Sticky Base Architecture */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border);
    transition: var(--header-trans);
}

.header-container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Alignment & Constraints */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--header-text-high);
    letter-spacing: -0.02em;
}



/* Controls Center */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login {
    background: transparent;
    border: none;
    color: var(--header-text-high);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--header-trans);
}

.btn-login:hover {
    color: var(--header-brand);
}

.btn-build {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--header-brand);
    color: white;
    border-radius: var(--header-radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 169, 224, 0.2);
    transition: var(--header-trans);
}

.btn-build:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 169, 224, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--header-text-high);
    cursor: pointer;
}

/* Isolated Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-overlay.open { right: 0; }

.mobile-nav-content {
    width: 80%;
    max-width: 360px;
    height: 100%;
    background: #ffffff;
    padding: 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-mobile {
    background: #f8fafc;
    border: 1px solid var(--header-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-links .nav-link {
    font-size: 1.15rem;
}

/* Navigation Link Engine */
.desktop-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.site-header .nav-link {
    color: var(--header-text-med);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--header-trans);
    position: relative;
    padding: 6px 0;
}

.site-header .nav-link:hover {
    color: var(--header-brand);
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--header-brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.site-header .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Contextual Breakpoint Rule */
@media (max-width: 992px) {
    .desktop-nav, .hidden-mobile { display: none !important; }
    .mobile-toggle { display: block !important; }
}
