/* Homepage introduction and project layouts */
.intro-section {
	margin-top: 120px;
}

.intro-layout {
	display: flex;
	gap: 40px;
	width: 100%;
	align-items: center;
}

.character-seat {
	flex: 1;
	height: 350px;
	background: var(--character-bg);
	border: 2px dashed var(--character-border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: background 0.3s ease, border-color 0.3s ease;
}

.intro-content {
	flex: 1;
	height: 350px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.intro-content h1 {
	font-size: 2.5rem;
	color: var(--text-color);
	margin-bottom: 15px;
	transition: color 0.3s ease;
}

.intro-content p {
	color: var(--muted-text);
	line-height: 1.6;
	transition: color 0.3s ease;
}

.section-title {
	font-size: 3rem;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 10px;
	text-align: center;
}

.projects-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.project-row {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 20px 0;
	background: transparent;
	border: none;
	opacity: 0;
	gap: 40px;
	transition: opacity 0.2s ease, transform 0.3s ease;
}

.project-row.slide-from-left { transform: translateX(-80px); }
.project-row.slide-from-right { transform: translateX(80px); }

.project-row.animate-in {
	opacity: 1;
	transform: translateX(0);
}

.project-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.project-row.slide-from-left .project-text {
	align-items: flex-start;
	text-align: left;
}

.project-row.slide-from-right .project-text {
	align-items: flex-end;
	text-align: right;
}

.project-text h3 {
	font-size: 2rem;
	color: var(--text-color);
	width: 100%;
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 8px;
	display: block;
}

.project-text p {
	color: var(--muted-text);
	font-size: 1.1rem;
	line-height: 1.5;
	width: 100%;
}

.project-text p a {
	color: var(--nav-hover-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease, text-decoration 0.2s ease;
}

.project-text p a:hover {
	text-decoration: underline;
	filter: brightness(1.2);
}

.project-image {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--character-bg);
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
	height: 15rem;
	width: auto;
}

.project-image:not(:has(img)) {
	height: 15rem;
	width: 20rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--character-bg);
	border: 2px dashed var(--character-border);
	border-radius: 12px;
	flex-shrink: 0;
}

.project-image span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: auto;
}

.project-image img {
	height: 100% !important;
	width: auto !important;
	max-width: none !important;
	object-fit: contain;
	display: block;
}

.project-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	background: transparent;
	border: none;
}

.project-row.slide-from-left .project-status { justify-content: flex-start; }
.project-row.slide-from-right .project-status { justify-content: flex-end; }

.status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.status-text {
	color: var(--muted-text);
	font-size: 0.95rem;
	font-weight: 500;
}

.projects-more {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
}

.projects-more span {
	color: var(--muted-text);
	font-size: 1rem;
}

.project-more-img {
	height: 6rem;
	width: auto;
	display: inline-block;
	vertical-align: middle;
	content: url('images/buttonart/valprojectsd.png');
}

body.light-mode .project-more-img {
	content: url('images/buttonart/valprojectsl.png');
}

/* 404 page */
.not-found-page main {
	min-height: calc(100vh - 130px);
}

.not-found-section {
	width: 90%;
	max-width: 1300px;
	min-height: 70vh;
	margin: 80px auto 20px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	column-gap: 190px;
}

.not-found-copy {
	max-width: 620px;
}

.not-found-code {
	color: var(--nav-hover-color);
	font-size: 9rem;
	font-weight: 800;
	line-height: 0.85;
	margin-bottom: 28px;
}

.not-found-copy h1 {
	color: var(--text-color);
	font-size: 4rem;
	line-height: 1.05;
	margin-bottom: 18px;
}

.not-found-message {
	max-width: 480px;
	color: var(--muted-text);
	font-size: 1.15rem;
	line-height: 1.6;
}

.not-found-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 30px;
}

.not-found-back {
	padding: 11px 20px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background: transparent;
	color: var(--muted-text);
	cursor: pointer;
	font: inherit;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.not-found-back:hover {
	color: var(--nav-hover-color);
	border-color: var(--nav-hover-color);
	transform: translateY(-2px);
}

.not-found-artwork {
	width: min(50vw, 500px);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.not-found-head {
	--eye-left-x: 50%;
	--eye-left-y: 63%;
	--eye-left-scale: 6.7;
	--eye-left-start-rotation: 170deg;
	--eye-left-rotation: -360deg;
	--eye-left-rotation-speed: 7s;
	--eye-right-x: 85%;
	--eye-right-y: 60%;
	--eye-right-scale: 7.2;
	--eye-right-start-rotation: 0deg;
	--eye-right-rotation: -360deg;
	--eye-right-rotation-speed: 7s;
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	animation: not-found-float 3.5s ease-in-out infinite;
}

.not-found-head > img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.25));
}

.not-found-eyes {
	position: absolute;
	inset: 0;
}

.not-found-eye {
	position: absolute;
	left: var(--eye-x);
	top: var(--eye-y);
	width: 1.5rem;
	height: 1.5rem;
	object-fit: contain;
	animation-name: not-found-eye-spin;
	animation-duration: var(--eye-speed);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.not-found-eye-left {
	--eye-x: var(--eye-left-x);
	--eye-y: var(--eye-left-y);
	--eye-scale: var(--eye-left-scale);
	--eye-start-rotation: var(--eye-left-start-rotation);
	--eye-rotation: var(--eye-left-rotation);
	--eye-speed: var(--eye-left-rotation-speed);
}

.not-found-eye-right {
	--eye-x: var(--eye-right-x);
	--eye-y: var(--eye-right-y);
	--eye-scale: var(--eye-right-scale);
	--eye-start-rotation: var(--eye-right-start-rotation);
	--eye-rotation: var(--eye-right-rotation);
	--eye-speed: var(--eye-right-rotation-speed);
}

@keyframes not-found-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@keyframes not-found-eye-spin {
	from { transform: translate(-50%, -50%) scale(var(--eye-scale)) rotate(var(--eye-start-rotation)); }
	to { transform: translate(-50%, -50%) scale(var(--eye-scale)) rotate(calc(var(--eye-start-rotation) + var(--eye-rotation))); }
}

@media (max-width: 700px) {
	.not-found-code {
		font-size: 5rem;
	}

	.not-found-copy h1 {
		font-size: 2.25rem;
	}

	.not-found-section {
		min-height: calc(100vh - 150px);
		margin-top: 100px;
		padding: 40px 20px;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 60px;
	}

	.not-found-artwork {
		align-self: center;
		width: min(70vw, 300px);
	}

	.not-found-actions {
		flex-wrap: wrap;
	}
}
