/**
 * CompanyVideo Component Styles
 * 
 * Styles for company video section with zoom animation
 */

/* ========================================
   Company Video Section
   ======================================== */
.company-video-section {
	padding: 100px 0;
	background-color: var(--darkBlue, #002c5f);
	position: relative;
	overflow: hidden;
}

.company-video-section.zoomed {
	overflow: visible;
}

.company-video-wrapper {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: flex-end;
	gap: 60px;
	position: relative;
	z-index: 2;
	transition: gap 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-video-section.zoomed .company-video-wrapper {
	overflow: visible;
	gap: 0;
}

/* Left Content: Heading */
.company-video-left {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	z-index: 9;
	height: 100%;
}

.company-video-heading {
	z-index: 9;
	margin: 0;
	line-height: 1.2;
	position: absolute;
	top: 30px;
	left: 155px;
	color: #ffffff;
	font-family: var(--font-bold, 'Raleway-Bold', sans-serif);
	font-size: 62px;
	font-weight: 700;
	transition: opacity 0.5s ease, transform 0.5s ease;
	white-space: normal;
	max-width: none;
}

.company-video-heading-line {
	display: inline-block;
	white-space: nowrap;
}

.company-video-heading-highlight {
	color: var(--lightBlue, #A3DBE8);
	display: inline;
}

/* Center Content: Video Player */
.company-video-center {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.company-video-player-wrapper {
	position: relative;
	width: 350px;
	height: 582px;
	transform-origin: center center;
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
}

.company-video-player-wrapper.zoomed {
	width: 880px;
	height: 500px;
	z-index: 100;
	position: relative;
	margin: 0 auto;
}

.company-video-player {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background-color: #000000;
	border: 1px solid #A3DBE8;
}

.company-video-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.3s ease;
 
}

.company-video-player.playing .company-video-thumbnail {
	opacity: 0;
	pointer-events: none;
}

.company-video-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 3;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.company-video-player.playing .company-video-play-button {
	opacity: 0;
	pointer-events: none;
}

.company-video-play-button:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

.company-video-close-button {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.7);
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 101;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
	padding: 0;
}

.company-video-player-wrapper.zoomed .company-video-close-button {
	opacity: 1;
	pointer-events: all;
	display: flex;
}

.company-video-close-button:hover {
	background-color: rgba(0, 0, 0, 0.9);
	transform: scale(1.1);
}

.company-video-close-button svg {
	width: 18px;
	height: 18px;
}

.company-video-element {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 2;
}

.company-video-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	z-index: 2;
}

/* Right Content: Description */
.company-video-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.company-video-description {
	color: #ffffff;
	font-family: var(--font-regular);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 30px 0;
	max-width: 445px;
	transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Zoomed State: Move content to sides and disappear */
.company-video-section.zoomed .company-video-left {
	transform: translateX(calc(-50vw + 50% - 440px));
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
	pointer-events: none;
	visibility: hidden;
}

.company-video-section.zoomed .company-video-right {
	transform: translateX(calc(50vw - 50% + 440px));
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
	pointer-events: none;
	visibility: hidden;
}

.company-video-section.zoomed .company-video-center {
	z-index: 100;
	position: relative;
	grid-column: 1 / -1;
	justify-self: center;
}


/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1400px) {
	.company-video-heading {
		font-size: 60px;
	}
}

@media (max-width: 1200px) {
	.company-video-wrapper {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.company-video-left {
		justify-content: center;
		text-align: center;
	}

	.company-video-right {
		justify-content: center;
		text-align: center;
	}

	.company-video-description {
		max-width: 100%;
	}

	.company-video-heading {
		position: initial;
		left: auto;
		top: auto;
	}
}

@media (max-width: 992px) {
	.company-video-section {
		padding: 80px 0;
	}

	.company-video-heading {
		font-size: 48px;
	}

	.company-video-player-wrapper {
		width: 300px;
		height: 500px;
	}

	.company-video-section.zoomed .company-video-left {
		transform: translateX(calc(-50vw + 50% - 300px));
		opacity: 0;
		visibility: hidden;
	}

	.company-video-section.zoomed .company-video-right {
		transform: translateX(calc(50vw - 50% + 300px));
		opacity: 0;
		visibility: hidden;
	}

	.company-video-player-wrapper.zoomed {
		width: 600px;
		height: 400px;
	}

	.company-video-wrapper {
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.company-video-section {
		padding: 60px 0;
	}

	.company-video-heading {
		font-size: 36px;
	}

	.company-video-player-wrapper {
		width: 280px;
		height: 465px;
	}

	.company-video-section.zoomed .company-video-left {
		transform: translateX(calc(-50vw + 50% - 250px));
		opacity: 0;
		visibility: hidden;
	}

	.company-video-section.zoomed .company-video-right {
		transform: translateX(calc(50vw - 50% + 250px));
		opacity: 0;
		visibility: hidden;
	}

	.company-video-player-wrapper.zoomed {
		width: 500px;
		height: 350px;
	}

	.company-video-description {
		font-size: 14px;
	}

	.company-video-wrapper {
		gap: 30px;
	}
}

@media (max-width: 480px) {

	.company-video-section.zoomed .company-video-wrapper {
		gap: 30px;

	}

	.company-video-section.zoomed .company-video-left {
		transform: unset;
		opacity: 1;
		visibility: visible;
	}

	.company-video-section.zoomed .company-video-right {
		transform: unset;
		opacity: 1;
		visibility: visible;
	}

	.company-video-player-wrapper.zoomed {
		width: 100%;
		height: auto;
		aspect-ratio: 350 / 582;

	}

	.company-video-heading {
		font-size: 28px;
	}

	.company-video-player-wrapper {
		width: 100%;
		height: auto;
		aspect-ratio: 350 / 582;
	}

	.company-video-play-button {
		width: 50px;
		height: 50px;
	}

	.company-video-play-button svg {
		width: 50px;
		height: 50px;
	}

	.company-video-close-button {
		width: 35px;
		height: 35px;
		top: 10px;
		right: 10px;
	}

	.company-video-close-button svg {
		width: 16px;
		height: 16px;
	}
}