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

:root {
	/* font */
	--ff-title: "Inter Tight", sans-serif;
	--text-title: 700 1.5rem/2rem var(--ff-title);

	--ff-body: "Inter", sans-serif;
	--text-prgh-md: 500 0.875rem/1.25rem var(--ff-body);
	--text-prgh-sm: 500 0.75rem/1rem var(--ff-body);
	--text-label-lg: 700 1rem/1.5rem var(--ff-body);
	--text-label-md: 700 0.875rem/1.5rem var(--ff-body);
	--text-label-sm: 700 0.75rem/1rem var(--ff-body);
	--text-link: 500 0.75rem/1rem var(--ff-body);

	/* color */
	/* content */
	--color-content-primary: #ffffff;
	--color-content-secondary: #98959d;
	--color-content-tertiary: #666666;
	--color-content-prof-title: #c9c9c9;
	--color-content-brand: #9282fa;
	/* background */
	--color-bkg-primary: #151515;
	--color-bkg-secondary: #1e1e1e;
	--color-bkg-tertiary: #23242c;
	--color-bkg-brand: #9282fa;
	--color-bkg-highlights: #bdb4fa;
	/* border */
	--color-border-primary: #3e3c41;
	--color-border-secondary: #86818c;
	--color-border-brand: #9282fa;
	--color-border-dividor: #353339;
	/* accent */
	--color-accent-blue: #027df0;
	--color-accent-blue-light: #16487a;
	--color-accent-yellow: #f0dc02;
	--color-accent-yellow-light: #756e1b;
	--color-accent-orange: #f09102;
	--color-accent-orange-light: #75501b;
	/* stroke */
	--color-card-stroke: #2e2c30;
}

html {
	height: 100vh;
	height: 100dvh;
}

body {
	margin-top: 2rem;
	padding-bottom: 4rem;

	overflow-x: hidden;
	background-color: var(--color-bkg-primary);
}

img {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}

a {
	text-decoration: none;

	font: var(--text-title);
	color: var(--color-content-primary);

	cursor: pointer;

	-webkit-tap-highlight-color: transparent;
}

h1 {
	font: var(--text-title);
	color: var(--color-content-primary);
}

h2 {
	font: var(--text-label-lg);
	color: var(--color-content-primary);
}

h3 {
	font: var(--text-label-md);
	color: var(--color-content-prof-title);
}

h4 {
	font: var(--text-label-sm);
	color: var(--color-content-tertiary);
}

p {
	font: var(--text-prgh-md);
	color: var(--color-content-secondary);
}

span {
	font: var(--text-prgh-md);
	color: var(--color-content-secondary);
}

legend {
	font: var(--text-prgh-md);
	color: var(--color-content-secondary);
}

hr {
	appearance: unset;

	width: 90%;
	height: 1px;

	justify-self: center;

	border-color: inherit;
	opacity: 0.15;
}

header {
	text-align: center;
	display: flex;
	flex-direction: column;
}

.container {
	width: 23.4375rem;
	padding-inline: 1rem;

	margin-inline: auto;
}

.skills-wrapper {
	margin-block: 2rem;

	text-align: center;

	& > h2 {
		margin-bottom: 0.5rem;
	}

	.skill-list {
		display: flex;
		flex-direction: row;

		gap: 1rem;
		flex-wrap: wrap;

		justify-content: center;

		& > * {
			height: 0.25rem;
		}
	}
}

.contact-email {
	font: var(--text-link);
	color: var(--color-content-secondary);

	position: relative;

	border-bottom: 2px solid transparent;

	transition: border-bottom 400ms;

	&:hover {
		border-bottom: 2px solid var(--color-border-primary);
	}

	&::after {
		content: "";
		position: absolute;

		left: -1.5rem;
		top: 50%;
		transform: translateY(-50%);

		width: 1.25rem;
		height: 1.25rem;

		mask: url(./01a4d15c9d9744fa8963.svg) no-repeat center;
		mask-size: contain;
		background-color: var(--color-content-secondary);
	}
}

.return-to-main {
	align-self: flex-end;
	width: 1.25rem;
	height: 1.25rem;

	/* margin-right: 2rem; */

	mask: url(./97024984579db92710c2.svg) no-repeat center;
	mask-size: contain;
	background-color: var(--color-content-secondary);

	transform: scaleX(-1);

	& > a {
		display: block;
		height: 100%;
		width: 100%;
	}
}

.link {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.2rem;

	width: fit-content;

	border-bottom: 1px solid var(--color-content-tertiary);

	position: relative;
	& > img {
		width: 0.5rem;
		height: 0.5rem;
	}
	& > a {
		position: absolute;

		height: 100%;
		width: 100%;
	}
}

.pin {
	display: flex;
	flex-direction: row;
	gap: 1rem;

	& > div {
		display: flex;
		flex-direction: row;
		gap: 0.1rem;

		& > img {
			transform: translateY(-0.05rem);
			width: 1.25rem;
			height: 1.25rem;
		}
	}
}

.project-card {
	display: flex;
	flex-direction: row;
	/* gap: 0.25rem; */

	min-height: 8rem;
	width: 100%;

	align-items: stretch;

	background-color: var(--color-bkg-secondary);

	border-radius: 0.25rem;

	padding: 0.5rem;

	& .exp-info {
		flex: 2;

		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		gap: 0.5rem;

		& :nth-child(2) {
			/* margin-top: 0.25rem; */
		}
	}

	& .project-img {
		height: auto;
		width: 100%;

		border-radius: 0 0.25rem 0.25rem 0;

		flex: 1;
		overflow: hidden;

		position: relative;

		display: flex;
		justify-content: center;
		align-items: center;

		&::after {
			content: "";
			position: absolute;

			inset: 0;

			background: linear-gradient(
				to right,
				var(--color-bkg-secondary) 0% 10%,
				rgba(0, 0, 0, 0) 20% 100%
			);

			background-repeat: no-repeat;
			background-size: cover;
			background-position: center;
		}

		& > img {
			position: absolute;

			height: 100%;
			width: 100%;
			object-fit: cover;
		}
	}
}

.flex-row-05 {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
}

@media (width >= 80em) {
	.container {
		width: 40rem;
	}
}

hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;

	/* margin-top: 2rem; */

	& > :nth-child(2) {
		margin-top: 2rem;
	}
	& > :nth-child(3) {
		margin-top: 1rem;
	}
	& > :nth-child(4) {
		margin-top: 0.25rem;
	}
	& > :nth-child(5) {
		margin-top: 1.25rem;
	}
	& > :nth-child(6) {
		margin-top: 1.25rem;
	}

	& > a {
		align-self: flex-end;
		margin-right: 1rem;
		/* margin-top: 1.5rem; */
	}
	& > hr {
		margin-top: 1rem;
	}
}

.profile-img {
	width: 8rem;
	height: 8rem;

	background: no-repeat center / cover
		url(./4530a97d5d2ef89dfdc6.webp);

	border-radius: 50%;
	border: 2px solid var(--color-content-tertiary);

	position: relative;
}

.social-links {
	display: flex;
	flex-direction: row;

	justify-content: center;
	align-items: center;

	gap: 2rem;

	& > a {
		width: 1.75rem;
		height: 1.75rem;

		margin: 0;
	}
	& :nth-child(1) {
		background: no-repeat center/cover url(./e07e66fd04ed1b4718df.svg);
	}
	& :nth-child(2) {
		background: no-repeat center/cover url(./c4b4d65bff72f5d63e23.svg);
	}
	& :nth-child(3) {
		background: no-repeat center/cover url(./532c24ba9ffe51777dfb.svg);
	}
}

.button-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;

	gap: 1rem;
	height: 4rem;

	background-color: var(--color-bkg-secondary);
	border-radius: 0.25rem;
	border: 1px solid var(--color-border-primary);

	padding-inline: 1rem;

	position: relative;

	transition: border-color 400ms ease-in;

	&:hover {
		border-color: var(--color-border-secondary);
	}

	& > :nth-child(1) {
		flex: auto;
	}

	& > .right-arrow {
		width: 1rem;
		height: 1rem;
		mask: url(./97024984579db92710c2.svg) no-repeat center;
		mask-size: contain;
		background-color: var(--color-content-tertiary);
	}

	& > a {
		position: absolute;

		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
	}
}

.portfolio-list {
	margin-top: 2rem;
	& > nav {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}
}

.gd-info {
	display: flex;
	flex-direction: row;
	gap: 1rem;

	margin-top: 2rem;

	justify-content: center;

	.gd-info-block {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;

		align-items: center;

		max-width: 6rem;

		text-align: center;

		flex: 1;
	}

	.vertical-divider {
		width: 2px;
		height: 4rem;
		background-color: var(--color-border-dividor);
		opacity: 1;
	}
}

.projects {
	display: flex;
	flex-direction: column;
	align-items: center;

	gap: 1rem;

	margin-top: 3rem;
}

footer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	margin-top: 4rem;
	gap: 1.75rem;
}

