:root {
	--color-text: hsl(0, 0%, 96%);
	--color-text-secondary: hsl(0, 0%, 72%);
	--color-bg-primary: hsl(0, 0%, 12%);
	--color-bg-secondary: hsl(0, 0%, 14%);
	--color-bg-tertiary: hsl(0, 0%, 17%);
	--color-border: hsl(0, 0%, 20%);
	--color-border-light: hsl(0, 0%, 21%);
	--color-scrollbar-thumb: hsl(0, 0%, 40%);
	--box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.2);
	--box-shadow-light: 0 1px 4px hsla(0, 0%, 0%, 0.15);
	--box-shadow-hover: 0 2px 8px hsla(0, 0%, 0%, 0.25);
	--border: 1px solid var(--color-border);
	--border-light: 1px solid var(--color-border-light);
}

@media only screen and (max-width: 768px) {
	section {
		padding: 1.6rem 1.6rem 2.4rem 1.6rem;
	}

	h1 {
		font-size: 2.4rem;
		font-weight: 500;
	}

	h2 {
		font-size: 2rem;
		font-weight: 500;
	}

	h3 {
		font-size: 1.6rem;
		font-weight: 500;
	}

	.section-introduction {
		flex-direction: column;
		padding-bottom: 1.6rem;
	}

	.project-item {
		flex-direction: column;
	}

	.project-item-image {
		width: 100%;
	}
}

@media only screen and (min-width: 768px) {
	section {
		padding: 3.2rem 3.2rem 4.8rem 3.2rem;
	}

	h1 {
		font-size: 3rem;
		font-weight: 500;
	}

	h2 {
		font-size: 2.4rem;
		font-weight: 500;
	}

	h3 {
		font-size: 2rem;
		font-weight: 500;
	}

	.section-introduction {
		flex-direction: row;
		padding-bottom: 3.2rem;
	}

	.project-item {
		flex-direction: row;
	}

	.project-item-image {
		width: clamp(250px, 25vw, 400px);
	}
}

html {
	font-size: 62.5%;
	font-family: "Inter", sans-serif;
	letter-spacing: 0.05em;
	scroll-behavior: smooth;
	scrollbar-color: var(--color-scrollbar-thumb) var(--color-bg-tertiary);
}

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

body {
	background-color: var(--color-bg-primary);
	color: var(--color-text);
	background-image: url("/assets/png/bgdottedgrid.png");
	background-repeat: repeat;
	background-size: 432px 432px;
	background-position: 32px 32px;
	background-attachment: fixed;
	min-height: 100vh;
}

h1,
h2,
h3 {
	font-weight: 500;
}

h4 {
	font-size: 1.6rem;
	font-weight: 400;
}

p {
	font-size: 1.6rem;
	font-weight: 300;
	line-height: 135%;
}

small {
	font-size: 1.4rem;
	font-weight: 300;
	line-height: 135%;
	color: var(--color-text-secondary);
}

b {
	font-weight: 500;
}

header {
	top: 0;
	position: sticky;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-bg-tertiary);
	min-height: 4.8rem;
	border: var(--border-light);
	box-shadow: var(--box-shadow);
	color: var(--color-text-secondary);
}

section {
	display: flex;
	flex-direction: column;
	background-color: var(--color-bg-secondary);
	border: var(--border);
	box-shadow: var(--box-shadow);
	border-radius: 8px;
}

footer {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	height: 6.4rem;
	color: var(--color-text-secondary);
}

.wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 80rem;
	margin: 136px auto 64px auto;
}

.divider {
	height: 1px;
	background-color: var(--color-border-light);
	margin: 2.4rem 0;
}

.section-introduction {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.6rem;
}

.introduction-container {
	display: flex;
	align-items: center;
	gap: 2.4rem;
}

.profile-picture {
	width: 10.4rem;
	height: 10.4rem;
}

.personal-info-container {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.title {
	color: var(--color-text-secondary);
	line-height: normal;
}

.location-container {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.6rem;
}

.link-container {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.link-button {
	color: var(--color-text);
	text-decoration: none;
	display: flex;
	align-items: center;
	width: fit-content;
	gap: 0.4rem;
	background-color: var(--color-bg-tertiary);
	border: var(--border-light);
	box-shadow: var(--box-shadow-light);
	border-radius: 6px;
	padding: 0.8rem;
	transition: filter 0.1s ease-in-out;
}

.link-button:hover {
	filter: brightness(1.1);
}

.link-button:active {
	filter: brightness(0.9);
}

.link-button > img {
	height: 2.4rem;
	width: 2.4rem;
}

.link-button > p {
	margin-left: 0.4rem;
}

.text-container {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.section-skills h4 {
	margin-bottom: 1.6rem;
}

.skills-content {
	display: flex;
	flex-direction: column;
	margin-bottom: 0.8rem;
}

.skill-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.6rem;
	margin-bottom: 16px;
}

.skill {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.skill > img {
	height: 2.4rem;
	width: 2.4rem;
}

.skill > p {
	font-weight: 300;
}

.education-content {
	display: flex;
	flex-direction: column;
	gap: 4.8rem;
}

.education-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3.2rem;
}

.education-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 32px;
}

.education-item::before {
	content: "";
	position: absolute;
	left: 2.6rem;
	top: 5.7rem;
	width: 2px;
	height: 100%;
	background-color: var(--color-border-light);
}

.education-item:last-child::before {
	display: none;
}

.education-item-image {
	width: 5.2rem;
	height: 5.2rem;
}

.container-transcript {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
}

.project-list {
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
	margin-top: 2.4rem;
}

.project-item {
	display: flex;
	gap: 3.2rem;
}

.project-item > a {
	position: relative;
	width: fit-content;
}

.project-item-image {
	display: block;
	aspect-ratio: 16 / 10;
	transition:
		filter 0.1s ease-in-out,
		transform 0.1s ease-in-out,
		box-shadow 0.1s ease-in-out;
	box-shadow: var(--box-shadow);
	border: var(--border-light);
	border-radius: 6px;
}

.project-item-image:hover {
	transform: scale(1.02);
	filter: brightness(0.65);
	box-shadow: var(--box-shadow-hover);
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	pointer-events: none;
}

.overlay > img {
	width: 48px;
	height: 48px;
}

.project-item > a:hover .overlay {
	opacity: 1;
}

.project-item-description {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.tech-item-container {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 0.8rem;
}

.tech-item {
	font-size: 1.4rem;
	font-weight: 300;
	color: var(--color-text-secondary);
	background-color: var(--color-bg-tertiary);
	border: var(--border-light);
	box-shadow: var(--box-shadow-light);
	border-radius: 6px;
	padding: 0.4rem 0.8rem;
	width: fit-content;
}
