@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
	--rem: calc(1rem / 16);
}

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

html {
	font-family: 'Poppins', Roboto, sans-serif;
	font-size: 100%;
}

a {
	text-decoration: none;
	display: inline-block;
}

.hero {
	text-align: center;
	padding: 3rem 1rem;
	background-color: #111827;
	color: #fff;

	h1 {
		font-size: 2rem;
		margin-bottom: 0.5rem;
	}

	p {
		font-size: 1rem;
		opacity: 0.8;
	}
}

.container {
	max-width: 1100px;
	margin: auto;
	padding: 2rem 1rem;
}

.projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}

.card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;

	img {
		width: 100%;
		aspect-ratio: 5 / 3;
		object-fit: cover;
		display: block;
	}

	.card-content {
		padding: calc(16 * var(--rem));
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		flex-grow: 1;

		h3 {
			font-size: 1.2rem;
		}

		p {
			font-size: 0.9rem;
			color: #555;
		}

		a {
			margin-top: auto;
			text-decoration: none;
			background-color: #2563eb;
			color: #fff;
			padding: 0.5rem;
			text-align: center;
			border-radius: 6px;
			font-size: 0.9rem;
			transition: background 0.2s ease;
		}

		a:hover {
			background-color: #1e40af;
		}
	}
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.main-footer {
	text-align: center;
	padding: 1.5rem;
	font-size: 0.9rem;
	color: #777;
}
