* {
	padding: 0;
	margin: 0;
	text-decoration: none;
	box-sizing: border-box;
}

@font-face {
	font-family: "Montserrat";
	src: url("../Assets/Fonts/Montserrat-VariableFont_wght.ttf");
}

:root {
	--primary-color: #cacaca;
	--secondary-color: #8a8a8a;
}

body {
	background: #2F2F2F;
}

.wrapper {
	height: 100vh;
	padding: 120px 25px 0;
}

.wrapper h1 {
	font-family: "Montserrat", Tahoma, Arial, sans-serif;
	font-size: 50px;
	color: var(--primary-color);
}

.portfolio {
	display: flex;
	justify-content: center;
	align-items: center;	
	gap: 30px;
	padding-top: 140px;
}

.project-wrapper {
	position: relative;
	width: 27vw;
}

.project-wrapper::before {
	content: '';
	position: absolute;
	top: 10px;
	left: 10px;
	width: 100%;
	height: 100%;
	background-color: rgba(36 36 36 / .9);
	z-index: -1;
}

.project-wrapper > h2 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding: 5px 0;
	font-size: 11px;
	font-family: "Montserrat", Tahoma, Arial, sans-serif;
	text-transform: uppercase;
	background: #ddd;
	color: #1e1e1e;
	text-align: center;
	z-index: 200;
}

.project-wrapper > h2 > span {
	position: absolute;
	top: 7px;
	left: 10px;
	width: 12px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: #ff5f57;
}

.project-wrapper > h2 > span::before, 
.project-wrapper > h2 > span::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	border-radius: 50%;
	
}

.project-wrapper > h2 > span::before {
	transform: translate(16px);
	background: #ffbd2e;
}

.project-wrapper > h2 > span::after {
	transform: translate(32px);
	background: #28ca41;
}

.image-wrapper {
	/*border: 1px solid #fff;*/
}

.image-wrapper > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.modal-wrapper {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.modal-wrapper:hover .modal-content {
	translate: 0%;
}

.modal-wrapper:hover li:nth-child(1) {
	animation: drop .3s ease-in-out forwards;
	animation-delay: .5s;
}

.modal-wrapper:hover li:nth-child(2) {
	animation: drop .3s ease-in-out forwards;
	animation-delay: .6s;
}

.modal-wrapper:hover li:nth-child(3) {
	animation: drop .3s ease-in-out forwards;
	animation-delay: .7s;
}

.modal-wrapper:hover li:last-child {
	animation: drop .3s ease-in-out forwards;
	animation-delay: .8s;
}

.modal-content {
	position: relative;
	height: 100%;
	translate: 0 -100%;
	transition: all .3s;
}

.modal-background {
	height: 100%;
	background-color: rgba(0 0 0 / .4);
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

@keyframes drop {
	to { translate: 0%; }
}

.languages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	list-style-type: none;
	width: 70%;
	overflow: hidden;
}

.languages li {
	font-size: 13px;
	font-family: "Montserrat", Tahoma, Arial, sans-serif;
	font-weight: bold;
	padding: 5px 10px;
	background: rgb(49 49 49);
	color: #999;
	border-radius: 3px;
	translate: 0 -100px;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.project-wrapper > h2 > span {
		width: 4%;
	}
}

@media (max-width: 850px) {
	.wrapper > h1 { font-size: 40px; }
	
	.portfolio {
		flex-direction: column;
		width: min(100%, 425px);
		margin-inline: auto;
	}
	
	.project-wrapper {
		width: fit-content;
	}
	
	.project-wrapper > h2 > span {
		width: 12px;
	}
}

@media (max-width: 360px) {
	.project-wrapper > h2 { font-size: 10px; }

	.project-wrapper > h2 > span {
		width: 10px;
	}

	.languages {
		gap: 5px;
	}
	
	.languages li {
		font-size: 10px;
	}
}