:root {
	--bg-1: #05060d;
	--bg-2: #0a1228;
	--bg-3: #0d1d2f;
	--text-main: #f5f8ff;
	--text-dim: #aeb9d7;
	--border-soft: rgba(255, 255, 255, 0.14);
	--border-strong: rgba(255, 255, 255, 0.32);
	--card-bg: rgba(10, 14, 29, 0.68);
	--card-bg-2: rgba(20, 28, 54, 0.58);
	--accent-1: #8f62ff;
	--accent-2: #00d8ff;
	--accent-3: #ff3f8d;
	--discord: #5865f2;
	--github: #d8e0ff;
	--youtube: #ff4c4c;
	--radius-xl: 28px;
	--radius-md: 14px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	font-family: Inter, Segoe UI, Arial, sans-serif;
	background:
		radial-gradient(circle at 5% 8%, rgba(143, 98, 255, 0.24), transparent 26%),
		radial-gradient(circle at 92% 84%, rgba(0, 216, 255, 0.2), transparent 34%),
		linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
	color: var(--text-main);
	overflow-x: hidden;
	cursor: none;
}

a,
button,
input,
textarea,
select {
	cursor: none;
}

#fx-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.noise {
	position: fixed;
	inset: 0;
	opacity: 0.1;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24) 0.8px, transparent 1px),
		radial-gradient(circle at 70% 62%, rgba(255, 255, 255, 0.18) 0.8px, transparent 1px);
	background-size: 4px 4px, 5px 5px;
	z-index: 1;
}

.profile-wrap {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
	position: relative;
	z-index: 6;
}

.profile-card {
	position: relative;
	width: min(540px, 100%);
	border-radius: var(--radius-xl);
	padding: 26px 24px 20px;
	background:
		linear-gradient(160deg, var(--card-bg) 0%, var(--card-bg-2) 100%),
		radial-gradient(circle at 20% 10%, rgba(143, 98, 255, 0.13), transparent 45%),
		radial-gradient(circle at 80% 90%, rgba(0, 216, 255, 0.13), transparent 40%);
	border: 1px solid var(--border-soft);
	backdrop-filter: blur(14px) saturate(140%);
	text-align: center;
	box-shadow:
		0 25px 60px rgba(0, 0, 0, 0.55),
		0 0 50px rgba(143, 98, 255, 0.18),
		0 0 40px rgba(0, 216, 255, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	overflow: hidden;
	animation: cardFloat 8s var(--ease) infinite;
}

.card-border-glow {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background:
		linear-gradient(110deg,
			rgba(143, 98, 255, 0.26),
			rgba(0, 216, 255, 0.08),
			rgba(255, 63, 142, 0.22));
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	padding: 1px;
	opacity: 0.9;
}

.card-scanline {
	position: absolute;
	inset: -80% -55%;
	background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
	transform: rotate(16deg);
	animation: scanlineMove 7s linear infinite;
	pointer-events: none;
}

.pfp-ring {
	position: relative;
	width: 152px;
	height: 152px;
	margin: 0 auto 14px;
	border-radius: 999px;
	padding: 5px;
	background: conic-gradient(from 0deg,
		var(--accent-1),
		var(--accent-2),
		var(--accent-3),
		var(--accent-1));
	animation: spin 5.3s linear infinite;
	box-shadow:
		0 0 42px rgba(143, 98, 255, 0.52),
		0 0 46px rgba(0, 216, 255, 0.36);
}


.pfp-ring::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: inherit;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	animation: spinReverse 10.5s linear infinite;
}

.pfp {
	width: 100%;
	height: 100%;
	border-radius: 999px;
	display: block;
	object-fit: cover;
	border: 3px solid rgba(7, 10, 19, 0.95);
	filter: saturate(1.12) contrast(1.08);
}

.name {
	margin: 10px 0 5px;
	font-size: clamp(34px, 6vw, 48px);
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.8px;
	background: linear-gradient(90deg, #ffffff, #dbe5ff, #aff5ff, #ffffff);
	background-size: 240% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: textShimmer 4.5s linear infinite;
	text-shadow: 0 0 24px rgba(143, 98, 255, 0.36);
}

.tagline {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text-dim);
}

.content-block {
	position: relative;
	margin: 0 0 14px;
	padding: 12px;
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.block-title {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: #dce6ff;
	text-align: left;
}

.bio-box {
	max-height: 240px;
	overflow: auto;
	padding: 10px 10px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	background: rgba(7, 11, 22, 0.44);
	scrollbar-width: thin;
	scrollbar-color: rgba(164, 196, 255, 0.55) rgba(255, 255, 255, 0.08);
}

.bio-box::-webkit-scrollbar {
	width: 8px;
}

.bio-box::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
}

.bio-box::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(143, 98, 255, 0.82), rgba(0, 216, 255, 0.82));
	border-radius: 999px;
}

.bio-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: #d5def6;
	white-space: pre-line;
	text-align: left;
}

.socials {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 14px;
}

.social-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	text-decoration: none;
	color: var(--text-main);
	border-radius: var(--radius-md);
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 46%);
	overflow: hidden;
	transition:
		transform 0.24s var(--ease),
		box-shadow 0.24s var(--ease),
		border-color 0.24s var(--ease),
		filter 0.24s var(--ease);
}

.social-btn::before {
	content: "";
	position: absolute;
	inset: -120% -60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
	transform: rotate(8deg);
	transition: transform 0.65s var(--ease);
}

.social-btn:hover {
	transform: translateY(-5px) scale(1.04);
	border-color: var(--border-strong);
}

.social-btn:active {
	transform: translateY(-2px) scale(1.01);
}

.social-btn:hover::before {
	transform: translateX(38%) rotate(8deg);
}

.social-btn:focus-visible {
	outline: none;
	border-color: var(--border-strong);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.social-btn.discord:hover {
	box-shadow: 0 0 25px rgba(88, 101, 242, 0.42);
}

.social-btn.github:hover {
	box-shadow: 0 0 25px rgba(216, 224, 255, 0.36);
}

.social-btn.youtube:hover {
	box-shadow: 0 0 25px rgba(255, 76, 76, 0.44);
}

.social-icon {
	position: relative;
	z-index: 2;
	width: 30px;
	height: 30px;
	filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.26));
}

.projects-grid {
	display: flex;
	justify-content: flex-start;
	gap: 10px;
}



.proficient-block {
	text-align: left;
}

.proficient-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.proficient-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f3f8ff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.skill-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 20px;
	padding: 0 6px;
	border-radius: 7px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.03em;
	line-height: 1;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.1);
}

.skill-icon svg {
	width: 12px;
	height: 12px;
	display: block;
}

.html-icon {
	color: #ffd9c3;
	border-color: rgba(255, 145, 77, 0.52);
	background: rgba(255, 145, 77, 0.2);
}

.css-icon {
	color: #d7ebff;
	border-color: rgba(77, 169, 255, 0.52);
	background: rgba(77, 169, 255, 0.2);
}

.js-icon {
	color: #ffe066;
	border-color: rgba(255, 224, 102, 0.56);
	background: rgba(255, 224, 102, 0.82);
}

.proficient-pill:hover {
	transform: translateY(-2px);
}

.proficient-pill.skill-html {
	border-color: rgba(255, 145, 77, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0 16px rgba(255, 145, 77, 0.22);
}

.proficient-pill.skill-css {
	border-color: rgba(77, 169, 255, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0 16px rgba(77, 169, 255, 0.22);
}

.proficient-pill.skill-js {
	border-color: rgba(255, 224, 102, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0 16px rgba(255, 224, 102, 0.24);
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(12, 17, 35, 0.9);
	backdrop-filter: blur(8px);
	font-size: 12px;
	font-weight: 600;
	color: #eff5ff;
	z-index: 50;
	transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.toast.show {
	transform: translate(-50%, 0);
	opacity: 1;
}

.project-item {
	position: relative;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.project-item:hover {
	transform: translateY(-4px) scale(1.03);
	border-color: var(--border-strong);
	box-shadow: 0 0 24px rgba(0, 216, 255, 0.22), 0 0 20px rgba(143, 98, 255, 0.22);
}

.project-item:focus-visible {
	outline: none;
	border-color: var(--border-strong);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.project-icon {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 10px;
	filter: saturate(1.1) contrast(1.08);
}

.footer-text {
	margin: 16px 0 0;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(216, 225, 248, 0.68);
}

.bg-orb {
	position: fixed;
	border-radius: 999px;
	filter: blur(14px);
	opacity: 0.54;
	z-index: 2;
	pointer-events: none;
}

.orb-1 {
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(143, 98, 255, 0.85) 0%, rgba(143, 98, 255, 0) 72%);
	top: -110px;
	left: -90px;
	animation: driftA 12s ease-in-out infinite;
}

.orb-2 {
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(0, 216, 255, 0.76) 0%, rgba(0, 216, 255, 0) 70%);
	bottom: -150px;
	right: -120px;
	animation: driftB 13s ease-in-out infinite;
}

.orb-3 {
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(255, 63, 142, 0.66) 0%, rgba(255, 63, 142, 0) 72%);
	top: 38%;
	left: 6%;
	animation: driftC 10s ease-in-out infinite;
}

.bg-grid {
	position: fixed;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(circle at center, black 30%, transparent 87%);
	opacity: 0.32;
	z-index: 1;
	pointer-events: none;
}

.light-beam {
	position: fixed;
	width: 44vw;
	height: 120vh;
	transform: skewX(-18deg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
	filter: blur(16px);
	opacity: 0.22;
	pointer-events: none;
	z-index: 1;
	animation: beamPulse 9s ease-in-out infinite;
}

.beam-1 {
	left: -34vw;
	top: -22vh;
}

.beam-2 {
	right: -38vw;
	bottom: -24vh;
	animation-delay: 3s;
}

.cursor-glow,
.cursor-core,
#cursor-trail {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 30;
}

.cursor-glow {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	margin-left: -21px;
	margin-top: -21px;
	background: radial-gradient(circle, rgba(143, 98, 255, 0.45), rgba(0, 216, 255, 0.2), transparent 72%);
	filter: blur(2px);
	mix-blend-mode: screen;
	transition: transform 0.16s var(--ease), opacity 0.2s ease;
}

.cursor-core {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	margin-left: -4.5px;
	margin-top: -4.5px;
	background: #ffffff;
	box-shadow:
		0 0 10px rgba(255, 255, 255, 0.9),
		0 0 18px rgba(143, 98, 255, 0.8),
		0 0 24px rgba(0, 216, 255, 0.7);
	transition: transform 0.12s var(--ease), opacity 0.2s ease;
}

#cursor-trail {
	width: 0;
	height: 0;
}

.trail-dot {
	position: fixed;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	margin-left: -4px;
	margin-top: -4px;
	background: rgba(181, 225, 255, 0.85);
	box-shadow: 0 0 10px rgba(143, 98, 255, 0.7), 0 0 14px rgba(0, 216, 255, 0.65);
	pointer-events: none;
	z-index: 29;
}

.cursor-active .cursor-glow {
	transform: scale(1.35);
	opacity: 0.95;
}

.cursor-active .cursor-core {
	transform: scale(1.35);
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes spinReverse {
	to {
		transform: rotate(-360deg);
	}
}


@keyframes cardFloat {
	0%,
	100% {
		transform: translateY(0px) scale(1);
	}
	50% {
		transform: translateY(-8px) scale(1.006);
	}
}

@keyframes driftA {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(42px, 24px) scale(1.06);
	}
}

@keyframes driftB {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(-38px, -26px) scale(1.08);
	}
}

@keyframes driftC {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(-24px, 24px);
	}
}

@keyframes scanlineMove {
	0% {
		transform: translateY(-30%) rotate(16deg);
		opacity: 0;
	}
	15% {
		opacity: 0.72;
	}
	70% {
		opacity: 0.28;
	}
	100% {
		transform: translateY(60%) rotate(16deg);
		opacity: 0;
	}
}

@keyframes textShimmer {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 100% 50%;
	}
}

@keyframes beamPulse {
	0%,
	100% {
		opacity: 0.17;
	}
	50% {
		opacity: 0.29;
	}
}

@media (max-width: 700px) {
	.profile-wrap {
		padding: 16px;
	}

	.profile-card {
		padding: 20px 16px 16px;
	}

	.name {
		font-size: clamp(32px, 9vw, 42px);
	}

	.social-btn {
		width: 62px;
		height: 62px;
	}

	.social-icon {
		width: 28px;
		height: 28px;
	}

	.bio-box {
		max-height: 210px;
	}


}

@media (max-width: 460px) {
	.profile-card {
		border-radius: 20px;
	}

	.pfp-ring {
		width: 138px;
		height: 138px;
	}

	.proficient-grid {
		gap: 8px;
	}

	.proficient-pill {
		font-size: 11px;
		padding: 8px 10px;
	}

	.skill-icon {
		min-width: 22px;
		height: 18px;
		font-size: 9px;
		padding: 0 5px;
	}

	.socials {
		gap: 10px;
	}

	.social-btn {
		width: 58px;
		height: 58px;
	}

	.social-icon {
		width: 24px;
		height: 24px;
	}

	.project-item {
		width: 64px;
		height: 64px;
	}
		width: 46px;
		height: 46px;
	}



	.footer-text {
		letter-spacing: 0.08em;
	}
}

@media (hover: none), (pointer: coarse) {
	html,
	body,
	a,
	button,
	input,
	textarea,
	select {
		cursor: auto;
	}

	.cursor-glow,
	.cursor-core,
	#cursor-trail {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.cursor-glow,
	.cursor-core,
	#cursor-trail {
		display: none;
	}
}
