/* Mobile Menu Styles */

/* Hamburger Button */
.mobile-menu-toggle {
	display: none; /* Hidden by default, shown only on mobile */
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 10001;
	width: 50px;
	height: 50px;
	background: rgba(0, 0, 0, 0.8);
	border: none;
	border-radius: 5px;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 0;
	transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
	background: rgba(0, 0, 0, 0.95);
}

.mobile-menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background: #fff;
	transition: all 0.3s ease;
	border-radius: 2px;
}

/* Animate hamburger to X when menu is open */
.mobile-menu-toggle.active span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.98);
	z-index: 10000;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
	opacity: 1;
	visibility: visible;
}

/* Close Button */
.mobile-menu-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 50px;
	height: 50px;
	background: transparent;
	border: 2px solid #fff;
	border-radius: 5px;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
	line-height: 1;
}

.mobile-menu-close:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: rotate(90deg);
}

/* Menu List */
.mobile-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: center;
}

.mobile-menu-list li {
	margin: 1.5rem 0;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active .mobile-menu-list li {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger animation for menu items */
.mobile-menu.active .mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-list li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-list li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-list li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-list li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-list li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-menu-list li:nth-child(7) { transition-delay: 0.4s; }

.mobile-menu-list a {
	display: inline-block;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
	position: relative;
}

.mobile-menu-list a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--color-primary, #e74c3c);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.mobile-menu-list a:hover::after {
	width: 80%;
}

.mobile-menu-list a:hover {
	color: var(--color-primary, #e74c3c);
}

/* Show menu button only on mobile devices */
@media screen and (max-width: 1152px) {
	.mobile-menu-toggle {
		display: flex;
	}
}

/* Smaller screens adjustments */
@media screen and (max-width: 480px) {
	.mobile-menu-list a {
		font-size: 1.2rem;
	}
	
	.mobile-menu-list li {
		margin: 1rem 0;
	}
}
