/* From Uiverse.io by ilkhoeri */
.wrapper {
	width: 400px;
	/* pas breedte aan */
	height: 400px;
	/* pas hoogte aan */
	position: relative;
	margin: 50px auto;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.inner {
	--w: 150px;
	--h: 200px;
	--translateZ: calc((var(--w) + var(--h)) * 0.5);
	--rotateX: -15deg;
	--perspective: 1000px;
	position: absolute;
	width: var(--w);
	height: var(--h);
	top: 20%;
	left: calc(50% - (var(--w) / 2));
	z-index: 2;
	transform-style: preserve-3d;
	transform: perspective(var(--perspective));
	animation: rotating 20s linear infinite;
}

@keyframes rotating {
	from {
		transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);
	}

	to {
		transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(1turn);
	}
}

.card {
	position: absolute;
	width: var(--w);
	height: var(--h);
	background: white;
	border-radius: 12px;
	overflow: hidden;
	inset: 0;
	border: 2px solid #e34e1e;
	/* or use rgba */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transform-style: preserve-3d;
	transform-origin: center center calc(var(--translateZ) * -1);
	transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 10px;
	box-sizing: border-box;
}

.card img {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--bs-primary, #e34e1e);
	margin-bottom: 10px;
}

.card h5 {
	margin: 0;
	font-size: 1.1rem;
	color: #333;
}

.card p {
	margin: 2px 0 0 0;
	font-size: 0.9rem;
	color: #666;
}

@media (max-width: 576px) {
	.wrapper {
		width: 220px;
		/* smaller container */
		height: 160px;
	}

	.inner {
		--w: 100px;
		/* kleinere kaarten */
		--h: 140px;
		--translateZ: 50px;
		/* kleinere draai-radius */
		top: 20%;
		left: calc(50% - (var(--w) / 2));
	}

	.card {
		width: var(--w);
		height: var(--h);
	}

	.card img {
		width: 70px;
		height: 70px;
	}

	.card h5 {
		font-size: 1rem;
	}

	.card p {
		font-size: 0.8rem;
	}
}

/* Who we are section */
.who-we-are-section {
	display: flex;
	flex-wrap: wrap;
	width: 100vw; /* full width */
	max-width: 100%; /* overschrijft container max-width */
	height: 600px;
	position: relative;
	overflow: hidden;
	background-color: #e34e1e;
	color: white;
}

.who-we-are-text {
	flex: 1;
	min-width: 300px;
	padding: 4rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.who-we-are-image {
	flex: 1.2;
	min-width: 300px;
	background: url('/img/team.jpg') no-repeat center center;
	background-size: cover;
	position: relative;
	clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

	.who-we-are-image::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: linear-gradient(to left, rgba(0,0,0,0.2), rgba(0,0,0,0));
	}

/* Mobile */
@media (max-width: 768px) {
	.who-we-are-section {
		flex-direction: column; /* afbeelding boven de tekst */
		height: auto;
	}

	.who-we-are-image {
		width: 100%;
		min-height: 250px; /* altijd een minimale hoogte */
		height: auto; /* hoogte wordt aangepast door min-height */
		clip-path: none;
		background-size: cover;
		background-position: center center;
		order: -1; /* afbeelding eerst zichtbaar */
	}

	.who-we-are-text {
		text-align: center;
		align-items: center;
		padding: 2rem;
	}
}
