@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

:root {
	--body-bg: black;
	--main: white;
	--gray: #ccc;
	--dark-gray: #d1d5db;
	--link: #0ea5e9;
	--skill: #333;
	--border: #333;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0 20px;
	background-color: var(--body-bg);
	color: var(--main);
	font-family: "Poppins", sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: 400;
	line-height: 2em;
	letter-spacing: -0.022em;
	-webkit-font-smoothing: subpixel-antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Layout */
.wrapper {
	margin: 0 auto;
	max-width: 1000px;
	display: flex;
	justify-content: center;
}

.sidebar {
	padding: 50px 50px 0 0;
	width: 200px;
}

.content {
	width: 700px;
}

/* Logo */
.logotype {
	position: sticky;
	top: 60px;
}

.red-circle {
	background-color: #bd1c17;
	width: 85px;
	height: 85px;
	border-radius: 50px;
}

/* Navigation */
.navigation {
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 175px;
}

a {
	cursor: pointer;
	color: var(--gray);
	line-height: 2.5em;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a.active {
	color: var(--main);
}

/* Typography */
h2 {
	font-size: 3em;
	font-weight: bold;
	margin: 0;
}

h3 {
	margin: 0;
	text-transform: uppercase;
}

p,
li {
	line-height: 2em;
	color: var(--dark-gray);
	transition: color 0.2s ease;
}

.date-span {
	font-size: 2em;
	margin: 0;
	color: var(--gray);
	text-transform: uppercase;
}

p a {
	border-bottom: 1px solid var(--body-bg);
	color: var(--link);
	line-height: 2em;
	transition: all 0.2s ease;
}

p a:hover {
	border-bottom: 1px solid var(--link);
}

.navigation a {
	margin-bottom: 1.5rem;
}

/* Lists */
ul {
	padding: 0;
	list-style-type: none;
	margin-left: 15px;
}

li {
	margin-bottom: 10px;
}

li:before {
	content: "–";
	display: inline-block;
	color: var(--gray);
	position: absolute;
	margin-left: -15px;
	transition: color 0.2s ease;
}

/* Sections */
#experience {
	border-bottom: 1px solid var(--border);
	margin-top: 150px;
	margin-bottom: 100px;
	transition: border-bottom 0.2s ease;
}

#projects,
#education,
#skills {
	margin-bottom: 7rem;
}

#links {
	margin-top: 4rem;
}

.work {
	margin-bottom: 6em;
}

.work > h2,
.project > h2,
.degree > h2 {
	margin-bottom: 0.5em;
	line-height: 1em;
}

.project,
.degree {
	margin-bottom: 50px;
}

.project p,
.degree p {
	margin: 0;
}

/* Skills */
.skills {
	width: 100%;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}

.skill {
	padding: 2px 10px;
	border: 1px solid var(--skill);
	border-radius: 5px;
	margin-right: 10px;
	margin-top: 10px;
	transition: border 0.2s ease;
}

.skill p {
	margin: 0;
}

/* Links / social icons */
.social-icon {
	margin: 10px;
	height: 50px;
	width: 50px;
	background-color: #fff;
	border-radius: 10px;
	padding: 5px;
}

/* Animations */
.fade-in-bottom {
	-webkit-animation: fade-in-bottom 0.6s cubic-bezier(0.39, 0.575, 0.565, 1)
		both;
	animation: fade-in-bottom 0.6s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

@-webkit-keyframes fade-in-bottom {
	0% {
		-webkit-transform: translateY(10px);
		transform: translateY(10px);
		opacity: 0;
	}
	100% {
		-webkit-transform: translateY(0);
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes fade-in-bottom {
	0% {
		-webkit-transform: translateY(10px);
		transform: translateY(10px);
		opacity: 0;
	}
	100% {
		-webkit-transform: translateY(0);
		transform: translateY(0);
		opacity: 1;
	}
}

/* Responsive */
@media (max-width: 1200px) {
	.content {
		width: 100%;
	}
	h2 {
		font-size: 2em;
	}
	.logotype {
		margin-bottom: 0;
		position: relative;
		top: 0;
	}
	.navigation {
		position: relative;
		top: 0;
	}
	.sidebar {
		padding: 0;
		width: 100%;
	}
	.skills {
		flex-direction: column;
	}
	.skill {
		margin-bottom: 12px;
	}
	.wrapper {
		flex-direction: column;
	}
}
