/* ===== Menu Toggle Button ===== */
#menuToggle {
	position: fixed;
	top: 25px;
	right: 25px;
	width: 36px;
	height: 28px;
	cursor: pointer;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

#menuToggle span {
	display: block;
	height: 4px;
	width: 100%;
	background: white;
	border-radius: 3px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate icon when open */
#menuToggle.active span:nth-child(1) {
	transform: translateY(12px) rotate(45deg);
}

#menuToggle.active span:nth-child(2) {
	opacity: 0;
}

#menuToggle.active span:nth-child(3) {
	transform: translateY(-12px) rotate(-45deg);
}

/* ===== Side Menu ===== */
#sideMenu {
	position: fixed;
	top: 0;
	right: -320px;
	width: 300px;
	height: 100vh;
	background: #a200ff83;
	;
	z-index: 2500;
	transition: right 0.4s ease;
	padding-top: 100px;
}

#sideMenu.open {
	right: 0;
}

#sideMenu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#sideMenu li {
	margin: 25px 0;
	text-align: center;
}

#sideMenu a {
	color: white;
	font-size: 22px;
	text-decoration: none;
	transition: color 0.2s ease;
}

#sideMenu a:hover {
	color: #ffb3ff;
}

/* ===== Overlay ===== */
#menuOverlay {
	position: fixed;
	inset: 0;
	background: rgba(32, 32, 32, 0.6);
	z-index: 2400;
	display: none;
}

#menuOverlay.show {
	display: block;
}

/* Prevent focus outline issues */
#menuToggle,
#menuToggle * {
	-webkit-tap-highlight-color: transparent;
}

/* ===== Side Social Bar ===== */
.side-social {
	position: fixed;
	right: 12px;
	top: 20%;
	transform: translate(0, -50%);
	z-index: 1001;

	display: flex;
	flex-direction: column;
	gap: 14px;

	will-change: transform;
	pointer-events: auto;
}

/* ICON WRAPPER */
.side-social a {
	display: inline-flex;
}

/* ICON */
.side-social img {
	width: 42px;
	height: 42px;
	cursor: pointer;

	background: rgba(128, 0, 128, 0.6);
	padding: 6px;
	border-radius: 10px;

	transform: scale(1);
	transition: transform 0.25s ease, background 0.3s ease;
}

/* HOVER SCALE (RESTORED) */
.side-social a:hover img {
	transform: scale(1.18);
	background: rgba(180, 0, 255, 0.85);
}

/* ===== Back To Top Button ===== */
.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 30px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(128, 0, 128, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;

	/* IMPORTANT */
	--y-offset: 40px;
	transform: translateY(var(--y-offset)) scale(1);
	transition: transform 0.25s ease, opacity 0.25s ease;
	opacity: 0;
	pointer-events: none;
	z-index: 999;
}

.back-to-top img {
	width: 38px;
	height: 38px;
}

/* Hover scale works again */
.back-to-top:hover {
	box-shadow: 0 0 12px rgba(200, 0, 255, 0.8);
	transform: translateY(var(--y-offset)) scale(1.15);
}