/* ── Aggressively Dark Terminal Theme ── */

body {
	font-family: "Courier New", Courier, "Liberation Mono", monospace;
	margin: 0;
	background: #000;
	color: #c8d0c0;
	font-size: 19px;
	line-height: 1.6;
}

header {
	background-color: #0a0a0a;
	color: #e0e8d8;
	padding: 20px;
	border-bottom: 1px solid #1a1a1a;
	overflow: hidden;
}

nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

nav li {
	display: inline-block;
	margin: 3px 0;
}

nav a {
	display: block;
	padding: 10px 14px;
	color: #c8d0c0;
	text-decoration: none;
	background-color: transparent;
	border-radius: 0;
	transition: color 0.15s;
}

nav a:hover {
	color: #00e676;
	background-color: transparent;
}

@media only screen and (max-width: 600px) {
	nav a {
		padding: 8px 10px;
		font-size: 16px;
	}
}

section {
	padding: 20px;
	max-width: 960px;
	margin: 0 auto;
}

section#about,
section#projects,
section#contact {
	display: block;
}

h2 {
	font-size: 28px;
	margin-top: 0;
	margin-bottom: 16px;
	width: 100%;
	color: #e0e8d8;
	font-weight: normal;
	letter-spacing: 0.02em;
}

h3 {
	font-size: 22px;
	margin-bottom: 4px;
	width: 100%;
	color: #e0e8d8;
	font-weight: normal;
}

.project-label {
	color: #7a8a7a;
	font-weight: normal;
	font-size: 13px;
	margin: 0 0 2px 0;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

a {
	color: #00e676;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s;
}

a:hover {
	color: #69f0ae;
}

.artwork-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.artwork-grid li {
	min-width: 0;
}

.artwork-grid p {
	margin: 0;
}

.artwork-grid img {
	max-width: 400px;
	width: 100%;
	height: auto;
	border: 1px solid #1a1a1a;
	border-radius: 0;
	transition: border-color 0.15s;
}

.artwork-grid img:hover {
	border-color: #00e676;
}

section#projects .projects-grid,
section#game-development .projects-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

section#projects .project-card,
section#game-development .project-card {
	break-inside: avoid;
	padding: 16px;
	border: 1px solid #1a1a1a;
	border-radius: 0;
}

section#projects .project-card:hover,
section#game-development .project-card:hover {
	border-color: #2a2a2a;
}

section#projects p,
section#game-development p {
	margin: 8px 0;
}

section#projects a,
section#game-development a {
	color: #00e676;
}

section#game-development .projects-grid {
	display: block;
}

section#game-development .project-card {
	border: 0;
	border-top: 1px solid #1a1a1a;
	padding: 18px 0;
}

section#game-development .project-card:first-child {
	border-top-color: #2a2a2a;
}

@media only screen and (max-width: 768px) {
	section#projects .projects-grid,
	section#game-development .projects-grid {
		grid-template-columns: 1fr;
	}
}

section ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

section .contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 20px;
}

#back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	font-size: 24px;
	color: #c8d0c0;
	background-color: #0a0a0a;
	width: 40px;
	height: 40px;
	border-radius: 0;
	border: 1px solid #1a1a1a;
	text-align: center;
	line-height: 40px;
	z-index: 9999;
	text-decoration: none;
	font-family: "Courier New", Courier, monospace;
	transition: color 0.15s, border-color 0.15s;
}

#back-to-top:hover {
	color: #00e676;
	border-color: #00e676;
	background-color: #000;
}

#back-to-top:active {
	color: #69f0ae;
	border-color: #69f0ae;
}

@media only screen and (max-width: 768px) {
	.artwork-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media only screen and (max-width: 480px) {
	.artwork-grid {
		grid-template-columns: 1fr;
	}
}

section#projects ul.project-gallery,
section#game-development ul.project-gallery {
	list-style: none;
	margin: 8px 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

section#projects ul.project-gallery li,
section#game-development ul.project-gallery li {
	width: 100%;
}

section#projects ul.project-gallery img,
section#game-development ul.project-gallery img {
	width: 100%;
	height: auto;
	border: 1px solid #1a1a1a;
	border-radius: 0;
}

section#projects ul.project-gallery img:hover,
section#game-development ul.project-gallery img:hover {
	border-color: #00e676;
}

section#projects .project-tech,
section#game-development .project-tech {
	font-size: 0.85em;
	color: #7a8a7a;
	margin: 6px 0;
}

section#projects ul.project-highlights,
section#game-development ul.project-highlights {
	list-style: none;
	padding-left: 0;
	margin: 6px 0;
}

section#projects ul.project-highlights li,
section#game-development ul.project-highlights li {
	margin: 3px 0;
	padding-left: 16px;
	position: relative;
}

section#projects ul.project-highlights li::before,
section#game-development ul.project-highlights li::before {
	content: ">";
	position: absolute;
	left: 0;
	color: #00e676;
}
