:root {
	/* Light Theme - Flat Deep Blue Palette */
	--bg-base: #f8fafc;
	--bg-surface: #ffffff;
	--bg-surface-elevated: #ffffff;
	--bg-card: #ffffff;
	--bg-card-hover: #f1f5f9;
	--bg-pill: #eff6ff;
	--bg-pill-hover: #dbeafe;

	--text-primary: #0f172a;
	--text-secondary: #334155;
	--text-tertiary: #64748b;
	
	--accent-primary: #1d4ed8;       /* Deep Royal Blue */
	--accent-primary-hover: #1e40af; /* Dark Navy Blue */
	--accent-secondary: #0369a1;     /* Deep Sky Blue */
	--accent-secondary-subtle: #e0f2fe;

	--border-color: #e2e8f0;
	--border-hover: #2563eb;
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);

	--font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;

	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-full: 9999px;

	--transition-theme: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Dark Theme Fallback for system preferences */
@media (prefers-color-scheme: dark) {
	:root[data-theme="system"] {
		--bg-base: #0b1120;
		--bg-surface: #0f172a;
		--bg-surface-elevated: #152035;
		--bg-card: #152035;
		--bg-card-hover: #1e293b;
		--bg-pill: #1e293b;
		--bg-pill-hover: #334155;

		--text-primary: #f8fafc;
		--text-secondary: #cbd5e1;
		--text-tertiary: #94a3b8;

		--accent-primary: #3b82f6;       /* Solid Blue */
		--accent-primary-hover: #60a5fa;
		--accent-secondary: #38bdf8;
		--accent-secondary-subtle: #1e293b;

		--border-color: #1e293b;
		--border-hover: #3b82f6;
		--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
		--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
	}
}

/* Explicit Light Mode Override */
:root[data-theme="light"] {
	--bg-base: #f8fafc;
	--bg-surface: #ffffff;
	--bg-surface-elevated: #ffffff;
	--bg-card: #ffffff;
	--bg-card-hover: #f1f5f9;
	--bg-pill: #eff6ff;
	--bg-pill-hover: #dbeafe;

	--text-primary: #0f172a;
	--text-secondary: #334155;
	--text-tertiary: #64748b;

	--accent-primary: #1d4ed8;
	--accent-primary-hover: #1e40af;
	--accent-secondary: #0369a1;
	--accent-secondary-subtle: #e0f2fe;

	--border-color: #e2e8f0;
	--border-hover: #2563eb;
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Explicit Dark Mode Override */
:root[data-theme="dark"] {
	--bg-base: #0b1120;
	--bg-surface: #0f172a;
	--bg-surface-elevated: #152035;
	--bg-card: #152035;
	--bg-card-hover: #1e293b;
	--bg-pill: #1e293b;
	--bg-pill-hover: #334155;

	--text-primary: #f8fafc;
	--text-secondary: #cbd5e1;
	--text-tertiary: #94a3b8;

	--accent-primary: #3b82f6;
	--accent-primary-hover: #60a5fa;
	--accent-secondary: #38bdf8;
	--accent-secondary-subtle: #1e293b;

	--border-color: #1e293b;
	--border-hover: #3b82f6;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

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

body {
	font-family: var(--font-body);
	background-color: var(--bg-base);
	color: var(--text-primary);
	line-height: 1.6;
	transition: var(--transition-theme);
	min-height: 100vh;
	max-width: 100%;
	overflow-x: hidden;
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

/* Accessibility & Touch Optimization */
button, a, input, select, textarea {
	touch-action: manipulation;
}

:focus-visible {
	outline: 2px solid var(--accent-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

@keyframes fadeInCard {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Header Navigation */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	background-color: var(--bg-surface);
	border-bottom: 1px solid var(--border-color);
	transition: var(--transition-theme);
}

.nav-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand {
	text-decoration: none;
	color: var(--text-primary);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	transition: color 0.15s ease;
}

.brand:hover {
	color: var(--accent-primary);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
}

.nav-link {
	text-decoration: none;
	color: var(--text-secondary);
	font-weight: 500;
	font-size: 0.92rem;
	transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
	color: var(--accent-primary);
}

.mobile-cv-item {
	display: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Theme Switcher Pills (Flat Style) */
.theme-switcher {
	display: inline-flex;
	align-items: center;
	background-color: var(--bg-base);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 2px;
	gap: 2px;
}

.theme-btn {
	border: none;
	background: transparent;
	color: var(--text-tertiary);
	padding: 5px 10px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	font-family: var(--font-body);
	transition: all 0.15s ease;
}

.theme-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.theme-btn:hover {
	color: var(--text-primary);
}

.theme-btn.active {
	background-color: var(--accent-primary);
	color: #ffffff;
}

.menu-toggle {
	display: none;
	border: 1px solid var(--border-color);
	background: var(--bg-base);
	color: var(--text-primary);
	border-radius: var(--radius-sm);
	cursor: pointer;
	padding: 6px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	transition: all 0.15s ease;
}

.menu-toggle:hover {
	border-color: var(--accent-primary);
	color: var(--accent-primary);
}

.menu-toggle .icon-close {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-hamburger {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* Mobile Navigation Backdrop Overlay */
.nav-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 95;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-backdrop.active {
	opacity: 1;
	visibility: visible;
}

/* Container */
.shell {
	max-width: 1140px;
	margin: 0 auto;
	padding: 32px 24px 64px;
}

/* Flat Card Base */
.card-surface {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	transition: var(--transition-theme);
	min-width: 0;
}

/* Hero Section */
.hero-grid {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr;
	gap: 20px;
	margin-bottom: 24px;
}

.hero-main {
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.hero-top-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.hero-text-content {
	flex: 1;
}

.hero-photo-box {
	width: 130px;
	height: 145px;
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 2px solid var(--border-color);
	background-color: var(--bg-base);
	flex-shrink: 0;
	box-shadow: var(--shadow-sm);
}

.hero-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 18%;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	background-color: var(--bg-pill);
	border: 1px solid var(--border-color);
	color: var(--accent-primary);
	border-radius: var(--radius-sm);
	font-size: 0.8rem;
	font-weight: 600;
	font-family: var(--font-mono);
	width: fit-content;
	margin-bottom: 16px;
}

.status-dot {
	width: 7px;
	height: 7px;
	background-color: var(--accent-primary);
	border-radius: 50%;
}

.hero-title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 3.5vw, 3.2rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.hero-role {
	font-family: var(--font-heading);
	color: var(--accent-primary);
	font-size: 1.12rem;
	font-weight: 600;
	margin-bottom: 16px;
	display: block;
}

.hero-lead {
	font-size: 1.02rem;
	color: var(--text-secondary);
	line-height: 1.65;
	margin-bottom: 24px;
	max-width: 58ch;
}

/* Metrics Strip */
.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px;
	background-color: var(--bg-base);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
}

.stat-item {
	display: flex;
	flex-direction: column;
}

.stat-number {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--accent-primary);
}

.stat-label {
	font-size: 0.76rem;
	color: var(--text-tertiary);
	font-weight: 500;
}

.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.92rem;
	font-family: var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
	border: 1px solid transparent;
}

.btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	flex-shrink: 0;
}

.btn-primary {
	background-color: var(--accent-primary);
	color: #ffffff;
}

.btn-primary:hover {
	background-color: var(--accent-primary-hover);
}

.btn-secondary {
	background-color: var(--bg-surface);
	color: var(--text-primary);
	border-color: var(--border-color);
}

.btn-secondary:hover {
	border-color: var(--border-hover);
	background-color: var(--bg-pill);
}

/* Hero Sidebar */
.hero-sidebar {
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sidebar-title {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

.contact-card-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
}

.contact-card-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	background-color: var(--bg-base);
	border: 1px solid var(--border-color);
	transition: border-color 0.15s ease;
	text-decoration: none;
	color: inherit;
}

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

.contact-icon-box {
	width: 34px;
	height: 34px;
	border-radius: var(--radius-sm);
	background-color: var(--bg-pill);
	color: var(--accent-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-icon-box svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.contact-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.contact-type {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-tertiary);
}

.contact-val {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.copy-btn-wrap {
	margin-top: auto;
	padding-top: 8px;
}

.btn-copy {
	width: 100%;
	background-color: var(--bg-pill);
	color: var(--accent-primary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 10px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.15s ease;
}

.btn-copy:hover {
	background-color: var(--accent-primary);
	color: #ffffff;
	border-color: var(--accent-primary);
}

/* Main Layout Grid */
.main-grid {
	display: grid;
	grid-template-columns: 1.35fr 0.9fr;
	gap: 20px;
	align-items: start;
}

.left-column, .right-column {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

/* Section Base */
.section-card {
	padding: 32px;
}

.section-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

.section-title {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-title svg {
	width: 20px;
	height: 20px;
	fill: var(--accent-primary);
	flex-shrink: 0;
}

.section-subtitle {
	font-size: 0.85rem;
	color: var(--text-tertiary);
	font-weight: 500;
}

/* Timeline */
.timeline-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: relative;
}

.timeline-container::before {
	content: '';
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 9px;
	width: 2px;
	background-color: var(--border-color);
}

.timeline-item {
	position: relative;
	padding-left: 32px;
}

.timeline-marker {
	position: absolute;
	left: 4px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: var(--accent-primary);
	box-shadow: 0 0 0 3px var(--bg-card);
	z-index: 2;
}

.timeline-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px 12px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.timeline-role {
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.35;
}

.timeline-period {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--accent-primary);
	background-color: var(--bg-pill);
	padding: 3px 10px;
	border-radius: var(--radius-sm);
	white-space: nowrap;
}

.timeline-org {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--accent-primary);
	margin-bottom: 10px;
}

.timeline-duties {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.timeline-duties li {
	font-size: 0.9rem;
	color: var(--text-secondary);
	position: relative;
	padding-left: 18px;
	line-height: 1.55;
}

.timeline-duties li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 9px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--accent-primary);
}

/* Project Filters */
.project-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 20px;
}

.filter-btn {
	border: 1px solid var(--border-color);
	background-color: var(--bg-base);
	color: var(--text-secondary);
	padding: 6px 14px;
	border-radius: var(--radius-full);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: var(--font-body);
}

.filter-btn:hover {
	border-color: var(--border-hover);
	color: var(--text-primary);
}

.filter-btn.active {
	background-color: var(--accent-primary);
	color: #ffffff;
	border-color: var(--accent-primary);
}

.projects-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.project-card {
	padding: 24px;
	background-color: var(--bg-base);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
}

.project-card:hover {
	border-color: var(--accent-primary);
	transform: translateY(-2px);
}

.project-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.project-year {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent-secondary);
	background-color: var(--accent-secondary-subtle);
	padding: 3px 8px;
	border-radius: var(--radius-sm);
	white-space: nowrap;
	flex-shrink: 0;
	margin-top: 2px;
}

.project-title {
	font-family: var(--font-heading);
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.35;
	word-break: break-word;
}

.project-desc {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-top: 6px;
}

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

.tag {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	font-weight: 500;
	padding: 4px 9px;
	border-radius: var(--radius-sm);
	background-color: var(--bg-surface);
	color: var(--accent-primary);
	border: 1px solid var(--border-color);
}

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

.skill-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.skill-block-title {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-tertiary);
}

.skill-tags-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.skill-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: var(--radius-sm);
	background-color: var(--bg-base);
	border: 1px solid var(--border-color);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-primary);
	transition: border-color 0.15s ease;
}

.skill-badge:hover {
	border-color: var(--border-hover);
}

.skill-badge span {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-tertiary);
}

/* Education & Certs */
.edu-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.edu-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background-color: var(--bg-base);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	transition: border-color 0.15s ease;
}

.edu-item:hover {
	border-color: var(--border-hover);
}

.edu-degree {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.35;
}

.edu-school {
	font-size: 0.88rem;
	color: var(--accent-primary);
	font-weight: 600;
}

.edu-date {
	font-family: var(--font-mono);
	font-size: 0.76rem;
	color: var(--text-tertiary);
}

/* Footer */
.site-footer {
	margin-top: 48px;
	padding: 24px;
	border-top: 1px solid var(--border-color);
	text-align: center;
	color: var(--text-tertiary);
	font-size: 0.85rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.footer-links {
	display: flex;
	gap: 16px;
	list-style: none;
}

.footer-links a {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
}

.footer-links a:hover {
	color: var(--accent-primary);
}

/* Floating Back To Top Button */
.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	background-color: var(--accent-primary);
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	z-index: 90;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background-color: var(--accent-primary-hover);
}

.back-to-top svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Responsive Design Breakpoints */
@media (max-width: 992px) {
	.hero-grid, .main-grid {
		grid-template-columns: 1fr;
	}

	.hero-main {
		padding: 28px 24px;
		text-align: center;
	}

	.hero-top-wrap {
		display: flex;
		flex-direction: column-reverse;
		align-items: center;
		justify-content: center;
		text-align: center;
		width: 100%;
		gap: 16px;
	}

	.hero-text-content {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
	}

	.hero-photo-box {
		width: 120px;
		height: 135px;
		display: block;
		margin: 0 auto 12px !important;
		align-self: center !important;
		flex-shrink: 0;
	}

	.status-badge {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.hero-title, .hero-role, .hero-lead {
		text-align: center !important;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 768px) {
	.nav-container {
		padding: 12px 16px;
	}

	.brand {
		order: 1;
	}

	.header-actions {
		order: 2;
		margin-left: auto;
		gap: 8px;
	}

	.menu-toggle {
		order: 3;
		display: flex;
	}

	.theme-btn span {
		display: none;
	}

	.theme-btn {
		padding: 6px 8px;
		min-width: 32px;
		justify-content: center;
	}

	.nav-links {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--bg-surface);
		flex-direction: column;
		padding: 12px 16px 20px;
		border-bottom: 1px solid var(--border-color);
		box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
		z-index: 100;
		gap: 4px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
		pointer-events: none;
	}

	.nav-links.open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.nav-links li {
		width: 100%;
	}

	.nav-link {
		display: flex;
		align-items: center;
		padding: 10px 14px;
		border-radius: var(--radius-sm);
		font-size: 0.95rem;
		font-weight: 600;
		color: var(--text-primary);
		transition: all 0.15s ease;
	}

	.nav-link:hover, .nav-link.active {
		background-color: var(--bg-pill);
		color: var(--accent-primary);
	}

	.shell {
		padding: 20px 16px 48px;
	}

	.section-card {
		padding: 24px 20px;
	}

	.timeline-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.timeline-period {
		align-self: flex-start;
	}
}

@media (max-width: 576px) {
	.shell {
		padding: 16px 12px 48px;
	}

	.hero-main {
		padding: 24px 18px;
	}

	.hero-photo-box {
		width: 110px;
		height: 125px;
		display: block;
		margin: 0 auto 14px !important;
		align-self: center !important;
	}

	.hero-title {
		font-size: 1.7rem;
		line-height: 1.2;
	}

	.hero-role {
		font-size: 0.98rem;
		margin-bottom: 12px;
	}

	.hero-lead {
		font-size: 0.94rem;
		line-height: 1.6;
		margin-bottom: 20px;
	}

	.hero-stats {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		padding: 12px 8px;
		gap: 6px;
		text-align: center;
	}

	.stat-number {
		font-size: 1.05rem;
		font-weight: 700;
	}

	.stat-label {
		font-size: 0.7rem;
		line-height: 1.25;
	}

	.hero-buttons {
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.hero-buttons .btn {
		width: 100%;
		justify-content: center;
		padding: 12px 16px;
		font-size: 0.92rem;
		min-height: 44px;
	}

	.hero-sidebar {
		padding: 22px 18px;
	}

	.sidebar-title {
		font-size: 1.08rem;
	}

	.contact-card-item {
		padding: 10px 12px;
		min-height: 46px;
	}

	.contact-icon-box {
		width: 34px;
		height: 34px;
	}

	.contact-val {
		font-size: 0.85rem;
	}

	.btn-copy {
		min-height: 44px;
		padding: 12px;
		font-size: 0.88rem;
	}

	.section-card {
		padding: 20px 16px;
	}

	.section-header {
		margin-bottom: 16px;
		padding-bottom: 10px;
	}

	.section-title {
		font-size: 1.18rem;
	}

	.section-subtitle {
		font-size: 0.82rem;
	}

	/* Timeline Mobile */
	.timeline-container {
		gap: 20px;
	}

	.timeline-container::before {
		left: 8px;
		top: 6px;
		bottom: 6px;
		width: 2px;
	}

	.timeline-item {
		padding-left: 28px;
	}

	.timeline-marker {
		left: 3px;
		top: 5px;
		width: 12px;
		height: 12px;
		box-shadow: 0 0 0 3px var(--bg-card);
	}

	.timeline-header {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		margin-bottom: 4px;
	}

	.timeline-role {
		font-size: 1rem;
		font-weight: 700;
		line-height: 1.35;
	}

	.timeline-period {
		font-size: 0.74rem;
		padding: 3px 8px;
		margin-top: 2px;
		display: inline-flex;
		align-self: flex-start;
	}

	.timeline-org {
		font-size: 0.85rem;
		font-weight: 600;
		margin-bottom: 8px;
	}

	.timeline-duties {
		gap: 6px;
	}

	.timeline-duties li {
		font-size: 0.88rem;
		line-height: 1.5;
		padding-left: 16px;
	}

	.timeline-duties li::before {
		left: 1px;
		top: 8px;
		width: 5px;
		height: 5px;
	}

	/* Project Filters Mobile */
	.project-filters {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 4px 2px 10px 2px;
		margin-bottom: 16px;
		gap: 8px;
		scrollbar-width: none;
		scroll-snap-type: x mandatory;
	}

	.project-filters::-webkit-scrollbar {
		display: none;
	}

	.filter-btn {
		flex-shrink: 0;
		scroll-snap-align: start;
		white-space: nowrap;
		padding: 7px 14px;
		font-size: 0.82rem;
		min-height: 36px;
	}

	/* Projects Cards Mobile */
	.projects-grid {
		gap: 14px;
	}

	.project-card {
		padding: 18px 16px;
		border-radius: var(--radius-md);
		gap: 14px;
	}

	.project-meta {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 10px;
	}

	.project-title {
		font-size: 1.02rem;
		font-weight: 700;
		line-height: 1.35;
	}

	.project-year {
		font-size: 0.74rem;
		padding: 3px 8px;
		flex-shrink: 0;
		align-self: flex-start;
		margin-top: 2px;
	}

	.project-desc {
		font-size: 0.88rem;
		line-height: 1.55;
		margin-top: 6px;
	}

	.tech-tags {
		gap: 6px;
		margin-top: 10px;
	}

	.tag {
		font-size: 0.72rem;
		padding: 3px 8px;
	}

	/* Skills Mobile */
	.skills-wrapper {
		gap: 16px;
	}

	.skill-tags-grid {
		gap: 6px;
	}

	.skill-badge {
		padding: 6px 10px;
		font-size: 0.82rem;
	}

	/* Education Mobile */
	.edu-list {
		gap: 10px;
	}

	.edu-item {
		padding: 14px 12px;
		gap: 4px;
	}

	.edu-degree {
		font-size: 0.95rem;
		line-height: 1.35;
	}

	.edu-school {
		font-size: 0.85rem;
	}

	.edu-date {
		font-size: 0.74rem;
	}

	.site-footer {
		padding: 24px 16px;
		margin-top: 36px;
	}

	.footer-links {
		flex-wrap: wrap;
		gap: 12px 16px;
		justify-content: center;
	}

	/* Map Page Mobile Overrides */
	.map-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px 14px;
	}

	.map-presets {
		justify-content: center;
	}

	.map-info-stats {
		justify-content: space-between;
		width: 100%;
	}

	.map-wrapper {
		height: 50vh;
		min-height: 350px;
	}
}

@media (max-width: 400px) {
	.brand {
		font-size: 1.05rem;
	}

	.hero-title {
		font-size: 1.5rem;
	}

	.hero-stats {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 12px;
		text-align: left;
	}

	.stat-item {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		border-bottom: 1px dashed var(--border-color);
		padding-bottom: 6px;
	}

	.stat-item:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}

	.stat-label {
		text-align: right;
		font-size: 0.72rem;
	}

	.project-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.project-year {
		align-self: flex-start;
	}
}

/* =========================================================
   MAP PAGE & LEAFLET COMPONENT STYLES
   ========================================================= */
.map-page-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 24px;
	margin-bottom: 48px;
}

.map-header-card {
	padding: 24px;
}

.map-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.map-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.map-preset-btn {
	padding: 6px 14px;
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-secondary);
	background: var(--bg-pill);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-full);
	cursor: pointer;
	transition: all 0.2s ease;
}

.map-preset-btn:hover {
	color: var(--accent-primary);
	background: var(--bg-pill-hover);
	border-color: var(--accent-primary);
}

.map-info-stats {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--text-tertiary);
}

.map-stat-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: var(--bg-pill);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
}

.map-wrapper {
	position: relative;
	width: 100%;
	height: calc(100vh - 340px);
	min-height: 500px;
	max-height: 750px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
}

#map {
	width: 100%;
	height: 100%;
	background-color: var(--bg-surface-elevated);
	z-index: 1;
}

/* Custom Leaflet Dark / Light Integration */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: var(--bg-card) !important;
	color: var(--text-primary) !important;
	box-shadow: var(--shadow-md) !important;
	border: 1px solid var(--border-color);
}

.map-popup-content {
	padding: 4px 2px;
	font-family: var(--font-body);
}

.map-popup-title {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.map-popup-desc {
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin-bottom: 8px;
	line-height: 1.4;
}

.map-popup-badge {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	padding: 2px 8px;
	background: var(--accent-secondary-subtle);
	color: var(--accent-primary);
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.leaflet-control-zoom a {
	background-color: var(--bg-surface) !important;
	color: var(--text-primary) !important;
	border-color: var(--border-color) !important;
}

.leaflet-control-zoom a:hover {
	background-color: var(--bg-pill-hover) !important;
	color: var(--accent-primary) !important;
}

.leaflet-container .leaflet-control-attribution {
	background: var(--bg-surface) !important;
	color: var(--text-tertiary) !important;
	font-size: 0.7rem;
	opacity: 0.85;
}

.leaflet-container .leaflet-control-attribution a {
	color: var(--accent-primary) !important;
}

