@media (max-width: 900px) {
	header {
		flex-direction: column !important;
		text-align: center;
	}

	header > div {
		margin: 50px 0 0 !important;
	}

	header h1 {
		font-size: 3rem !important;
	}

	header p {
		font-size: 1.5rem !important;
	}

	.projects {
		grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)) !important;
	}
}

@keyframes arrowAnim {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-5px);
	}
}

:root {
	--bg: #000000;
	--bg2: #FFFFFF10;
	--text: #FAFFFA;
	--shadow: 0 5px 10px #00000020;
	--headerBg: linear-gradient(to bottom, var(--bg2), var(--bg));
	--theme-color: #9bc53d;
	--theme-color-alt: #4ba52d;
	--theme-color-dim: #25300e;
}

* {
	scrollbar-color: var(--theme-color) transparent;
}

*::-webkit-scrollbar {
	height: 5px;
	width: 5px;
	background-color: var(--bg);
}

*::-webkit-scrollbar-thumb {
	border-radius: 69px;
	background-color: var(--theme-color);
}

*::selection {
	background-color: var(--theme-color);
	color: var(--bg);
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);
}

header {
	height: 95svh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: var(--headerBg), url("/img/grids/headergrid.svg");
	background-position: center;
	background-size: cover;
	background-repeat: repeat;
	padding: 0px 10%;
	position: relative;
	bottom: 10px;
}

header::after {
	content: "Scroll Up";
	background-color: var(--theme-color);
	color: transparent;
	font-size: 0;
	mask: url("/img/arrowup.svg");
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	height: 20px;
	width: 20px;
	position: absolute;
	bottom: 10px;
	animation: arrowAnim 1s ease infinite;
}

header > img {
	border: 1px solid var(--bg2);
	border-radius: 100%;
	box-shadow: var(--shadow);
}

header > div {
	margin-left: 50px;
}

header h1 {
	font-size: 5rem;
	margin: 0;
	color: transparent;
	background-image: linear-gradient(to right, var(--theme-color), var(--theme-color-alt));
	background-clip: text;
}

.color {
	color: var(--theme-color);
}

header p {
	font-size: 2.5rem;
	margin: 0;
}

h1, h2, h3 {
	font-family: "Kanit", sans-serif;
}

p, h4, h5, h6 {
	font-family: "Work Sans", sans-serif;
}

main > div {
	padding: 10px 10%;
}

.projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 10px;
}

.projects > a {
	overflow: hidden;
	border-radius: 10px;
	padding: 20px;
	text-decoration: none;
	color: var(--text);
	box-shadow: var(--shadow);
	transition: all 0.1s ease;
}

.projects > a:hover {
	transform: scale(1.01);
}

.projects > a:active {
	transform: scale(0.99);
	opacity: 0.7;
}

.card img {
	height: 100px;
	width: 100px;
	max-height: 100px;
	max-width: 100px;
	min-height: 100px;
	min-width: 100px;
	border-radius: 15px;
	box-shadow: var(--shadow);
	margin-bottom: 16px;
	border: 1px solid var(--bg2);
}

.card h3 {
	font-size: 30px;
	margin: 0;
}

.socials {
	cursor: default;
	user-select: none;
}

.socials > * {
	margin: 0 10px 0 0;
	transition: all 0.1s ease;
}

.socials > *:hover {
	opacity: 0.5;
}

.socials > *:active {
	opacity: 0.3;
}

footer {
	padding: 10px 10%;
	border-top: 1px solid var(--bg2);
	display: flex;
}

footer > div:first-of-type {
	flex-grow: 1;
}

footer p {
	color: #FFFFFF70;
	margin: 10px 0;
}

footer a {
	float: right;
	color: var(--theme-color);
	font-family: "Work Sans", sans-serif;
	text-decoration: none;
	margin: 10px 0;
}

footer a:hover {
	text-decoration: underline;
}
