:root {
	color-scheme: dark;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background-color: #0f0c1a;
	color: #f4eeda;
	--bg: #0f0c1a;
	--bg-deep: #070510;
	--ink: #f4eeda;
	--muted: #b3aac9;
	--primary: #f5c542;
	--primary-soft: #ffdd89;
	--c-music: #f08faf;
	--c-games: #ff9a4d;
	--c-dev: #5bd0bf;
	--surface: rgba(24, 20, 38, 0.66);
	--surface-strong: rgba(30, 25, 48, 0.82);
	--border: rgba(196, 184, 235, 0.14);
	--font-display: 'Space Grotesk', 'Inter', sans-serif;
	--font-pixel: 'Silkscreen', 'Courier New', monospace;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	min-height: 100%;
}

html {
	scroll-padding-top: 96px;
	background-color: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
	color: var(--ink);
	line-height: 1.65;
}

/* Céu noturno fixo: brilhos coloridos + duas camadas de estrelas em pixel */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		radial-gradient(ellipse 90% 55% at 50% -12%, rgba(245, 197, 66, 0.14), transparent 62%),
		radial-gradient(ellipse 55% 42% at 8% 104%, rgba(91, 208, 191, 0.09), transparent 66%),
		radial-gradient(ellipse 50% 38% at 96% 58%, rgba(240, 143, 175, 0.07), transparent 66%),
		url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><rect x='24' y='30' width='2' height='2' fill='%23f5c542' opacity='.7'/><rect x='150' y='16' width='2' height='2' fill='%23ffffff' opacity='.4'/><rect x='236' y='64' width='2' height='2' fill='%23ffd98a' opacity='.55'/><rect x='84' y='96' width='2' height='2' fill='%23ffffff' opacity='.3'/><rect x='196' y='140' width='2' height='2' fill='%23f5c542' opacity='.45'/><rect x='40' y='180' width='2' height='2' fill='%23ffffff' opacity='.35'/><rect x='120' y='226' width='2' height='2' fill='%23ffd98a' opacity='.5'/><rect x='250' y='210' width='2' height='2' fill='%23ffffff' opacity='.3'/><rect x='176' y='250' width='2' height='2' fill='%23f5c542' opacity='.35'/></svg>"),
		url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='460' height='460'><rect x='60' y='80' width='3' height='3' fill='%23ffffff' opacity='.35'/><rect x='300' y='40' width='3' height='3' fill='%23f5c542' opacity='.4'/><rect x='410' y='190' width='3' height='3' fill='%23ffd98a' opacity='.3'/><rect x='150' y='260' width='3' height='3' fill='%23ffffff' opacity='.25'/><rect x='340' y='330' width='3' height='3' fill='%23f5c542' opacity='.3'/><rect x='40' y='400' width='3' height='3' fill='%23ffd98a' opacity='.35'/><rect x='230' y='150' width='3' height='3' fill='%23ffffff' opacity='.2'/></svg>");
	background-size: auto, auto, auto, 280px 280px, 460px 460px;
}

/* Granulação sutil, como textura de fita/filme */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.045;
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
	background-size: 180px 180px;
}

::selection {
	background: rgba(245, 197, 66, 0.35);
	color: #fff8e1;
}

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover {
	color: var(--primary-soft);
}

a:focus-visible,
.cta:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
	border-radius: 4px;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
}

/* ---------- Navegação ---------- */

.site-header {
	position: static;
	background: transparent;
}

.fixed-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 100;
	backdrop-filter: blur(14px);
	background: rgba(11, 8, 20, 0.82);
	border-bottom: 1px solid var(--border);
	padding: 10px 24px;
}

.nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.nav-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-pixel);
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	color: var(--ink);
}

.nav-brand:hover {
	color: var(--primary);
}

.nav-brand img {
	image-rendering: pixelated;
}

.hero-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.cta {
	--pill: var(--primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--pill) 38%, transparent);
	background: color-mix(in srgb, var(--pill) 9%, transparent);
	color: var(--pill);
	font-weight: 600;
	font-size: 0.92rem;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cta[href="#music"] {
	--pill: var(--c-music);
}

.cta[href="#games"] {
	--pill: var(--c-games);
}

.cta[href="#dev"] {
	--pill: var(--c-dev);
}

.cta:hover {
	background: var(--pill);
	color: #171021;
	transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero-panel {
	max-width: 1180px;
	margin: 0 auto;
	padding: 148px 24px 40px;
}

.hero-copy {
	max-width: 840px;
	margin: 0 auto;
	text-align: center;
}

.hero-mascot {
	image-rendering: pixelated;
	margin-bottom: 14px;
}

@media (prefers-reduced-motion: no-preference) {
	.hero-mascot {
		animation: float 4s ease-in-out infinite alternate;
	}

	@keyframes float {
		from {
			transform: translateY(0);
		}

		to {
			transform: translateY(-8px);
		}
	}
}

h1 {
	font-size: clamp(2.7rem, 6vw, 4.1rem);
	font-weight: 700;
	margin-bottom: 14px;
	background: linear-gradient(120deg, #ffe9ab 10%, var(--primary) 55%, #e8992e 95%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-tagline {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 26px;
	color: var(--muted);
	font-size: 1.02rem;
}

.role {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.role::before {
	content: "";
	width: 9px;
	height: 9px;
	flex-shrink: 0;
	background: var(--rc, var(--primary));
}

.role-music {
	--rc: var(--c-music);
}

.role-games {
	--rc: var(--c-games);
}

.role-dev {
	--rc: var(--c-dev);
}

/* ---------- Seções ---------- */

.main-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 48px;
}

section {
	scroll-margin-top: 96px;
}

.portfolio-section {
	--accent: var(--primary);
	margin-bottom: 56px;
}

#music {
	--accent: var(--c-music);
}

#games {
	--accent: var(--c-games);
}

#dev {
	--accent: var(--c-dev);
}

.section-header {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 26px;
}

.section-label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-pixel);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 1rem;
	color: var(--accent, var(--primary));
}

.section-label::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--accent, var(--primary));
	flex-shrink: 0;
}

.section-header::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--primary)) 40%, transparent), transparent);
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

/* ---------- Cards ---------- */

.portfolio-card,
.about-panel,
.intro-panel {
	background: linear-gradient(180deg, var(--surface-strong), var(--surface));
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.portfolio-card {
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--accent, var(--primary)) 45%, transparent);
	box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
}

.portfolio-card h3,
.about-copy h2 {
	margin: 16px 0 12px;
	font-size: 1.35rem;
}

.portfolio-card h3 a {
	color: var(--ink);
}

.portfolio-card h3 a:hover {
	color: var(--accent, var(--primary));
}

.portfolio-card p {
	color: #ddd5ea;
}

.portfolio-card p a {
	color: var(--accent, var(--primary));
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in srgb, var(--accent, var(--primary)) 45%, transparent);
}

.portfolio-card p a:hover {
	color: color-mix(in srgb, var(--accent, var(--primary)) 70%, white);
}

.card-meta {
	display: inline-block;
	font-family: var(--font-pixel);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--accent, var(--primary));
	background: color-mix(in srgb, var(--accent, var(--primary)) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent, var(--primary)) 28%, transparent);
	border-radius: 6px;
	padding: 4px 10px;
	margin-bottom: 6px;
}

.card-thumb {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-thumb img,
.portfolio-card img,
.about-panel img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.card-thumb img {
	transition: transform 0.35s ease;
}

.portfolio-card:hover .card-thumb img {
	transform: scale(1.03);
}

.portfolio-card.games img,
.portfolio-card.dev img {
	aspect-ratio: 16 / 9;
}

.portfolio-card.musics .card-thumb img {
	aspect-ratio: 1 / 1;
}

.audio-player {
	margin: 18px 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	overflow: hidden;
}

.audio-player iframe {
	display: block;
}

/* ---------- Sobre ---------- */

.about-section {
	--accent: var(--primary);
	margin-top: 8px;
	margin-bottom: 56px;
}

.about-panel {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 34px;
	align-items: center;
}

.about-panel img {
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 10px 10px 0 rgba(245, 197, 66, 0.16);
}

.about-copy h2 {
	margin-top: 0;
	font-size: 1.7rem;
	color: var(--primary);
}

.about-copy p {
	margin-bottom: 16px;
	color: #ddd5ea;
}

.about-copy p a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(245, 197, 66, 0.45);
}

/* ---------- Rodapé / Contato ---------- */

.foot-session {
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 32px 24px;
	background: linear-gradient(180deg, var(--surface-strong), var(--surface));
	border: 1px solid var(--border);
	border-radius: 18px;
}

.footer-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
	color: var(--muted);
}

.footer-copy .section-label {
	--accent: var(--primary);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	list-style: none;
}

.social-link {
	--net: var(--primary);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: #eee5cd;
	font-size: 0.98rem;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links li:nth-child(1) .social-link {
	--net: #ff8833;
}

.social-links li:nth-child(2) .social-link {
	--net: #e6edf3;
}

.social-links li:nth-child(3) .social-link {
	--net: #6cb2ff;
}

.social-links li:nth-child(4) .social-link {
	--net: #ef85b5;
}

.social-link:hover {
	border-color: var(--net);
	color: var(--net);
	transform: translateY(-2px);
}

.social-link svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ---------- Página 404 ---------- */

.intro-section {
	margin-bottom: 36px;
}

.intro-panel {
	padding: 40px 32px;
	text-align: center;
}

.intro-panel h1 {
	font-size: 2.2rem;
}

.intro-panel .eyebrow {
	font-family: var(--font-pixel);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.85rem;
	color: var(--primary);
	margin-bottom: 14px;
}

.intro-panel .cta {
	background: linear-gradient(135deg, var(--primary), #f8d575);
	border: none;
	color: #1f170d;
	padding: 12px 24px;
}

.intro-panel .cta:hover {
	background: linear-gradient(135deg, var(--primary-soft), var(--primary));
	color: #1f170d;
}

/* ---------- Responsivo ---------- */

@media screen and (max-width: 920px) {

	.portfolio-grid,
	.about-panel {
		grid-template-columns: 1fr;
	}

	.about-panel img {
		max-width: 340px;
		margin: 0 auto;
	}

	.portfolio-card,
	.about-panel,
	.intro-panel,
	.foot-session {
		padding: 22px;
	}

	.foot-session {
		margin-left: 16px;
		margin-right: 16px;
	}
}

@media screen and (max-width: 680px) {
	html {
		scroll-padding-top: 88px;
	}

	section {
		scroll-margin-top: 88px;
	}

	.fixed-nav {
		padding: 8px 10px;
	}

	.nav-brand {
		display: none;
	}

	.nav-inner {
		justify-content: center;
	}

	.hero-actions {
		gap: 5px;
	}

	.cta {
		padding: 6px 10px;
		font-size: 0.84rem;
	}

	.hero-panel {
		padding-top: 116px;
	}

	.hero-mascot {
		width: 72px;
		height: 72px;
	}

	.hero-tagline {
		flex-direction: column;
		align-items: center;
		gap: 6px;
	}

	.main-content {
		padding-top: 36px;
	}

	.foot-session {
		margin-left: 12px;
		margin-right: 12px;
	}

	.intro-panel h1 {
		font-size: 1.9rem;
	}
}
