* {
	box-sizing: border-box
}

html,
body {
	height: 98%
}

:root {
	--bg: #000000;
	--fg: #e7e7ec;
	--muted: #ffffff;
	--accent: #000000;
	--glow: #ffffff;
	--card: #101018cc;
	--blur: 1px;
}

@font-face {
	font-family: "PixelOperator";
	src: local("Silkscreen");
}

body {
	margin: 0;
	background: radial-gradient(1200px 800px at 70% -20%, #000000 0%, #000000 48%, #000000 100%);
	color: var(--fg);
	font-family: Inter, Manrope, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

* {
	-webkit-tap-highlight-color: transparent
}

.top-right {
	position: fixed;
	top: 12px;
	right: 20%;
	transform: translateX(50%);
	z-index: 10
}

.tabs {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 6px 10px;
	background: rgba(16, 16, 24, .35);
	backdrop-filter: blur(var(--blur));
	border: none;
	border-radius: 10px
}

.tabs .tab {
	cursor: pointer;
	font-family: Silkscreen, PixelOperator, monospace;
	font-size: 14px;
	letter-spacing: .5px;
	color: var(--muted);
	transition: all .18s ease
}

.tabs .tab.active {
	color: var(--fg);
	text-shadow: 0 0 12px rgba(255, 255, 255, .75), 0 0 28px rgba(30, 33, 41, 0.55);
	animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
	0%, 100% {
		text-shadow: 0 0 12px rgba(255, 255, 255, .75), 0 0 28px rgba(30, 33, 41, 0.55);
	}
	50% {
		text-shadow: 0 0 20px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.75);
	}
}

.tabs .tab:hover {
	color: var(--fg)
}

main {
	min-height: 100%;
	display: grid;
	place-items: center;
	padding: 80px 16px
}

.card {
	width: min(520px, 92vw);
	padding: 28px 24px;
	position: relative;
	background: #000000;
	backdrop-filter: blur(var(--blur));
	border: 1px solid rgba(0, 0, 0, 0.08);
	height: 367px;
	display: flex;
	flex-direction: column;
}

.squircle {
	mask: radial-gradient(140% 140% at 20% 10%, #000 45%, #0000 46%), radial-gradient(140% 140% at 80% 10%, #000 45%, #0000 46%), radial-gradient(140% 140% at 20% 90%, #000 45%, #0000 46%), radial-gradient(140% 140% at 80% 90%, #000 45%, #0000 46%);
	-webkit-mask: radial-gradient(140% 140% at 20% 10%, #000 45%, #0000 46%), radial-gradient(140% 140% at 80% 10%, #000 45%, #0000 46%), radial-gradient(140% 140% at 20% 90%, #000 45%, #0000 46%), radial-gradient(140% 140% at 80% 90%, #000 45%, #0000 46%);
	border-radius: 28px
}

.card:before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 30px;
	padding: 2px;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.06));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: .7;
	pointer-events: none;
}

.home-head {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 8px;
}

.name {
	margin: 0;
	font-size: 42px;
	font-weight: 800;
	letter-spacing: .5px;
}

.name:hover {
	filter: drop-shadow(0 0 14px var(--glow)) drop-shadow(0 0 40px rgba(255, 255, 255, .8));
	animation: nameGlow 2s ease-in-out infinite;
}

@keyframes nameGlow {
	0%, 100% {
		filter: drop-shadow(0 0 14px var(--glow)) drop-shadow(0 0 40px rgba(255, 255, 255, .8));
	}
	50% {
		filter: drop-shadow(0 0 24px var(--glow)) drop-shadow(0 0 60px rgba(255, 255, 255, 1));
	}
}

.tagline {
	margin: 0 0 24px 0;
	font-family: Silkscreen, PixelOperator, monospace;
	font-size: 14px;
	color: var(--muted);
	text-align: right;
}

.discord {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding-top: 20px;
}

.avatar-wrap {
	position: relative
}

.avatar {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, .08);
	background: #0d0d14;
}

.status-dot {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 3px solid #0b0b10;
	background: #666;
	cursor: pointer;
}

.status-dot::after {
	content: attr(data-status);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	background: #0b0b10;
	border: 1px solid rgba(255, 255, 255, .08);
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 100;
}

.status-dot:hover::after {
	opacity: 1;
	transform: translateX(-50%) translateY(-12px);
}

.discord-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.display-name {
	font-weight: 700;
	font-size: 15px;
}

.status-text {
	font-size: 13px;
	color: var(--muted);
	text-transform: capitalize;
}

.activity {
	font-size: 12px;
	color: #b7c0ff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}

.panel {
	display: none;
	opacity: 0;
	flex: 0;
	display: flex;
	flex-direction: column;
}

.panel.active {
	display: flex;
	opacity: 0;
	animation: slideUp 0.3s ease forwards;
}

.panel:not(.active) {
	display: none;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.panel[data-panel="projects"],
.panel[data-panel="contact"] {
  align-items: center;
}

.panel[data-panel="contact"] {
  justify-content: flex-start; 
  padding-top: 24px; 
}

.project {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	width: 100%;
}

.project-image {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, .08);
	background: #0d0d14;
}

.project-title {
	margin: 0;
	font-size: 24px;
}

.project-desc {
	margin: 4px 0 0 0;
	color: var(--fg);
	opacity: .85;
	font-size: 14px;
	max-width: 380px;
}


.contact-box {
	width: 100%;
	max-width: 420px;
	padding: 20px;
	background: rgba(16, 16, 24, .5);
	border: 1px solid rgba(255, 255, 255, .08);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.contact-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	background: rgba(255, 255, 255, .02);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 12px;
	text-decoration: none;
	color: var(--fg);
	transition: all .3s ease;
	opacity: 0;
	animation: fadeIn 0.5s ease forwards;
}

.contact-row:nth-child(1) {
	animation-delay: 0.1s;
}

.contact-row:nth-child(2) {
	animation-delay: 0.2s;
}

.contact-row:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.contact-row:hover {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .12);
	transform: translateX(4px);
}

.contact-icon {
	flex-shrink: 0;
	color: var(--muted);
	transition: color .3s ease;
}

.contact-row:hover .contact-icon {
	color: var(--fg);
}

.contact-handle {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #999;
	transition: color 0.3s ease;
}

.contact-row:hover .contact-handle {
	color: #ffffff;
}

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

.tech-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: default;
	filter: grayscale(100%)
}

.tech-icon .tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translate(-50%, 6px);
	background: #0b0b10;
	border: 1px solid rgba(255, 255, 255, .08);
	padding: 4px 8px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .1, 1);
	font-size: 12px;
	white-space: nowrap
}

.tech-icon:hover .tooltip {
	opacity: 1;
	transform: translate(-50%, -6px)
}

.logo-cs {
	display: block
}

.snowflake {
	position: fixed;
	top: -10px;
	width: 4px;
	height: 4px;
	background: #fff;
	border-radius: 50%;
	z-index: 1;
	user-select: none;
	pointer-events: none;
	animation: fall linear infinite;
	box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
	to {
		transform: translateY(100vh);
	}
}

@media (max-width: 720px) {
	.name {
		font-size: 32px;
	}

	.tabs {
		gap: 12px;
		padding: 6px 10px;
	}

	.project-image {
		width: 100px;
		height: 100px;
	}

	.project-title {
		font-size: 20px;
	}

	.project-desc {
		font-size: 13px;
	}

	.card {
		padding: 20px 18px;
		height: 320px;
	}

	.discord {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}

	.discord-meta {
		align-items: center;
	}

	.avatar {
		width: 64px;
		height: 64px;
	}

	.activity {
		max-width: 180px;
	}

	.contact-box {
		padding: 16px;
		gap: 12px;
	}

	.contact-row {
		padding: 14px 16px;
		gap: 14px;
	}

	.contact-handle {
		font-size: 14px;
	}

	.contact-icon {
		width: 20px;
		height: 20px;
	}
}