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

body {
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-size: 17px;
	line-height: 1.7;
	color: #e0e0e0;
	background-color: #111111;
	min-height: 100vh;
}

/* --- Footer --- */

footer {
	padding: 24px 8%;
	border-top: 1px solid #222;
	color: #555;
	font-size: 13px;
	text-align: center;
	margin-top: 60px;
}

/* --- Navigation --- */

nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 8%;
	border-bottom: 1px solid #222;
}

.nav-name {
	font-size: 22px;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: -0.5px;
	text-decoration: none;
}

.nav-name:hover {
	color: #ffffff;
}

.nav-links {
	display: flex;
	gap: 32px;
}

.nav-link {
	color: #888;
	text-decoration: none;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.3px;
	transition: color 0.2s;
}

.nav-link:hover {
	color: #ffffff;
}

.nav-link.active {
	color: #ffffff;
	border-bottom: 1px solid #ffffff;
	padding-bottom: 2px;
}

/* --- Main content --- */

main {
	max-width: 720px;
	margin: 0 auto;
	padding: 60px 24px;
}

/* --- About --- */

.about h2 {
	font-size: 28px;
	font-weight: 500;
	color: #ffffff;
	margin-bottom: 24px;
}

.about p {
	margin-bottom: 16px;
	color: #b0b0b0;
}

/* --- Accent text --- */

.accent {
	color: #6ea8fe;
}

/* --- Articles --- */

.articles h3 {
	font-size: 20px;
	font-weight: 500;
	color: #ffffff;
	margin-top: 36px;
	margin-bottom: 12px;
}

.articles ul {
	list-style: none;
	padding: 0;
}

.articles ul li {
	padding: 6px 0;
}

.articles ul li a {
	color: #b0b0b0;
	text-decoration: none;
	transition: color 0.2s;
}

.articles ul li a:hover {
	color: #6ea8fe;
}

.disclaimer {
	color: #777;
	font-size: 14px;
	margin-bottom: 12px;
}

/* --- Projects --- */

.project-card {
	margin-bottom: 40px;
}

.project-card h3 {
	font-size: 20px;
	font-weight: 500;
	color: #ffffff;
	margin-bottom: 12px;
}

.project-thumbnail {
	max-width: 280px;
	border-radius: 6px;
	border: 1px solid #222;
	transition: border-color 0.2s;
}

.project-thumbnail:hover {
	border-color: #6ea8fe;
}

/* --- Gallery --- */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	padding: 40px 8%;
}

.gallery-item {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid #222;
	cursor: pointer;
	transition: border-color 0.2s;
}

.gallery-label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.75);
	color: #e0e0e0;
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	opacity: 0;
	transition: opacity 0.2s;
}

.gallery-item:hover .gallery-label {
	opacity: 1;
}

.gallery-item:hover {
	border-color: #6ea8fe;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.92);
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.lightbox.visible {
	display: flex;
}

.lightbox-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 85vw;
	max-height: 90vh;
}

.lightbox-content img {
	max-width: 85vw;
	max-height: 82vh;
	border-radius: 4px;
}

.lightbox-name {
	margin-top: 12px;
	color: #b0b0b0;
	font-size: 16px;
	font-weight: 400;
}

.lightbox-prev, .lightbox-next {
	color: #888;
	font-size: 40px;
	padding: 0 24px;
	cursor: pointer;
	user-select: none;
	transition: color 0.2s;
	flex-shrink: 0;
}

.lightbox-prev:hover, .lightbox-next:hover {
	color: #ffffff;
}

@media (max-width: 700px) {
	.lightbox-prev, .lightbox-next {
		position: fixed;
		top: 50%;
		transform: translateY(-50%);
		font-size: 30px;
		padding: 12px;
		background: rgba(0, 0, 0, 0.6);
		border-radius: 50%;
		z-index: 110;
	}

	.lightbox-prev {
		left: 8px;
	}

	.lightbox-next {
		right: 8px;
	}

	.lightbox-content {
		max-width: 95vw;
	}

	.lightbox-content img {
		max-width: 95vw;
	}
}

/* --- Article pages --- */

.article_title {
	font-size: 26px;
	font-weight: 500;
	color: #ffffff;
	text-align: center;
	margin-bottom: 40px;
	padding: 0 8%;
}

.article_body {
	color: #b0b0b0;
	line-height: 1.8;
	text-indent: 40px;
	text-align: justify;
	overflow: visible;
	padding: 0 8%;
}

.article_body a {
	color: #6ea8fe;
	text-decoration: none;
	transition: color 0.2s;
}

.article_body a:hover {
	color: #ffffff;
}

.article_heading {
	font-size: 20px;
	font-weight: 500;
	color: #ffffff;
}

.article_body img {
	background-color: #ffffff;
	padding: 8px;
	border-radius: 4px;
}

.article_navigation {
	display: block;
	text-indent: 0;
	text-align: center;
	margin-top: 40px;
}

.article_navigation a {
	color: #6ea8fe;
	text-decoration: none;
}

.article_navigation a:hover {
	color: #ffffff;
}

/* --- Code --- */

pre {
	background-color: #161b22;
	border: 1px solid #222;
	border-radius: 6px;
	padding: 16px;
	overflow-x: auto;
	margin: 16px 0;
}

code {
	font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
	font-size: 15px;
	color: #c8d0da;
}

.code_background {
	background-color: #1a1a2e;
	border-radius: 4px;
	padding: 2px 6px;
}

.terminal {
	display: block;
	width: 100%;
	color: #08d612;
	background-color: #0a0a0a;
	border-radius: 6px;
	padding: 16px;
	white-space: pre-wrap;
	border: 1px solid #222;
}

.hljs-ln-numbers {
	border-right: 1px solid #333;
}

.text_red {
	color: #6ea8fe;
}

/* --- Links (legacy fallback for article pages) --- */

a {
	color: #6ea8fe;
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #ffffff;
}

/* --- Burger menu (hidden on desktop) --- */

.nav-toggle {
	display: none;
}

.nav-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	width: 28px;
	height: 24px;
}

.nav-burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: #e0e0e0;
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}

/* --- Mobile --- */

@media (max-width: 700px) {
	.nav-burger {
		display: flex;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #111111;
		border-bottom: 1px solid #222;
		padding: 16px 8%;
		gap: 16px;
		z-index: 50;
	}

	nav {
		position: relative;
	}

	.nav-toggle:checked ~ .nav-links {
		display: flex;
	}

	.nav-toggle:checked ~ .nav-burger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.nav-toggle:checked ~ .nav-burger span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle:checked ~ .nav-burger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.article_title {
		padding: 0 16px;
	}

	.article_body {
		padding: 0 16px;
	}
}
