:root {
	--texture-square-color: #151718;
	--texture-small-line-color: #2b2f31;
	--texture-large-line-color: #40464a;
	--texture-small-cell-size: 24px;
	--texture-large-cell-size: calc(var(--texture-small-cell-size) * 4);
	--texture-pattern-offset: calc(var(--texture-small-cell-size) / 2);
	--texture-small-line-size: 1px;
	--texture-large-line-size: 2px;
	--text-color: #f6f7f2;
	--muted-color: #aeb6b7;
	--panel-color: rgba(13, 15, 16, 0.78);
	--tile-color: rgba(255, 255, 255, 0.08);
	--tile-hover-color: rgba(255, 255, 255, 0.13);
	--border-color: rgba(255, 255, 255, 0.2);
	--page-padding: 34px 16px;
	--profile-max-width: 760px;
	--profile-padding: 52px 34px 38px;
	--profile-radius: 8px;
	--tile-radius: 8px;
	--avatar-size: 154px;
	--social-tile-size: 130px;
	--social-links-gap: 12px;
	--social-tile-min-height: 126px;
	--social-icon-size: 50px;
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 18px;
	padding: var(--page-padding);
	font-family: monospace;
	font-weight: 400;
	font-size: 12pt;
	color: var(--text-color);
	text-align: center;
	background:
		linear-gradient(var(--texture-small-line-color) var(--texture-small-line-size), transparent var(--texture-small-line-size)),
		linear-gradient(90deg, var(--texture-small-line-color) var(--texture-small-line-size), transparent var(--texture-small-line-size)),
		linear-gradient(var(--texture-large-line-color) var(--texture-large-line-size), transparent var(--texture-large-line-size)),
		linear-gradient(90deg, var(--texture-large-line-color) var(--texture-large-line-size), transparent var(--texture-large-line-size)),
		var(--texture-square-color);
	background-position:
		var(--texture-pattern-offset) var(--texture-pattern-offset),
		var(--texture-pattern-offset) var(--texture-pattern-offset),
		var(--texture-pattern-offset) var(--texture-pattern-offset),
		var(--texture-pattern-offset) var(--texture-pattern-offset);
	background-size:
		var(--texture-small-cell-size) var(--texture-small-cell-size),
		var(--texture-small-cell-size) var(--texture-small-cell-size),
		var(--texture-large-cell-size) var(--texture-large-cell-size),
		var(--texture-large-cell-size) var(--texture-large-cell-size),
		auto;
}

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

.profile {
	--profile-accent-color: var(--text-color);
	--profile-accent-border: rgba(246, 247, 242, 0.72);
	--profile-accent-glow: rgba(246, 247, 242, 0.18);
	position: relative;
	width: min(100%, var(--profile-max-width));
	padding: var(--profile-padding);
	border: 1px solid var(--profile-accent-border);
	border-radius: var(--profile-radius);
	background: var(--panel-color);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(16px);
	overflow: hidden;
}

.profile::before {
	content: "root@divouz:~$ profile";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 8px 14px;
	border-bottom: 1px solid var(--border-color);
	background: rgba(0, 0, 0, 0.32);
	color: var(--profile-accent-color);
	font-size: 0.76rem;
	line-height: 1.2;
	text-align: left;
}

.identity_row {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 20px;
	margin-top: 8px;
}

.identity_item {
	display: flex;
	width: 190px;
	align-items: center;
	flex-direction: column;
	gap: 12px;
	color: var(--text-color);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.25;
}

.identity_item h1 {
	margin: 0;
	font: inherit;
}

.identity_img {
	width: min(var(--avatar-size), 34vw);
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	border: 4px solid rgba(255, 255, 255, 0.86);
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
}


.identity_x {
	width: clamp(30px, 5vw, 46px);
	height: clamp(30px, 5vw, 46px);
	margin-top: 58px;
	object-fit: contain;
}


.intro {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 4px;
	margin: 28px auto 0;
	font-weight: 700;
	line-height: 1.15;
	color: var(--text-color);
}

.intro span:first-child {
	font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.intro span:not(:first-child) {
	font-size: clamp(1rem, 3vw, 1.25rem);
	color: var(--muted-color);
}

.expertise {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px auto 0;
}

.expertise > span {
	display: inline-flex;
	flex: 1 1 calc(36663rem - 99900%);
	width: 100%;
	min-width: 0;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex-wrap: nowrap;
	padding: 12px 16px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.07);
	color: var(--text-color);
	font-size: 0.9rem;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow-wrap: normal;
}

.expertise_icon {
	display: inline-flex;
	width: 28px;
	align-items: center;
	justify-content: center;
	color: var(--profile-accent-color);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-1px);
}

.expertise > span:nth-child(1) {
	border-color: rgba(73, 220, 177, 0.48);
}

.expertise > span:nth-child(2) {
	border-color: rgba(255, 107, 154, 0.48);
}

.expertise > span:nth-child(3) {
	border-color: rgba(125, 183, 255, 0.48);
}

.social_links {
	display: grid;
	width: min(100%, calc((var(--social-tile-size) * 3) + (var(--social-links-gap) * 2)));
	grid-template-columns: repeat(3, minmax(0, 1fr));
	justify-content: center;
	gap: var(--social-links-gap);
	margin: 32px auto 0;
}

.social_links a {
	display: flex;
	width: 100%;
	min-height: var(--social-tile-min-height);
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	gap: 8px;
	padding: 10px 8px 11px;
	border: 1px solid var(--border-color);
	border-radius: var(--tile-radius);
	background: var(--tile-color);
	color: var(--text-color);
	overflow-wrap: anywhere;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
	transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}


.social_links a:hover,
.social_links a:focus-visible {
	transform: translateY(-4px);
	border-color: var(--profile-accent-color);
	background: var(--tile-hover-color);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px var(--profile-accent-glow);
	color: var(--profile-accent-color);
	outline: none;
}

.social_name {
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--muted-color);
}

.social_img {
	width: var(--social-icon-size);
	height: var(--social-icon-size);
	object-fit: contain;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.social_handle {
	font-size: 0.8rem;
	line-height: 1.25;
}

.lualua_card {
	--lualua-accent-color: rgb(71 151 35);
	--lualua-accent-border: rgba(71, 151, 35, 0.42);
	--lualua-accent-bg: rgba(71, 151, 35, 0.08);
	display: flex;
	width: min(100%, var(--profile-max-width));
	flex-direction: column;
	gap: 24px;
	padding: 20px;
	border: 1px solid var(--lualua-accent-border);
	border-radius: var(--profile-radius);
	background: var(--panel-color);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(16px);
	text-align: center;
}

.lualua_header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.lualua_title_group {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
	text-align: left;
}

.lualua_title_group h2 {
	margin: 0;
	font-size: clamp(1.7rem, 4vw, 2.35rem);
	line-height: 1.05;
	color: var(--text-color);
	white-space: nowrap;
}

.lualua_role {
	margin: 0;
	color: var(--lualua-accent-color);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.lualua_logo_link {
	display: flex;
	width: 104px;
	height: 104px;
	overflow: hidden;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	background: var(--tile-color);
	transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.lualua_logo_link:hover,
.lualua_logo_link:focus-visible {
	transform: translateY(-3px);
	border-color: var(--lualua-accent-color);
	background: var(--tile-hover-color);
	outline: none;
}

.lualua_icon {
	width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: translateX(-12px) scale(1.2);
}

.lualua_content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.lualua_content p {
	margin: 0;
	color: var(--muted-color);
	font-size: 0.94rem;
	line-height: 1.5;
	max-width: 64ch;
	text-align: justify;
}

.lualua_features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.lualua_features span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 8px 11px;
	border: 1px solid var(--lualua-accent-border);
	border-radius: 6px;
	background: var(--lualua-accent-bg);
	color: var(--text-color);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.15;
}

.lualua_links {
	margin-top: 4px;
}

.lualua_links a:hover,
.lualua_links a:focus-visible {
	border-color: var(--lualua-accent-color);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(71, 151, 35, 0.22);
	color: var(--lualua-accent-color);
}

.websites_card {
	--websites-accent-color: #7db7ff;
	--websites-accent-border: rgba(125, 183, 255, 0.42);
	--websites-accent-bg: rgba(125, 183, 255, 0.08);
	display: flex;
	width: min(100%, var(--profile-max-width));
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	border: 1px solid var(--websites-accent-border);
	border-radius: var(--profile-radius);
	background: var(--panel-color);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(16px);
	text-align: left;
}

.websites_header {
	text-align: center;
}

.websites_header h2,
.website_item h3,
.website_item p {
	margin: 0;
}

.websites_header h2 {
	font-size: clamp(1.7rem, 4vw, 2.35rem);
	line-height: 1.05;
}

.website_item p {
	color: var(--muted-color);
	font-size: 0.88rem;
	line-height: 1.45;
}

.websites_grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: 12px;
}

.website_item {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 13px;
	padding: 18px;
	border: 1px solid var(--border-color);
	border-radius: var(--tile-radius);
	background: var(--tile-color);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.website_item:hover {
	transform: translateY(-3px);
	border-color: var(--websites-accent-color);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32), 0 0 0 1px var(--websites-accent-bg);
}

.website_preview {
	position: relative;
	display: grid;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	place-items: center;
	border: 1px solid var(--websites-accent-border);
	border-radius: 6px;
	background:
		linear-gradient(rgba(125, 183, 255, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(125, 183, 255, 0.09) 1px, transparent 1px),
		radial-gradient(circle, rgba(125, 183, 255, 0.18), rgba(13, 15, 16, 0.82) 64%);
	background-size: 18px 18px, 18px 18px, auto;
	isolation: isolate;
}

.website_preview_name {
	max-width: calc(100% - 28px);
	color: var(--text-color);
	font-size: clamp(0.95rem, 3vw, 1.35rem);
	line-height: 1.1;
	text-align: center;
	text-shadow: 2px 0 rgba(255, 107, 154, 0.42), -2px 0 rgba(125, 183, 255, 0.42);
}

.website_preview img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.website_preview[href]::after {
	content: attr(data-url);
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(32, 67, 98, 0.95);
	color: var(--text-color);
	font-size: clamp(0.75rem, 2.5vw, 0.95rem);
	font-weight: 700;
	text-align: center;
	overflow-wrap: anywhere;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.website_preview[href]:hover::after,
.website_preview[href]:focus-visible::after {
	opacity: 1;
	transform: translateY(0);
}

.website_preview:focus-visible {
	outline: 2px solid var(--websites-accent-color);
	outline-offset: 3px;
}

.website_item_header {
	display: block;
}

.website_item h3 {
	font-size: 1rem;
	line-height: 1.25;
}

.website_meta {
	display: flex;
	flex-direction: column;
	gap: 13px;
	margin-top: auto;
}

.website_url {
	display: block;
	width: 100%;
	padding: 9px 10px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	color: var(--websites-accent-color);
	font-size: 0.8rem;
	font-weight: 700;
	overflow-wrap: anywhere;
	transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.website_url:hover,
.website_url:focus-visible {
	transform: translateY(-2px);
	border-color: var(--websites-accent-color);
	background: var(--tile-hover-color);
	color: var(--text-color);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--websites-accent-bg);
}

.website_url:focus-visible {
	outline: 2px solid var(--websites-accent-color);
	outline-offset: 2px;
}

.website_features {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.website_features li {
	padding: 6px 8px;
	border: 1px solid var(--websites-accent-border);
	border-radius: 5px;
	background: var(--websites-accent-bg);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.15;
}
@media (max-width: 640px) {
	.lualua_card {
		gap: 16px;
	}

	.lualua_header {
		gap: 10px;
	}

	.lualua_logo_link {
		width: 70px;
		height: 70px;
		padding: 8px;
	}

	.lualua_title_group h2 {
		font-size: clamp(1.35rem, 7vw, 1.9rem);
	}

}

@media (max-width: 520px) {
	body {
		padding: 18px;
	}

	.profile {
		padding: 48px 16px 28px;
	}

	.identity_row {
		align-items: center;
		flex-direction: column;
		gap: 12px;
	}

	.identity_item {
		width: min(100%, 220px);
		font-size: 1rem;
	}

	.identity_img {
		width: min(42vw, 130px);
	}

	.identity_x {
		width: 30px;
		height: 30px;
		margin-top: 0;
	}

}

@media (prefers-reduced-motion: reduce) {
	*,
	::before,
	::after {
		animation-delay: -1ms !important;
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		background-attachment: initial !important;
		scroll-behavior: auto !important;
		transition-duration: 0s !important;
		transition-delay: 0s !important;
	}
}
