/* Back to Top Button - Base Styles */
.back-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #e6e9ef;
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	display: grid;
	place-items: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.back-to-top i {
	font-size: 18px;
}

/* When button is over white background (footer/navbar) */
.back-to-top.on-white-bg {
	background: rgba(17, 17, 17, 0.9);
	color: #ffffff;
	border: 1.5px solid rgba(17, 17, 17, 0.3);
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.on-white-bg:hover {
	background: #111111;
	border-color: #111111;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
	.back-to-top {
		right: 15px;
		bottom: 15px;
		width: 40px;
		height: 40px;
	}

	.back-to-top i {
		font-size: 16px;
	}
}
