:root {
	scroll-behavior: smooth;
}
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}
body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	color: #36454f;
	line-height: 1.5;
	min-width: 360px;
}

form {
	width: 100%;
}
p {
	font-size: 1.125rem;
}
p,
h1,
h2,
h3 {
	margin-block-end: 1rem;
}
h1,
h2,
h3 {
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-weight: 800;
}
h1 {
	font-size: 3rem;
}
h2 {
	font-size: 2.5rem;
}
h3 {
	font-size: 2rem;
}

.p-lg {
	padding-block: 6rem;
}
.p-md {
	padding-block: 3rem;
}
.p-sm {
	padding-block: 1.5rem;
}
.container {
	padding-inline: 2rem;
	margin: auto;
	max-width: 100%;
}
/* Header */
header {
	position: sticky;
	top: 0;
	box-shadow: 0 2px 15px #36454faa;
	z-index: 2;
}
nav {
	background: #fff;
}
/* Nav */
#nav-content-wrapper {
	display: grid;
	grid: auto-flow / auto 1fr;
}
#logo {
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-weight: 800;
	color: #36454f;
	font-size: 2rem;
	text-decoration: none;
	transition: all 1s ease-out;
	display: flex;
	align-items: center;
}
#logo:hover {
	color: #36454faa;
}
#links {
	display: flex;
	align-items: center;
	justify-content: end;
}
.link-items {
	display: none;
}
#hamburger {
	font-size: 2rem;
}
.link-items > a {
	text-transform: uppercase;
	margin-inline-start: 1rem;
	text-decoration: none;
	color: #36454f;
	letter-spacing: 0.2rem;
	font-weight: 100;
	cursor: pointer;
}
.link-items > a:hover {
	color: #36454faa;
	border-bottom: 1px solid #36454f;
}

/* Hero */
#hero {
	height: 500px;
	background: #f2f0ef;
	background: url('../images/hero.webp');
	background-size: cover;
}
#hero::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 500px;
	background: #f2f0efaa;
	background: radial-gradient(circle, rgba(242, 240, 239, 0.8) 0%, rgba(54, 69, 79, 0.5) 100%);
}
#hero-content-wrapper {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	height: 100%;
}
#hero-content-wrapper section {
	text-align: center;
}
a[type='button'] {
	border: 1px solid #36454f;
	padding: 0.5rem 1rem;
	background: #36454f;
	display: inline-block;
	margin-block-start: 2rem;
	text-decoration: none;
	color: #f2f0ef;
	text-transform: uppercase;
}
a[type='button']:hover {
	background: #36454faa;
}

/* About */

#about-content-wrapper {
	display: grid;
	gap: 1.5rem;
	grid: auto-flow / 1fr;
}
.about-image img {
	width: 100%;
	object-fit: cover;
}

/* Projects */
#projects {
	background: #f2f0ef;
}
#projects-content-wrapper {
	display: grid;
	grid: auto-flow / 1fr;
	gap: 2rem;
}
.project-card {
	background: #fff;
	padding: 0.5rem;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
}
.project-image {
	overflow: hidden;
}

.project-card-img {
	width: 100%;
	transition: all 0.5s linear;
}
.project-card-img:hover {
	transform: scale(1.1);
}
.project-card footer {
	margin-block-start: 0.5rem;
	border-top: 2px solid #f2f0ef;
	display: flex;
	justify-content: space-between;
}
.repo-link,
.project-link {
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.2rem;
	color: #36454f;
	font-weight: 500;
}
.repo-link:hover,
.project-link:hover {
	color: #36454faa;
	font-weight: 400;
}

/* Contact */
textarea {
	display: block;
}
form h2 {
	text-align: center;
	margin-block-end: 3rem;
}
form {
	width: 100%;
	margin: auto;
}
form > * {
	margin-block-start: 1rem;
}
label {
	display: block;
}
form input,
textarea {
	width: 100%;
	padding: 1rem;
	border: none;
	outline: 1px solid #f2f0ef;
}
form input:focus,
textarea:focus {
	outline-color: #36454f;
}
form button {
	padding: 1rem;
	background: #f2f0ef;
	border: none;
	cursor: pointer;
}
form button:hover {
	background: #f2f0efaa;
}

#contact-other a {
	font-size: 1.125rem;
	color: #36454f;
	text-decoration: none;
}
#contact-other a:hover {
	color: #36454faa;
	text-decoration: underline;
}
#contact-other {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	border-top: 1px solid #f2f0ef;
	margin-block-start: 1.5rem;
	padding-block-start: 6rem;
}
/* Footer */
#main-footer {
	background: #36454f;
}
.footer-content-wrapper {
	color: #f2f0ef;
}
.footer-content-wrapper > p {
	text-align: center;
}

/* Media Queries */
@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}
@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
	#about-content-wrapper {
		grid: auto-flow / 1fr 1fr;
	}
	.about-image img {
		aspect-ratio: 9/16;
	}
	.link-items {
		display: flex;
		gap: 1rem;
		justify-content: end;
		align-items: center;
	}
	#hamburger {
		display: none;
	}
	#logo {
		font-size: 2.5rem;
		transition: all 1s ease-in;
	}
	#projects-content-wrapper {
		grid: auto-flow / 1fr 1fr;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 960px;
	}
	#about-content-wrapper {
		grid: auto-flow / 1fr 1fr;
	}
	.about-image img {
		aspect-ratio: 1/1;
	}
	#projects-content-wrapper {
		grid: auto-flow / 1fr 1fr 1fr;
	}
	form {
		width: 80%;
	}
}
@media (min-width: 1200px) {
	.container {
		max-width: 1140px;
	}
	#about-content-wrapper {
		grid: auto-flow / 1fr 2fr;
	}
}

@media (min-width: 1400px) {
	.container {
		max-width: 1320px;
	}
}
