/* ========================================
   EXPLORE - SPECIFIC STYLES
   ======================================== */

/* ========================================
   PAGE CONTAINER
   ======================================== */

.explore {
	background-color: #ffffff;
	width: 100%;
}

/* ========================================
   TECHNOLOGIES SECTION
   ======================================== */

.technologies {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 47px;
	margin-top: 257px;
	margin-bottom: 85px;
	padding: 0 85px;
}

.technologies__title {
	font-family: 'Inter', Helvetica;
	font-weight: 600;
	color: #000000;
	font-size: 48px;
	letter-spacing: -0.96px;
	line-height: normal;
	margin: 0;
}

.technologies__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(300px, 1fr));
	gap: 23px 21px;
	width: fit-content;
	margin: 0 auto;
}

.technology-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 48px;
	text-decoration: none;
}

.technology-card__content {
	display: flex;
	height: 686px;
	align-items: flex-end;
	padding: 40px;
	width: 100%;
	background-size: cover;
	background-position: 50% 50%;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
}

/* Add gradient overlay */
.technology-card__content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.7) 85%, rgba(0, 0, 0, 0.9) 100%);
	z-index: 1;
}

/* Technology Background Images */
.technology-card__content--tiger-grip {
	background-image: url(/assets/images/frame-1321317552.jpg);
}

.technology-card__content--sj-tex {
	background-image: url(/assets/images/frame-1321317549.jpg);
}

.technology-card__content--performance-foam {
	background-image: url(/assets/images/frame-1321317546-2.png);
}

.technology-card__content--sj-foam {
	background-image: url(/assets/images/frame-1321317554.png);
}

.technology-card__content--sj-foam-winter {
	background-image: url(/assets/images/frame-1321317556.png);
}

.technology-card__content--comfort {
	background-image: url(/assets/images/frame-1321317548.jpg);
}

.technology-card__content--recycled {
	background-image: url(/assets/images/frame-1321317554-1.jpg);
}

.technology-card__title {
	font-family: 'Inter', Helvetica;
	font-weight: 700;
	color: #ffffff;
	font-size: 40px;
	letter-spacing: 0;
	line-height: 60px;
	white-space: nowrap;
	margin: 0;
	position: relative;
	z-index: 2;
}

.technology-card__title--multiline {
	line-height: 40px;
	white-space: normal;
}

/* ========================================
   VIDEOS SECTION
   ======================================== */

.videos {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 58px;
	margin-bottom: 125px;
	padding: 0 85px;
}

.videos__title {
	font-family: 'Inter', Helvetica;
	font-weight: 600;
	color: #000000;
	font-size: 48px;
	letter-spacing: -0.96px;
	line-height: normal;
	margin: 0;
}

.videos__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 23px;
	width: 100%;
}

.video-card {
	display: flex;
	width: calc(50% - 11.5px);
	min-width: 300px;
	aspect-ratio: 16/9;
	align-items: center;
	justify-content: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #000000;
	cursor: pointer;
	border-radius: 8px;
}

/* Video Background Images - Using YouTube Thumbnails */
.video-card--1 {
	background-image: url(https://img.youtube.com/vi/DpujnQGyE8A/maxresdefault.jpg);
}

.video-card--2 {
	background-image: url(https://img.youtube.com/vi/Rsmd-tOXb4E/maxresdefault.jpg);
}

.video-card--3 {
	background-image: url(https://img.youtube.com/vi/eGVFfSsvLbU/maxresdefault.jpg);
}

.video-card--4 {
	background-image: url(https://img.youtube.com/vi/LTXkpSc3IlQ/maxresdefault.jpg);
}

.video-card__play-btn {
	width: 80px;
	height: 80px;
	object-fit: cover;
}

/* ========================================
   VIDEO MODAL
   ======================================== */

.video-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	animation: fadeIn 0.3s ease;
}

.video-modal__content {
	position: relative;
	margin: 5% auto;
	width: 90%;
	max-width: 1200px;
}

.video-modal__close {
	position: absolute;
	right: -40px;
	top: -40px;
	color: #ffffff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.video-modal__close:hover {
	opacity: 0.7;
}

.video-modal__iframe-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
}

.video-modal__iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
	.technologies__grid {
		grid-template-columns: repeat(2, minmax(280px, 1fr));
	}
}

@media (max-width: 768px) {
	.technologies,
	.videos {
		padding: 0 20px;
		margin-top: 180px;
	}

	.technologies__title,
	.videos__title {
		font-size: 36px;
	}

	.technologies__grid {
		gap: 20px;
	}

	.videos__grid {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.video-card {
		width: 100%;
		max-width: 600px;
	}

	/* Modal responsive adjustments */
	.video-modal__content {
		width: 95%;
		margin: 10% auto;
	}

	.video-modal__close {
		right: 10px;
		top: -50px;
		font-size: 30px;
	}
}

@media (max-width: 600px) {
	.technologies__grid {
		grid-template-columns: 1fr;
		width: 100%;
		max-width: 400px;
	}

	.video-card__play-btn {
		width: 60px;
		height: 60px;
	}
}

