.logo {
    position: relative;
    margin-right: 10rem;
}

.logo img {
    height: 11.5rem;
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-47%);
    left: -1.7rem;
    z-index: 1001;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 410;
    color: #3c3c3d;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
    margin-left: 7.5rem;
}

.logo-text .tech {
    color: #5e7c9b;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    border-bottom: 2px solid #e1e3e6;
    padding-top: 24px;
    padding-bottom: 20px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.lang-toggle a.active {
    font-weight: bold;
    text-decoration: underline;
}

.go-back-home {
    text-decoration: none;
    margin-left: auto;
    margin-right: 4.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #000;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 200ms;
}

.nav-links li a:hover {
    color: #5e7c9b;
}

.login-button {
    background-color: #000;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 200ms;
    white-space: nowrap;
    text-decoration: none;
}

.login-button:hover {
    background-color: #5e7c9b;
}

.nav-links li a.login-button {
    background-color: #ffffff;
    color: #000;
    border: 2px solid #000;
    padding: 0.4rem 0.9rem;
    border-radius: 0.4rem;
}

.nav-links li a.login-button:hover {
    background-color: #5e7c9b;
    color: #fff;
    border-color: #5e7c9b;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.language-switcher-modern.desktop-only {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
}

.nav-links .mobile-language-item {
    display: none;
}


.lang-pill {
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5e7c9b;
    border: 1px solid #e0e0e0;
    background-color: #f7f7f7;
    transition: all 0.2s ease;
}

.lang-pill:hover {
    background-color: #e9e9e9;
    color: #1a1a1a;
}

.lang-pill.active {
    color: #fff;
    background-color: #5e7c9b;
    border-color: #5e7c9b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-separator {
    color: #a0a0a0;
    font-size: 0.85rem;
    padding: 0 2px;
}

.language-switcher-mobile-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

.language-switcher-mobile-dropdown a {
    text-decoration: none;
    color: #000;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

.language-switcher-mobile-dropdown a.active {
    color: #5e7c9b;
}

.language-switcher-mobile-dropdown span {
    color: #000;
    font-size: 1.125rem;
}


@media (max-width: 768px) {

    .go-back-home {
        display: block;
        margin-left: 0.5rem;
        margin-right: 1rem;
        padding-left: 0.5rem;
    }
    
    .hero {
        margin-top: 65px;
    }
    
    header nav {
        height: 60px;
        padding: 0 0;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        position: relative;
        margin-right: 0.5rem;
        height: 100%;
    }

    .logo img {
        height: 8rem;
        margin-right: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-47%);
        left: 0.2rem;
        z-index: 1001;
    }
    
    .logo a {
        height: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0.5rem;
        flex-direction: column;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        gap: 0.8rem;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        height: 100%;
        display: flex;
        align-items: center;
        gap: 0.1rem;
        margin-right: 0;
        padding-right: 0.2rem;
    }

    .login-button {
        display: block;
        flex-shrink: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .hamburger {
        display: block;
        flex-shrink: 0;
        font-size: 1.8rem;
        margin-right: 0.5rem;
        margin-top: -0.2rem;
    }

    .language-switcher-modern.desktop-only {
        display: none;
    }

    .nav-links .mobile-language-item {
        display: list-item;
        width: 100%;
        text-align: center;
        border-top: 1px solid #e1e3e6;
        padding-top: 0.8rem;
    }

    .nav-links li a.login-button {
        background-color: #ffffff;
        color: #000;
        border: 2px solid #000;
    }

    .nav-links li a.login-button:hover {
        background-color: #5e7c9b;
        color: #fff;
        border-color: #5e7c9b;
    }

    .nav-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .language-switcher-modern {
        justify-content: flex-end;
        margin: 0;
    }

    .logo img {
        height: 7.5rem;
        left: -1.3rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo-text {
        font-size: 1.2rem;
        margin-left: 5rem;
        letter-spacing: -0.5px;
        font-weight: 250;
        margin-top: -0.5rem;
    }

    .logo-text .tech {
        color: #5e7c9b;
    }
}