/**
 * Netlogic Spotlight Hero - Frontend Stylesheet
 * Custom CSS for smooth slideshow cross-fades, Ken Burns zoom, text roll-in mask transitions,
 * dynamic pill action buttons, and a bouncing scroll indicator.
 * Brand colors: Primary Indigo (#6366F1), Secondary Dark Navy (#131022), Soft Blue (#4c82f7)
 */

.nl-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	background-color: #0b0914;
	overflow: hidden;
	display: flex;
	align-items: center;
	z-index: 1;
	font-family: 'Manrope', sans-serif;
}

/* ==========================================================================
   1. Slideshow Background Layout & Keyframe Animations
   ========================================================================== */
.nl-hero__bg {
	overflow: hidden;
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
}

.nl-hero__bg-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 1;
	transition: opacity 1.8s ease-in-out; /* Smooth background cross-fade */
}

.nl-hero__bg-slide.active {
	opacity: 1;
	z-index: 2;
}

/* Zoom Transition Container (Ken Burns) */
.nl-hero__bg-inner {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transform: scale(1.15); /* Starting scale */
}

.nl-hero__bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Starting zoom scales for inactive slides */
.nl-hero__bg-slide[data-zoom-speed="none"] .nl-hero__bg-inner {
	transform: scale(1.0);
	transition: transform 1.8s ease-in-out;
}
.nl-hero__bg-slide[data-zoom-speed="slow"] .nl-hero__bg-inner {
	transform: scale(1.10);
	transition: transform 1.8s ease-in-out;
}
.nl-hero__bg-slide[data-zoom-speed="normal"] .nl-hero__bg-inner {
	transform: scale(1.15);
	transition: transform 1.8s ease-in-out;
}
.nl-hero__bg-slide[data-zoom-speed="fast"] .nl-hero__bg-inner {
	transform: scale(1.22);
	transition: transform 1.8s ease-in-out;
}

/* Active Zoom: Triggers animation when slide becomes active */
@keyframes kenBurnsSlow {
	from { transform: scale(1.10); }
	to { transform: scale(1.0); }
}
@keyframes kenBurnsNormal {
	from { transform: scale(1.15); }
	to { transform: scale(1.0); }
}
@keyframes kenBurnsFast {
	from { transform: scale(1.22); }
	to { transform: scale(1.0); }
}

.nl-hero__bg-slide.active[data-zoom-speed="none"] .nl-hero__bg-inner {
	transform: scale(1.0);
}
.nl-hero__bg-slide.active[data-zoom-speed="slow"] .nl-hero__bg-inner {
	animation: kenBurnsSlow 8.5s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}
.nl-hero__bg-slide.active[data-zoom-speed="normal"] .nl-hero__bg-inner {
	animation: kenBurnsNormal 4.8s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}
.nl-hero__bg-slide.active[data-zoom-speed="fast"] .nl-hero__bg-inner {
	animation: kenBurnsFast 3.0s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

/* Dark Vignette Overlay */
.nl-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(11,9,20,calc(0.96 * var(--overlay-strength, 0.75))) 0%, rgba(11,9,20,calc(0.75 * var(--overlay-strength, 0.75))) 50%, rgba(11,9,20,calc(0.15 * var(--overlay-strength, 0.75))) 100%),
		linear-gradient(to top, rgba(11,9,20,calc(0.70 * var(--overlay-strength, 0.75))) 0%, transparent 50%);
	z-index: 1;
	pointer-events: none;
}

/* ==========================================================================
   2. Text Slider Layout & Mask Transitions
   ========================================================================== */
.nl-hero__content {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
	z-index: 3;
}

.nl-hero__text-col {
	max-width: 720px;
}

/* Eyebrow Label */
.nl-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	opacity: 0;
	transform: translateY(12px);
}

.nl-hero__eyebrow.nl-reveal {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.nl-hero__eyebrow-line {
	width: 30px;
	height: 2px;
	background-color: #6366f1;
}

.nl-hero__eyebrow-text {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #6366f1;
	letter-spacing: 2px;
}

.nl-hero__text-slider {
	position: relative;
	width: 100%;
}

.nl-hero__text-slide {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.nl-hero__text-slide.active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

.nl-hero__text-slide:not(.active) {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.nl-hero__title {
	font-size: 56px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 24px 0;
	color: #ffffff;
	letter-spacing: -1px;
}

@media (max-width: 768px) {
	.nl-hero__title {
		font-size: 40px;
	}
}

.nl-roll-line {
	overflow: hidden;
	line-height: 1.2;
	padding-bottom: 0.05em;
	vertical-align: top;
}

.nl-roll-inner {
	display: block;
	transform: translateY(115%);
	transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl-hero__text-slide.active.nl-visible .nl-roll-inner {
	transform: translateY(0);
}

.nl-hero__text-slide.active.nl-visible .accent-line .nl-roll-inner {
	background: linear-gradient(135deg, #6366f1 0%, #4c82f7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	transition-delay: 0.12s;
}

/* Subtitle description */
.nl-hero__subtitle {
	font-size: 18px;
	color: #94a3b8;
	line-height: 1.6;
	margin: 0 0 35px 0;
	max-width: 580px;
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl-hero__text-slide.active.nl-visible .nl-hero__subtitle {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.28s;
}

/* CTA Action buttons */
.nl-hero__actions {
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl-hero__text-slide.active.nl-visible .nl-hero__actions {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.44s;
}

.nl-btn-indigo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #6366f1 0%, #4c82f7 100%);
	color: #ffffff;
	padding: 14px 32px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
	border: none;
	cursor: pointer;
}

.nl-btn-indigo:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.nl-btn-indigo .arrow {
	transition: transform 0.3s ease;
}

.nl-btn-indigo:hover .arrow {
	transform: translateX(4px);
}

/* ==========================================================================
   3. Interactive Dots Navigation
   ========================================================================== */
.nl-hero__dots {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
}

@media (max-width: 768px) {
	.nl-hero__dots {
		flex-direction: row;
		right: auto;
		left: 50%;
		top: auto;
		bottom: 90px;
		transform: translateX(-50%);
	}
}

.nl-hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	padding: 0;
	margin: 0;
	transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	outline: none;
}

.nl-hero__dot:hover {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nl-hero__dot.active {
	background: #6366f1;
	border-color: #6366f1;
	transform: scale(1.3);
	box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

/* ==========================================================================
   4. Bouncing Scroll Arrow
   ========================================================================== */
.nl-hero__scroll {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.3s ease;
}

.nl-hero__scroll:hover {
	color: #6366f1;
}

.nl-hero__scroll-label {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.nl-hero__scroll-chevron {
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0) rotate(45deg);
	}
	40% {
		transform: translateY(6px) rotate(45deg);
	}
	60% {
		transform: translateY(3px) rotate(45deg);
	}
}
