/* 1. Variáveis CSS (Tema Padrão: Claro - Neon Azul) */
:root {
	--bg-color: #f0f2f5;
	--text-color: #1f242d;
	--secondary-bg: #ffffff;
	--border-color: rgba(0, 0, 0, 0.15);
	--shadow-color: rgba(0, 0, 0, 0.15);
	--neon-color: #4dc4ff;
	--neon-shadow: 0 0 5px #4dc4ff, 0 0 15px #4dc4ff, 0 0 30px rgba(77, 196, 255, 0.5);
	--main-color: #007bb6;
	--secondary-bg-rgb: 255, 255, 255;
}

/* 2. Modo Escuro Automático (Neon Roxo Magenta) */
@media (prefers-color-scheme: dark) {
	:root {
		--bg-color: #0d000d;
		--text-color: #f0f0f0;
		--secondary-bg: #1e001e;
		--border-color: rgba(255, 255, 255, 0.1);
		--shadow-color: rgba(0, 0, 0, 0.8);
		--neon-color: #FF00FF;
		--neon-shadow: 0 0 5px #FF00FF, 0 0 15px #FF00FF, 0 0 40px rgba(255, 0, 255, 0.7);
		--main-color: #A020F0;
		--secondary-bg-rgb: 30, 0, 30;
	}
}

/* 3. Reset e Estilos Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Open Sans', sans-serif;
	text-decoration: none;
	transition: all 0.2s ease;
}

body {
	background: var(--bg-color);
	color: var(--text-color);
	min-height: 100vh;
}

/* 4. Estilos de BOTÕES */
.btn {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: var(--main-color);
	border-radius: 0.4rem;
	box-shadow: 0 0 0.8rem var(--shadow-color), var(--neon-shadow);
	font-size: 1rem;
	color: var(--secondary-bg);
	letter-spacing: 0.1rem;
	font-weight: 600;
	margin-top: 1rem;
	transition: all 0.3s ease, transform 0.2s ease;
	border: 1px solid var(--main-color);
	text-align: center;
}

.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 0.5rem 1.5rem var(--shadow-color), var(--neon-shadow);
}

.btn-secondary {
	background: transparent;
	border: 1px solid var(--main-color);
	color: var(--text-color);
	box-shadow: none;
}

.btn-secondary:hover {
	background: var(--main-color);
	color: var(--secondary-bg);
	box-shadow: 0 0.5rem 1.5rem var(--shadow-color), 0 0 10px var(--main-color);
}

/*
 * 01. LAYOUT PRINCIPAL
 */

/* 5. Estilos de SEÇÕES e Animação de Scroll */
section {
	padding: 5rem 9% 2rem;
	margin-top: 2rem;
	border-radius: 1.5rem;
	margin: 2rem 5%;
	box-shadow: inset 0 0 0 2px var(--main-color), 0 0 20px var(--shadow-color);
	background: var(--bg-color);
}

.heading {
	margin-top: 2rem;
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	font-family: 'Orbitron', sans-serif;
}

.heading span {
	color: var(--neon-color);
	text-shadow: var(--neon-shadow);
}

.animate-on-load,
.element-to-animate,
.element-to-animate-delay {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.show-loaded,
.show-animate {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

.element-to-animate-delay {
	transition-delay: 0.1s;
}

/* 6. HEADER e Navbar (Desktop) */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1.5rem 9%;
	background: var(--secondary-bg);
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
	border-bottom: 1px solid var(--border-color);
	transition: background 0.3s, border-bottom 0.3s;
}

.header.sticky {
	box-shadow: 0 0 1rem var(--shadow-color);
}

.logo {
	font-size: 1.7rem;
	color: var(--text-color);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.logo span {
	color: var(--neon-color);
	text-shadow: 0 0 5px var(--neon-color);
}

.mini-avatar {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--neon-color);
}

.clock {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--neon-color);
	margin: 0 1.5rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	background: var(--bg-color);
	text-shadow: var(--neon-shadow);
	min-width: 100px;
	text-align: center;
	font-family: 'Orbitron', monospace;
	align-self: center;
}

.navbar {
	display: flex;
	align-items: center;
}

.navbar a {
	padding: 0.3rem 0.5rem;
	margin-left: 1.2rem;
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-color);
	position: relative;
	z-index: 1;
	transition: color 0.3s ease;
}

.navbar a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: var(--neon-color);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: bottom left;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar a:hover::after,
.navbar a.active::after {
	transform: scaleX(1);
	box-shadow: 0 0 8px var(--neon-color);
}

.navbar a:hover,
.navbar a.active {
	color: var(--neon-color);
}

#menu-icon {
	font-size: 1.7rem;
	color: var(--text-color);
	cursor: pointer;
	display: none;
}

.social-header {
	display: flex;
	gap: 0.5rem;
	margin-left: 1rem;
}

.social-header a {
	color: var(--main-color);
	font-size: 1.2rem;
	transition: color 0.3s;
}

.social-header a:hover {
	color: var(--neon-color);
	text-shadow: 0 0 5px var(--neon-color);
}

.navbar .mobile-logout {
	display: none;
}

.logout-btn {
	display: inline-block;
	margin-left: 1rem;
}

/*
 * 02. ESTILOS DE CONTEÚDO
 */

/* 7. Seção HOME */
.home {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 3rem;
	min-height: calc(100vh - 5rem);
}

.home-content h1 {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.2;
	font-family: 'Orbitron', sans-serif;
}

.home-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--main-color);
	margin: 0.5rem 0 1.5rem;
}

.home-content p {
	font-size: 1rem;
	margin-bottom: 2rem;
}

.home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: flex-start;
}

.social-media-home {
	margin-bottom: 1.5rem;
}

.social-media-home a {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 2.5rem;
	height: 2.5rem;
	background: transparent;
	border: 2px solid var(--main-color);
	border-radius: 50%;
	font-size: 1.2rem;
	color: var(--main-color);
	margin-right: 0.8rem;
	transition: all 0.5s ease;
}

.social-media-home a:hover {
	background: var(--main-color);
	color: var(--secondary-bg);
	box-shadow: 0 0 10px var(--neon-color);
}

.home-img img {
	max-width: 400px;
	border-radius: 50%;
	box-shadow: 0 0 25px var(--neon-color);
	border: 5px solid var(--main-color);
	transition: transform 0.4s ease;
}

/* 8. Seção GAMES (Playlist) */
.roster-container {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	padding-bottom: 2rem;
}

.game-card {
	flex: 1 1 300px;
	background: var(--secondary-bg);
	padding: 2.5rem 2rem;
	border-radius: 1rem;
	text-align: center;
	border: 2px solid var(--border-color);
	box-shadow: 0 0 10px var(--shadow-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	max-width: 350px;
}

.game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), var(--neon-shadow);
}

.game-card i {
	font-size: 2.5rem;
	color: var(--neon-color);
	text-shadow: var(--neon-shadow);
	margin-bottom: 1rem;
}

.game-card h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--main-color);
	white-space: normal;
}

.game-card p {
	font-size: 0.9rem;
	color: var(--text-color);
	margin-bottom: 0.8rem;
	white-space: normal;
}

.game-rank {
	display: block;
	font-weight: 700;
	color: var(--neon-color);
	font-family: 'Orbitron', sans-serif;
}

/* 9. Seção ABOUT (Perfil) */
.about {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 3rem;
	flex-direction: row-reverse;
}

.about-content p {
	text-align: justify;
}

.about-img img {
	max-width: 350px;
	border-radius: 1rem;
	box-shadow: 0 0 25px var(--neon-color);
	border: 5px solid var(--main-color);
}

.about-info-boxes {
	display: flex;
	gap: 1.5rem;
	margin: 2rem 0;
	flex-wrap: wrap;
}

.info-box {
	background: var(--secondary-bg);
	padding: 1.2rem;
	border-radius: 0.5rem;
	border-left: 5px solid var(--main-color);
	flex: 1;
	min-width: 150px;
	text-align: left;
	box-shadow: 0 4px 8px var(--shadow-color);
}

.info-box h4 {
	font-size: 1.2rem;
	color: var(--neon-color);
	text-shadow: 0 0 3px var(--neon-color);
	font-family: 'Orbitron', sans-serif;
}

.info-box p {
	font-size: 0.8rem;
	color: var(--text-color);
	margin: 0;
}

/* 10. Seção ARSENAL (Projetos/Jogos) */
.project-categories {
	text-align: center;
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.filter-btn {
	background: var(--secondary-bg);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	padding: 0.6rem 1.2rem;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
	font-weight: 500;
}

.filter-btn:hover {
	background: var(--main-color);
	color: var(--secondary-bg);
}

.filter-btn.active-filter {
	background: var(--main-color);
	color: var(--secondary-bg);
	box-shadow: 0 0 10px var(--neon-color), 0 0 20px rgba(77, 196, 255, 0.5);
	transform: scale(1.05);
}

.projects-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2.5rem;
	padding-bottom: 2rem;
	transition: all 0.4s ease-out;
	max-width: 1200px;
	margin: 0 auto;
	justify-content: center;
}

.project-box {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	height: auto;
	max-width: 400px;
	box-shadow: 0 0 10px var(--shadow-color);
	border: 3px solid var(--main-color);
	opacity: 0;
	transform: translateY(30px);
	transition: none;
}

.projects-container .project-box.hidden-filtered {
	opacity: 0;
	transform: translateY(-20px);
	transition: opacity 0.35s ease-out, transform 0.35s ease-out;
	visibility: hidden;
	position: absolute;
	width: 100%;
	min-height: 300px;
}

.projects-container .project-box.show-animate-filter {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.4s ease-in, transform 0.4s ease-in;
	visibility: visible;
	display: flex !important;
	position: relative;
	width: 100%;
	min-height: 300px;
}

.project-box:hover {
	transform: scale(1.03);
	box-shadow: 0 0 20px var(--neon-color);
}

.project-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.project-box:hover img {
	transform: scale(1.1);
}

.project-layer {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	text-align: center;
	padding: 0 1rem 1.5rem;
	opacity: 0;
	transition: opacity 0.5s;
	pointer-events: none;
}

.project-box:hover .project-layer {
	opacity: 1;
	pointer-events: all;
}

.project-layer h4 {
	font-size: 1.5rem;
	color: var(--neon-color);
	text-shadow: 0 0 5px var(--neon-color);
	white-space: normal;
	width: 100%;
}

.project-layer p {
	font-size: 0.9rem;
	color: #fff;
	margin-bottom: 1rem;
	white-space: normal;
	width: 100%;
}

.project-techs {
	margin-bottom: 1rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.tech-tag {
	background: rgba(var(--secondary-bg-rgb), 0.2);
	color: var(--neon-color);
	padding: 0.3rem 0.6rem;
	border-radius: 5px;
	font-size: 0.75rem;
	border: 1px solid var(--neon-color);
}

.project-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 3rem;
	height: 3rem;
	background: var(--neon-color);
	border-radius: 50%;
	color: var(--secondary-bg);
	font-size: 1.5rem;
	transition: background 0.3s;
}

.project-link:hover {
	background: var(--main-color);
	box-shadow: 0 0 10px var(--neon-color);
}

/* 11. Seção CONTATO */
.contato {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 60vh;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.contact-direct {
	margin-top: 2rem;
	padding: 2rem;
	background: var(--secondary-bg);
	border-radius: 1rem;
	box-shadow: 0 0 15px var(--shadow-color), 0 0 10px var(--neon-color);
	border: 2px solid var(--main-color);
	max-width: 500px;
	width: 100%;
}

.contact-direct .btn {
	margin-top: 0;
	width: 100%;
	font-size: 1.1rem;
	padding: 15px 30px;
}

/* 12. Seção FOOTER */
.footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding: 1rem 9%;
	background: var(--secondary-bg);
	border-top: 1px solid var(--border-color);
}

.footer p {
	font-size: 0.8rem;
	color: var(--text-color);
}

.footer-icon-top {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 0.5rem;
	background: var(--main-color);
	border-radius: 0.5rem;
	transition: background 0.3s;
}

.footer-icon-top i {
	font-size: 1.5rem;
	color: var(--secondary-bg);
}

.footer-icon-top:hover {
	background: var(--neon-color);
	box-shadow: 0 0 10px var(--neon-color);
}

/*
 * 03. RESPONSIVIDADE
 */

/* 13. Regras para Tablet e Laptop (Max 992px) */
@media (max-width: 992px) {
	.header {
		padding: 1.5rem 5%;
	}

	section {
		padding: 4rem 5% 2rem;
		margin: 1.5rem 3%;
	}

	.contato {
		min-height: auto;
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.clock {
		margin: 0 1rem;
		font-size: 0.85rem;
		min-width: 90px;
	}

	.home-content h1 {
		font-size: 2.8rem;
	}

	.home-content h3 {
		font-size: 1.2rem;
	}

	.home-img img {
		max-width: 300px;
	}

	.about-img img {
		max-width: 250px;
	}
}

/* 14. Regras para Mobile (Max 768px) */
@media (max-width: 768px) {

	.header {
		padding: 1rem 5%;
		display: grid;
		grid-template-areas: "logo clock menu-icon";
		grid-template-columns: auto 1fr auto;
		gap: 0.5rem;
	}

	.logo {
		grid-area: logo;
		font-size: 1.5rem;
	}

	.clock {
		grid-area: clock;
		justify-self: center;
		align-self: center;
		margin: 0;
		font-size: 0.75rem;
		min-width: 80px;
		padding: 0.3rem 0.5rem;
	}

	#menu-icon {
		grid-area: menu-icon;
		display: block;
		align-self: center;
	}

	.header .logout-btn,
	.social-header {
		display: none;
	}

	.navbar {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: var(--secondary-bg);
		border-top: 1px solid var(--border-color);
		flex-direction: column;
		align-items: flex-start;
		padding: 1rem 5%;
		transform: translateY(-100%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
		max-height: 80vh;
		overflow-y: auto;
	}

	.navbar.active {
		transform: translateY(0);
		opacity: 1;
		pointer-events: all;
	}

	.navbar a {
		margin: 0.5rem 0;
		display: block;
		width: 100%;
		padding-left: 0;
	}

	.navbar .mobile-logout {
		display: block;
		width: 100%;
		margin-top: 1rem;
		padding: 0.75rem;
		text-align: center;
		background: var(--main-color);
		color: var(--secondary-bg) !important;
		border-radius: 0.4rem;
		box-shadow: 0 0 10px var(--neon-color);
		font-weight: 600;
	}

	section {
		margin: 1rem 2%;
		border-radius: 1rem;
		padding: 6rem 5% 1rem;
	}

	.heading {
		font-size: 2rem;
		margin-bottom: 2rem;
	}

	.home {
		flex-direction: column-reverse;
		text-align: center;
		gap: 2rem;
	}

	.home-content h1 {
		font-size: 2.5rem;
	}

	.home-content h3 {
		font-size: 1rem;
		margin-bottom: 1rem;
	}

	.home-img img {
		max-width: 250px;
	}

	.home-actions {
		justify-content: center;
	}

	.social-media-home {
		text-align: center;
		margin-bottom: 1rem;
	}

	.about {
		flex-direction: column;
		text-align: center;
	}

	.about-img {
		order: -1;
	}

	.about-img img {
		max-width: 250px;
		margin-bottom: 1rem;
	}

	.about-info-boxes {
		justify-content: center;
		gap: 1rem;
	}

	.info-box {
		flex: 1 1 45%;
		min-width: 100px;
	}

	.project-categories {
		justify-content: center;
		padding: 0 1rem;
	}

	.projects-container {
		grid-template-columns: 1fr;
	}

	.contato {
		min-height: auto;
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.footer {
		flex-direction: column;
		gap: 0.5rem;
		padding: 1rem 5%;
	}

	.contact-direct {
		padding: 1.5rem;
	}
}

/* 15. Regras para Telas Ultra-Pequenas (Max 480px) */
@media (max-width: 480px) {

	.header {
		grid-template-areas: "logo menu-icon""clock clock";
		grid-template-columns: 1fr auto;
		gap: 0.5rem 1rem;
		padding: 0.7rem 5%;
	}

	.clock {
		width: 100%;
		justify-self: stretch;
		margin: 0.5rem 0 0 0;
	}

	section {
		padding-top: 7rem;
	}

	.home-content h1 {
		font-size: 2rem;
	}

	.home-actions {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

	.info-box {
		flex: 1 1 100%;
		margin-bottom: 0.5rem;
	}
}

/*
 * 04. ESTILOS DA TELA DE LOGIN
 */

/* 16. Background GIF */
.login-body {
	background-image: url('caminho/para/seu_gif_de_fundo.gif');
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center;
	background-color: var(--bg-color);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 2rem;
}

/* 17. Estilização do Formulário de Login */
.login-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.login-box {
	background: rgba(var(--secondary-bg-rgb), 0.95);
	backdrop-filter: blur(2px);
	z-index: 10;
	padding: 3rem 2.5rem;
	border-radius: 1rem;
	box-shadow: 0 0 25px var(--shadow-color), 0 0 30px var(--neon-color);
	border: 2px solid var(--neon-color);
	max-width: 450px;
	width: 100%;
	text-align: center;
}

@media (max-width: 768px) {
	.login-body {
		padding: 1rem;
		align-items: center;
	}

	.login-box {
		padding: 2rem 1.5rem;
		box-shadow: 0 0 15px var(--neon-color);
	}
}