/* for pages excpet home page */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

:root {
	--bg-color: #f3f3f3;
	--white: #ffffff;
}

body {
	font-family: "IBM Plex Mono", monospace;
	background-color: var(--bg-color);
	color: black;
	margin: 0;
	padding: 0;
	font-size: 12px;
}

.container {
	display: flex;
	flex-direction: row;
}

/* MENU */
.left-column {
	min-width: 300px;
	/* background-color: var(--white); */
}

@media (max-width: 600px) {
	.container {
		flex-direction: column;
	}

	.left-column {
		max-width: none;
		/* background-color: var(--white); */
	}
}

/* nav */
nav {
	/* width: auto; */
	padding: 10px 20px;
	max-width: 300px;
}

.nav-part-1 {
	display: flex;
	gap: 10px;
}

.home,
.title,
.category {
	background-color: var(--white);
	font-size: 12px;
	font-weight: 500;
	padding: 5px 10px;
}

p {
	margin: 0;
	font-size: 12px;
}

@media (max-width: 600px) {
	nav {
		max-width: none;
		padding: 10px;
	}
}

/* menus */
.menu-1,
.menu-2 {
	padding: 5px 10px;
	background-color: var(--white);
	/* max-width: 350px; */
	margin-left: 20px;
}

/* menu 1 */
.menu-1 {
	/* font-size: 14px; */
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.intro-text {
	font-weight: 500;
}

/* menu 2 */
.menu-2 {
	display: none;
}

.menu-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

li {
	display: flex;
	gap: 10px;
	margin-bottom: 5px;
}

a.link {
	text-decoration: none;
	color: black;
	font-weight: 500;
	font-size: 12px;
}

.contact-link {
	font-weight: 500;
	font-size: 12px;
}

@media (max-width: 600px) {
	.menu-1,
	.menu-2 {
		margin: 10px;
	}
}

/* GRID */
.grid {
	margin: 20px;
	/* border: blue 1px solid; */
	width: calc(100% - 40px);
	display: grid;
	/* use auto-fill with minmax for responsiveness */
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 20px;
}

.work-item {
	/* border: red 1px solid; */
	/* width: 300px; */
	/* height: 200px; */
	/* border-radius: 5px; */
	padding: 5px;
	background-color: var(--white);
	overflow: hidden; /* prevent child overflow */
	display: flex;
	flex-direction: column;
	gap: 5px;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.work-item:hover {
	transform: rotate(3deg);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.work-item p {
	color: grey;
	/* width: 300px; */
}

.project-img {
	width: 100%;
	height: auto;
}

.home-img-cont {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.project-title-cont {
	display: flex;
	justify-content: space-between;
	margin-top: 2px;
}

@media (max-width: 600px) {
	.container {
		flex-direction: column;
	}
	.grid {
		grid-template-columns: repeat(auto-fill, minmax(auto, 1fr));
		margin: 10px;
		width: calc(100% - 20px);
	}
}

/* FOOTER */
footer {
	height: 70px;
}
