/* Reset margins to ensure header is flush with top */
html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

header {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide old floating header elements */
.logo-header,
.floating-header {
    display: none !important;
}

/* Professional Header Styles */
.site-header {
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(12, 10, 9, 0.98);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.85;
}

.header-logo img {
    width: 32px;
    height: 32px;
    display: block;
    filter: invert(1);
}

.header-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fafaf9;
    letter-spacing: -0.3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav-link {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    color: #a8a29e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fafaf9;
}

.header-nav-link svg {
    display: none;
}

.header-nav-link.primary {
    background: transparent;
    color: #fafaf9;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px;
    color: #d6d3d1;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fafaf9;
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Dropdown */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(12, 10, 9, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    pointer-events: none;
}

.mobile-nav-menu.show {
    display: block;
    max-height: 400px;
    padding: 16px 24px;
    pointer-events: auto;
}

.mobile-nav-menu .header-nav-link {
    width: 100%;
    margin-bottom: 8px;
    justify-content: flex-start;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.mobile-nav-menu .header-nav-link:last-child {
    margin-bottom: 0;
}

.mobile-nav-menu .header-nav-link:hover,
.mobile-nav-menu .header-nav-link:active {
    background: rgba(255, 255, 255, 0.08);
    color: #fafaf9;
}

/* Main content spacing to account for fixed header */
main {
    padding-top: 56px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 52px;
    }
    
    .header-logo img {
        width: 32px;
        height: 32px;
    }
    
    .header-logo-text {
        font-size: 20px;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-menu {
        top: 52px;
    }
    
    main {
        padding-top: 52px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        height: 48px;
    }
    
    .header-logo img {
        width: 28px;
        height: 28px;
    }
    
    .header-logo-text {
        font-size: 18px;
    }
    
    .mobile-nav-menu {
        top: 48px;
    }
    
    main {
        padding-top: 48px;
    }
}

