@import url('../../../media/styles/root.css');
@import url('../../../media/fonts/fonts.css');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #111;
	font-family: 'Outfit', sans-serif;
	min-height: 100vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

header {
	width: 100%;
	padding: 2rem 2rem 0 2rem;
	max-width: 1600px;
}

header h2 {
	color: white;
	font-size: 2rem;
	font-weight: 700;
}

footer {
	text-align: center;
	width: 100%;
	height: 4rem;
	margin: 2rem;
	color: var(--pink);
	font-size: 1rem;
}

.year-section {
	width: 100%;
	padding: 0 2rem 2rem 2rem;
	max-width: 1600px;
}

.year-section h2 {
	color: rgba(255, 255, 255, 0.5);
	font-size: 1.5rem;
	margin-bottom: 1rem;
	margin-top: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 0.5rem;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	width: 100%;
}

.project-tile {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--gradient, #333);
	text-decoration: none;
	transition: all 0.4s ease;
	position: relative;
	border-radius: 5px;
	overflow: hidden;
	transition: 0.2s ease-in-out;
	cursor: pointer;
}

.project-tile.unfinished {
	filter: grayscale(100%) blur(2px);
}

.project-tile.unfinished:hover {
	filter: grayscale(0%) blur(0);
}

.project-tile:hover {
	transform: scale(1.02) rotate(1deg);
	filter: brightness(1.1);
	z-index: 10;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	transition: 0.2s ease-in-out;
}

.project-tile img {
	max-width: 60%;
	max-height: 60%;
	object-fit: contain;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
	transition: 0.2s ease-in-out;
}

.project-tile:hover img {
	transform: scale(1.1);
}

.project-details {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 1rem;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
	text-align: left;
	font-size: 1.2rem;
	opacity: 1;
	transition: 0.2s ease-in-out;
}

.project-details.white {
	color: black;
}

.p-title {
	font-weight: 700;
	font-size: 2rem;
}

.p-details {
	font-weight: 400;
	font-size: 1rem;
}

@media (max-width: 768px) {
	body {
		display: flex;
		flex-direction: column;
	}

	header {
		padding: 1rem 1rem 0 1rem;
	}

	.year-section {
		padding: 0 1rem 1rem 1rem;
	}

	.project-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.8rem;
	}

	.project-tile {
		min-height: 180px;
	}

	.project-tile img {
		max-width: 70%;
		max-height: 70%;
	}

	.project-details {
		padding: 0.8rem;
	}

	.p-title {
		font-size: 1.1rem;
	}

	.p-details {
		font-size: 0.75rem;
		line-height: 1.1;
	}
}
