/* ============================================
   IMMERSIVE VIDEO EXPERIENCE
   Premium Cinematographic Styles
   ============================================ */

:root {
	--ive-primary-dark: #212A5F;
	--ive-primary-light: #A0DBEB;
	--ive-overlay-color: rgba(33, 42, 95, 0.4);
	--ive-backdrop-blur: 15px;
	--ive-transition-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--ive-transition-duration: 0.6s;
	--ive-text-color-light: #FFFFFF;
	--ive-dark-bg: #0a0e27;
	--ive-border-radius: 100px;
}


/* ============================================
   IMMERSIVE HERO
   Full-width autoplaying background video with
   centered text, optional button and a play
   control that opens the video in a modal.
   ============================================ */

/* Load Inter + Inter Tight from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Inter+Tight:wght@400;500;600;700;800;900&display=swap');

.ive-hero {
	--ive-font-title: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
	--ive-font-body: 'Inter', system-ui, -apple-system, sans-serif;
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
	display: flex;
	isolation: isolate;
	border-radius: inherit;
}

/* Background video — cover, full width, all devices */
.ive-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}

.ive-hero-novideo {
	background: linear-gradient(150deg, #141b3c 0%, #2a2140 100%);
}

/* Dark tint for legibility */
.ive-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(20, 27, 60, 0.45);
	pointer-events: none;
}

/* Play button — sits inside the content flow, below the text,
   so it never overlaps the title/subtitle. */
.ive-hero-play {
	z-index: 3;
	width: 78px;
	height: 78px;
	margin-top: 4px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex: 0 0 auto;
	transition: transform var(--ive-transition-duration) var(--ive-transition-timing),
	            background-color 0.3s ease, box-shadow 0.3s ease;
}

.ive-hero-play svg {
	width: 42%;
	height: 42%;
	margin-left: 6%;
}

.ive-hero-play:hover {
	transform: scale(1.08);
	background: rgba(255, 255, 255, 0.2);
	box-shadow: 0 0 32px rgba(255, 255, 255, 0.35);
}

.ive-hero-play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

/* Text content layer */
.ive-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px clamp(20px, 5vw, 64px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 18px;
	font-family: var(--ive-font-body);
}

.ive-hero-title {
	font-family: var(--ive-font-title);
	font-size: 56px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0;
	max-width: 100%;
	overflow-wrap: break-word;
	text-wrap: balance;
}

.ive-hero-title br,
.ive-hero-subtitle p {
	display: block;
}

.ive-hero-subtitle p {
	margin: 0;
}

.ive-hero-subtitle {
	font-family: var(--ive-font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: #A0DBEB;
	margin: 0;
	max-width: 60ch;
	overflow-wrap: break-word;
}

.ive-hero-button {
	font-family: var(--ive-font-body);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
	padding: 14px 34px;
	border: none;
	border-radius: 50px;
	background-color: #A0DBEB;
	color: #141B3C;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ive-hero-button:hover {
	background-color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.ive-hero-button:active {
	transform: translateY(0);
}

.ive-hero-button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* Responsive — tablet */
@media (max-width: 1024px) {
	.ive-hero-title { font-size: 44px; }
}

/* Responsive — mobile */
@media (max-width: 767px) {
	.ive-hero-title { font-size: 32px; }
	.ive-hero-subtitle { font-size: 14px; }
	.ive-hero-content { gap: 14px; padding: 32px 20px; }
	.ive-hero-play { width: 62px; height: 62px; }
	.ive-hero-button { padding: 12px 26px; font-size: 14px; }
}


/* ============================================
   MODAL OVERLAY & BACKDROP
   ============================================ */

.ive-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--ive-transition-duration) var(--ive-transition-timing);
}

.ive-modal-overlay.ive-active {
	opacity: 1;
	pointer-events: all;
}

.ive-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
		ellipse at center,
		rgba(33, 42, 95, 0.6) 0%,
		rgba(10, 14, 39, 0.8) 100%
	);
	backdrop-filter: blur(var(--ive-backdrop-blur)) saturate(1.2);
	-webkit-backdrop-filter: blur(var(--ive-backdrop-blur)) saturate(1.2);
	animation: ive-backdrop-in var(--ive-transition-duration) var(--ive-transition-timing);
}

@keyframes ive-backdrop-in {
	from {
		backdrop-filter: blur(0) saturate(1);
		-webkit-backdrop-filter: blur(0) saturate(1);
	}
	to {
		backdrop-filter: blur(var(--ive-backdrop-blur)) saturate(1.2);
		-webkit-backdrop-filter: blur(var(--ive-backdrop-blur)) saturate(1.2);
	}
}

/* ============================================
   MODAL CONTAINER & VIDEO
   ============================================ */

.ive-modal-container {
	position: relative;
	z-index: 1;
	width: 75vw;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	transform: scale(0.85) translateY(20px);
	opacity: 0;
	animation: ive-modal-open var(--ive-transition-duration) var(--ive-transition-timing) forwards;
}

.ive-modal-overlay.ive-active .ive-modal-container {
	animation: ive-modal-open var(--ive-transition-duration) var(--ive-transition-timing) forwards;
}

@keyframes ive-modal-open {
	to {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}

@keyframes ive-modal-close {
	to {
		transform: scale(0.85) translateY(20px);
		opacity: 0;
	}
}

.ive-modal-overlay.ive-closing .ive-modal-container {
	animation: ive-modal-close var(--ive-transition-duration) var(--ive-transition-timing) forwards;
}

/* ============================================
   MODAL HEADER
   ============================================ */

.ive-modal-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10;
	display: flex;
	justify-content: flex-end;
	padding: 20px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
	opacity: 0;
	transition: opacity var(--ive-transition-duration) var(--ive-transition-timing);
	pointer-events: none;
}

.ive-modal-overlay.ive-active .ive-modal-header {
	opacity: 1;
	pointer-events: all;
	animation: fadeInDown var(--ive-transition-duration) var(--ive-transition-timing) 0.2s forwards;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ive-modal-close {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ive-text-color-light);
	transition: all var(--ive-transition-duration) var(--ive-transition-timing);
	border-radius: 4px;
	font-family: inherit;
	-webkit-user-select: none;
	user-select: none;
}

.ive-close-icon {
	width: 28px;
	height: 28px;
	stroke: currentColor;
	transition: all var(--ive-transition-duration) var(--ive-transition-timing);
}

.ive-modal-close:hover {
	color: var(--ive-primary-light);
	transform: rotate(90deg);
	background: rgba(255, 255, 255, 0.1);
}

.ive-modal-close:focus-visible {
	outline: 2px solid var(--ive-primary-light);
	outline-offset: 2px;
}

/* ============================================
   MODAL CONTENT (VIDEO)
   ============================================ */

.ive-modal-content {
	position: relative;
	width: 100%;
	height: 100%;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ive-modal-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--ive-transition-duration) var(--ive-transition-timing);
}

.ive-modal-video.ive-playing {
	animation: ive-video-zoom 0.8s var(--ive-transition-timing) forwards;
}

@keyframes ive-video-zoom {
	from {
		transform: scale(0.95);
	}
	to {
		transform: scale(1);
	}
}

/* ============================================
   MODAL CONTROLS
   ============================================ */

.ive-modal-controls {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
	opacity: 0;
	transition: opacity var(--ive-transition-duration) var(--ive-transition-timing);
	pointer-events: none;
}

.ive-modal-overlay.ive-active .ive-modal-controls {
	opacity: 1;
	pointer-events: all;
	animation: fadeInUp var(--ive-transition-duration) var(--ive-transition-timing) 0.2s forwards;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   CONTROL BUTTONS (PLAY, SOUND, FULLSCREEN)
   ============================================ */

.ive-control-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--ive-border-radius);
	background-color: var(--ive-primary-dark);
	border: none;
	cursor: pointer;
	color: var(--ive-text-color-light);
	padding: 0;
	transition: all var(--ive-transition-duration) var(--ive-transition-timing);
	font-family: inherit;
	font-size: 0;
	-webkit-user-select: none;
	user-select: none;
}

.ive-control-btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	stroke: none;
	transition: all var(--ive-transition-duration) var(--ive-transition-timing);
}

.ive-control-btn:hover {
	background-color: var(--ive-primary-light);
	color: var(--ive-primary-dark);
	box-shadow: 0 0 20px rgba(160, 219, 235, 0.3);
	transform: scale(1.1);
}

.ive-control-btn:active {
	transform: scale(1.05);
}

.ive-control-btn:focus-visible {
	outline: 2px solid var(--ive-primary-light);
	outline-offset: 4px;
}

/* Sound button muted state */
.ive-control-btn.ive-muted {
	opacity: 0.6;
}

.ive-control-btn.ive-muted:hover {
	opacity: 1;
}

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

/* Tablet */
@media (max-width: 1024px) {
	.ive-modal-container {
		width: 85vw;
	}

	.ive-control-btn {
		width: 44px;
		height: 44px;
	}

	.ive-control-btn svg {
		width: 18px;
		height: 18px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.ive-modal-container {
		width: 92vw;
		max-height: 85vh;
		flex-direction: column;
	}

	.ive-modal-content {
		flex: 1;
	}

	.ive-modal-controls {
		position: static;
		background: rgba(33, 42, 95, 0.95);
		gap: 12px;
		padding: 16px;
		border-top: 1px solid rgba(160, 219, 235, 0.2);
		justify-content: space-around;
		opacity: 1;
		pointer-events: all;
	}

	.ive-modal-header {
		opacity: 1;
		pointer-events: all;
	}

	.ive-control-btn {
		width: 40px;
		height: 40px;
	}

	.ive-trigger-vertical {
		font-size: 9px;
		letter-spacing: 1px;
		padding: 12px 6px;
	}

	.ive-trigger-vertical::before {
		height: 50px;
	}

	.ive-trigger-button {
		padding: 12px 24px;
		font-size: 11px;
	}

	.ive-trigger-hero {
		gap: 12px;
		padding: 18px 12px;
	}

	.ive-trigger-hero .ive-hero-play {
		width: 54px;
		height: 54px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.ive-modal-container {
		width: 95vw;
		aspect-ratio: auto;
		max-height: 70vh;
		border-radius: 8px;
	}

	.ive-modal-header {
		padding: 12px;
	}

	.ive-modal-close {
		padding: 4px;
	}

	.ive-close-icon {
		width: 20px;
		height: 20px;
	}

	.ive-modal-controls {
		gap: 8px;
		padding: 12px;
	}

	.ive-control-btn {
		width: 36px;
		height: 36px;
	}

	.ive-control-btn svg {
		width: 16px;
		height: 16px;
	}

	.ive-trigger-vertical {
		font-size: 8px;
		letter-spacing: 0.5px;
		min-height: 100px;
	}

	.ive-trigger-button-wrapper {
		min-width: 140px;
	}

	.ive-trigger-button {
		padding: 10px 20px;
		font-size: 10px;
	}
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.ive-hidden {
	display: none !important;
}

.ive-no-scroll {
	overflow: hidden;
}

/* Smooth transitions for all vendor prefixes */
* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
