/* This File houses CSS critical for first draw */
@font-face {
	font-family: 'Roboto';
	src: url('/assets/fonts/roboto/roboto-regular-latin.woff2') format('woff2');
	font-display: swap;
}

:root {
	--font-family: "Roboto", Arial, Helvetica, sans-serif;
	--primary-light-color: #4765df;
	--secondary-light-color: #ff7235;
	--bg-color-primary: #fcfcfc;
	--bg-color-secondary: #f8f8f8;
	--primary-shadow: #8b8eaf;
	--transition: 0.3s;
}

html,
body {
	font-family: var(--font-family);
	margin: 0;
	padding: 0;
	height: 100%;
}

main {
	flex: auto;
	flex-direction: column;
	justify-content: center;
}

.hidden {
	display: none;
}

a {
	text-decoration: none;
	color: var(--primary-light-color);
	transition: var(--transition);
}

a.download {
	text-decoration: underline;
}

header {
	background-color: var(--bg-color-primary);
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
	padding: 0 1rem
}

/* navbar */
nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

h1 {
	color: var(--primary-light-color);
}

h2 {
	color: var(--primary-light-color);
}

h3 {
	color: var(--primary-light-color);
}

nav h1 {
	font-size: 2.5rem;
	margin: 0.6em 0;
}

nav .navmenu a {
	font-size: 1.3em;
	margin: 0.6rem 0;
}

.naventry {
	padding: 0 1rem
}

/* Social buttons (right side) */
.socials {
	display: flex;
	flex-direction: column;
	position: fixed;
	right: 1%;
	bottom: 50%;
	background-color: rgba(211, 211, 211, 0.4);
	border-radius: 0.5rem;
	padding: 0.25rem;
	backdrop-filter: blur(4px);
}

.social-icon {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.5rem;
	object-fit: contain;
}


button {
	background: none;
	border: 0.1rem solid var(--primary-light-color);
	color: var(--primary-light-color);
	border-radius: 0.5rem;
	padding: 0.5rem 1rem;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

/* About me section. Profile picture + "about-me" text */
.profilepicture {
	width: 25rem;
	object-fit: contain;
	padding: 1rem;
	aspect-ratio: 1;
}

.aboutme {
	padding: 1rem;
	max-width: 50rem;
}

.about {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

/* Work & Education lists */
.listcontainer {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.list {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 80rem;
}

.item {
	width: 60%;
	padding: 20px;
	margin: 10px;
}

.date {
	color: gray;
	font-family: monospace;
}

/* Projects Showcase */
.project-link,
.project-link:visited,
.project-link:hover,
.project-link:focus,
.project-link:active {
	display: block;
	color: inherit;
	text-decoration: none;
}

.showcase-container {
	width: 90%;
	max-width: 1200px;
	margin: auto;
	overflow-x: auto;
	scrollbar-width: auto;
}

.card-row {
	display: flex;
	gap: 20px;
	padding: 20px 0;
}

.box {
	background-color: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 0 0.5rem var(--primary-shadow);
}

.project-card {
	flex: 0 0 30%;
	flex-direction: column;
	padding: 20px;
	min-width: 300px;
	box-sizing: border-box;
	transition: transform 0.3s;
}

.project-image {
	width: 95%
}

@media screen and (max-width: 60rem) {
	.about {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.profilepicture {
		width: 75%;
		max-width: 25rem;
		height: auto;
		object-fit: contain;
		padding: 1rem;
	}

	nav h1 {
		font-size: 2rem;
		margin: 0.6em 0;
	}

	nav h2 {
		font-size: 1.5rem;
		margin: 0.6em 0;
	}
}

@media screen and (max-width: 35rem) {
	.navmenu {
		display: flex;
		flex-direction: column;
		align-items: end;
		padding: 0.5rem;
	}

	.naventry {
		margin: 0.5rem 1rem;
	}

	.socials {
		visibility: collapse;
	}
}

/* Footer */
footer {
	margin: 0;
	padding: 1rem;
	text-align: center;
	background-color: var(--bg-color-secondary);
	border-top: 0.rem solid rgba(211, 211, 211, 1);
}