/* === Project Grid === */

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-top: 0.5rem;
}

.project-card {
	position: relative;
	background: var(--bg-image) center/cover no-repeat;
	color: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 8px rgba(0,0,0,0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	text-decoration: none;
}

.project-card::before {
	border-radius: 8px;
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 0;
}

.project-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 14px rgba(0,0,0,0.3);
}

.project-content {
	z-index: 1;
	padding: 1.2rem;
}

.project-link {
	margin-top: 1rem;
	color: #fff;
	font-weight: 500;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.project-link:hover {
	color: #dedede;
	opacity: 0.8;
}
