/* BadCode64 — Personal Developer Site
   Dark / Retro-Futuristic / Technical Elegance
   ============================================= */

/* ─── DESIGN TOKENS ─────────────────────────── */
:root {
	--bg:           #0a0a0e;
	--bg2:          #0f0f14;
	--bg3:          #141419;
	--panel:        #161620;
	--panel2:       #1c1c28;
	--border:       #252535;
	--border2:      #2e2e42;

	--accent:       #4f8cff;       /* kék — primary */
	--accent2:      #7c5cfc;       /* lila — secondary */
	--accent-dim:   rgba(79,140,255,.12);
	--accent2-dim:  rgba(124,92,252,.10);

	--retro:        #c8ff00;       /* phosphor zöld — kiemelések */
	--retro-dim:    rgba(200,255,0,.08);

	--text:         #e8e8f0;
	--text2:        #9898b0;
	--text3:        #5a5a72;

	--font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
	--font-sans:    'Inter', 'Segoe UI', system-ui, sans-serif;

	--r:            8px;
	--r2:           12px;
	--r3:           20px;

	--transition:   0.22s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET & BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
	font-family: var(--font-sans);
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7cb0ff; }

::selection { background: rgba(79,140,255,.3); color: #fff; }

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 {
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.18;
}
.mono { font-family: var(--font-mono); }

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── LAYOUT UTILS ───────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--sm { padding: 60px 0; }

/* ─── NAV ─────────────────────────────────────── */
.nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	height: 60px;
	display: flex; align-items: center;
	background: rgba(10,10,14,.80);
	backdrop-filter: blur(18px) saturate(1.4);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav__inner {
	max-width: 1100px; margin: 0 auto; padding: 0 28px;
	width: 100%;
	display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
	font-family: var(--font-mono);
	font-size: 16px; font-weight: 700;
	color: var(--text) !important;
	display: flex; align-items: center; gap: 8px;
}
.nav__logo-bracket { color: var(--text3); }
.nav__logo-name { color: var(--retro); }
.nav__links {
	display: flex; gap: 4px; list-style: none;
}
.nav__links a {
	font-size: 13px; font-weight: 500;
	color: var(--text2);
	padding: 6px 14px; border-radius: var(--r);
	transition: color var(--transition), background var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
	color: var(--text);
	background: var(--panel2);
}
.lang-switch {
	display: flex; align-items: center; gap: 2px;
	margin-left: 8px; padding-left: 12px;
	border-left: 1px solid var(--border);
}
.lang-switch a {
	font-family: var(--font-mono);
	font-size: 11px; font-weight: 600;
	color: var(--text3);
	padding: 4px 7px; border-radius: var(--r);
	letter-spacing: .04em;
	transition: color var(--transition), background var(--transition);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
	color: var(--accent); background: var(--accent-dim);
}
.nav__burger {
	display: none; flex-direction: column; gap: 5px;
	background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span {
	display: block; width: 22px; height: 2px;
	background: var(--text2); border-radius: 2px;
	transition: var(--transition);
}

/* ─── MOBILE MENU ────────────────────────────── */
.nav__mobile {
	display: none; position: fixed;
	top: 60px; left: 0; right: 0;
	background: var(--bg2);
	border-bottom: 1px solid var(--border);
	padding: 16px 28px 20px;
	z-index: 99;
	flex-direction: column; gap: 2px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
	color: var(--text2); font-size: 15px; font-weight: 500;
	padding: 10px 12px; border-radius: var(--r);
	transition: color var(--transition), background var(--transition);
}
.nav__mobile a:hover { color: var(--text); background: var(--panel2); }
.nav__mobile .lang-switch {
	display: flex; gap: 4px; margin-top: 8px;
	padding-top: 12px; border-top: 1px solid var(--border);
	border-left: none; margin-left: 0; padding-left: 0;
}
.nav__mobile .lang-switch a {
	font-family: var(--font-mono); font-size: 12px; font-weight: 600;
	color: var(--text3); padding: 6px 12px; border-radius: var(--r);
}
.nav__mobile .lang-switch a:hover { color: var(--text); }
.nav__mobile .lang-switch a.active {
	color: var(--accent); background: var(--accent-dim);
}

/* ─── HERO ───────────────────────────────────── */
.hero {
	min-height: 100vh;
	display: flex; flex-direction: column; justify-content: center;
	padding: 100px 0 80px;
	position: relative; overflow: hidden;
}
.hero__bg {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 60px 60px;
	opacity: .20;
	mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero__glow1 {
	position: absolute; top: -200px; left: -200px;
	width: 700px; height: 700px; border-radius: 50%;
	background: radial-gradient(circle, rgba(79,140,255,.10) 0%, transparent 70%);
}
.hero__glow2 {
	position: absolute; bottom: -100px; right: -100px;
	width: 500px; height: 500px; border-radius: 50%;
	background: radial-gradient(circle, rgba(124,92,252,.08) 0%, transparent 70%);
}
.hero__content {
	position: relative; z-index: 1;
	max-width: 1100px; margin: 0 auto; padding: 0 28px;
}
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 12px;
	color: var(--text3); letter-spacing: .12em; text-transform: uppercase;
	margin-bottom: 28px;
}
.hero__eyebrow::before {
	content: ''; display: block;
	width: 28px; height: 1px; background: var(--retro); opacity: .6;
}
.hero__title {
	font-size: clamp(48px, 8vw, 92px);
	font-weight: 800; letter-spacing: -0.035em;
	line-height: 1.0;
	margin-bottom: 24px;
}
.hero__title .name { color: var(--text); display: block; }
.hero__title .tag {
	color: var(--text3); font-size: .55em;
	font-family: var(--font-mono); font-weight: 400;
	letter-spacing: -.01em;
	display: block;
}
.hero__title .tag #typewriter {
	display: inline-block;
	min-width: 27ch;
	text-align: left;
}
.hero__cursor {
	display: inline-block; width: 2px; height: .85em;
	background: var(--retro); margin-left: 2px; vertical-align: middle;
	animation: blink 1.1s step-end infinite;
}
.hero__subtitle {
	font-size: clamp(16px, 2vw, 19px);
	color: var(--text2);
	max-width: 560px;
	line-height: 1.7;
	margin-bottom: 40px;
}
.hero__line { color: var(--accent); font-weight: 500; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 64px; }

.hero__status {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 12px; color: var(--text3);
}
.hero__status-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34,197,94,.15);
	animation: pulse-green 2s ease-in-out infinite;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 600; line-height: 1;
	padding: 12px 24px; border-radius: var(--r);
	border: 1px solid transparent;
	cursor: pointer; transition: all var(--transition);
	text-decoration: none;
}
.btn--primary {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}
.btn--primary:hover {
	background: #3d7aef;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(79,140,255,.30);
}
.btn--outline {
	background: transparent;
	color: var(--text2);
	border-color: var(--border2);
}
.btn--outline:hover {
	background: var(--panel2);
	color: var(--text);
	border-color: var(--border2);
	transform: translateY(-1px);
}
.btn--ghost {
	background: transparent; color: var(--text2);
	border-color: transparent; padding: 12px 16px;
}
.btn--ghost:hover { background: var(--panel2); color: var(--text); }
.btn--sm { font-size: 12px; padding: 8px 16px; }

/* ─── SECTION HEADER ─────────────────────────── */
.section-header { margin-bottom: 52px; }
.section-header__label {
	font-family: var(--font-mono); font-size: 11px;
	color: var(--accent); letter-spacing: .14em; text-transform: uppercase;
	margin-bottom: 12px; display: block;
}
.section-header__title {
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 700; color: var(--text);
}
.section-header__desc {
	font-size: 16px; color: var(--text2);
	max-width: 520px; margin-top: 12px; line-height: 1.7;
}

/* ─── ABOUT STRIP ────────────────────────────── */
.about-strip {
	background: var(--bg2);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 60px 0;
}
.about-strip__inner {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 60px; align-items: center;
}
.about-strip__text p {
	font-size: 16px; color: var(--text2); line-height: 1.8;
	margin-bottom: 18px;
}
.about-strip__text p:last-child { margin-bottom: 0; }
.about-strip__text strong { color: var(--text); font-weight: 600; }
.about-strip__text .accent { color: var(--accent); }
.about-strip__stats {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.stat-card {
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--r2); padding: 20px;
	transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border2); }
.stat-card__num {
	font-size: 28px; font-weight: 800;
	color: var(--text); letter-spacing: -0.04em; line-height: 1;
	margin-bottom: 4px;
}
.stat-card__num .unit { font-size: .55em; color: var(--text3); font-weight: 500; }
.stat-card__label { font-size: 12px; color: var(--text3); }

/* ─── SKILLS ──────────────────────────────────── */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}
.skill-card {
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--r2); padding: 28px;
	transition: border-color var(--transition), transform var(--transition), background var(--transition);
	position: relative; overflow: hidden;
}
.skill-card::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
	background: var(--accent); opacity: 0;
	transition: opacity var(--transition);
}
.skill-card:hover { border-color: var(--border2); transform: translateY(-3px); background: var(--panel2); }
.skill-card:hover::before { opacity: 1; }
.skill-card--retro::before { background: var(--retro); }
.skill-card--purple::before { background: var(--accent2); }
.skill-card__icon {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: var(--accent-dim); border-radius: var(--r);
	font-size: 20px; margin-bottom: 18px;
}
.skill-card--retro .skill-card__icon { background: var(--retro-dim); }
.skill-card--purple .skill-card__icon { background: var(--accent2-dim); }
.skill-card__title {
	font-size: 15px; font-weight: 700; color: var(--text);
	margin-bottom: 10px;
}
.skill-card__desc { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ─── PROJECTS ────────────────────────────────── */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}
.project-card {
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--r2); padding: 28px;
	display: flex; flex-direction: column;
	transition: border-color var(--transition), transform var(--transition);
	position: relative;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.project-card__top {
	display: flex; justify-content: space-between; align-items: flex-start;
	margin-bottom: 14px;
}
.project-card__type {
	font-family: var(--font-mono); font-size: 10px;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--text3); padding: 4px 8px;
	border: 1px solid var(--border); border-radius: 4px;
}
.project-card__status {
	display: flex; align-items: center; gap: 6px;
	font-size: 11px; color: var(--text3);
}
.project-card__status-dot {
	width: 6px; height: 6px; border-radius: 50%;
}
.dot--active { background: #22c55e; box-shadow: 0 0 4px rgba(34,197,94,.5); }
.dot--wip    { background: #f59e0b; box-shadow: 0 0 4px rgba(245,158,11,.5); }
.dot--arch   { background: #6b7280; }

.project-card__title {
	font-size: 18px; font-weight: 700; color: var(--text);
	margin-bottom: 8px;
}
.project-card__desc {
	font-size: 14px; color: var(--text2); line-height: 1.65;
	flex: 1; margin-bottom: 20px;
}
.project-card__tags {
	display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
}
.tag {
	font-family: var(--font-mono); font-size: 11px; font-weight: 500;
	color: var(--accent); background: var(--accent-dim);
	padding: 3px 8px; border-radius: 4px;
}
.tag--retro { color: var(--retro); background: var(--retro-dim); }
.tag--purple { color: #a78bfa; background: rgba(124,92,252,.12); }
.tag--gray { color: var(--text3); background: var(--panel2); }
.project-card__footer {
	display: flex; gap: 10px; align-items: center;
	border-top: 1px solid var(--border); padding-top: 16px;
}

/* ─── STACK ───────────────────────────────────── */
.stack-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack-grid {
	display: flex; flex-wrap: wrap; gap: 10px;
}
.stack-item {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 13px; font-weight: 500;
	color: var(--text2);
	background: var(--panel); border: 1px solid var(--border);
	padding: 8px 14px; border-radius: var(--r);
	transition: all var(--transition);
}
.stack-item:hover { color: var(--text); border-color: var(--border2); background: var(--panel2); }
.stack-item--low { color: var(--retro); border-color: rgba(200,255,0,.2); }
.stack-item--low:hover { background: var(--retro-dim); border-color: rgba(200,255,0,.4); }
.stack-item--accent { color: var(--accent); border-color: rgba(79,140,255,.2); }
.stack-item--accent:hover { background: var(--accent-dim); border-color: rgba(79,140,255,.4); }
.stack-item__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ─── PHILOSOPHY ─────────────────────────────── */
.philosophy-grid {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.philosophy-item {
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--r2); padding: 28px 32px;
	display: flex; gap: 20px; align-items: flex-start;
	transition: border-color var(--transition);
}
.philosophy-item:hover { border-color: var(--border2); }
.philosophy-item__num {
	font-family: var(--font-mono); font-size: 11px;
	color: var(--text3); flex-shrink: 0; padding-top: 3px;
}
.philosophy-item__title {
	font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.philosophy-item__text { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ─── CONTACT ─────────────────────────────────── */
.contact-section { background: var(--bg); }
.contact-box {
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--r3); padding: 52px 60px;
	display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
	align-items: center;
}
.contact-box__title {
	font-size: clamp(26px, 3.5vw, 38px);
	font-weight: 700; color: var(--text);
	margin-bottom: 14px;
}
.contact-box__desc { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 28px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
	display: flex; align-items: center; gap: 14px;
	background: var(--panel2); border: 1px solid var(--border);
	border-radius: var(--r); padding: 14px 18px;
	transition: all var(--transition); color: var(--text2);
}
.contact-link:hover {
	border-color: var(--accent); color: var(--text);
	background: var(--accent-dim); transform: translateX(4px);
}
.contact-link__icon {
	width: 36px; height: 36px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	background: var(--border); font-size: 16px; flex-shrink: 0;
}
.contact-link__label { font-size: 11px; color: var(--text3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.contact-link__value { font-size: 14px; font-weight: 500; color: inherit; }

/* ─── FOOTER ──────────────────────────────────── */
.footer {
	background: var(--bg2);
	border-top: 1px solid var(--border);
	padding: 32px 0;
}
.footer__inner {
	display: flex; justify-content: space-between; align-items: center;
	flex-wrap: wrap; gap: 12px;
}
.footer__copy {
	font-family: var(--font-mono); font-size: 12px; color: var(--text3);
}
.footer__links {
	display: flex; gap: 20px; list-style: none;
}
.footer__links a { font-size: 13px; color: var(--text3); }
.footer__links a:hover { color: var(--text2); }

/* ─── DIVIDER ─────────────────────────────────── */
.divider {
	width: 100%; height: 1px;
	background: linear-gradient(90deg, transparent, var(--border2), transparent);
	margin: 0;
}

/* ─── TERMINAL BLOCK ─────────────────────────── */
.terminal {
	background: #0d0d12;
	border: 1px solid var(--border);
	border-radius: var(--r2); padding: 20px 24px;
	font-family: var(--font-mono); font-size: 13px;
}
.terminal__bar {
	display: flex; gap: 6px; margin-bottom: 16px;
}
.terminal__dot {
	width: 10px; height: 10px; border-radius: 50%;
}
.terminal__dot:nth-child(1) { background: #ff5f57; }
.terminal__dot:nth-child(2) { background: #febc2e; }
.terminal__dot:nth-child(3) { background: #28c840; }
.terminal__line { line-height: 1.8; }
.terminal__prompt { color: var(--retro); }
.terminal__cmd { color: var(--text2); }
.terminal__out { color: var(--text3); }
.terminal__var { color: var(--accent); }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes blink {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0; }
}
@keyframes pulse-green {
	0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
	50%       { box-shadow: 0 0 0 5px rgba(34,197,94,.25); }
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
	opacity: 0; transform: translateY(28px);
	transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible {
	opacity: 1; transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
	.about-strip__inner { grid-template-columns: 1fr; gap: 36px; }
	.philosophy-grid { grid-template-columns: 1fr; }
	.contact-box { grid-template-columns: 1fr; padding: 36px 28px; gap: 36px; }
}
@media (max-width: 768px) {
	.nav__links { display: none; }
	.nav__burger { display: flex; }
	.section { padding: 60px 0; }
	.container { padding: 0 18px; }
	.container--wide { padding: 0 18px; }
	.hero { padding: 90px 0 60px; }
	.hero__ctas { flex-direction: column; width: fit-content; }
	.skills-grid { grid-template-columns: 1fr; }
	.projects-grid { grid-template-columns: 1fr; }
	.about-strip__stats { grid-template-columns: 1fr 1fr; }
	.footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
	.about-strip__stats { grid-template-columns: 1fr; }
	.contact-box { padding: 28px 20px; }
}
