:root {
	--section-pad-x: 1.5rem;
	--section-pad-y: 5rem;
	--mobile-section-pad-x: 1rem;
	--mobile-section-pad-y: 3.5rem;
	--mobile-hero-height: auto;
}

::-webkit-scrollbar {width: 6px}
::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);-webkit-border-radius: 10px;border-radius: 10px}
::-webkit-scrollbar-thumb {-webkit-border-radius: 10px;border-radius: 10px;background: #999;-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .5)}
::-webkit-scrollbar-thumb:window-inactive {background: #999;}

body {
	font-family: 'IBM Plex Sans', sans-serif;
	background-color: #030a08;
	background-image: url('../images/wall.jpg');
	background-attachment: scroll;
	background-size: cover;
	background-position: top;
	color: #ffffff;
	overflow-x: hidden;
}

.hero-shell {
	isolation: isolate;
	min-height: 100vh;
	max-height: 100vh;
	overflow: hidden;
}

.fluid-bg-hero {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	
	background-size: cover;
	background-position: right center;
	animation: fluidBackground 20s infinite alternate ease-in-out;
}

.hero-main {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding-left: var(--section-pad-x);
	padding-right: var(--section-pad-x);
}

.hero-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: clamp(1rem, 2vh, 2rem);
	padding-bottom: clamp(1rem, 2vh, 2rem);
}

.hero-title-main {
	margin-top: clamp(7rem, 14vh, 11rem);
}

.hero-title-desktop {
	display: block;
	font-size: 2.5rem;
	line-height: 1.2;
}

.hero-title-mobile {
	display: none;
}

.blur-fade-group {
	--blur-delay: 0.1s;
	--line-stagger: 0.18s;
}

.blur-fade-line {
	display: block;
	opacity: 0;
	transform: translateY(10px);
	filter: blur(8px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
	transition-delay: calc(var(--blur-delay) + (var(--line-index, 0) * var(--line-stagger)));
	will-change: opacity, transform, filter;
}

.blur-fade-group.is-visible .blur-fade-line {
	opacity: 1;
	transform: translateY(-4px);
	filter: blur(0);
}

.marquee-container {
	margin-top: clamp(2rem, 4vh, 3rem);
}

@media (max-width: 768px) {

	html,
	body {
		overflow-x: hidden;
	}

	.hero-shell {
		min-height: auto !important;
		height: auto !important;
		max-height: none;
		overflow: visible;
	}

	.mobile-hero-height {
		min-height: var(--mobile-hero-height) !important;
		height: var(--mobile-hero-height) !important;
	}

	.hero-logo {
		height: 1.5rem !important;
	}

	.fluid-bg-hero {
		
		height: 58vh;
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center top;
		animation: none;
		mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 84%, transparent 100%);
		-webkit-mask-image: linear-gradient(to bottom, black 84%, transparent 100%);
	}

	.hero-main {
		min-height: auto !important;
		flex: 0 0 auto !important;
		display: block;
		padding-left: var(--mobile-section-pad-x);
		padding-right: var(--mobile-section-pad-x);
	}

	.hero-header {
		padding-top: 3.5rem;
	}

	.hero-logo {
		height: 2.5rem !important;
	}

	.hero-section {
		display: block;
		padding-top: clamp(11rem, 32vw, 14rem);
		padding-bottom: 0.25rem;
	}

	.hero-title-main {
		margin-top: 0;
	}

	.hero-title-desktop {
		display: none;
	}

	.hero-title-mobile {
		display: block;
	}

	.hero-title {
		max-width: min(19rem, 100%);
		font-size: clamp(1.9rem, 8.8vw, 2.35rem);
		line-height: 1.02;
		margin-bottom: 1.1rem;
		letter-spacing: -0.03em;
	}

	.hero-title-mobile.hero-title {
		max-width: min(19rem, 100%);
		font-size: clamp(1.6rem, 4.4vw, 1.175rem);
		line-height: 1.5;
		margin-bottom: 1rem;

	}

	.hero-title-main span {
		display: inline;
		padding: 0.08em 0.22em 0.12em !important;
		-webkit-box-decoration-break: clone;
		box-decoration-break: clone;
	}

	.hero-subtitle {
		max-width: min(18rem, 100%);
		font-size: 1rem;
		line-height: 1.35;
		margin-bottom: 2rem;
		padding-top: 0;
		color: rgba(255, 255, 255, 0.88) !important;
		text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
	}

	.hero-subtitle span {
		display: inline;
		padding: 0.1em 0.24em 0.14em !important;
		-webkit-box-decoration-break: clone;
		box-decoration-break: clone;
	}
}

@keyframes fluidBackground {
	0% {
		transform: scale(1) translate(0, 0);
	}

	100% {
		transform: scale(1.1) translate(-2%, -1%);
	}
}

@keyframes fluidBackgroundBody {
	0% {
		transform: scale(1.05) translate(0, 0);
	}

	100% {
		transform: scale(1) translate(1%, 1%);
	}
}

.glass-card {
	background: rgba(228, 228, 228, 0.014);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.5rem;
}

.text-gradient {
	background: linear-gradient(135deg, #82C91E 0%, #37B24D 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.btn-primary {
	background: #82C91E;
	color: #033819;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 20px rgba(130, 201, 30, 0.4);
}

.btn-primary:hover {
	background: #94D82D;
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(130, 201, 30, 0.6);
}

.cta-glow {
	box-shadow: 0 0 15px rgba(130, 201, 30, 0.3);
}

.green-gradient-card {
	position: relative;
	background: linear-gradient(160deg, rgba(12, 22, 8, 0.92) 0%, rgba(19, 46, 12, 0.82) 45%, rgba(16, 70, 24, 0.5) 100%);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(154, 214, 74, 0.24);
	border-radius: 1.5rem;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(125, 245, 0, 0.05);
}

.green-gradient-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(170, 255, 97, 0.14) 0%, rgba(79, 173, 45, 0.05) 38%, rgba(0, 0, 0, 0) 100%);
	opacity: 1;
	transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 0;
}

.green-gradient-card:hover {
	border-color: rgba(130, 201, 30, 0.5);
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.green-gradient-card:hover::before {
	opacity: 1;
}

/* Mouse Following Glow Effect */
.glow-layer {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 90% at var(--x, 50%) var(--y, 50%), rgba(151, 232, 70, 0.13), transparent 42%),
		radial-gradient(80% 65% at 50% 0%, rgba(215, 255, 170, 0.08), transparent 55%);
	opacity: 1;
	transition: opacity 0.5s;
	pointer-events: none;
	z-index: 2;
	mix-blend-mode: screen;
}

.glass-card:hover .glow-layer,
.green-gradient-card:hover .glow-layer {
	opacity: 1;
}

.badge-lote {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: #7DF500;
	color: #033819;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 4px 12px rgba(125, 245, 0, 0.3);
	z-index: 10;
}

section {
	padding: var(--section-pad-y) var(--section-pad-x);
}

.eventos-realizados-item {
    opacity: 0.5;
    /*filter: grayscale(1);
    background: rgba(255,255,255,0.03) !important;*/
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: none !important;
    transition: all .3s ease;
}

.eventos-realizados-item:hover {
    opacity: .75;
    transform: translateY(-4px);
    filter: grayscale(.4);
}



@media (max-width: 640px) {
	section {
		padding: var(--mobile-section-pad-y) var(--mobile-section-pad-x);
	}

	.hero-section {
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 1.8rem;
	}

	.glass-card {
		border-radius: 1.25rem;
	}

	.glass-card.p-10,
	.glass-card.p-12,
	.border-glow.p-8,
	#cursos .glass-card .p-8 {
		padding: 1.5rem;
	}

	.badge-lote {
		top: 1rem !important;
		right: 1rem !important;
		font-size: 0.65rem;
	}

	.marquee-track {
		gap: 1rem;

	}

	.marquee-item {
		width: min(18.5rem, calc(100vw - (var(--mobile-section-pad-x) * 2)));
	}

	.marquee-item {
		padding: 1rem;

	}

	.marquee-item>div:first-child {
		flex-direction: row;
		align-items: center;
		gap: 0.75rem;
		margin-bottom: 2rem;

	}

	.marquee-item>div:first-child>div:last-child h3,
	.marquee-item>div:first-child>div:last-child p {
		text-align: left;

	}

	.marquee-container {
		margin-top: 2.75rem;

	}

	.hero-shell+main>section:first-child {
		padding-top: 2rem;
	}
}

/* Rotating Border Glow Effect */
@property --angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}

.border-glow {
	position: relative;
	background: rgb(3, 10, 8);
	backdrop-filter: blur(12px);
	z-index: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-glow::before {
	content: '';
	position: absolute;
	height: 150%;
	width: 150%;
	background-image: conic-gradient(from var(--angle), transparent 62%, rgba(223, 255, 184, 0.1), rgba(130, 201, 30, 0.7), rgba(55, 178, 77, 0.45), transparent 88%);
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	z-index: -1;
	padding: 2px;
	animation: 7s spin linear infinite;
	opacity: 0.55;
	transition: opacity 0.5s;
	filter: blur(1px);
}

.border-glow:hover::before {
	opacity: 0.8;
}

.border-glow::after {
	content: '';
	position: absolute;
	inset: 2px;
	background: #030a08;
	border-radius: inherit;
	z-index: -1;
}

@keyframes spin {
	from {
		--angle: 0deg;
	}

	to {
		--angle: 360deg;
	}
}

.full-width-carousel {
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 3rem;
	padding: 1rem 0;
	overflow: hidden;
}

.carousel-fade-left,
.carousel-fade-right {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 15vw;
	z-index: 10;
	pointer-events: none;
}

.carousel-fade-left {
	left: 0;
	background: linear-gradient(to right, rgba(3, 10, 8, 1) 0%, rgba(3, 10, 8, 0) 100%);
}

.carousel-fade-right {
	right: 0;
	background: linear-gradient(to left, rgba(3, 10, 8, 1) 0%, rgba(3, 10, 8, 0) 100%);
}

.marquee-track {
	display: flex;
	gap: 3.5rem;
	width: max-content;
	animation: scroll-marquee 25s linear infinite;
}

.marquee-container:hover .marquee-track {
	animation-play-state: paused;
}

.marquee-item {
	width: 320px;
	flex-shrink: 0;
	white-space: normal;
	display: block;
}

@keyframes scroll-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-50% - 0.75rem));
	}
}
