/* Variáveis para cores e estilos consistentes */
:root {
	--bg-dark: #121212;
	--bg-card: #1e1e1e;
	--bg-input: #292929;
	--primary: #2a5caa;
	--accent: #10b981; /* Verde turquesa */
	--text-primary: #ffffff;
	--text-secondary: #b0b0b0;
	--border-radius: 8px;
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	--transition: all 0.3s ease;
}

/* Reset e estilos básicos */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

body {
	background-color: var(--bg-dark);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Cabeçalho */
.cabecalho {
	background-color: var(--bg-card);
	padding: 1.8rem 0;
	text-align: center;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 100;
	animation: fadeIn 1s ease;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

.logo {
	color: var(--text-primary);
	font-size: 2.2rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.subtitulo {
	color: var(--text-secondary);
	opacity: 0.9;
	font-weight: 300;
	margin-top: 0.5rem;
}

/* Seções */
section {
	padding: 4rem 0;
}

.section-title {
	text-align: center;
	margin-bottom: 3rem;
	color: var(--text-primary);
	position: relative;
	font-size: 1.8rem;
}

.section-title::after {
	content: "";
	position: absolute;
	bottom: -15px;
	left: 50%;
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	transform: translateX(-50%);
	border-radius: 3px;
}

/* Tecnologias Section */
.tecnologias-section {
	background-color: var(--bg-dark);
	position: relative;
}

.tecnologias-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2.5rem;
	margin-top: 2rem;
}

.tecnologia-card {
	border-radius: var(--border-radius);
	overflow: hidden;
	background-color: var(--bg-card);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.tecnologia-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Configuração das imagens e overlay */
.card-image-container {
	position: relative;
	overflow: hidden;
}

.tecnologia-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tecnologia-card:hover .tecnologia-img {
	transform: scale(1.08);
}

.overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(
		0deg,
		rgba(16, 185, 129, 0.8) 0%,
		rgba(42, 92, 170, 0) 100%
	);
	padding: 1.5rem;
	transform: translateY(100%);
	transition: transform 0.4s ease;
}

.tecnologia-card:hover .overlay {
	transform: translateY(0);
}

.overlay h3 {
	color: white;
	margin: 0;
	font-size: 1.5rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Conteúdo dos cards */
.card-content {
	padding: 1.8rem;
}

.card-content p {
	margin-bottom: 1.2rem;
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.6;
}

.config-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	padding: 8px 0;
}

.config-link:hover {
	color: #fff;
}

/* Ferramentas Section */
.ferramentas-section {
	background-color: var(--bg-input);
	padding: 5rem 0;
}

.ferramentas-lista {
	padding: 1rem 0;
}

.projeto-item {
	background: linear-gradient(
		90deg,
		rgba(42, 92, 170, 0.7) 0%,
		rgba(16, 185, 129, 0.7) 100%
	);
	backdrop-filter: blur(10px);
	color: white;
	padding: 1.5rem;
	margin: 1rem 0;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	justify-content: space-between;
	align-items: center;
	animation: slideUp 0.5s ease forwards;
	opacity: 0;
	transform: translateY(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.projeto-item:hover {
	transform: translateY(-3px) scale(1.01);
	background: linear-gradient(
		90deg,
		rgba(42, 92, 170, 0.9) 0%,
		rgba(16, 185, 129, 0.9) 100%
	);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Delay nas animações para efeito sequencial */
.projeto-item:nth-child(1) {
	animation-delay: 0.1s;
}
.projeto-item:nth-child(2) {
	animation-delay: 0.3s;
}
.projeto-item:nth-child(3) {
	animation-delay: 0.5s;
}

.item-content {
	flex: 1;
}

.item-content h3 {
	margin-bottom: 8px;
	font-size: 1.2rem;
	font-weight: 600;
}

.item-content p {
	font-size: 0.9rem;
	opacity: 0.9;
	line-height: 1.5;
}

.arrow {
	font-size: 1.5rem;
	margin-left: 15px;
	opacity: 0.7;
	transition: var(--transition);
}

.projeto-item:hover .arrow {
	transform: translateX(5px);
	opacity: 1;
}

/* Footer */
.footer {
	background-color: var(--bg-card);
	color: var(--text-primary);
	padding: 4rem 0 3rem;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.slogan {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 2rem;
	color: var(--accent);
}

.footer-links {
	margin: 1.8rem 0;
	display: flex;
	justify-content: center;
}

.footer-links a {
	color: var(--text-secondary);
	text-decoration: none;
	padding: 0.8rem 2rem;
	opacity: 0.8;
	transition: var(--transition);
	border-radius: var(--border-radius);
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-links a:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.05);
	color: var(--accent);
}

.copyright {
	opacity: 0.6;
	font-size: 0.9rem;
	margin-top: 2rem;
	color: var(--text-secondary);
}

/* Animações */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

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

/* Animação de scroll */
.reveal {
	opacity: 0;
	transform: translateY(30px);
}

.reveal.active {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.8s ease;
}

/* Responsividade */
@media (max-width: 768px) {
	.tecnologias-grid {
		grid-template-columns: 1fr;
	}

	.section-title {
		font-size: 1.5rem;
	}

	.footer-links a {
		padding: 0.8rem 1rem;
	}

	.logo {
		font-size: 1.8rem;
	}

	.slogan {
		font-size: 1.2rem;
	}
}

@media (max-width: 480px) {
	section {
		padding: 3rem 0;
	}

	.projeto-item {
		flex-direction: column;
		text-align: center;
	}

	.arrow {
		margin-top: 15px;
		margin-left: 0;
	}

	.overlay h3 {
		font-size: 1.3rem;
	}

	.card-content {
		padding: 1.5rem;
	}

	.footer {
		padding: 3rem 0 2rem;
	}
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-input);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--accent);
}
