/*! public/css/home/main.css */

.home-page {
	position: relative;
	isolation: isolate;
	--image-overlay: url('/images/home/overlay.png');
}

#home-overlay {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(
			to bottom,
			rgba(255, 255, 255, 0.38),
			rgba(255, 255, 255, 0.72)
		),
		var(--image-overlay);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

[data-theme='dark'] #home-overlay {
	background-image:
		linear-gradient(
			to bottom,
			rgba(8, 12, 24, 0.52),
			rgba(8, 12, 24, 0.78)
		),
		var(--image-overlay);
}

#home-mouse-trail,
#cursor-follower {
	position: fixed;
	inset: 0 auto auto 0;
	pointer-events: none;
	z-index: 9999;
}

#home-mouse-trail {
	inset: 0;
	overflow: hidden;
}

#cursor-follower {
	width: 0.75rem;
	height: 0.75rem;
	margin-left: -0.375rem;
	margin-top: -0.375rem;
	border-radius: 50%;
	background-color: var(--color-primary-alpha);
	box-shadow: 0 0 12px var(--color-primary-alpha);
	opacity: 0.75;
	transition:
		transform 160ms ease,
		opacity 160ms ease;
}

#cursor-follower.is-hovering {
	transform: scale(1.5);
	opacity: 0.95;
}

.mouse-dot {
	position: fixed;
	width: 0.35rem;
	height: 0.35rem;
	margin-left: -0.175rem;
	margin-top: -0.175rem;
	border-radius: 50%;
	background-color: var(--color-primary-alpha);
	opacity: 0.8;
	box-shadow: 0 0 8px var(--color-primary-alpha);
	animation: mouse-dot-fade 700ms ease-out forwards;
	will-change: transform, opacity;
	pointer-events: none;
	z-index: 2000;
}

section {
	margin-bottom: 10rem;
}

section:last-of-type {
	margin-bottom: 5rem;
}

#home-page h2 {
	text-shadow: var(--shadow-text-hard);
	font-size: 3rem;
	color: var(--color-primary);
	margin-bottom: 3rem;
}

#home-page h3 {
	color: var(--color-secondary);
}

@keyframes mouse-dot-fade {
	0% {
		opacity: 0.85;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(0.2);
	}
}

.div-1 {
	padding: 2rem;
	border-radius: var(--radius-xl);
	background: var(--color-secondary-beta);
	border: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-card);
}

.div-2 {
	padding: 1rem 1.1rem;
	border-radius: var(--radius-lg);
	background: var(--bg-card-muted);
	border: 1px solid var(--border-subtle);
	transition:
		color var(--transition-time-method),
		background-color var(--transition-time-method),
		transform var(--transition-time-method),
		box-shadow var(--transition-time-method);
}

.div-2:hover {
	color: var(--color-text-body);
	background-color: var(--bg-card);
	transform: translateY(-2px);
	box-shadow: var(--shadow-card);
}
