/*
==========================================================
Header & Navigation
==========================================================
*/
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	height: var(--navbar-height);
	background: var(--color-surface);
	padding: 0 5%;
	z-index: 1000;
	transition: all 0.3s ease;
	border-bottom: 1px solid var(--color-border);
}

.navbar.scrolled {
	border-bottom-color: var(--color-border-strong);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.logo {
	font-size: 1.8rem;
	font-weight: var(--font-weight-bold);
	background: linear-gradient(135deg, var(--color-primary), var(--color-heading));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.logo-image {
	display: block;
	width: auto;
	height: 76px;
	max-width: 320px;
	object-fit: contain;
}

.logo:hover {
	transform: scale(1.05);
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 3rem;
}

.nav-links a {
	text-decoration: none;
	color: var(--color-text);
	font-weight: var(--font-weight-semibold);
	transition: all 0.3s ease;
	position: relative;
	padding: 0.5rem 0;
}

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

.nav-links a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	background: var(--color-accent);
	transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
	width: 100%;
}

.nav-links a.active {
	color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
}

.mobile-menu {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	background: transparent;
	border: 0;
	padding: 8px;
	font: inherit;
	color: inherit;
}

.mobile-menu span {
	width: 28px;
	height: 3px;
	background: var(--color-primary);
	margin: 4px 0;
	transition: 0.3s;
	border-radius: 2px;
}
.mobile-menu:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Responsive */
@media (max-width: 940px) {
	.navbar {
		height: var(--navbar-height-mobile);
}
	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-surface-translucent);
		backdrop-filter: blur(20px);
		flex-direction: column;
		padding: 2rem 5%;
		box-shadow: 0 10px 30px var(--color-border);
		border-radius: 0 0 20px 20px;
	}

	.nav-links.active {
		display: flex;
	}

	.mobile-menu {
		display: flex;
	}
	
	.logo-image {
		height: 60px;
		max-width: 250px;
	}
}

/* Mobile menu open state: hamburger becomes an X */
.mobile-menu.active span:nth-child(1) {
	transform: translateY(11px) rotate(45deg);
}
.mobile-menu.active span:nth-child(2) {
	opacity: 0;
}
.mobile-menu.active span:nth-child(3) {
	transform: translateY(-11px) rotate(-45deg);
}
