@import "./master.css";

h1#portfolio-page {
	margin: 50px 0;
	font-size: 48px;
	text-align: center;
}

section#clients{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0 auto 100px;
	width: 1200px;
}

section#clients a.client {
	display: block;
	overflow: hidden;
	border-radius: 0;
	box-shadow: none;
	transition: all 0.3s ease;
	position: relative;
	aspect-ratio: 1;
}


section#clients a.client:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	z-index: 10;
	box-shadow: 0 0 20px black;
}


section#clients a.client img {
	width: 80%;
	top: 50%;
	left: 50%;
	position: absolute;
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease;
}

section#clients a.client div.overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 120%;
	height: 120%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	display: flex;
	padding: 30px;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

section#clients a.client div.overlay p.category {
	background: #ecc91a;
	color: black;
	padding: 5px 10px;
	border-radius: 20px;
	font-size: 13px;
	margin-bottom: 10px;

}
section#clients a.client div.overlay p.name {
	font-weight: bold;
	font-size: 40px;
}
section#clients a.client div.overlay p.description {
	font-size: 18px;
	text-align: center;
}

section#clients a.client:hover div.overlay {
	opacity: 1;
}

@media (max-width: 1500px) {

	section#clients {
		width: 90%;
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
}
@media (max-width: 1000px) {
	section#clients a.client div.overlay p.name {
		font-size: 25px;
	}
	section#clients a.client div.overlay p.description {
		font-size: 15px;
	}
}