/*============================================*/
/*       DAYTHREE PLATFORM CARDS              */
/*       Created: 2026/01/28                  */
/*       Version: 1.0.0                       */
/*============================================*/

.platforms-outer-container {
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
	justify-content: center;
	max-width: 1121px;
	padding: 100px 0;
	margin-inline: auto;
	box-sizing: content-box;
}

.platforms-title-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	justify-content: center;
}

.platforms-box-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
	align-items: center;
	justify-content: center;
}

.platforms-grid {
	display: flex;
	gap: 24px;
	justify-content: center;
	align-items: center;
}

.card-wrapper {
	position: relative;
	width: 100%;
	max-width: 320px;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
}

.platforms-card {
	min-width: 300px;
	width: 100%;
	max-width: 320px;
	height: auto;
	flex-shrink: 1;
}

.card-overlay {
	position: absolute;
	top: 16px;
	left: 16px;
	right: 16px;
	bottom: 16px;
	width: auto;
	height: auto;
	border-radius: 12px;
	background-color: #5d3fd3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	padding: 32px 16px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card-wrapper:hover .card-overlay {
	opacity: 0.95;
}

.overlay-text {
	font-family: "Nunito", sans-serif;
	color: white;
	font-size: 16px;
	line-height: 30px;
	text-align: center;
	font-weight: 400;
	margin: 0;
	text-align: left;
}

.overlay-btn {
	position: relative;
	overflow: hidden;
	z-index: 1;
	background-color: #4d4d4d;
	color: #ffffff;
	border: 2px solid #4d4d4d;
	transition: color 0.5s ease;
	border-radius: 50px;
	padding: 10px 20px;
	font-family: "Poppins", sans-serif;
	font-weight: normal;
	font-size: 16px;
	cursor: pointer;
	width: auto;
}

.overlay-btn::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 100%;
	left: 50%;
	width: 300%;
	height: 300%;
	background-color: #ffffff;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.6s ease-out;
}

.overlay-btn:hover {
	color: #4d4d4d;
}

.overlay-btn:hover::before {
	transform: translate(-50%, -50%) scale(1);
}

.platforms-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.platforms-highlight {
	background: linear-gradient(90deg, #c8102e 0%, #5d3fd3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	display: inline-block;
}

.platforms-subtitle {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #4d4d4d;
	line-height: 32px;
	text-align: center;
	margin: 0;
}

.platforms-title-container p {
	width: 100%;
}

.platforms-title-container h2 {
	max-width: 1000px;
	width: 100%;
	font-family: "Rubik", sans-serif;
	font-weight: bold;
	font-size: 48px;
	color: #4d4d4d;
	line-height: 60px;
	text-align: center;
	margin: 0;
}

@media (max-width: 1200px) {
	.card-overlay {
		justify-content: space-evenly;
		padding: 0 16px;
	}
}

@media (max-width: 1024px) {
	.platforms-outer-container {
		box-sizing: border-box;
		width: 100%;
		overflow: hidden;
		gap: 10px;
	}
	.platforms-title-container {
		padding: 0 48px;
	}

	.platforms-grid::-webkit-scrollbar {
		display: none;
	}

	.platforms-grid {
		-ms-overflow-style: none;
		scrollbar-width: none;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 20px;
		overflow-x: auto;
		justify-content: flex-start;
		width: 100%;
		-webkit-overflow-scrolling: touch;
		padding: 0 48px;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 48px;
	}

	.platforms-box-container {
		gap: 40px;
		align-items: flex-start;
	}
	.platforms-box-container .platforms-subtitle {
		padding-right: 48px;
		text-align: left;
	}

	.card-wrapper {
		min-width: 280px;
		width: 280px;
		aspect-ratio: auto;
		height: auto;
		border-radius: 0;
		overflow: visible;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.platforms-card-image {
		border-radius: 20px;
		aspect-ratio: 1 / 1;
	}

	.platforms-subtitle {
		text-align: left;
		font-size: 16px;
		line-height: 24px;
	}

	.platforms-title-container h2 {
		font-size: 36px;
		line-height: 48px;
		text-align: left;
	}

	.platforms-box-container .platforms-subtitle {
		padding: 0 48px;
	}

	.card-overlay {
		position: static;
		width: 100%;
		height: auto;
		background-color: transparent !important;
		opacity: 1;
		padding: 20px 0 0 0;
		align-items: flex-start;
		border-radius: 0;
		inset: auto;
	}

	.overlay-text {
		color: #4d4d4d;
		font-size: 16px;
		line-height: 24px;
		text-align: left;
		padding-bottom: 20px;
	}

	.overlay-btn {
		width: auto;
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.platforms-outer-container {
		padding: 0 0;
	}

	.platforms-title-container {
		padding-right: 24px;
		padding-left: 24px;
	}

	.platforms-box-container .platforms-subtitle {
		padding-left: 24px;
	}

	.platforms-grid {
		padding: 0 24px;
		scroll-padding-left: 24px;
	}
}
