/*
  modern site styles
  - responsive layout
  - light/dark support (prefers-color-scheme + user toggle)
  - reduced-motion + high-contrast considerations
*/

/* typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	color-scheme: light dark;

	/* dark theme (default) */
	--bg: #0b0d10;
	--bg-elev: rgba(255, 255, 255, 0.06);
	--bg-elev-2: rgba(255, 255, 255, 0.09);
	--text: #e8eaf0;
	--muted: rgba(232, 234, 240, 0.72);
	--border: rgba(255, 255, 255, 0.12);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

	--accent: #7c3aed;
	--accent-2: #3b82f6;
	--good: #22c55e;

	--radius: 16px;
	--radius-sm: 12px;
	--max: 1100px;

	--font: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
		Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}

@media (prefers-color-scheme: light) {
	:root {
		--bg: #f8fafc;
		--bg-elev: rgba(15, 23, 42, 0.04);
		--bg-elev-2: rgba(15, 23, 42, 0.06);
		--text: #0f172a;
		--muted: rgba(15, 23, 42, 0.68);
		--border: rgba(15, 23, 42, 0.14);
		--shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
	}
}

:root[data-theme='dark'] {
	color-scheme: dark;
	--bg: #0b0d10;
	--bg-elev: rgba(255, 255, 255, 0.06);
	--bg-elev-2: rgba(255, 255, 255, 0.09);
	--text: #e8eaf0;
	--muted: rgba(232, 234, 240, 0.72);
	--border: rgba(255, 255, 255, 0.12);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme='light'] {
	color-scheme: light;
	--bg: #f8fafc;
	--bg-elev: rgba(15, 23, 42, 0.04);
	--bg-elev-2: rgba(15, 23, 42, 0.06);
	--text: #0f172a;
	--muted: rgba(15, 23, 42, 0.68);
	--border: rgba(15, 23, 42, 0.14);
	--shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	min-height: 100vh;
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: radial-gradient(900px 500px at 15% 0%,
			rgba(124, 58, 237, 0.35) 0%,
			rgba(124, 58, 237, 0) 55%),
		radial-gradient(900px 500px at 85% 10%,
			rgba(59, 130, 246, 0.28) 0%,
			rgba(59, 130, 246, 0) 55%),
		var(--bg);
	line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid color-mix(in oklab, var(--accent) 70%, white);
	outline-offset: 3px;
	border-radius: 10px;
}

p {
	margin: 0 0 12px;
}

h1,
h2,
h3 {
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 10px;
}

h1 {
	font-size: clamp(2rem, 3.4vw, 3.1rem);
	font-weight: 800;
}

h2 {
	font-size: clamp(1.35rem, 2.1vw, 1.8rem);
	font-weight: 800;
}

h3 {
	font-size: 1.05rem;
	font-weight: 750;
}

small,
.small {
	font-size: 0.95rem;
	color: var(--muted);
}

.container {
	width: min(var(--max), calc(100% - 40px));
	margin: 0 auto;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 10px;
	padding: 10px 12px;
	border-radius: 999px;
	background: var(--bg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	z-index: 1000;
}

.skip-link:focus {
	left: 14px;
}

/* header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--border);
	background: color-mix(in oklab, var(--bg) 98%, transparent);
	backdrop-filter: blur(14px);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.brand-mark {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.85), rgba(59, 130, 246, 0.65));
	box-shadow: 0 10px 22px rgba(124, 58, 237, 0.22);
	flex: 0 0 auto;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1;
	color: #ffffff;
}

.header-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: 10px;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--bg-elev);
	color: inherit;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
	transform: translateY(-1px);
	border-color: color-mix(in oklab, var(--border) 20%, var(--accent));
	background: var(--bg-elev-2);
}

.icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.site-nav {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-left: auto;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--muted);
	border: 1px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
	color: var(--text);
	border-color: var(--border);
	background: var(--bg-elev);
}

.nav-toggle {
	display: none;
}

.nav-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(2px);
	z-index: 90;
}

@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: fixed;
		top: 72px;
		left: 14px;
		right: 14px;
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
		border: 1px solid var(--border);
		background: color-mix(in oklab, var(--bg) 75%, transparent);
		backdrop-filter: blur(14px);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
		z-index: 100;
		margin-left: 0;
	}

	.header-actions {
		margin-left: auto;
	}

	.site-nav a {
		border-radius: 12px;
		justify-content: space-between;
	}

	:root.nav-open .site-nav {
		display: flex;
	}

	:root.nav-open .nav-backdrop {
		display: block;
	}
}

/* main layout */
main {
	padding: 34px 0 46px;
}

.section {
	margin: 28px 0;
}

.card {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow);
}

.card.soft {
	box-shadow: none;
	background: var(--bg-elev);
}

.grid {
	display: grid;
	gap: 16px;
}

.grid.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {

	.grid.two,
	.grid.three {
		grid-template-columns: 1fr;
	}
}

.hero {
	padding: 26px 0 10px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-weight: 650;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.eyebrow::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2));
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}

.lead {
	font-size: 1.08rem;
	color: var(--muted);
	max-width: 70ch;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--bg-elev);
	text-decoration: none;
	font-weight: 700;
	color: var(--text);
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover {
	transform: translateY(-1px);
	border-color: color-mix(in oklab, var(--border) 20%, var(--accent));
	background: var(--bg-elev-2);
}

.btn.primary {
	border-color: color-mix(in oklab, var(--accent) 70%, var(--border));
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.22));
}

.btn.ghost {
	background: transparent;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: color-mix(in oklab, var(--bg-elev) 80%, transparent);
	color: var(--muted);
	font-weight: 650;
	font-size: 0.92rem;
}

.divider {
	height: 1px;
	background: var(--border);
	margin: 18px 0;
}

/* resume tab panels */
.tabs {
	display: inline-flex;
	gap: 8px;
	padding: 6px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: color-mix(in oklab, var(--bg-elev) 70%, transparent);
	box-shadow: var(--shadow);
}

.tab {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--muted);
	padding: 10px 12px;
	border-radius: 999px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
}

.tab.active {
	color: var(--text);
	background: var(--bg-elev-2);
	border: 1px solid var(--border);
}

.tab-panel {
	display: none;
	margin-top: 16px;
}

.tab-panel.active {
	display: block;
}

.pdf-frame {
	width: 100%;
	height: min(78vh, 900px);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

/* timeline */
.timeline {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.timeline-card {
	position: relative;
	padding-left: 56px;
}

.timeline-card::before {
	content: '';
	position: absolute;
	left: 22px;
	top: 18px;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2));
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

.timeline-card::after {
	content: '';
	position: absolute;
	left: 27px;
	top: 34px;
	bottom: 18px;
	width: 2px;
	background: color-mix(in oklab, var(--border) 70%, transparent);
}

.timeline-card:last-child::after {
	display: none;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: color-mix(in oklab, var(--bg-elev) 80%, transparent);
	color: var(--muted);
	font-weight: 750;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.tag,
.filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: color-mix(in oklab, var(--bg-elev) 70%, transparent);
	color: var(--muted);
	cursor: pointer;
	user-select: none;
	font-weight: 650;
}

.tag:hover,
.filter-btn:hover {
	color: var(--text);
	border-color: color-mix(in oklab, var(--border) 20%, var(--accent));
	background: var(--bg-elev-2);
}

.filter-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0;
}

.filter-btn.active {
	color: var(--text);
	border-color: color-mix(in oklab, var(--accent) 65%, var(--border));
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.26), rgba(59, 130, 246, 0.16));
}

.hidden {
	display: none !important;
}

/* footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 26px 0 34px;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.social {
	display: inline-flex;
	gap: 10px;
}

.social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--bg-elev);
	text-decoration: none;
}

.social a:hover {
	background: var(--bg-elev-2);
	border-color: color-mix(in oklab, var(--border) 20%, var(--accent));
}

/* forced colors / high contrast */
@media (forced-colors: active) {
	.brand-mark {
		background: CanvasText;
		box-shadow: none;
	}

	.card,
	.site-header,
	.site-footer,
	.tabs,
	.icon-btn,
	.btn,
	.site-nav a,
	.social a {
		forced-color-adjust: auto;
		border: 1px solid CanvasText;
	}
}