/* header.css (VERSÃO FINAL CORRIGIDA PARA PROPORÇÃO DO LOGO) */

header {
	background-color: rgba(10, 10, 10, 0.8);
	backdrop-filter: blur(10px);
	color: var(--text-light);
	position: sticky;
	top: 0;
	z-index: 10;
	height: 70px; /* A altura do header continua fixa */
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	border-bottom: 1px solid var(--border-color);
}

/* --- CORREÇÃO APLICADA AQUI --- */
/* Removemos a altura fixa do container para que ele se ajuste à imagem */
header .header-icon {
	display: flex;
	align-items: center;
	z-index: 1001;
	/* A linha 'height: 100%;' que causava o problema foi removida. */
}

/* A imagem agora controla o seu próprio tamanho e proporção corretamente */
header .header-icon img {
	height: 45px; /* Você pode ajustar este valor se quiser o logo um pouco maior ou menor */
	width: auto; /* A largura se ajusta para manter a proporção */
	object-fit: contain; /* Garante que a imagem nunca seja distorcida */
}
/* --- FIM DA CORREÇÃO --- */

header .header-sections {
	display: flex;
}

header ul {
	display: flex;
	flex-direction: row;
	list-style-type: none;
	gap: 30px;
}

header ul li a {
	color: var(--text-light);
	text-decoration: none;
	font-weight: 500;
	position: relative;
	padding-bottom: 5px;
	transition: color 0.3s;
}

header ul li a:hover {
	color: var(--primary-green);
}

header ul li a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: var(--primary-green);
	transition: width 0.3s ease-in-out;
}

header ul li a:hover::after {
	width: 100%;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	z-index: 1001;
}

.menu-toggle .bar {
	width: 25px;
	height: 3px;
	background-color: var(--text-light);
	margin: 4px 0;
	transition: 0.4s;
}

@media (max-width: 768px) {
	header {
		padding: 0 20px;
	}

	.menu-toggle {
		display: flex;
	}

	.header-sections {
		display: flex; /* Alterado de none para flex para permitir a transição */
		flex-direction: column;
		position: fixed;
		top: 0;
		left: -100%; /* Posição inicial fora da tela */
		width: 100%;
		height: 100vh;
		background-color: rgba(10, 10, 10, 0.95);
		justify-content: center;
		align-items: center;
		transition: left 0.5s ease; /* Adiciona transição suave */
	}

	.header-sections.active {
		left: 0; /* Move o menu para a tela */
	}

	header ul {
		flex-direction: column;
		text-align: center;
		gap: 40px;
	}

	header ul li a {
		font-size: 1.5em;
	}

	.menu-toggle.active .bar:nth-child(1) {
		transform: rotate(-45deg) translate(-5px, 6px);
	}

	.menu-toggle.active .bar:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle.active .bar:nth-child(3) {
		transform: rotate(45deg) translate(-5px, -6px);
	}
}
