@font-face {
	font-family: "Miller Banner";
	src: url("/assets/fonts/Miller_Banner_Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Miller Banner";
	src: url("/assets/fonts/Miller_Banner_Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

* {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}

body {
	margin: 0;
	padding: 40px 24px 56px;
	background: linear-gradient(180deg, #EEF2F8 0%, #F8FAFD 220px, #F5F7FB 100%);
	color: #18202F;
	font-family: "Inter", Arial, sans-serif;
	font-size: 0.98rem;
	line-height: 1.65;
}

#hiddenName {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body > header,
body > section {
	width: min(100%, 960px);
	margin-inline: auto;
}

.resume-actions {
	display: flex;
	width: min(100%, 960px);
	margin: 0 auto 20px;
	background: #FFFFFF;
	border: 1px solid #D7DDE8;
	border-radius: 14px;
	overflow: hidden;
}

.resume-action-button,
.resume-action-link {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 13px 18px;
	background: #FFFFFF;
	border: 0;
	color: #1F253F;
	font-family: "Inter", Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, outline-color 0.18s ease;
}

.resume-action-button {
	border-right: 1px solid #D7DDE8;
}

.resume-action-button:hover,
.resume-action-button:focus-visible,
.resume-action-link:hover,
.resume-action-link:focus-visible {
	background: #1f253f;
	color: #FFFFFF;
	outline-offset: -1px;
}

body > header {
	display: grid;
	grid-template-columns: 132px 1fr;
	align-items: center;
	gap: 28px;
	padding: 30px 34px;
	background-color: #1F253F;
	color: #FFFFFF;
	border-radius: 28px 28px 22px 22px;
	box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
	position: relative;
	overflow: hidden;
}

body > header img {
	width: 100%;
	max-width: 132px;
	height: auto;
	display: block;
	padding: 12px;
}

body > header > div {
	min-width: 0;
}

#name,
#title {
	margin: 0;
	color: #FFFFFF;
	font-family: "Miller Banner", "Times New Roman", serif;
	letter-spacing: 0.01em;
}

#name {
	font-size: 45px;
	line-height: 0.95;
	font-weight: 700;
}

#title {
	margin-top: 10px;
	font-size: 17px;
	line-height: 1.2;
	font-weight: 400;
	opacity: 0.96;
}

body > section {
	background: #FFFFFF;
	border: 1px solid rgba(31, 37, 63, 0.08);
	border-radius: 20px;
	padding: 28px 34px;
	margin-top: 18px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

section > h3 {
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #1F253F;
}

section > h3::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(31, 37, 63, 0.32), rgba(31, 37, 63, 0.04));
}

#contact {
	padding-block: 18px;
}

#contact ul,
#skills ul,
#languages ul,
.experience-item ul {
	margin: 0;
	padding: 0;
}

#contact ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	list-style: none;
}

#contact li {
	list-style: none;
}

#contact a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 12px 16px;
	background: #F8FAFC;
	border: 1px solid #D7DDE8;
	border-radius: 14px;
	color: #18202F;
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#contact a:hover,
#contact a:focus {
	transform: translateY(-1px);
	border-color: rgba(31, 37, 63, 0.24);
	box-shadow: 0 10px 18px rgba(31, 37, 63, 0.08);
}

#contact .icon a::before {
	width: 1.2rem;
	flex: 0 0 auto;
	text-align: center;
	font-family: "FontAwesome";
	font-size: 1rem;
	color: #1F253F;
}

#website a::before { content: "\f0ac"; }
#email a::before { content: "\f0e0"; }
#linkedin a::before { content: "\f08c"; }
#phone a::before { content: "\f095"; }

#about div {
	color: #18202F;
	font-size: 1rem;
	line-height: 1.78;
}

#skills ul,
#languages ul {
	list-style: none;
	display: grid;
	gap: 12px;
}

#languages ul {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

#skills li,
#languages li {
	padding: 12px 16px;
	background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
	border: 1px solid #D7DDE8;
	border-radius: 14px;
}

#skills strong,
#languages strong {
	color: #1F253F;
}

.experience-item,
.education-item {
	position: relative;
}

.experience-item + .experience-item,
.education-item + .education-item {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid #D7DDE8;
}

.experience-header,
.education-item > header,
.experience-role {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: baseline;
}

.experience-header,
.education-item > header {
	margin-bottom: 14px;
}

.experience-header h4,
.education-item h4 {
	margin: 0;
	font-size: 1.18rem;
	line-height: 1.25;
	font-weight: 800;
	color: #1F253F;
}

.experience-header h4 span {
	font-size: 0.9em;
	font-weight: 600;
	color: #4D5566;
}

.experience-header p,
.education-item > header p,
.experience-role p,
#education .education-item .education-role p {
	margin: 0;
	color: #4D5566;
	font-weight: 600;
	white-space: nowrap;
}

.experience-role {
	padding: 8px 0 6px;
}

.experience-role + ul {
	margin-top: 4px;
}

.experience-role h5,
.education-role h5 {
	margin: 0;
	font-size: 1rem;
	font-weight: 750;
	color: #18202F;
}

.experience-role p {
	font-size: 0.94rem;
}

.experience-item ul {
	list-style: none;
	display: grid;
	gap: 10px;
	margin-top: 8px;
}

.experience-item li {
	position: relative;
	padding-left: 18px;
	color: #18202F;
}

.experience-item li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.78em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #1F253F;
	transform: translateY(-50%);
}

#education .education-item .education-role h5,
#education .education-item .education-role p {
	margin-top: 6px;
}

@media screen and (max-width: 760px) {
	body {
		padding: 20px 14px 32px;
	}

	body > header {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		padding: 24px 22px;
	}

	body > header img {
		max-width: 116px;
	}

	body > section {
		padding: 22px 20px;
	}

	#contact ul,
	#languages ul {
		grid-template-columns: 1fr;
	}

	.experience-header,
	.education-item > header,
	.experience-role {
		flex-direction: column;
		align-items: flex-start;
	}

	.experience-header p,
	.education-item > header p,
	.experience-role p {
		white-space: normal;
	}
}

@media screen and (min-width: 1200px) {
	.resume-actions {
		position: fixed;
		top: 40px;
		left: calc(50% + 500px);
		z-index: 10;
		flex-direction: column;
		width: 86px;
		margin: 0;
	}

	.resume-action-button,
	.resume-action-link {
		width: 100%;
		min-height: 46px;
	}

	.resume-action-button {
		border-right: 0;
		border-bottom: 1px solid #D7DDE8;
	}
}

@media print {
	.resume-actions {
		display: none !important;
	}
}
