/* Header Styles */
header {
    padding: 8px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.05) 0%, rgba(26, 26, 46, 0.05) 50%, rgba(22, 33, 62, 0.05) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.1;
    position: relative;
}

.logo h1 span {
    background: linear-gradient(135deg, #00d4ff 0%, #20B8FF 30%, #7DD3FC 60%, #A78BFA 85%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3));
    display: inline-block;
    background-size: 200% 200%;
    animation: textGradientShimmer 8s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1.14rem !important;
    padding: 8px 21px !important;
    margin: 0 !important;
    position: relative !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: -0.01em !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    background: transparent !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* Hover state */
.nav-links a:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Active/pressed state */
.nav-links a:active {
    transform: scale(0.98) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Text gradient shimmer animation */
@keyframes textGradientShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3)) brightness(1);
    }
    25% {
        background-position: 50% 100%;
        filter: drop-shadow(0 2px 12px rgba(0, 212, 255, 0.5)) brightness(1.2);
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 2px 16px rgba(168, 85, 247, 0.4)) brightness(1.3);
    }
    75% {
        background-position: 50% 0%;
        filter: drop-shadow(0 2px 12px rgba(0, 255, 157, 0.4)) brightness(1.1);
    }
}

/* Header Mobile Responsive */
@media (max-width: 768px) {
    header {
        padding: 8px 0;
    }

    nav {
        padding: 0 15px;
    }

    /* Scale down logo */
    .logo img {
        width: 40px;
        height: 40px;
    }

    /* Scale down NewroHelp text */
    .logo h1 {
        font-size: 24px !important;
    }

    /* Hide nav links except login on mobile */
    .nav-links {
        gap: 8px;
    }

    .nav-links li:not(:last-child) {
        display: none;
    }

    .nav-links a {
        font-size: 0.9rem !important;
        padding: 6px 16px !important;
    }

    /* Simplify backdrop filters on mobile - major performance gain */
    header {
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }

    .logo h1 span {
        animation-duration: 15s !important;
        /* Keep original gradient for logo - don't override */
        -webkit-font-smoothing: antialiased;
    }
}

@media (max-width: 480px) {
    /* Further scaling for small devices */
    header {
        padding: 6px 0;
    }

    nav {
        padding: 0 10px;
    }

    /* Even smaller logo and text */
    .logo img {
        width: 35px;
        height: 35px;
    }

    .logo h1 {
        font-size: 20px !important;
        letter-spacing: -0.5px !important;
    }

    /* Smaller login button */
    .nav-links a {
        font-size: 0.85rem !important;
        padding: 5px 14px !important;
        border-radius: 18px !important;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 4px 0;
    }

    .logo img {
        width: 30px;
        height: 30px;
    }

    .logo h1 {
        font-size: 18px !important;
    }

    .nav-links a {
        font-size: 0.8rem !important;
        padding: 4px 12px !important;
    }
}
