@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
	--background: #181818;
	--text: #f5f5f5;
	--muted: #a1a3a4;
	--blue: #0097ff;
	--purple: #804fe8;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--background);
	color: var(--text);
	font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.page-background {
	position: fixed;
	inset: 0;
	z-index: -3;
	background:
		linear-gradient(180deg, rgba(24, 24, 24, 0.45), var(--background) 760px),
		url("images/background.png") top center / cover no-repeat;
	pointer-events: none;
}

.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 22px 0;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease;
}

.nav-toggle:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
}

.nav-toggle__icon {
	position: relative;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: background 160ms ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 160ms ease, top 160ms ease;
}

.nav-toggle__icon::before {
	top: -6px;
}

.nav-toggle__icon::after {
	top: 6px;
}

.navbar.is-open .nav-toggle__icon {
	background: transparent;
}

.navbar.is-open .nav-toggle__icon::before {
	top: 0;
	transform: rotate(45deg);
}

.navbar.is-open .nav-toggle__icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 21px;
	font-weight: 500;
	color: #fff;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 26px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
}

.nav-links a:hover {
	color: #fff;
}

main {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.hero {
	padding: 56px 0 20px;
	text-align: center;
}

.hero-copy {
	position: relative;
	z-index: 2;
	max-width: 960px;
	margin: 0 auto;
}

.hero h1 {
	margin: 0;
	font-size: clamp(28px, 4.5vw, 52px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: 0;
}

.hero h1 span {
	background: linear-gradient(180deg, var(--blue) 26.11%, var(--purple) 73.33%);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

.hero p {
	max-width: 640px;
	margin: 14px auto 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 18px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 4px;
	font-weight: 700;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button-primary {
	background: #fff;
	color: #181818;
}

.button-primary:hover {
	background: #e9e9e9;
}

.button-secondary {
	border: 2px solid rgba(255, 255, 255, 0.85);
	color: #fff;
}

.button-secondary:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.hero-preview {
	position: relative;
	margin-top: 24px;
	height: min(52vh, 520px);
	overflow: hidden;
}

.hero-preview::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(24, 24, 24, 0), var(--background) 86%);
	pointer-events: none;
}

.hero-preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center top;
	filter: drop-shadow(0 34px 80px rgba(0, 0, 0, 0.55));
}

@media (max-width: 980px) {
	.hero-preview {
		height: min(48vh, 400px);
	}
}

@media (max-width: 720px) {
	.navbar {
		position: relative;
		flex-wrap: wrap;
		gap: 0;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		width: 100%;
		margin-top: 14px;
		padding: 10px;
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 8px;
		background: rgba(24, 24, 24, 0.96);
	}

	.nav-links a {
		padding: 10px 12px;
		border-radius: 5px;
	}

	.nav-links a:hover {
		background: rgba(255, 255, 255, 0.06);
	}

	.navbar.is-open .nav-links {
		display: flex;
	}

	.hero-actions {
		flex-direction: column;
	}

	.hero {
		padding-top: 40px;
	}

	.hero p {
		font-size: 14px;
	}

	.hero-preview {
		height: min(44vh, 340px);
	}
}

/* ── Shared page layout ── */

.page-main {
	padding: 24px 0 80px;
}

.page-header {
	max-width: 640px;
	margin-bottom: 36px;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--blue);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-header h1 {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.1;
}

.page-header__lead {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.nav-links a[aria-current="page"] {
	color: #fff;
}

/* ── Projects (title + description cards) ── */

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.project-card {
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.03);
}

.project-card h2 {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
}

.project-card p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.65;
}

.project-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	min-height: 38px;
	padding: 0 16px;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 4px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	transition: none;
}

.project-card__link:hover {
	transform: none;
	border-color: rgba(255, 255, 255, 0.85);
	background: transparent;
}

/* ── Work (ArtStation-style profile + gallery) ── */

.work-profile {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 28px;
	margin-bottom: 32px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.03);
}

.work-profile__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.12);
	object-fit: cover;
}

.work-profile__copy h1 {
	margin: 0;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
}

.work-profile__copy p {
	margin: 8px 0 0;
	max-width: 520px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.work-profile__stats {
	display: flex;
	gap: 28px;
}

.work-profile__stats div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.work-profile__stats strong {
	font-size: 22px;
	font-weight: 800;
}

.work-profile__stats span {
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.work-card {
	display: block;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.work-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #222;
}

.work-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.work-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 4px 8px;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.work-card__info {
	padding: 12px 14px 14px;
}

.work-card__info h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.work-card__info p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12px;
}

/* ── Work detail page (3D model or image) ── */

.work-view-page .page-main {
	padding-bottom: 48px;
}

.work-view-back {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
	transition: color 160ms ease;
}

.work-view-back:hover {
	color: #fff;
}

.work-view-header {
	margin-bottom: 20px;
}

.work-view-header h1 {
	margin: 0;
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 800;
}

.work-view-header p {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.work-viewer {
	min-height: min(72vh, 720px);
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.35);
}

.work-viewer model-viewer {
	width: 100%;
	height: min(72vh, 720px);
	--poster-color: transparent;
}

.work-viewer__image {
	display: block;
	width: 100%;
	max-height: min(80vh, 900px);
	margin: 0 auto;
	object-fit: contain;
}

.work-viewer__empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--muted);
}

@media (max-width: 860px) {
	.work-profile {
		grid-template-columns: auto 1fr;
	}

	.work-profile__stats {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.work-profile {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.work-profile__avatar {
		margin: 0 auto;
	}

	.work-profile__copy p {
		margin-left: auto;
		margin-right: auto;
	}

	.work-profile__stats {
		justify-content: center;
	}
}

/* ── Bio (Discord profile card) ── */

.bio-page {
	display: flex;
	justify-content: center;
	width: 100%;
	min-height: calc(100vh - 88px);
	padding: 48px 16px 80px;
}

.bio-hero {
	width: min(440px, 100%);
	text-align: center;
}

.bio-card {
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	background: #1e1f22;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.bio-card__avatar {
	width: 80px;
	height: 80px;
	margin: 0 auto;
	border-radius: 50%;
	border: 3px solid rgba(0, 151, 255, 0.35);
	object-fit: cover;
}

.bio-card__name {
	margin: 14px 0 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.bio-card__handle {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
}

.discord-card {
	display: block;
	overflow: hidden;
	border-radius: 6px;
	background: #1e1f22;
	border: 1px solid rgba(0, 151, 255, 0.12);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 151, 255, 0.05);
	transition: none;
}

.discord-card:hover {
	transform: none;
	border-color: rgba(0, 151, 255, 0.12);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 151, 255, 0.05);
}

.discord-card__banner {
	height: 72px;
	background:
		repeating-conic-gradient(#0097ff 0% 25%, #b8e4ff 0% 50%) 50% / 20px 20px;
}

.discord-card__body {
	position: relative;
	padding: 0 20px 22px;
}

.discord-card__avatar-wrap {
	position: relative;
	width: 80px;
	margin-top: -40px;
}

.discord-card__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 6px solid #1e1f22;
	object-fit: cover;
	box-shadow: 0 0 0 3px rgba(0, 151, 255, 0.5), 0 0 24px rgba(128, 79, 232, 0.35);
}

.discord-card__status {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 18px;
	height: 18px;
	border: 4px solid #1e1f22;
	border-radius: 50%;
	background: #80848e;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.16);
}

.discord-card__status--online {
	background: #23a55a;
}

.discord-card__status--idle {
	background: #f0b232;
}

.discord-card__status--dnd {
	background: #ed4245;
}

.discord-card__status--offline {
	background: #80848e;
}

.discord-card__info {
	margin-top: 10px;
	text-align: left;
}

.discord-card__name {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.discord-card__handle {
	margin: 2px 0 0;
	color: #b5bac1;
	font-size: 14px;
	font-weight: 500;
}

.discord-card__logo {
	position: absolute;
	top: 14px;
	right: 18px;
	color: #b5bac1;
	opacity: 0.92;
}

.discord-card__activity {
	display: flex;
	align-items: center;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-card__activity-text {
	margin: 0;
	font-size: 0.875rem;
	color: var(--muted);
	line-height: 1.4;
}

.bio-links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.bio-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	transition: none;
}

.bio-link:hover {
	transform: none;
	border-color: rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	box-shadow: none;
	color: #fff;
}
