:root {
	--blue-charcoal: #000921;
	--alto-30: rgba(217, 217, 217, 0.3);
	--alto-40: rgba(217, 217, 217, 0.4);
	--alto-60: rgba(217, 217, 217, 0.6);
	--gulf-blue: #051C5A;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
	scroll-behavior: smooth;
}

body {
	background: var(--blue-charcoal);
	display: flex;
	justify-content: center;
}

main {
	max-width: 750px;
	width: 100%;
	padding: 40px 10px;
	display: flex;
	flex-flow: column;
	gap: 50px;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

header img {
	max-height: 50px;
}

ul {
	list-style: none;
	display: flex;
	gap: 15px;
}

a {
	text-decoration: none;
	color: #ccc;
	transition: all .3s;
}

a:hover {
	color: white;
}

button {
	color: white;
	border: none;
	outline: none;
	font-size: 16px;
	padding: 10px 16px;
	border-radius: 6px;
	background: var(--alto-40);
	cursor: pointer;
	transition: all .3s;
}

button.link {
	font-size: 14px;
	padding: 8px 14px;
}

button.link a {
	color: inherit;
}

button:hover {
	background: var(--alto-60);
}

button:active {
	background: var(--alto-30);
}

section h1 {
	font-size: 20px;
	color: white;
	width: fit-content;
	text-transform: uppercase;
	border-bottom: 1px solid var(--alto-40);
	padding-bottom: 2px;
	margin-bottom: 15px;
}

.projects {
	display: flex;
	flex-flow: column;
	gap: 25px;
}

.project {
	border-bottom: 1px dashed var(--alto-40);
	padding-bottom: 25px;
}

.project:last-child {
	border-bottom: unset;
}

.project-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.project-header img {
	max-height: 27px;
	border-radius: 100%;
}

.project-header h2 {
	font-size: 18px;
	color: white;
}

.project p {
	margin: 5px 0 10px 0;
	color: white;
}

.splide__pagination {
	bottom: -20px !important;
}

.splide__slide__container {
	max-height: 180px;
	max-width: 320px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.splide__slide__container img {
	max-height: 100%;
	cursor: pointer;
	max-width: 100%;
}

.project-links {
	margin-top: 20px;
	display: flex;
	gap: 10px;
}

.experiences {
	display: flex;
	flex-flow: column;
	gap: 20px;
}

.experience {
	display: grid;
	grid-template-areas:
		"icon name period"
		"icon role role"
		"icon description description";
	grid-template-columns: 35px 1fr 150px;
	grid-template-rows: 20px 20px 1fr;
}

.experience img {
	grid-area: icon;
	max-width: 100%;
	justify-content: center;
	border-radius: 6px;
}

.experience h2 {
	grid-area: name;
	color: white;
	font-size: 18px;
	align-self: center;
	margin-left: 8px;
}

.experience-period {
	grid-area: period;
	align-self: center;
	color: #bbb;
	font-size: 14px;
}

.experience-role {
	grid-area: role;
	color: #ccc;
	margin-left: 8px;
}

.experience-description {
	grid-area: description;
	color: white;
	font-size: 14px;
	color: #eee;
	margin: 10px 20px 0 10px;
}

.contacts {
	display: flex;
	flex-flow: column;
	gap: 10px;
}

.contact {
	display: flex;
	gap: 5px;
	color: white;
	align-items: center;
}

.contact img {
	max-height: 25px;
}

.contact a {
	font-size: 14px;
	color: white;
	line-height: 14px;
	margin-left: 5px;
}

.image-modal {
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 3001;
	display: none;
}

.image-modal-overlay {
	background: rgba(0, 0, 0, .6);
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	transition: all .2s;
	animation: fadeIt .2s ease-out;
}

.image-modal-content {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.image-modal-content img {
	max-height: 90vh;
	max-width: 90vw;
	transition: all .2s;
	animation: scaleIt .2s ease-out;
}

@keyframes scaleIt {
	from {
		opacity: 0;
		transform: scale(0.3);
	} to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fadeIt {
	from {
		opacity: 0;
	} to {
		opacity: 1;
	}
}

@media (max-width: 400px) {
	.experience {
		grid-template-areas:
			"icon name"
			"icon role"
			"icon period"
			"icon description";
		grid-template-columns: 35px 1fr;
		grid-template-rows: 20px 20px 20px 1fr;
	}

	.experience-period {
		margin-left: 8px;
	}
}
