.services-cover {
	background-color: var(--background-primary-color);
	text-align: center;
	min-height: 100vh;
	padding-right: clamp(1em, 4vw, 5em);
	padding-left: clamp(1em, 4vw, 5em);
	color: #ffffff;

	& .text-secondary {
		font-size: 7rem;
		color: var(--secondary-color);
		line-height: 1em;
	}

	& .white-bird {
		height: 150px;
	}

	& h3 {
		padding-top: 2em;
		font-size: 2.5em;
	}

	& p {
		padding-top: 1em;
	}
}

.services {
	background-color: var(--background-secondary-color);
}

.services-title {
	color: var(--primary-color);
	text-align: center;
}

.mobile-services {
	display: none;
}

.services-images-cover {
	padding-top: 5em;
	padding-right: clamp(1em, 4vw, 5em);
	padding-left: clamp(1em, 4vw, 5em);
	min-height: 1200px;
}

.images {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 7em;
	margin-top: 10em;
}

.service-item {
	position: relative;
	perspective: 1000px;
}

.services-icon {
	height: clamp(250px, calc(-150px + 33.3vw), 450px);
	transition:
		opacity 0.4s ease,
		transform 0.6s ease;
	cursor: pointer;
}

.service-card {
	position: absolute;
	top: -4em;
	left: 50%;
	transform: translateX(-50%) rotateY(90deg);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.4s ease,
		transform 0.6s ease;
}

/* Hover animation
.service-item:hover .services-icon {
	opacity: 0;
	transform: rotateY(-90deg) scale(0.95);
}

.service-item:hover .service-card {
	opacity: 1;
	transform: translateX(-50%) rotateY(0);
	pointer-events: auto;
}
 */

/* Scroll animation */
.service-item.is-active .services-icon {
	opacity: 0;
	transform: rotateY(-90deg) scale(0.95);
	transition:
		opacity 0.8s ease,
		transform 1s ease; /* plus lent */
}

.service-item.is-active .service-card {
	opacity: 1;
	transform: translateX(-50%) rotateY(0);
	pointer-events: auto;
	transition:
		opacity 0.8s ease,
		transform 1s ease; /* plus lent */
}

/* Card style */
.service-card .card-text {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	background-color: #ffffff;
	color: var(--primary-color);
	padding: 2em;
	width: 430px;
	height: 660px;
	line-height: 2em;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
	position: relative;
}

.cards-container {
	min-height: 100vh;
	padding-right: clamp(1em, 4vw, 5em);
	padding-left: clamp(1em, 4vw, 5em);
}

.cards-container h1 {
	text-align: center;
	color: var(--primary-color);
	padding-top: 2em;
}

.card-text {
	width: 450px;
	display: flex;
	flex-direction: column;
	text-align: center;

	& .title {
		font-size: 1.7em;
		line-height: 1.2em;
	}
}

.card-text {
	background-color: #ffffff;
	color: var(--primary-color);
	padding: 10px;
	margin-top: 0.5em;
	height: 610px;
	position: relative;
	line-height: 2em;
	z-index: 1;
}

.smaller-text {
	font-size: 1.4em;
	line-height: 20px;
}

.card-footer {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.card-footer-image {
	width: 350px;
}

.services-contact {
	background-color: var(--background-primary-color);
	text-align: center;
	padding-top: 20%;
	min-height: 100vh;

	& h1 {
		color: #ffffff;
		margin-bottom: 0.5em;
	}
}

/*LEARN MORE*/
.learn-more {
	background-color: var(--background-primary-color);
	position: relative;
	padding-bottom: 5em;
	padding-top: 5em;
	overflow: hidden;

	& h1 {
		text-align: center;
		color: #ffffff;
		padding-top: 2em;
	}

	& .cards {
		display: flex;
		flex-direction: row;
		justify-content: center;
		margin-top: 4em;
		gap: 4em;
		padding: 0 clamp(150px, 18vw, 320px);
		position: relative;
	}

	& .card {
		width: unset;
		margin-bottom: 4em;
		flex-shrink: 1;
		max-width: 500px;
	}

	& .icon-card {
		width: 100%;
		max-width: 500px;
		position: relative;
	}

	& .card-text {
		position: relative;
		width: min(420px, 84%);
		height: 500px;
		margin-left: auto;
		margin-right: auto;
		padding-top: 1em;
		padding-bottom: 2em;
		display: flex;
		align-items: center;
		flex-direction: column;
	}

	& .white-bird {
		position: absolute;
		left: 0;
		bottom: -4em;
		padding-bottom: 1em;
		height: auto;
		width: clamp(150px, 15vw, 320px);
		max-height: 320px;
	}

	& .student {
		width: clamp(200px, 20vw, 400px);
		height: auto;
		position: absolute;
		right: 0;
		bottom: 0;
	}
}

.card-footer-cta {
	position: absolute;
	bottom: 1.5em;
}

/*CAROUSEL*/
.carousel-container {
	background-color: var(--background-secondary-color);
	padding-top: 5em;

	& h1 {
		color: var(--primary-color);
	}
}

/*RESPONSIVE*/
@media screen and (max-width: 1608px) {
	.learn-more .card-text {
		height: 80%;
	}
}

@media screen and (max-width: 1440px) {
	.services-cover .text-secondary {
		font-size: 4.5rem;
	}

	.services-cover h3 {
		font-size: 2em;
	}

	.service-card .card-text {
		width: 370px;
		height: 700px;
	}

	.card-br {
		display: none;
	}

	.card {
		width: 350px;
		text-align: center;
	}

	.learn-more .cards {
		padding: unset;
	}

	.learn-more .card {
		width: 350px;
		max-width: unset;
	}

	.learn-more .card-text {
		padding: 10px 10px 3em;
		height: 500px;
	}

	.learn-more .card-text {
		width: unset;
	}

	.card .title {
		font-size: 1.5em;
	}

	.cards {
		gap: 3em;
	}

	.card-text {
		line-height: unset;
		height: 550px;
	}

	.learn-more .white-bird {
		bottom: -3em;
	}

	.service-contact-br {
		display: none;
	}
}

@media screen and (max-width: 1280px) {
	.services-cover h1 {
		font-size: 3em;
	}

	.services-cover .text-secondary {
		font-size: 3.5rem;
	}

	.services-cover h3 {
		font-size: 1.5em;
	}

	.service-card .card-text {
		width: 330px;
		padding: 1em;
	}

	.card-footer-image {
		width: 300px;
	}

	.learn-more .cards {
		margin-bottom: 8em;
	}
}

@media screen and (max-width: 1245px) {
	.cards {
		gap: 5em;
	}
}

@media screen and (max-width: 1160px) {
	.cards-container {
		min-height: unset;
	}

	.desktop-services {
		display: none;
	}

	.mobile-services {
		display: block;
		margin: auto;
	}

	.cards {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 5em;
		margin-top: 3em;
		margin-right: auto;
		margin-left: auto;
		padding-bottom: 4em;
		align-items: center;
	}

	.icon-card {
		width: 180px;
		margin: auto;
		text-align: center;
		justify-content: center;
		align-items: center;
	}

	.card-text {
		width: unset;
		height: 570px;
	}
}

@media screen and (max-width: 1130px) {
	.services-cover {
		min-height: 750px;
	}
}

@media screen and (max-width: 1025px) {
	.services-cover {
		min-height: unset;
		padding-bottom: 3em;
	}

	.services-images-cover {
		padding-bottom: 3em;
		padding-top: clamp(4em, 6vw, 8em);
	}

	.services-contact {
		min-height: unset;
		padding: clamp(4em, 6vw, 8em) clamp(1em, 4vw, 5em) 8em;
	}
}

@media screen and (max-width: 955px) {
	.images {
		gap: 1em;
		margin-top: 4em;
	}

	.service-contact-cta {
		background-color: var(--highlight-color);
		width: 65%;
		margin: auto;
		border-radius: 50px;
		transition: 0.3s;
		padding: 0.7em 1em;
		line-height: 1.5em;
	}

	.service-contact-cta .redirect-link {
		background-color: transparent;
		padding: unset;
	}
}

@media screen and (max-width: 740px) {
	.services-cover h1 {
		font-size: 2.5em;
	}

	.services-cover .text-secondary {
		font-size: 3rem;
	}

	.learn-more .cards {
		gap: 2em;
	}
}

@media screen and (max-width: 510px) {
	.services-cover h1 {
		font-size: 2em;
	}

	.services-cover .text-secondary {
		font-size: 2.3rem;
	}

	.cover-br {
		display: none;
	}

	.learn-more .cards {
		padding-right: clamp(1em, 4vw, 5em);
		padding-left: clamp(1em, 4vw, 5em);
	}
}

@media screen and (max-width: 470px) {
	.learn-more .card-text {
		height: unset;
	}
}

@media screen and (max-width: 380px) {
	.card-text:not(.text-middle, .learn-more .card-text) {
		height: 580px;
	}

	.end {
		margin-top: 0.3em;
	}
}
