

:root {
    --dark-surface: #0a0a0a;
    --dark-secondary: #161616;
    --dark-tertiary: #1e1e1e;
    --dark-border: #2a2a2a;
    --tech-silver: #c0c0c0;
    --tech-platinum: #e5e4e2;
    --tech-steel: #71797e;
    --tech-gunmetal: #2a3439;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(14, 14, 16, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s ease;
}

.header.scrolled {
    background: rgba(14, 14, 16, 0.99);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header.header-hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    padding: 0 0.5rem 0 1.5rem;
    gap: 0.75rem;
    min-width: 0;
}

.logo img {
    height: 3.6855rem;
    width: auto;
    max-height: 3.6855rem;
    max-width: none;
    object-fit: contain; 
    object-position: left center;
    filter: brightness(1.1);
    transition: all 0.3s ease;
    
    aspect-ratio: 3.44 / 1; 
    
    mix-blend-mode: lighten;
}

.logo:hover img {
    filter: brightness(1.3);
    transform: scale(1.02); 
}

.nav {
    display: none; 
    white-space: nowrap;
    flex-shrink: 0;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.09rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 16px;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--tech-silver), var(--tech-platinum));
    transition: width 0.4s ease;
}

.nav a:hover {
    color: var(--tech-silver);
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
}

.mobile-nav-toggle span {
    width: 18px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 1rem;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.6rem 1rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav a:hover {
    background: rgba(192, 192, 192, 0.1);
    color: #ffffff;
}

.mobile-login-btn {
    background: linear-gradient(135deg, var(--tech-silver), var(--tech-platinum)) !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border-radius: 0.4rem !important;
    margin-top: 0.5rem !important;
}

.mobile-login-btn:hover {
    background: linear-gradient(135deg, var(--tech-platinum), #ffffff) !important;
    transform: translateY(-1px);
}

.external-nav-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    padding: 10px 16px !important;
    margin-right: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.external-nav-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.external-nav-link:hover::before {
    transform: translateX(100%);
}

.external-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 1);
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
}

.external-nav-link svg {
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.external-nav-link:hover svg {
    transform: rotate(90deg) scale(1.1);
    color: #ffffff;
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.user-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.user-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.user-icon.logged-in {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.08);
}

.user-icon.logged-in:hover {
    background-color: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
}

.user-icon.logged-in::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    border: 2px solid #000000;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-login {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
    border: 1px solid rgba(192, 192, 192, 0.3);
    color: var(--tech-silver);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--tech-silver), var(--tech-platinum));
    color: #000000;
    border-color: var(--tech-silver);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.2);
}

@media (max-width: 767px) {
    
    .header-content {
        padding: 0 0.75rem;
        justify-content: space-between;
    }

    .logo {
        margin-left: 0;
    }

    
    .logo img {
        height: 2.5rem;
        max-height: 2.5rem;
        width: auto;
        margin-left: 0 !important;
        object-fit: contain;
        aspect-ratio: 3.44 / 1;
        mix-blend-mode: lighten;
    }

    .header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .external-nav-link {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        gap: 0.25rem !important;
        margin-right: 0;
    }

    .external-nav-link svg {
        width: 14px !important;
        height: 14px !important;
    }

    .btn-login {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

}

@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none;
    }
    
    .nav {
        display: flex;
        gap: 2rem;
        margin-left: 1rem;
        margin-top: 2px;
        white-space: nowrap;
        flex-shrink: 0;
        align-items: center;
        flex: 1;
    }
    
    .nav a {
        font-size: 0.86rem;
        padding: 8px 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .external-nav-link {
        padding: 6px 10px !important;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .nav { 
        gap: 2.5rem;
        margin-left: 1.5rem;
    }
    
    .nav a {
        font-size: 0.92rem;
        padding: 10px 8px;
    }
    
    .external-nav-link {
        padding: 8px 12px !important;
        font-size: 0.85rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .nav { 
        gap: 3rem;
        margin-left: 2rem;
    }
    
    .nav a {
        font-size: 1.04rem;
        padding: 12px 14px;
    }
    
    .external-nav-link {
        padding: 10px 14px !important;
        font-size: 0.9rem;
    }
    
    .header-actions {
        gap: 1.25rem;
    }
}

@media (min-width: 1440px) {
    .nav { 
        gap: 3rem;
        margin-left: 6rem;
        max-width: 600px;
    }
    
    .nav a {
        font-size: 1.09rem;
        padding: 12px 16px;
    }
    
    .external-nav-link {
        padding: 10px 16px !important;
        font-size: 0.95rem;
    }
}

