.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: #0e0c0c;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	width: 100%;
	border-bottom: 1px solid #444;
}

.header-spacer {
	height: 70px;
	/* Should match the header height */
}

/* Desktop Layout */
.desktop-layout {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	height: 70px;
}

.logo-container {
	display: flex;
	align-items: center;
}

.logo {
	margin-left: 2em;
	height: 4em;
	width: auto;
	transition: transform 0.3s ease;
}

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

.nav-main {
	display: flex;
	align-items: center;
}

.nav-main a {
	margin: 0 1rem;
	color: white;
	text-decoration: none;
	font-size: 1rem;
	cursor: pointer;
}

.nav-main a:hover {
	color: #ffa500;
}

/* Mobile Layout */
.mobile-layout {
	display: none;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
}

.mobile-logo-container {
	display: flex;
	justify-content: center;
	margin-bottom: 0.5rem;
}

.mobile-logo-container .logo {
	margin: 0;
	height: 3.5em;
}

/* Burger Menu Styles */
.burger-menu {
	display: flex;
	justify-content: center;
	cursor: pointer;
	margin: 0.5rem 0;
}

.burger-icon {
	width: 30px;
	height: 24px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.burger-icon span {
	display: block;
	height: 3px;
	width: 100%;
	background-color: white;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.burger-icon.active span:nth-child(1) {
	transform: translateY(10.5px) rotate(45deg);
}

.burger-icon.active span:nth-child(2) {
	opacity: 0;
}

.burger-icon.active span:nth-child(3) {
	transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Styles */
.mobile-menu {
	display: none;
	width: 100%;
	background-color: #0e0c0c;
	flex-direction: column;
	align-items: center;
	padding: 0;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	z-index: 999;
}

.mobile-menu.active {
	max-height: 300px; /* Adjust based on content */
	padding: 0.5rem 0;
}

.mobile-menu a {
	margin: 0.5rem 0;
	color: white;
	text-decoration: none;
	font-size: 1.2rem;
	text-align: center;
	width: 100%;
	padding: 0.5rem 0;
	border-bottom: 1px solid #333;
}

.mobile-menu a:last-child {
	border-bottom: none;
}

.mobile-menu a:hover {
	color: #ffa500;
}

@media (max-width: 768px) {
	.header-spacer {
		height: 120px; /* Adjusted for the taller mobile header */
	}

	/* Hide desktop layout, show mobile layout */
	.desktop-layout {
		display: none;
	}

	.mobile-layout {
		display: flex;
	}

	/* Show mobile menu when active */
	.mobile-menu.active {
		display: flex;
	}
}

@media (max-width: 480px) {
	.header-spacer {
		height: 110px; /* Slightly smaller for very small screens */
	}

	.mobile-logo-container .logo {
		height: 3em;
	}

	.burger-icon {
		width: 25px;
		height: 20px;
	}
}