:root {
	--bg: #f0f4f8;
	--surface: #ffffff;
	--surface-alt: #e8f0f7;
	--text: #0d1b2a;
	--muted: #475569;
	--accent: #2563eb;
	--accent-dark: #1e40af;
	--border: #cbd5e1;
	--shadow: 0 4px 6px -1px rgba(13, 27, 42, 0.08), 0 10px 24px rgba(13, 27, 42, 0.13);
	--radius: 12px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	color: var(--text);
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 30%, #f8fafc 100%);
	line-height: 1.6;
}

a {
	color: var(--accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
	color: var(--accent);
}

.container {
	width: min(1040px, 92%);
	margin: 0 auto;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.skip-link:focus {
	position: static;
	width: auto;
	height: auto;
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #ffffff;
	border: 1px solid var(--border);
	margin: 0.5rem;
}

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 10;
}

.header-layout {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"identity info"
		"nav nav";
	gap: 1rem;
	padding: 1rem 0;
}

.header-layout > .identity {
	align-self: start;
	padding-top: 0.15rem;
}

.header-layout > .header-info {
	align-self: start;
	padding-top: 0.15rem;
	text-align: right;
}

.identity {
	grid-area: identity;
}

.identity h1 {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.25;
	color: var(--text);
}

.header-info {
	grid-area: info;
}

.role,
.location {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.4;
}

.role {
	margin-bottom: 0.1rem;
}

.menu-toggle {
	display: none;
	border: 1px solid var(--border);
	background: #ffffff;
	color: var(--text);
	border-radius: 10px;
	padding: 0.55rem 0.8rem;
	font-weight: 600;
}

.primary-nav {
	grid-area: nav;
	display: flex;
}

.primary-nav ul {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 1.5rem;
	width: 100%;
}

.primary-nav a {
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
	font-size: 0.96rem;
	position: relative;
	padding-bottom: 2px;
	display: inline-block;
	white-space: nowrap;
}

.primary-nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.2s ease;
}

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

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.active::after {
	width: 100%;
}


.section {
	padding: 2.4rem 0;
	scroll-margin-top: 160px;
}

.section-hero {
	padding: 5rem 0 4.5rem;
	background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3b82f6 100%);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.section-hero::before,
.section-hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.section-hero::before {
	width: 340px;
	height: 340px;
	left: -80px;
	top: -100px;
}

.section-hero::after {
	width: 260px;
	height: 260px;
	right: -60px;
	bottom: -80px;
}

.hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
}

.hero-avatar {
	margin: 0 0 0.5rem;
}

.avatar-circle {
	width: 240px;
	height: 240px;
	border-radius: 50%;
	border: 5px solid rgba(255, 255, 255, 0.7);
	display: block;
	object-fit: cover;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-name {
	margin: 0;
	font-size: clamp(2.2rem, 6vw, 3.6rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
}

.hero-title {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1.1rem, 2.4vw, 1.4rem);
	font-weight: 400;
	letter-spacing: 0.01em;
}

.hero-desc {
	margin: 0;
	max-width: 560px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.05rem;
	line-height: 1.65;
}

.hero-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 0.4rem;
}

.button-hero-primary {
	background: #ffffff;
	color: #1e40af;
	border: 2px solid #ffffff;
	border-radius: 10px;
	padding: 0.7rem 1.5rem;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button-hero-primary:hover,
.button-hero-primary:focus-visible {
	background: #f0f4f8;
	border-color: #f0f4f8;
	color: #1e40af;
}

.button-hero-secondary {
	background: transparent;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 10px;
	padding: 0.7rem 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

.button-hero-secondary:hover,
.button-hero-secondary:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	color: #ffffff;
}

.section h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.section-alt {
	background: var(--surface-alt);
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.section-about {
	background: #1a365d;
	color: #f0f4f8;
	text-align: center;
	padding: 4rem 0;
	border: none;
}

.section-about h2 {
	color: #ffffff;
	margin: 0 0 1.1rem;
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.about-text {
	max-width: 680px;
	margin: 0 auto 2rem;
	color: #94a3b8;
	font-size: 1rem;
	line-height: 1.75;
}

.core-tech-label {
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 0.8rem;
}

.tech-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0.55rem;
}

.badge {
	display: inline-block;
	background: #2563eb;
	color: #ffffff;
	border-radius: 999px;
	padding: 0.38rem 0.95rem;
	font-size: 0.83rem;
	font-weight: 600;
	border: 1px solid #3b82f6;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.contact-links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.contact-card {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	width: fit-content;
	box-shadow: var(--shadow);
	transition: border-color 0.15s, color 0.15s;
}

.contact-card:hover,
.contact-card:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.skills-grid article,
.experience-item,
.project-item,
.education-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	box-shadow: var(--shadow);
}

h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.meta {
	margin: 0 0 0.7rem;
	color: var(--muted);
	font-size: 0.95rem;
}

ul {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

li + li {
	margin-top: 0.35rem;
}

.site-footer {
	border-top: 1px solid var(--border);
	background: #ffffff;
}

.site-footer p {
	margin: 0;
	padding: 1rem 0;
	color: var(--muted);
	font-size: 0.95rem;
	text-align: center;
}

@media (max-width: 860px) {
	.header-layout {
		grid-template-columns: 1fr auto auto;
		grid-template-areas:
			"identity info menu"
			"nav nav nav";
	}

	.header-info {
		text-align: right;
	}

	.menu-toggle {
		grid-area: menu;
		display: inline-block;
	}

	.primary-nav {
		display: none;
	}

	.primary-nav.is-open {
		display: flex;
	}

	.primary-nav ul {
		flex-direction: column;
		gap: 0.5rem;
		padding-top: 0.5rem;
		align-items: flex-start;
	}

	.primary-nav a {
		padding: 0.4rem 0;
	}

	.skills-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.header-layout {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"identity menu"
			"info info"
			"nav nav";
	}

	.header-info {
		text-align: left;
	}
}

@media print {
	:root {
		--bg: #ffffff;
		--surface: #ffffff;
		--surface-alt: #ffffff;
		--text: #000000;
		--muted: #111827;
		--accent: #000000;
		--accent-dark: #000000;
		--border: #d1d5db;
	}

	body {
		background: #ffffff;
		color: #000000;
		font-size: 11pt;
		line-height: 1.4;
	}

	.site-header {
		position: static;
		border-bottom: 1px solid #d1d5db;
	}

	.menu-toggle,
	.contact-form,
	.skip-link {
		display: none !important;
	}

	.section {
		padding: 1rem 0;
		break-inside: avoid;
	}

	.section-hero {
		background: #f8fafc;
		padding: 2rem 0;
	}

	.hero-name,
	.hero-title,
	.hero-desc {
		color: #000000;
	}

	.avatar-circle {
		background: #e2e8f0;
		border-color: #cbd5e1;
		color: #0f172a;
	}

	.button-hero-primary,
	.button-hero-secondary {
		display: none !important;
	}

	.section-about {
		background: #ffffff;
		color: #000000;
		border: 1px solid #e5e7eb;
	}

	.section-about h2 {
		color: #000000;
	}

	.about-text {
		color: #000000;
	}

	.core-tech-label {
		color: #334155;
	}

	.badge {
		background: #f1f5f9;
		color: #000000;
		border-color: #cbd5e1;
	}

	.contact-card {
		box-shadow: none;
	}

	.section-alt {
		background: #ffffff;
		border: none;
	}

	.skills-grid article,
	.experience-item,
	.project-item,
	.education-item {
		box-shadow: none;
		border: 1px solid #e5e7eb;
	}

	a {
		color: #000000;
		text-decoration: none;
	}
}
