@import url("https://fonts.googleapis.com/css2?family=Jersey+20&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Space+Grotesk:wght@300..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Jersey+20&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Space+Grotesk:wght@300..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

* {
	margin: 0;
	padding: 0;
	font-family: "Nunito", sans-serif;
}

html {
	height: 100%;
}

body {
	height: 100%;
}

.photo-1 {
	max-width: 364.89px;
	min-height: 350px;
	line-height: 0;
	display: block;
}

.photo-2 {
	flex-shrink: 1;
	max-width: 100%;
	height: auto;
	min-width: 0;
	display: block;
	object-fit: cover;
}

.icon-1 {
	height: 1.5rem;
}

.icon-2 {
	height: 1.5rem;
}

.project-img {
	height: 250px;
	width: 400px;
	line-height: 0;
	display: block;
}

main {
	display: grid;
	grid-template-rows: 450px 1fr 450px;
}

#about-me-bg {
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: center;
}

#about-me {
	padding: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.top {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #219ebc;
	clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 100%);
	z-index: -1;
}

.bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: white;
	clip-path: polygon(0 100%, 100% 50%, 100% 100%);
	z-index: -1;
}

figure {
	position: relative;
}

figure > figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	text-align: center;
	color: white;
	font-size: 3rem;
	font-family: "Playfair Display";
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
	padding-bottom: 5px;
}

#about-me > article {
	background-color: white;
	padding: 15px;
	max-width: 800px;
	min-height: 250px;
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

#about-me > article > h2 {
	font-size: 1.65rem;
}

#about-me > article > p {
	margin-top: 15px;
	margin-bottom: 20px;
	font-size: 1.25rem;
}

#about-me > article > div {
	display: flex;
	justify-content: flex-end;
	gap: 15px;
}

main > section:nth-child(2) {
	margin-top: 70px;
	margin-bottom: 70px;
	padding-left: 40px;
	padding-right: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

main > section:nth-child(2) > h2 {
	padding-right: 1196px;
	font-size: 1.65rem;
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, 400px);
	gap: 50px;
}

.project > div {
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
	height: 200px;
	width: 400px;
	padding-top: 10px;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

.project > div > div {
	display: flex;
	justify-content: space-between;
}

.project-links {
	display: flex;
	gap: 15px;
}

.project-title {
	font-weight: 700;
	font-size: 1.15rem;
	margin-bottom: 10px;
	text-decoration: none;
	color: black;
}

.project-title:hover {
	border-bottom: 2px solid black;
	cursor: pointer;
}

footer {
	font-size: 1.15rem;
	padding: 40px;
	background-color: #219ebc;
	color: #e9ecef;
	display: flex;
	justify-content: center;
	gap: 350px;
}

footer > section {
	flex-shrink: 0;
}

footer > section > h2 {
	font-size: 1.75rem;
	margin-bottom: 20px;
}

footer > section > p:nth-child(2) {
	margin-bottom: 20px;
}

footer > section > p:nth-child(3) {
	margin-bottom: 20px;
}

footer > section > div {
	display: flex;
	align-items: center;
	gap: 15px;
}

footer > section > div:nth-child(5) {
	margin-bottom: 30px;
}

@media (max-width: 1400px) {
	#about-me {
		display: block;
	}

	figure {
		float: left;
		margin-right: 20px;
	}

	figure > figcaption {
		top: 15px;
		left: 80%;
		bottom: auto;
		background: none;
	}

	#about-me-bg {
		overflow: visible;
	}

	#about-me > article {
		margin-top: 100px;
		margin-left: 40px;
	}

	#about-me > article > h2 {
		text-align: center;
		margin-top: 50px;
	}

	#about-me > article > p {
		padding-left: 25px;
		margin-bottom: 30px;
	}

	.grid {
		grid-template-columns: repeat(2, 400px);
	}

	main > section:nth-child(2) > h2 {
		padding-right: 744px;
		overflow-wrap: nowrap;
		margin-top: 100px;
	}

	footer {
		gap: 50px;
	}
}

@media (max-width: 950px) {
	.photo-1 {
		object-fit: cover;
		height: 450px;
		width: 400px;
		margin-top: 350px;
	}

	#about-me {
		display: flex;
		flex-direction: column;
	}

	figure {
		float: none;
		margin-right: 0;
	}

	figure > figcaption {
		width: 100%;
		top: auto;
		left: 0;
		bottom: 0;
		text-align: center;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
	}

	#about-me > article {
		box-shadow: none;
		margin-top: 0;
		margin-left: 0;
	}

	#about-me > article > h2 {
		margin-top: 10px;
	}

	#about-me > article > p {
		padding-left: 0;
		margin-bottom: 30px;
		text-align: justify;
	}

	#about-me > article > div {
		justify-content: center;
	}

	.grid {
		grid-template-columns: 400px;
	}

	main > section:nth-child(2) > h2 {
		padding-right: 0px;
		margin-top: 500px;
	}

	footer {
		flex-direction: column;
		height: max-content;
		align-items: center;
	}

	footer > section > div:nth-child(6) {
		justify-content: center;
	}
}

@media (max-width: 1400px) and (max-device-width: 950px) {
	.photo-1 {
		object-fit: cover;
		height: 450px;
		width: 400px;
		margin-top: 350px;
	}

	#about-me {
		display: flex;
		flex-direction: column;
	}

	figure {
		float: none;
		margin-right: 0;
	}

	figure > figcaption {
		width: 100%;
		top: auto;
		left: 0;
		bottom: 0;
		text-align: center;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
	}

	#about-me > article {
		box-shadow: none;
		margin-top: 0;
		margin-left: 0;
	}

	#about-me > article > h2 {
		margin-top: 10px;
	}

	#about-me > article > p {
		padding-left: 0;
		margin-bottom: 30px;
		text-align: justify;
	}

	#about-me > article > div {
		justify-content: center;
	}

	.grid {
		grid-template-columns: 400px;
	}

	main > section:nth-child(2) > h2 {
		padding-right: 0px;
		margin-top: 500px;
	}

	footer {
		flex-direction: column;
		height: max-content;
		align-items: center;
	}

	footer > section > div:nth-child(6) {
		justify-content: center;
	}
}

@media (min-width: 1401px) and (max-device-width: 1400px) {
	#about-me {
		display: block;
	}

	figure {
		float: left;
		margin-right: 20px;
	}

	figure > figcaption {
		top: 15px;
		left: 80%;
		bottom: auto;
		background: none;
	}

	#about-me-bg {
		overflow: visible;
	}

	#about-me > article {
		margin-top: 100px;
		margin-left: 40px;
	}

	#about-me > article > h2 {
		text-align: center;
		margin-top: 50px;
	}

	#about-me > article > p {
		padding-left: 25px;
		margin-bottom: 30px;
	}

	.grid {
		grid-template-columns: repeat(2, 400px);
	}

	main > section:nth-child(2) > h2 {
		padding-right: 744px;
		overflow-wrap: nowrap;
		margin-top: 100px;
	}

	footer {
		gap: 50px;
	}
}
