/**
 * Hero Section Styles
 *
 * @package Olive
 */

/*---------------------------------
		Colors Variables
    
-----------------------------------*/
:root {
	--black: #06021d;
	--light: #e0dfe4;
	--link-on-light: #2111dd;
	--link-on-dark: #8980ec;
	--hover: #ecb40a;
	--danger: #ec4811;

	--new-theme-color: #929479;
	--new-theme-color-2: #2d2f26;
	--new-theme-color-3: #dd3c0b;

	/*----------------
		Border Radius
	------------------*/
	/* Fluid Border Radius: 0.8rem to 2.5rem */
	/* 0.8rem = Min | 2vw + 0.5rem = Preferred | 2.5rem = Max */
	--radius-fluid-rem: clamp(0.8rem, 2vw + 0.5rem, 2.5rem);
	--border-radius-sm: 16px;
	--border-radius-lg: 24px;

	/*----------------
		Paddings and margins
	------------------*/
	/* Fluid Padding (Top/Bottom): 0.5rem to 2rem */
	--btn-padding-y: clamp(0.5rem, 2vw + 0.2rem, 2rem);
	/* Fluid Padding (Left/Right): 1rem to 2rem */
	--btn-padding-x: clamp(1rem, 2vw + 0.5rem, 2rem);
	/* Fluid inner spacing */
	--pad-xy-fluid: clamp(1rem, 2vw, 2rem);
	--padding-left-fluid: clamp(1rem, 5vw, 3rem);
	--padding-right-fluid: clamp(1rem, 5vw, 3rem);
	--padding-top-fluid: clamp(0.5rem, 5vh, 3rem);
	--padding-y-fluid: clamp(1.5rem, 2vh, 4rem);
	--padding-y-fluid-lg: clamp(2rem, 2vh, 8rem);
	--padding-y-fluid-md: clamp(0.5rem, 2.5vh, 1rem);
	--padding-bottom-fluid: clamp(0.5rem, 5vh, 3rem);
	--padding-sm: 0.5rem;
	--padding-md: 1rem;
	--padding-lg: 1.5rem;
	--padding-xl: 2rem;
	--padding-xxl: 4rem;

	/* Fluid Margin (Top/Bottom): 0.5rem to 2rem */
	--margin-y-fluid: clamp(0.5rem, 2vw + 0.2rem, 2rem);
	/* Fluid Margin (Left/Right): 1rem to 2rem */
	--margin-x-fluid: clamp(1rem, 2vw + 0.5rem, 2rem);
	--margin-sm: 0.5rem;
	--margin-md: 1rem;
	--margin-lg: 1.5rem;
	--margin-xl: 2rem;
	--margin-xxl: 4rem;

	/* Fluid Column Gap: 0.5rem to 4rem */
	--column-gap-fluid: clamp(0.5rem, 4vw + 0.25rem, 2rem);
	/* Fluid Row Gap: 0.5rem to 4rem */
	--row-gap-fluid: clamp(0.5rem, 4vw + 0.25rem, 2rem);
	--gap-sm: 0.5rem;
	--gap-md: 1rem;
	--gap-lg: 1.5rem;
	--gap-xl: 2rem;
	--gap-xxl: 4rem;

	/*----------------
		Images and boxes aspect ratios
	------------------*/
	--horizontal: 16/9;
	--vertical: 4/5;
	--square: 1/1;

	/*----------------
		Font sizes
	------------------*/

	/* Paragraph sizes */
	--paragraph-base: clamp(1rem, 1vw + 1rem, 1.25rem);
	--paragraph-large: clamp(2rem, 1vw + 2rem, 2rem);
	--paragraph-md: clamp(1rem, 1vw + 0.8rem, 1.1rem);
	--heading-in-page-sm: clamp(1.2rem, 2vw, 3rem);
	--p-sm: 0.8rem;
	--p-md: 1.2rem;
	--p-lg: 1.5rem;
	--p-xl: 2rem;
	--p-xxl: 3rem;

	/* H1 sizes */
	--heading-base: clamp(4rem, 16vw, 22rem);
	--heading-in-page: clamp(4rem, 8vw, 11rem);
	--heading-in-page-md: clamp(2rem, 4vw, 5.5rem);
	--h1-sm: 2rem;
	--h1-md: 3rem;
	--h1-lg: 4rem;
	--h1-xl: 5rem;
	--h1-xxl: 6rem;

	/* H2 sizes */
	--h2-fluid-lg: clamp(3.5rem, 16vw - 2.2rem, 18rem);
	--h2-fluid-md: clamp(2.5rem, 12vw - 1.8rem, 13.5rem);
	--h2-fluid-sm: clamp(1.75rem, 8vw - 1.1rem, 9rem);
	--h2-fluid: clamp(1.3rem, 2.5vw, 3.3rem);
	--h2-sm: 1.5rem;
	--h2-md: 2rem;
	--h2-lg: 2.5rem;
	--h2-xl: 3rem;
	--h2-xxl: 4rem;

	/* H3 sizes */
	--h3-fluid: clamp(1.2rem, 2vw, 3rem);
	--h3-sm: 1.2rem;
	--h3-md: 1.5rem;
	--h3-lg: 2rem;
	--h3-xl: 2.5rem;
	--h3-xxl: 3rem;

	/*Links and buttons variables*/
	--link-text-fluid: clamp(1.2rem, 2.5vw, 3rem);
	--link-text-fluid-md: clamp(1rem, 2vw, 2rem);
	--link-text-fluid-sm: clamp(1rem, 1vw, 1.5rem);
	--link-text-fluid-xs: clamp(0.5rem, 1vw, 1rem);
	--link-text-sm: 1.3rem;
	--link-text-md: 1.8rem;
	--link-text-lg: 2.5rem;
	--link-text-xl: 3rem;
	--link-text-xxl: 4rem;

	/*---------------- Icons ----------------*/
	--icon-fluid-md: clamp(4rem, 2vw + 0.5rem, 6rem);
	--icon-fluid: clamp(1.2rem, 2vw + 0.5rem, 3rem);

	/*---------------- 
	Divs
	----------------*/
	--div-fluid-width: clamp(300px, 25%, 1440px);
	--div-fluid-width: clamp(300px, 25%, 1440px);
	--div-fluid-height: clamp(22rem, 65vh, 60rem);
	--fw-container: clamp(90%, 90%, 90%);
}

.hero-section {
	min-width: 100%;
	max-width: 100vw;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
	overflow: hidden;
}

/* Hero Content */
.hero-content {
	width: var(--fw-container);
	display: flex;
	flex-direction: row;
	flex: 50% 50%;
	justify-content: space-between;
	align-items: center;
	column-gap: var(--row-gap-fluid);
	padding: var(--padding-top-fluid) 0;
}

.hero-left-container {
	width: 50%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.is-video-fullscreen .hero-left-container {
	opacity: 0;
}

/* Marquee Animation - Scroll Responsive */
.marquee-container {
	overflow: hidden;
	white-space: nowrap;
	width: 100%;
}

.marquee-content {
	display: inline-flex;
	will-change: transform;
	/* Base animation for when not scrolling */
	animation: marquee-idle 30s linear infinite;
}

.hero-title {
	padding: 0 4rem 0 0;
	margin: 0;
	font-size: var(--heading-base);
}

@keyframes marquee-idle {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.hero-texts-wrapper {
	display: flex;
	flex-direction: column;
	align-items: start;
	overflow: hidden;
}

.hero-description {
	padding-bottom: var(--padding-xl);
}

.hero-button {
	width: max-content;
	display: flex;
	flex-wrap: nowrap;
	gap: 1.2rem;
	align-items: center;
	justify-items: center;
	text-decoration: none;
	transition: all 0.6s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Video Transition Styles */
.hero-right-container {
	width: 50%;
	height: 100%;
	aspect-ratio: var(--vertical);
	position: relative;
	overflow: hidden;
	transition: all 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-section.is-video-fullscreen .hero-right-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
}

.video-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hero-video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}
.hero-video-image {
	height: 50vh;
	width: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	background-color: var(--black);
	width: 100%;
	height: 100%;
	opacity: 0.3;
	z-index: 2;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
	/*------- Hero Section ------*/
	.hero-section {
		align-items: start;
	}

	.hero-left-container,
	.hero-right-container {
		width: 100%;
	}

	.hero-right-container {
	}

	.marquee-container {
		margin-top: var(--margin-md);
	}
}

@media (max-width: 576px) {
     .mobile-poster-mode {
        padding: 0 !important;
        margin: 0 !important;
    }
	.hero-section {
		height: auto !important;
		min-height: 100vh; /* Keeps it full screen if content is short, but allows growth */
		width: 100% !important;
		display: block; /* Switch from flex to block for simpler stacking on mobile */
		overflow: visible;
		padding: 0 2.5% !important;
		margin: 0 !important;
	}
	.section-is-mobile {
		width: 90% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.latest-work {
		height: 200vh;
	}
	.hero-content {
		height: auto !important;
		width: 100% !important;
		display: flex;
		flex-direction: column-reverse !important;
		padding-bottom: 0 !important;
		margin: 0 !important;
	}

	.hero-left-container {
		width: 100% !important;
		height: auto !important;
		overflow: visible;
		display: flex;
		flex-direction: column;
		gap: 2rem; /* Adds consistent spacing between text elements and the button */
	}
	.hero-texts-wrapper {
		height: auto;
		overflow: visible;
		padding: 0 0 2rem 0 !important; /* Add some spacing since it's now at the bottom */
	}
	.hero-button {
		margin-bottom: 2rem; /* Explicit margin to push away the next section */
	}

	.hero-right-container {
		width: 100%;
		height: auto;
		max-height: 50vh; /* Prevents the video from pushing the text too far down */
		aspect-ratio: var(--vertical);
	}
	.video-container,
	.hero-overlay {
		height: 100%;
		width: 100%;
	}
	.hero-video {
		height: 100%;
		width: 100%;
		object-fit: cover;
	}
}
