:root {
	--bg: #f4f7fb;
	--sidebar-bg: #e9f0f7;
	--text-primary: #1e293b;
	--text-muted: #64748b;
	--accent: #2563eb;
	--accent-faint: rgba(37, 99, 235, 0.08);
	--border: #cbd5e1;
	--sidebar-w: 256px;
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--bg);
	color: var(--text-primary);
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	line-height: 1.7;
	display: flex;
	min-height: 100vh;
	transition: background-color 220ms ease, color 220ms ease;
}

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar {
	width: var(--sidebar-w);
	background: var(--sidebar-bg);
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	overflow-y: auto;
	border-right: 1px solid var(--border);
	padding: 52px 32px 40px;
	display: flex;
	flex-direction: column;
	gap: 36px;
	z-index: 100;
	scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
	display: none;
}

/* Profile Picture styling */
.profile-pic {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 20px;
	border: 3px solid var(--border);
	background-color: var(--bg);
}

.s-name {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.85rem;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.s-role {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.62rem;
	font-weight: 400;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--accent);
	margin-top: 10px;
}

.s-block-label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.58rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-muted);
	margin-bottom: 10px;
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.78rem;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.18s;
	overflow: hidden;
}

.contact-item:hover {
	color: var(--accent);
}

.contact-item svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	opacity: 0.65;
}

.contact-item span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nav-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-link {
	font-size: 0.83rem;
	color: var(--text-muted);
	text-decoration: none;
	padding: 5px 0 5px 10px;
	border-left: 2px solid transparent;
	transition: color 0.18s, border-color 0.18s, padding-left 0.18s;
	display: block;
}

.nav-link:hover {
	color: var(--text-primary);
}

.nav-link.active {
	color: var(--text-primary);
	border-left-color: var(--accent);
	padding-left: 14px;
}

.item-link {
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.18s, border-color 0.18s, padding-left 0.18s;
}

.item-link:hover {
	color: var(--text-primary);
}

.item-link.active {
	color: var(--text-primary);
}


/* ── Main content ─────────────────────────────────────── */
.main {
	margin-left: var(--sidebar-w);
	padding: 64px 68px 80px;
	max-width: 820px;
	width: 100%;
}

/* ── Sections ─────────────────────────────────────────── */
.section {
	margin-bottom: 68px;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.section.visible {
	opacity: 1;
	transform: translateY(0);
}

.sec-label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.63rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent);
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.sec-label::after {
	content: '';
	height: 1px;
	background: var(--border);
	flex: 1;
}

/* Profile */
#profile p {
	font-size: 1rem;
	color: var(--text-muted);
	max-width: 620px;
	line-height: 1.85;
}

/* Experience / Education entries */
.entry {
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 20px;
	row-gap: 3px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--border);
}

.entry:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.e-title {
	font-size: 0.97rem;
	font-weight: 600;
	color: var(--text-primary);
	grid-column: 1;
}

.e-sub {
	font-size: 0.82rem;
	color: var(--text-muted);
	grid-column: 1;
}

.e-date {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.67rem;
	color: var(--text-muted);
	grid-row: 1;
	grid-column: 2;
	white-space: nowrap;
	padding-top: 2px;
	text-align: right;
}

/* Skills */
.skills-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.skill-row {
	display: grid;
	grid-template-columns: 148px 1fr;
	gap: 12px;
	align-items: start;
}

.language-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.language-row {
	display: grid;
	grid-template-columns: 148px 1fr;
	gap: 12px;
	align-items: center;
}

.lang-name {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.75rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.lang-level {
	font-size: 0.95rem;
	color: var(--text-primary);
}


.sk-cat {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.65rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding-top: 3px;
}

.sk-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sk-tag {
	font-size: 0.76rem;
	color: var(--text-primary);
	background: var(--sidebar-bg);
	border: 1px solid var(--border);
	padding: 2px 10px;
	border-radius: 2px;
	transition: background 0.18s, border-color 0.18s, color 0.18s;
	cursor: default;
}

.sk-tag:hover {
	background: var(--accent-faint);
	border-color: var(--accent);
	color: var(--accent);
}

/* Projects */
.project-card {
	border: 1px solid var(--border);
	background: var(--sidebar-bg);
	padding: 22px 24px;
	margin-bottom: 14px;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.project-card {
	cursor: default;
}

.project-card[data-link] {
	cursor: pointer;
}

.project-card:hover {
	border-color: var(--accent);
	box-shadow: 0 2px 18px rgba(37, 99, 235, 0.07);
}

.project-card:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.project-card:last-child {
	margin-bottom: 0;
}

.p-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 4px;
}

.p-title {
	font-size: 0.93rem;
	font-weight: 600;
	line-height: 1.4;
}

.p-meta {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.63rem;
	color: var(--text-muted);
	white-space: nowrap;
	flex-shrink: 0;
	padding-top: 2px;
	text-align: right;
}

.p-bullets {
	list-style: none;
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.p-bullets li {
	font-size: 0.84rem;
	color: var(--text-muted);
	padding-left: 16px;
	position: relative;
	line-height: 1.62;
}

.p-bullets li::before {
	content: '—';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-size: 0.78rem;
	top: 2px;
}

/* Courses & Certs */
.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 32px;
}

.sub-label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.63rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.dot-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.dot-list li {
	font-size: 0.84rem;
	color: var(--text-muted);
	padding-left: 14px;
	position: relative;
	line-height: 1.5;
}

.dot-list li::before {
	content: '·';
	position: absolute;
	left: 3px;
	color: var(--accent);
	font-size: 1.1rem;
	line-height: 1;
	top: 2px;
}

/* Footer */
.footer {
	margin-top: 72px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.62rem;
	letter-spacing: 0.08em;
	color: var(--border);
	text-align: center;
}



/* ── Dark Mode ───────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #07101a;
		--sidebar-bg: #0b1420;
		--text-primary: #e6f0fb;
		--text-muted: #9fb0c8;
		--accent: #60a5fa;
		--accent-faint: rgba(96, 165, 250, 0.06);
		--border: #163041;
		--sidebar-w: 256px;
	}

	body {
		background: var(--bg);
		color: var(--text-primary);
	}

	.profile-pic {
		border-color: var(--border);
		background-color: transparent;
	}

	.contact-item,
	.nav-link,
	.sk-tag,
	.p-bullets li,
	.dot-list li,
	.e-sub,
	.p-meta {
		color: var(--text-muted);
	}

	.contact-item svg {
		opacity: 0.9;
	}

	.hamburger span {
		background: var(--text-primary);
	}

	.project-card {
		background: var(--sidebar-bg);
		border-color: var(--border);
	}

	.sidebar {
		background: var(--sidebar-bg);
		border-right-color: var(--border);
	}

	.mobile-bar {
		background: var(--sidebar-bg);
		border-bottom-color: var(--border);
	}

	.footer {
		color: var(--text-muted);
		border-top-color: var(--border);
	}
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
	body {
		display: block;
	}

	.sidebar {
		position: relative;
		width: 100%;
		height: 100dvh;
		min-height: 100dvh;

		padding: 32px 24px;

		border-right: none;
		border-bottom: 1px solid var(--border);

		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		text-align: center;
		gap: 24px;
	}

	.sidebar>div {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	/* Hide navigation completely */
	.sidebar nav {
		display: none;
	}

	.profile-pic {
		width: 120px;
		height: 120px;
		margin-bottom: 16px;
	}

	.s-name {
		font-size: 2rem;
		text-align: center;
	}

	.s-role {
		text-align: center;
	}

	.s-block-label {
		text-align: center;
	}

	.contact-list {
		align-items: center;
		width: 100%;
	}

	.contact-item {
		justify-content: center;
		max-width: 100%;
	}

	.contact-item span {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}

	.main {
		margin-left: 0;
		max-width: 100%;
		padding: 48px 24px 64px;
	}

	.skill-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.two-col {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.entry {
		display: block;
	}

	.e-date {
		text-align: left;
		margin-top: 8px;
	}

	.p-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.p-meta {
		text-align: left;
	}
}

@media (max-width: 480px) {
	.main {
		padding: 32px 18px 56px;
	}
}