@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
	font-family: 'Montserrat', sans-serif;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, span {
	color: #242424;
	text-align: center;
	line-height: 1.25;
}

p {
	line-height: 1.5;
	font-size: 16px;
}

a {
	text-decoration: none;
	position: relative;
	transition: opacity 300ms ease;
}

i:hover {
	opacity: 0.7
}

.link__hover-affect:after {
	content: "";
	position: absolute;
	height: 3px;
	background-color: #ffb703;
	width: 0;
	bottom: -3px;
	right: 0;
	transition: all 300ms ease;
}

.link__hover-affect:hover:after {
	width: 100%;
	left: 0;
}

.no-cursor {
	cursor: not-allowed;
}

li {
	list-style-type: none;
}

body {
	background-color: #FAF9F6;
	color: #242424;
}

.text--orange {
	color: #ffb703;
}

.container {
	padding: 50px 0;
}

.row {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 12px;
}

.section__title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 20px;
}

/* NAVIGATION BAR */

nav {
	height: 100px;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #FAF9F6;
	padding: 0 12px;
}

.nav__link--list {
	display: flex;
}

.nav__link--anchor {
	margin: 0 12px;
	color: #242424;
	text-decoration: none;
	font-weight: 700;
}

.nav__link--anchor--primary {
	background-color: #ffb703;
	padding: 8px 20px;
	border-radius: 50px;
	color: #ffffff;
	transition: all 300ms ease;
}

.nav__link--anchor--primary:hover {
	background-color: #ffcf56;
}

.personal__logo {
	font-size: 24px;
	color: #242424;
	margin: 0 12px;
	font-weight: bold;
}

/* ABOUT ME */

#about-me {
	min-height: calc(100vh - 100px);
	display: flex;
	justify-content: center;
	align-items: center;
}

.about-me__title {
	font-size: 4rem;
	margin: 0.5vh 0;
	text-align: left;
}

.about-me__description {
	color: gray;
	font-size: 1.2rem;
}

.about-me__title--animation1 {
	animation: fade-up 400ms ease;
}

.about-me__title--animation2 {
	animation: fade-up 600ms ease;
}

.about-me__description--animation {
	animation: fade-up 800ms ease;

}

@keyframes fade-up {
	0% {
		opacity: 0;
		transform: translateY(40px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* LANGUAGES */

.language__img {
	width: 100%;
	max-width: 100px;
	transition: all 300ms ease;
}

.language:hover .language__img {
	filter: brightness(80%);
	opacity: 0.86;
	transform: scale(0.9);
}

.language {
	width: 25%;
	display: flex;
	justify-content: center;
	position: relative;
}

.language__img--wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 25px 16px;
}

.language__list {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
}

.language__name {
	position: absolute;
	bottom: 0;
	transform: scale(0);
	transition: all 300ms ease;
	font-size: 20px;
	opacity: 0;
}

.language:hover .language__name {
	transform: scale(1);
	opacity: 1;
}

/* PROJECTS */

.project {
	margin-bottom: 135px;
}

.project:last-child {
	margin-bottom: 40px;
}

.project__img {
	width: 100%;
	transition: all 500ms ease;
}

.project__wrapper {
	display: flex;
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
	border-radius: 20px;
	overflow: hidden;
	position: relative;
}

.project__wrapper:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: #1c1d25;
	opacity: 0;
	transition: opacity 450ms ease;
	z-index: 2;
}

.project:hover .project__wrapper:before {
	opacity: 0.7;
}

.project:hover .project__img {
	transform: scale(1.07);
	filter: blur(5px);
}

.project:hover .project__description {
	opacity: 1;
	transform: translateY(-50%);
}

.project__list {
	padding-top: 40px;
}

.project__description {
	position: absolute;
	top: 50%;
	left: 90px;
	transform: translateY(100%);
	max-width: 550px;
	z-index: 3;
	opacity: 0;
	transition: transform 450ms, opacity 300ms ease;
}

.project__description--title {
	font-size: 40px;
}

.project__description--para {
	margin: 16px 0;
}

.project__description--link {
	font-size: 20px;
	margin-right: 16px;
	text-decoration: none;
}

.project__description--link--text {
	margin-left: 12px;
	font-weight: normal;
}

.project__description--title,
.project__description--sub-title,
.project__description--para,
.project__description--link,
.project__description--link--text {
	text-align: left;
	color: #ffffff;
}


/* CONTACT */

.contact__img--container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.contact__img {
	width: 100%;
	max-width: 370px;

}

.contact__img--para {
	color: gray;
	font-size: 1.7rem;
	text-align: center;
	max-width: 900px;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
}

.contact__links {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-evenly;
	padding: 10px 40px;
	margin-top: 13vh;
}

.contact__link--icon {
	color: #242424;
}

.contact__link--text {
	color: #242424;
	margin-left: 8px;
}

.contact__link {
	padding: 15px;
	font-size: 1.3rem;
	width: 25%;
	justify-content: center;
}

/* FOOTER */

#footer {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 20px;
	color: gray;
}

.contact__link--text {
	font-family: Montserrat, sans-serif;
	font-weight: normal;
}

.fa-solid {
	font-size: 1.1rem;
}

/* Styles for screens with a width of 0px to 768px (usually mobile devices) */
@media (max-width: 768px) {
	nav {
		height: 68px;
	}

	.language {
		width: calc(100% / 2);
	}

	.project__description--para {
		font-size: 14px;
	}

	.project__description--link {
		left: 30px;
		padding-right: 30px;
	}
}

/* SMALL PHONES */
@media (max-width: 480px) {
	.nav__link:not(:last-child) {
		display: none;
	}

	.about-me__title {
		font-size: 56px;
	}

	.section__title {
		font-size: 36px;
	}
	.project__description {
		padding: 0;
	}

	.project__description--para {
		display: none;
		left: 0;
		width: 100%;
	}

	.project__description--links {
		display: flex;
		justify-content: center;
	}

	.project__description--link--text {
		display: none;
	}

	.project__description--sub-title {
		text-align: center;
		margin: 12px 0;
	}

	.project__description--title {
		font-size: 32px;
		line-height: 1;
		text-align: center;
	}

	.contact__img--container {
		transform: scale(0.9)
	}

	.contact__img--para {
		font-size: 1.27rem;
	}

	.contact__links {
		font-size: 1.2rem;
		margin-top: 0;
	}

	.contact__link {
		width: calc(100% / 2);
		padding: 10px;
	}

	.contact__link--text {
		font-size: 1.2rem;
	}

	.section__title:last-child {
		margin-bottom: 0;
	}

	.container:last-child {
		padding-bottom: 0;
	}
}