@charset "utf-8";

@font-face {
    font-family: 'audiowide';
    src: url('./audiowide.ttf') format('truetype');
}

@font-face {
    font-family: 'michroma';
    src: url('./michroma.ttf') format('truetype');
}

@font-face {
    font-family: 'orbitron';
    src: url('./orbitron.ttf') format('truetype');
}

body::-webkit-scrollbar {
	display: none;
	width: 0 !important;
}

a, a:focus, a:active {
	outline: none !important;
	box-shadow: none !important;
	text-decoration: none;
}

body {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: scroll;
	background-color: #0d0f12;
	webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

canvas {
	width: 100%;
	height: 100%;
	display: block;
}

h1, h2, p {
	font-family: michroma;
    color: white;
}

html {
	margin: 0;
	width: 100%;
	scroll-behavior: smooth;
	scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
	scrollbar-width: thin;
	scrollbar-gutter: none;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

img {
	-webkit-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

section {
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem;
}

ul {
	text-align: left;
	padding-left: 20px;
	margin: 0;
	list-style-position: inside;

	& li {
		font-family: 'Audiowide', cursive, sans-serif;
		color: #ffffff;
		font-size: 14pt;
		line-height: 1.6;
	}
}

#bem-vindo {
	position: relative;
}

#container-3d {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

#custom-scrollbar-track {
	position: fixed;
	top: 80px;
	right: 6px;
	bottom: 6px;
	width: 10px;
	z-index: 9999;
	pointer-events: auto;
	cursor: pointer;
}

#custom-scrollbar-thumb {
	width: 100%;
	height: 60px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 20px;
	backdrop-filter: blur(4px);
	position: absolute;
	top: 0;
	cursor: grab;
	transition: background 0.2s ease;

	&:active {
		cursor: grabbing;
		background: rgba(255, 255, 255, 0.85);
	}
}

#menu {
	background: linear-gradient(to bottom, #000000, #424242);
	padding: 10px;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	box-sizing: border-box;

	& img {
		height: 50px;
	}
}

#options {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-family: orbitron;
    color: white;
    font-size: 14pt;

	& a {
		color: #fff;
		text-decoration: none;
		display: inline-block;
		transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;

		&:hover {
			transform: scale(1.15);
			text-shadow: 0 0 8px #ffffff;
		}

		&:active {
			transform: scale(0.95);
		}
	}
}

.bg-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
}

.bg-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;

	&.active {
		opacity: 1;
	}
}

/* fundo em parallax (ver parallax.js): acima do gradiente, abaixo do conteúdo */
#parallax {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.px-layer {
	position: absolute;
	inset: 0;
	will-change: transform;
}

.px-item {
	position: absolute;
}

.px-float {
	animation: px-float 7s ease-in-out infinite;
}

.px-float svg {
	display: block;
	overflow: visible;
}

.px-spin {
	animation: px-spin 10s linear infinite;

	&.px-slow {
		animation-duration: 18s;
	}
}

@keyframes px-float {
	0%, 100% { transform: translateY(0) rotate(-5deg); }
	50% { transform: translateY(-16px) rotate(5deg); }
}

@keyframes px-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.px-float, .px-spin {
		animation: none;
	}
}

.box {
	/* sem isso os personagens se posicionavam pelo .content e "descolavam" das caixas */
	position: relative;
	flex: 1;
	padding: 20px;
	color: white;
	text-align: center;
	border-radius: 15px;
	background-color: rgba(255,255,255,0.3);
	
	&:nth-of-type(2) {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
}

.char {
	position: absolute;
	height: 200px;
	z-index: 20;
}

.char-jhow {
	right: -30px;
	bottom: -40px;
}

/* sentado na borda de cima da caixa: o assento fica a ~70% da altura da imagem, só as pernas descem */
.char-caio {
	bottom: 100%;
	right: 10px;
	transform: translateY(30%);
}

/* empurrando a caixa pela esquerda */
.char-gu {
	left: -105px;
	bottom: -10px;
}

.char-contato {
	position: absolute;
	bottom: -20px;
	right: 60px;
	z-index: -1;
	width: 250px;
}

.container {
	display: flex;
	justify-content: center;
	gap: 20px;
	width: 100%;
}

.content {
	max-width: 1000px;
	text-align: center;
	opacity: 0;
	transform: translateY(60px);
	transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.content.visible {
	opacity: 1;
	transform: translateY(0);
}

.content h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.content p {
	font-size: 1.25rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-bg="1"] {
	--gradient: radial-gradient(circle at center, #044DF4 0%, #031940 100%);
}

[data-bg="2"] {
	--gradient: radial-gradient(circle at center, #A3C9E2 0%, #9618F7 100%);
	
	& img {
		margin-top: 40px;
		width: 300px;
	}
}

[data-bg="3"] {
	--gradient: radial-gradient(circle at center, #EEBD89 0%, #D13ABD 100%);
}

[data-bg="4"] {
	--gradient: radial-gradient(circle at center, #FB8E6A 0%, #8F4A70 100%);
}

[data-bg="5"] {
	--gradient: radial-gradient(circle at center, #07E1F4 0%, #028b96 100%);
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	width: 100%;
	max-width: 1000px;
}

.grid-item {
	padding: 40px 20px;
	text-align: center;
}

.grid-item-cmd{
	background-color: #424242;
	
}

.whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #2da808;
	color: #FFFFFF;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 16px;
	font-weight: 600;
	padding: 10px;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
	transition: all 0.3s ease;

	& i {
		font-size: 20px;
	}
	
	& img {
		width: 25px;
		position: relative;
		bottom: -7px;
	}

	&.qr {
		border-radius: 5px;
		background-color: #FFFFFF;

		& > .qr {
			border-radius: 0;
			width: 160px;
			height: 160px;
			background-color: #2da808;
			mask: url("qrcode.svg") center / 160px 160px no-repeat;
			-webkit-mask: url("qrcode.svg") center / 160px 160px no-repeat;
			transition: transform 0.3s ease;
		}
	}

	&:hover {
		transform: scale(1.03);
		box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
		transition: transform 0.3s ease;

		&.qr > .qr {
			transform: scale(1.2);
		}
	}
}

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
	#menu {
		display: flex;
		flex-direction: column;
		align-items: center;

		& img {
			height: 36px;
		}
	}

	#options {
		position: static;
		transform: none;
		flex-wrap: wrap;
		gap: 6px 18px;
		margin-top: 6px;
		font-size: 10pt;
	}

	section {
		padding-top: 120px;
		box-sizing: border-box;
	}

	html {
		scroll-padding-top: 100px;
	}
}

@media (max-width: 768px) {
	section {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.content h1 {
		font-size: 1.6rem;
	}

	.content h2 {
		font-size: 1.1rem;
	}

	.content p {
		font-size: 0.95rem;
	}

	ul li {
		font-size: 11pt;
	}

	[data-bg="2"] img {
		width: 200px;
	}

	.container {
		flex-direction: column;
		gap: 30px;
	}

	.grid-container {
		grid-template-columns: 1fr;
		row-gap: 30px;
	}

	/* espaço para o Caio sentado em cima da caixa sem cobrir a caixa anterior */
	.grid-item:has(.char-caio) {
		margin-top: 80px;
	}

	.char {
		height: 140px;
	}

	.char-jhow {
		right: -10px;
		bottom: -30px;
	}

	/* reserva espaço para o Jhow não cobrir a lista */
	.container .box:nth-of-type(2) {
		padding-bottom: 110px;
	}

	/* dá espaço à esquerda para o Gu não sair da tela */
	.grid-item:has(.char-gu) {
		margin-left: 60px;
	}

	.char-gu {
		left: -74px;
		bottom: -7px;
	}

	.char-contato {
		width: 130px;
		right: 0;
		bottom: -10px;
	}

	.whatsapp.qr > .qr {
		width: 130px;
		height: 130px;
		mask-size: 130px 130px;
		-webkit-mask-size: 130px 130px;
	}
}

/* a barra customizada só funciona com mouse */
@media (hover: none) {
	#custom-scrollbar-track {
		display: none !important;
	}
}
