:root {
	--bg-sidebar: #18181b;
	--bg-sidebar-end: #27272a;
	--text-heading: #18181b;
	--text-body: #3f3f46;
	--text-muted: #71717a;
	--border-subtle: #e4e4e7;
	--bg-tag: #f4f4f5;
	--accent: #1d4ed8;
	--accent-hover: #1e40af;
	--accent-light: #60a5fa;
	--accent-soft: #eff6ff;
}

html {
	scroll-behavior: smooth;
}

body, input, select, textarea {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--text-body);
}

h1, h2, h3, h4 {
	color: var(--text-heading);
	letter-spacing: -0.02em;
}

#header {
	background-color: var(--bg-sidebar);
	background-image: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-sidebar-end) 100%);
	background-size: cover;
	color: rgba(244, 244, 245, 0.72);
}

#header strong {
	color: #fafafa;
	font-weight: 600;
}

#header .subtitle {
	display: block;
	margin-top: 0.6em;
	font-size: 0.78em;
	line-height: 1.5;
	color: rgba(244, 244, 245, 0.55);
}

.side-nav {
	margin-top: 2em;
	display: flex;
	flex-direction: column;
	gap: 0.45em;
}

.side-nav a {
	border-bottom: none;
	color: rgba(244, 244, 245, 0.65);
	font-size: 0.9em;
	font-weight: 500;
	transition: color 0.2s ease, transform 0.2s ease;
}

.side-nav a:hover {
	color: var(--accent-light) !important;
	transform: translateX(-4px);
}

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

input[type="submit"].primary,
.button.primary {
	background-color: var(--text-heading);
	border-color: var(--text-heading);
	color: #fafafa !important;
	border-radius: 6px;
}

input[type="submit"].primary:hover,
.button.primary:hover {
	background-color: var(--accent);
	border-color: var(--accent);
}

.button {
	border-radius: 6px;
}

.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 0.5em;
	cursor: default;
}

.tag {
	display: inline-block;
	padding: 0.35em 0.85em;
	font-size: 0.85em;
	font-weight: 500;
	color: var(--text-heading);
	background-color: var(--bg-tag);
	border: 1px solid var(--border-subtle);
	border-radius: 9999px;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.work-item .image.thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(24, 24, 27, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-item .image.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.work-item:hover .image.thumb {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(24, 24, 27, 0.12);
}

.project-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-top: 0.6em;
}

.mini-tag {
	font-size: 0.72em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #52525b;
	background: var(--bg-tag);
	padding: 0.2em 0.6em;
	border-radius: 4px;
}

.project-link {
	margin-left: auto;
	font-size: 0.85em;
	font-weight: 600;
	color: var(--accent);
	border-bottom: none;
}

.project-link:hover {
	color: var(--accent-hover) !important;
}

.timeline-heading {
	font-size: 1.15em;
	margin-bottom: 1.25em;
	display: flex;
	align-items: center;
	gap: 0.5em;
	color: var(--text-heading);
}

.timeline-heading .icon {
	color: var(--accent);
}

.timeline {
	position: relative;
	padding-left: 1.5em;
	border-left: 2px solid var(--border-subtle);
	margin-bottom: 1.5em;
}

.timeline-item {
	position: relative;
	padding-bottom: 1.75em;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-item::before {
	content: "";
	position: absolute;
	left: calc(-1.5em - 6px);
	top: 0.35em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--accent);
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 2px var(--border-subtle);
}

.timeline-date {
	display: inline-block;
	font-size: 0.78em;
	font-weight: 600;
	color: var(--accent-hover);
	background-color: var(--accent-soft);
	padding: 0.15em 0.6em;
	border-radius: 4px;
	margin-bottom: 0.4em;
}

.timeline-item h4 {
	margin: 0 0 0.2em 0;
	font-size: 1em;
	font-weight: 600;
	color: var(--text-heading);
}

.timeline-place {
	display: block;
	font-size: 0.85em;
	font-weight: 500;
	color: var(--text-muted);
	margin-bottom: 0.5em;
}

.timeline-item .timeline-list,
.timeline-item p {
	font-size: 0.9em;
	line-height: 1.55;
	margin: 0;
	color: #52525b;
}

#about-me p {
	font-size: 1em;
}

.side-nav a {
	-webkit-tap-highlight-color: transparent;
}

#header {
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

@media screen and (max-width: 980px) {
	#header {
		max-width: 100%;
		overflow-x: hidden;
	}

	.side-nav {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.6em 1.2em;
	}

	.side-nav a {
		white-space: nowrap;
	}

	.side-nav a:hover {
		transform: none;
	}
}

@media (hover: hover) {
	.side-nav a:hover {
		color: var(--accent-light) !important;
		transform: translateX(-4px);
	}
}

@media (hover: none) {
	.side-nav a:hover,
	.side-nav a:focus,
	.side-nav a:active {
		color: rgba(244, 244, 245, 0.65) !important;
		transform: none;
	}
}

.hidden-img {
	display: none !important;
}

.gallery-badge {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(24, 24, 27, 0.85);
	color: #fafafa;
	font-size: 0.75em;
	font-weight: 600;
	padding: 0.25em 0.65em;
	border-radius: 6px;
	z-index: 2;
	pointer-events: none;
}

.gallery-badge i {
	margin-right: 0.35em;
	color: var(--accent-light);
}

.poptrox-popup .nav-previous,
.poptrox-popup .nav-next {
	mix-blend-mode: difference;
}

.poptrox-popup .nav-previous:before,
.poptrox-popup .nav-next:before {
	color: #ffffff;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 1px var(--accent);
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:hover {
	border-color: var(--accent);
	color: var(--accent) !important;
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
.button:active {
	background-color: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-hover) !important;
}

a:hover {
	border-bottom-color: transparent;
	color: var(--accent) !important;
}

#header a:hover,
#footer a:hover,
#footer .icons a:hover {
	color: var(--accent-light) !important;
}

input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
	background: var(--accent);
	border-color: var(--accent);
}

#header .image.avatar {
	width: 6.25em;
	height: 6.25em;
	border-radius: 50%;
	overflow: hidden;
}

#header .image.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	border-radius: 50%;
}