* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-size: 100%;
	font-family: montserrat, sans-serif;
	color: white;
}

html {
	background-color: black;
	position: relative;
	/* scroll-snap-type: y mandatory;
	scroll-snap-stop: normal; */
	scroll-behavior: smooth;
}

body {
	display: flex;
	flex-direction: column;
}

section {
	position: relative;
	min-height: 100vh;
	scroll-snap-align: start;
}

canvas {
	position: fixed;
	display: block;
	width: 100vw;
	height: 100vh;
	height: 100lvh;
	bottom: 0;
}

#greeting {
	position: relative;
	display: flex;
	align-items: center;
	height: 100vh;
}

h1 {
	text-align: center;
	justify-content: center;
	margin-left: 20vw;
	font-size: 2rem;
	font-weight: 400;
	padding: 0.5rem;
}

h1 > span {
	font-weight: 800;
	font-size: 4rem;
}

@media (orientation: portrait) {
	#greeting {
		align-items: flex-start;
		justify-content: center;
	}
	h1 {
		margin-left: 0;
		margin-top: 20vh;
	}
}

::selection {
	background-color: rgba(22, 131, 95);
	color: white;
}

.scroll-arrow {
	position: absolute;
	top: 90dvh;
	left: 50%;
	transform: translateX(-50%);
	transform: rotate(-90deg);
	opacity: 0;
	animation: arrowAnimation 3s ease-in-out infinite;
	animation-delay: 5s;
}

@keyframes arrowAnimation {
	0%,
	10% {
		transform: translateX(-50%) translateY(0);
		opacity: 0;
	}
	50% {
		transform: translateX(-50%) translateY(30px);
		opacity: 1;
	}
	75% {
		opacity: 0;
	}
	90%,
	100% {
		transform: translateX(-50%) translateY(50px);
		opacity: 0;
	}
}

.section {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	min-height: fit-content;
}

.frosted {
	padding: 1rem;
	background-color: rgba(255, 255, 255, 0.075);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	max-width: 750px;
	width: 90%;
}

#about-text {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

h2 {
	font-size: 2rem;
	text-transform: uppercase;
	text-align: left;
	border-bottom: solid 0.075rem white;
	padding-bottom: 0;
}

p {
	text-align: justify;
	text-indent: 2.5rem;
	line-height: 1.5;
}

textarea {
	line-height: 1rem;
	resize: none;
	height: 5rem;
}

button {
	margin: auto;
	padding: 0.5rem 1rem;
	border: 0.075rem solid;
	background-color: #00000000;
	cursor: pointer;
}

button:hover {
	background-color: rgba(255, 255, 255, 0.075);
}

#contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 0.25rem;
	column-gap: 1rem;
	overflow: hidden;
	height: 20rem;
	transition: height 0.3s ease-in-out;

	label[for="fEmail"] {
		grid-row: 2;
	}

	label[for="fEmail"],
	input[type="email"] {
		grid-column: 2;
	}

	h2,
	label[for="fMessage"],
	textarea,
	button {
		grid-column: span 2;
	}

	input,
	textarea,
	button {
		padding: 0.5rem;
		border-radius: 0.25rem;
		border: none;
		background-color: rgba(255, 255, 255, 0.075);
	}

	label,
	button {
		margin-top: 0.75rem;
	}
	#fTitle {
		height: 2.5rem;
		overflow: hidden;
	}
}
#contact-form[view="only-title"] {
	height: 4.5rem;
	#fTitle {
		height: 2.5rem;
	}
}
#contact-form[view="title-and-again"] {
	height: 8rem;
	#fTitle {
		height: 2.5rem;
	}
}

@media (max-width: 600px) {
	#contact-form {
		height: 28.5rem;
		label,
		input,
		textarea,
		button {
			grid-column: span 2 !important;
		}
		label[for="fEmail"] {
			grid-row: 4;
		}
		textarea {
			height: 9rem;
		}
		#fTitle {
			height: 2.5rem;
		}
	}
	#contact-form[view="only-title"] {
		height: 7rem;
		#fTitle {
			height: 5rem;
		}
	}
	#contact-form[view="title-and-again"] {
		height: 13rem;
		#fTitle {
			height: 7.5rem;
		}
	}
}

input:focus,
textarea:focus {
	outline: white solid 0.075rem;
}

.error {
	outline: red solid 0.075rem;
}

textarea::-webkit-scrollbar {
	width: 0.5rem;
	cursor: default;
}

textarea::-webkit-scrollbar-thumb {
	background-color: white;
	border-radius: 0.25rem;
	border: 0.075rem solid white;
	margin-right: 5px !important;
	margin: 0;
	cursor: pointer;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-background-clip: text;
	-webkit-text-fill-color: white;
	transition: background-color 5000s ease-in-out 0s;
	box-shadow: inset 0 0 20px 20px rgba(255, 255, 255, 0.075);
}

#projects .frosted {
	width: 100%;
	max-width: calc(300px * 3 + 4rem);
}
@media screen and (max-width: calc(300px * 3 + 6rem)) {
	#projects .frosted {
		width: calc(300px * 2 + 3rem);
	}
}
@media screen and (max-width: calc(300px * 2 + 5rem)) {
	#projects .frosted {
		width: calc(300px + 2rem);
	}
}

#projects-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1rem;
}

.project-card {
	width: 300px;
	max-width: 90vw;
	gap: 1rem;
	border-radius: 0.25rem;
	background-color: rgba(255, 255, 255, 0.075);
	overflow: hidden;
	.project-text {
		padding: 0.5rem;
	}
	.project-title {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		min-height: 1.5rem;
	}
	p {
		text-align: left;
		text-indent: 0;
		font-size: small;
	}
	.project-image {
		width: 100%;
		display: block;
		aspect-ratio: 16/9;
	}
}
.skill img,
.logos img {
	filter: brightness(0%) invert(1);
	transition: filter 0.1s ease-in-out;
	aspect-ratio: 1/1;
	width: 1.5rem;
}
.skill img {
	width: 6rem;
}
.skill img:hover {
	filter: brightness(100%) invert(0) drop-shadow(2px 2px 3px #fff)
		drop-shadow(2px -2px 3px #fff) drop-shadow(-2px 2px 3px #fff);
}
.logos img:hover {
	filter: brightness(100%) invert(0) drop-shadow(1px 1px 1px #fff)
		drop-shadow(1px -1px 1px #fff) drop-shadow(-1px 1px 1px #fff);
}

.new-project {
	position: relative;
	/* background-color: rgba(0, 0, 0, 0.5); */
	background-image: linear-gradient(
		60deg,
		rgba(0, 0, 0, 0.75) 40%,
		rgba(255, 255, 255, 0.15) 50%,
		rgba(0, 0, 0, 0.75) 60%
	);
	background-size: 200% auto;
	/* border: 0.075rem solid white; */
	cursor: pointer;
	animation: newProjectAnimation 8s ease-out infinite;
	box-shadow: inset 0 0 2px 0.075rem white;
	background-position: left;
	transition: transform 0.1s ease-in-out;

	.project-title {
		justify-content: center;
	}
	p {
		text-align: center;
	}

	svg {
		position: absolute;
		display: none;
	}
	.line {
		stroke-dasharray: 0.25;
		stroke-width: 2px;
		fill: transparent;
		stroke: rgba(255, 255, 255, 0.5);
		animation: svgAnimation 8s linear infinite;
	}
}
.new-project:hover:active {
	transform: scale(0.98);
}

@keyframes newProjectAnimation {
	0%,
	35% {
		box-shadow: inset 0 0 2px 0.075rem rgba(255, 255, 255, 0.1);
		background-position: 150%;
	}
	45% {
		background-position: -50%;
	}
	55% {
		box-shadow: inset 0 0 2px 0.075rem rgba(255, 255, 255, 1);
	}
	85%,
	100% {
		box-shadow: inset 0 0 2px 0.075rem rgba(255, 255, 255, 0.1);
		background-position: -50%;
	}
}
@keyframes svgAnimation {
	from {
		stroke-dashoffset: 0;
	}
	to {
		stroke-dashoffset: 1;
	}
}
.skill {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.skills {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.5rem;
	justify-content: center;
}

#skills-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 1.5rem;
	margin-top: 1.5rem;
	h3 {
		text-align: center;
		text-transform: uppercase;
		font-size: 1rem;
		font-weight: normal;
	}
}

.skill-section {
	width: fit-content;
}
