/* Global styles */
:root {
	/* Color properties */
	--primary: #11101b; /* dark blue */
	--secondary: #ffffff; /* white */
	--secondary-neutral: #a198b1; /* lavender */;
	--accent: #d65083; /* pink */
	--accent-second: #6c4c9f; /* purple */
	--transparent: rgba(0,0,0,0);
}

html {
	scroll-behavior: smooth;
}

* {
	box-sizing: border-box;
}

body {
	background-color: var(--primary);
	font-family: "Poppins", Arial, sans-serif;
}

/* Heading and paragraph styles */
h1, h2, h3, h4, h5, h6 {
	color: var(--secondary);
	font-weight: 700;
}

h2 {
	font-size: 2em;
	line-height: 1.2;
}

h3 {
	font-size: 1.5em;
}

p {
	font-weight: 400;
	line-height: 1.5;
}

/* Link styles */
a {
	color: var(--secondary);
	text-decoration: none;
}

a:hover {
	cursor: pointer;
}

/* Button styles */
button {
	background-color: var(--transparent);
	border: none;
	margin: 0;
	padding: 0;
}

.link-button {
	border: 3px solid var(--accent);
	border-radius: 2em;
	padding: 1em;
	font-weight: 700;
	transition: border-radius 0.5s ease;
}

.link-button:hover {
	border-radius: 0;
}

/* Icon styles */
.icon {
	width: 2em;
	height: 2em;
}

/* Color styles */
.text-color-accent {
	color: var(--accent);
}

/* Font size styles */
.font-smaller {
	font-size: 0.75em;
}

/* Header styles */
header {
	background-color: var(--primary);
	color: var(--secondary);

	position: fixed;
	display: flex;
	justify-content: space-between;
	align-items: center;

	padding: 1em 2em;
	width: 100%;
}

header nav {
	background-color: var(--primary);
	color: var(--secondary-neutral);
	font-size: 2em;
	font-weight: 700;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	
	gap: 2em;
	padding: 1em;

	position: fixed;
	top: 0;
	right: -110%;

	width: 100vw;
	height: 100vh;

	transition: 0.5s ease;
}

header nav a::after {
	content: " <";
	color: var(--accent);
}

header h1 {
	font-size: 24px;
	text-transform: uppercase;
}

header h1, header button {
	z-index: 1;
}

.nav-open {
	right: 0;
}

/* Main section styles */
main {
	background-color: var(--primary);
	color: var(--secondary-neutral);

	display: flex;
	flex-direction: column;
	align-items: center;
}

/* General section styles */
section {
	display: flex;
	flex-direction: column;

	gap: 1.5em;
	padding: 2em;
	width: 100%;

	scroll-margin-top: 64px;
}

section:not(#hero) h2 {
	text-align: center;
}

section:not(#hero) h2::before {
	content: "> ";
	color: var(--accent);
}

/* Hero section styles */
#hero {
	align-items: center;
	justify-content: center;

	min-height: 100vh;

	text-align: center;
}

#hero img {
	width: 100%;
	max-width: 320px;
}

/* Skills section styles */
.skills-container {
	display: flex;
	flex-direction: column;
	align-items: center;

	gap: 2em;
	line-height: 1.5;
}

.skills-container-item {
	display: flex;
	flex-direction: column;
	align-items: center;

	border: 3px solid var(--accent-second);
	padding: 2em;
}

.skills-container ul {
	padding-left: 2em;
}

.skills-container li {
	list-style-type: disc;
}

.skills-container li::marker {
	color: var(--accent);
}

/* Project section styles */
.project-container {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-gap: 1em;
}

.project-container:not(:last-of-type) {
	margin-bottom: 2em;
}

.project-container img:not(.icon) {
	grid-column: 1 / 3;

	aspect-ratio: 16 / 9;
	height: auto;
	width: 100%;

	border: 3px solid var(--accent-second);
	padding: 0.5em;

	object-fit: cover;
}

.project-container h3 {
	display: flex;
	align-items: flex-end;
}

.project-container p {
	grid-column: 1 / 3;
}

/* Contact section styles */
#contact {
	text-align: center;
}

.contact-container {
	display: flex;
	justify-content: center;
}

.contact-container-item {
	display: flex;
	flex-direction: column;
	gap: 1em;

	border: 3px solid var(--accent-second);
	border-bottom-color: var(--accent);
	border-right-color: var(--accent);
	border-radius: 2em;
	padding: 2em;
}

/* Footer styles */
footer {
	background-color: var(--primary);
	color: var(--secondary-neutral);

	display: flex;
	justify-content: center;
}

.footer-container {
	display: flex;
	flex-direction: column;
	align-items: center;

	gap: 1em;
	padding: 1em 2em;
	width: 100%;
}

footer nav {
	display: flex;
	gap: 1em;
}

/* Media query styles - 480px and above */
@media (min-width: 480px) {
	.footer-container {
		flex-direction: row;
		justify-content: space-between;
	}
}

/* Media query styles - 640px and above */
@media (min-width: 640px) {
	.skills-container {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: stretch;
	}
}

/* Media query styles - 800px and above */
@media (min-width: 800px) {
	header button {
		display: none;
	}

	header nav {
		font-size: 1em;
		font-weight: 400;

		flex-direction: row;
		gap: 3em;
		padding: 0;
		position: static;
		right: 0;

		width: auto;
		height: auto;

		transition: none;
	}

	header nav a::after {
		content: "";
	}

	section, .footer-container {
		max-width: 1000px;
	}

	#hero {
		display: grid;
		grid-template-columns: repeat(2, auto) 320px;
		grid-template-rows: 1fr repeat(3, auto) 1fr;
		grid-column-gap: 3em;

		text-align: left;
	}

	#hero img {
		grid-column: 3;
		grid-row: 1 / 6;
	}

	#hero h2 {
		grid-column: 1 / 3;
		grid-row: 2;
	}

	#hero p {
		grid-column: 1 / 3;
		grid-row: 3;
	}

	#hero a {
		grid-column: 1;
		grid-row: 4;
	}

	.project-container {
		grid-template-columns: repeat(2, auto) 1fr 400px;
		grid-template-rows: repeat(4, auto);
	}

	.project-container img:not(.icon) {
		grid-column: 4;
		grid-row: 1 / 5;
	}

	.project-container h3 {
		grid-column: 1;
		grid-row: 2;
	}

	.project-container a {
		grid-column: 2;
		grid-row: 2;
	}

	.project-container p {
		grid-column: 1 / 4;
		grid-row: 3;
	}
}