:root {
	--bg: #0d0d0d;
	--surface: #141414;
	--surface2: #1a1a1a;
	--border: #2a2a2a;
	--accent: #c8f04a;
	--accent2: #0b9c7a;
	--text: #d4d4d4;
	--muted: #999;
	--label: #fbfbfb;
	--subtitles: #e2e2e2;
	--speed: 32s;
	--icon-filter: brightness(0) saturate(100%) invert(88%) sepia(42%) saturate(600%) hue-rotate(28deg) brightness(105%) contrast(95%);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "DM Mono", monospace;
}

body {
	background: var(--bg);
	color: var(--text);
	font-weight: 300;
	min-height: 100vh;
	padding: 48px 24px;
	overflow-x: hidden;
}

/* Background grid */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(200, 240, 74, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(200, 240, 74, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	pointer-events: none;
	z-index: 0;
}

.page {
	max-width: 860px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── HEADER ── */
header {
	display: grid;
	grid-template-columns: 1fr 280px;
	align-items: start;
	gap: 0px;
	padding: 24px;
	border: 1px solid var(--border);
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
	margin-bottom: 40px;
}

header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(to bottom, var(--accent), var(--accent2));
}

#img-gil {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin-bottom: 24px;
}

#first-name {
	font-family: "Press Start 2P", system-ui;
	font-size: clamp(18px, 5vw, 32px);
	font-weight: 400;
	font-style: normal;
	color: var(--accent);
	opacity: 0;
	animation: fadeUp 0.6s 0.3s ease forwards;
}

#last-name {
	font-family: "Press Start 2P", system-ui;
	font-size: clamp(18px, 5vw, 32px);
	font-weight: 400;
	font-style: normal;
	color: var(--muted);
}

.badge {
	display: inline-block;
	font-size: 22px;
	font-weight: 300;
	color: var(--accent2);
	border: 1px solid var(--border);
	padding: 4px 10px;
	margin: 16px 0;
	opacity: 0;
	animation: fadeUp 0.6s 0.2s ease forwards;
}

@media (max-width: 780px) {
	.badge {
		font-size: 18px;
	}
}

@media (max-width: 380px) {
	#first-name {
		font-size: 24px;
	}

	.badge {
		font-size: 13px;
	}
}

.contact-block {
	text-align: right;
	opacity: 0;
	animation: fadeUp 0.6s 0.5s ease forwards;
}

.contact-block a,
.contact-block span {
	display: block;
	font-size: 13px;
	color: var(--text);
	text-decoration: none;
	line-height: 1.8;
	margin-bottom: 10px;
	transition: color 0.2s;
}

.contact-block a:hover {
	color: var(--accent);
}

/* CAROUSEL */
.carousel-wrapper {
	grid-column: 1 / -1;
	width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(to right,
			transparent 0%,
			#0d0d0d 10%,
			#0d0d0d 90%,
			transparent 100%);
	-webkit-mask-image: linear-gradient(to right,
			transparent 0%,
			#0d0d0d 10%,
			#0d0d0d 90%,
			transparent 100%);
}

.carousel-track {
	display: flex;
	width: max-content;
	gap: 12px;
	padding: 12px 0;
	animation: scroll-left var(--speed) linear infinite;
}

.carousel-wrapper:hover .carousel-track {
	animation-play-state: paused;
}

@keyframes scroll-left {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px;
	border-radius: 100px;
	border: 1px solid var(--border);
	background: var(--surface);
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	cursor: default;
	user-select: none;
	transition:
		border-color 0.25s,
		background 0.25s,
		transform 0.2s,
		box-shadow 0.25s;
}

.pill:hover {
	border-color: var(--accent);
	background: var(--surface2);
	transform: translateY(-3px) scale(1.04);
	box-shadow:
		0 8px 24px var(--bg),
		0 0 0 1px var(--accent);
}

.pill img {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	object-fit: contain;
	filter: var(--icon-filter);
}

.sep {
	color: var(--border);
	font-size: 18px;
	user-select: none;
}

/* ── HEADER RESPONSIVE ── */
@media (max-width: 720px) {
	header {
		grid-template-columns: 1fr;
	}

	.container-data-gil {
		text-align: center;
	}

	.contact-block {
		text-align: left;
	}
}

/* ── MAIN CONTENT GRID ── */
.main-grid {
	width: 860px;
	max-width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	overflow-x: hidden;
}

@media (max-width: 720px) {
	.main-grid {
		grid-template-columns: 1fr;
	}
}

/* ── SECTION ORDER IN GRID ── */
.main-grid .about-section {
	grid-column: 1 / -1;
	grid-row: 1;
}

.main-grid .soft-skills-section {
	grid-column: 2;
	grid-row: 1;
	margin-top: 24px;
}

.main-grid .skills-section {
	grid-column: 1;
	grid-row: 2;
}

.main-grid .projetos-section {
	grid-column: 1 / -1;
	grid-row: 3;
}

.main-grid .formacao-section {
	grid-column: 2;
	grid-row: 2;
}

@media (max-width: 720px) {

	.main-grid .about-section,
	.main-grid .soft-skills-section,
	.main-grid .skills-section,
	.main-grid .projetos-section,
	.main-grid .formacao-section {
		grid-column: 1;
		grid-row: auto;
	}
}

/* ── SECTIONS ── */
section {
	opacity: 0;
	animation: fadeUp 0.6s ease forwards;
	min-width: 0;
}

section:nth-child(1) {
	animation-delay: 0.5s;
}

section:nth-child(2) {
	animation-delay: 0.6s;
}

section:nth-child(3) {
	animation-delay: 0.7s;
}

.section-label {
	font-size: 16px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 40px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border);
}

/* ── STAR CARD ── */
.star-card {
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 24px;
	margin-top: 40px;
	position: relative;
	overflow: hidden;
}

.star-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(to bottom, var(--accent), var(--accent2));
}

.resume {
	font-size: 16px;
	color: var(--text);
	line-height: 1.7;
}

.star-steps {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 24px;
}

@media (max-width: 520px) {
	.star-steps {
		grid-template-columns: 1fr;
	}
}

.star-step {
	padding: 14px;
	background: var(--surface2);
	border: 1px solid var(--border);
	transition:
		border-color 0.2s,
		transform 0.2s;
}

.star-step:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}

.star-key {
	font-size: 14px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 6px;
}

.star-text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text);
}

/* ── PROJETOS ── */
.project-card {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 24px;
	border: 1px solid var(--border);
	margin-top: 40px;
}

.project-card-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-wrap: wrap;
}

.project-title {
	font-size: 16px;
	font-weight: bold;
	color: var(--text);
	margin-bottom: 16px;
}

.project-stack {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 14px;
}

.pipe {
	color: var(--muted);
}

.project-card-body {
	display: flex;
	align-items: center;
	gap: 24px;
}

.project-screenshot {
	width: 150px;
	height: auto;
}

.project-desc {
	font-size: 14px;
	color: var(--text);
	margin-bottom: 24px;
}

.project-btn {
	text-decoration: none;
	font-size: 13px;
	padding: 4px 10px;
	border: 1px solid var(--border);
	color: var(--text);
	background: var(--surface2);
	transition: all 0.2s;
}

.container-project-btn {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

@media (max-width: 580px) {
	.project-card-body {
		flex-direction: column;
	}

	.container-project-btn {
		flex-direction: column;
	}

	.project-btn {
		width: 100%;
		text-align: center;
	}
}

.project-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: rgba(200, 240, 74, 0.05);
	cursor: pointer;
}

/* ── SIDEBAR ── */
.sidebar section {
	margin-bottom: 32px;
}

/* ── SKILLS ── */
.skill-group {
	margin-bottom: 24px;
}

.skill-group-title {
	font-size: 14px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--accent2);
	margin-bottom: 8px;
}

.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	font-size: 16px;
	padding: 4px 10px;
	border: 1px solid var(--border);
	color: var(--text);
	background: var(--surface2);
	transition: all 0.2s;
	cursor: default;
}

.tag:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: rgba(200, 240, 74, 0.05);
}

/* ── SOFT SKILLS ── */
.soft-list {
	list-style: none;
}

.soft-list li {
	font-size: 16px;
	color: var(--text);
	padding: 7px 0;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.4;
}

.soft-list li:last-child {
	border-bottom: none;
}

.soft-list li::before {
	content: "▸";
	color: var(--accent);
	font-size: 16px;
	flex-shrink: 0;
}

/* ── EDUCATION ── */
.edu-item {
	padding: 10px 0;
}

.edu-course {
	font-size: 16px;
	color: var(--text);
}

.edu-school {
	font-size: 14px;
	color: var(--accent2);
	margin-top: 2px;
}

/* ── FOOTER ── */
footer {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-note {
	font-size: 14px;
	color: var(--text);
}

.availability {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: var(--accent);
}

.dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	animation: pulse 2s infinite;
}

@keyframes pulse {

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

	50% {
		opacity: 0.4;
		transform: scale(1.3);
	}
}