I always forget, I use "Marxism" (well, when seriously) to mostly refer to Marxist history and historiography. It's a habit I need to break.
But I did go through a "political evolution" that always involved dancing around the legitimacy of the state until I couldn't prevent the logic anymore. The closest I got to a "mainstream anything" was a short period of basically Ron Paul Republicanism in the early 2000s. And arguing with people who were posting things against the Iraq War by citing UN resolutions, the 1991 ceasefire and other stuff they couldn't argue against because they only knew the "WAR FOR OIL" talking points, even though my real position was more of a "if we're going to fuck with Iraq, let's just get rid of Saddam and drop it already" sort of "war to end war" stance that I'm somewhat ashamed of having taken.
It's probably not valid for me to ever refer to a Marxist period since I've always had a problem with the part where we establish a dictatorship of the proletariat and then the state withers away. And Marx's explanation for this underpants gnomes logic was "IT'S SCIENCE!" Then I read either Bakunin or Kropotkin (forget which first) and I was forever like lol Marx

Hayek's
Road to Serfdom is probably the most influential on me though because the construction he uses got me to put together the pieces of the Pretense of Knowledge which goes back to the whole Socrates or whoever's "knowing what you don't know" which sort of dismantled all the "standard ideologies" and left me vulnerable to the anarchist temptations. So other than Hayek and the Federalist Papers I suppose, I took somewhat of a backwards path into finding more in the company of Mises, Rothbard, Nozick, etc. Which is probably how I avoided Rand since her gibberish is so hostile to their more peaceful (other than Rothbard) and logic-based thinking.
Though in practice I'm an evolutionist not a revolutionist, I just think people need to be reminded of their underlying principles from time to time. You know so that once we've established they're a whore for the state we can negotiate prices.