*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
    /*^ Colors */
	--bg: #07070f;
	--surface: rgba(255, 255, 255, 0.04);
	--border: rgba(255, 255, 255, 0.08);
	--neon: #ff6500;
	--neon2: #7b5ea7;
	--text: #e0e0f0;
	--muted: #6b6b8a;

    /*^ Fonts */
	--display: 'Syne', sans-serif;
	--mono: 'JetBrains Mono', monospace;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--bg);
	color: var(--text);

	font-family: var(--mono);
	font-size: 15px;
	line-height: 1.7;
	overflow-x: hidden;
}

/** Fonts definition */
@font-face { /* JetBrains Mono Regular */
    font-family: "JetBrains Mono";
    src: url("/static/fonts/jbm-reg.woff2") format("woff2");

    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face { /* JetBrains Mono 300 */
    font-family: "JetBrains Mono";
    src: url("/static/fonts/jbm-300.woff2") format("woff2");

    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face { /* JetBrains Mono 500 */
    font-family: "JetBrains Mono";
    src: url("/static/fonts/jbm-500.woff2") format("woff2");

    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face { /* Syne Regular */
    font-family: "Syne";
    src: url("/static/fonts/syne-reg.woff2") format("woff2");

    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face { /* Syne 600 */
    font-family: "Syne";
    src: url("/static/fonts/syne-600.woff2") format("woff2");

    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face { /* Syne 700 */
    font-family: "Syne";
    src: url("/static/fonts/syne-700.woff2") format("woff2");

    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face { /* Syne 800 */
    font-family: "Syne";
    src: url("/static/fonts/syne-800.woff2") format("woff2");

    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/** Custom cursor definition */
#cursor {
	display: none;
}

@media (pointer: fine) {
	#cursor {
		display: block;
		position: fixed;
		z-index: 9999;
		width: 10px;
		height: 10px;

        pointer-events: none;

		background: var(--neon);
		border-radius: 50%;

		transform: translate(-50%, -50%);
		box-shadow: 0 0 16px var(--neon), 0 0 32px rgba(255, 101, 0, .5);

		transition: transform .1s;
	}

	body:has(a:hover, button:hover, input:hover, textarea:hover) #cursor,
	body:has(.project-card:hover) #cursor {
		transform: translate(-50%, -50%) scale(1.6);
	}

	body {
		cursor: none;
	}

	a,
	button,
	.lang-btn,
	.proj-link,
	.contact-link,
	input,
	textarea,
	p,
	h1,
	span,
	label, 
	code {
		cursor: none;
	}
}

/** Background */
body::before {
	content: '';

	position: fixed;
	inset: 0;
	z-index: 0;

	pointer-events: none;

	background-image:
		linear-gradient(rgba(255, 101, 0, .03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 101, 0, .03) 1px, transparent 1px);
	background-size: 60px 60px;
}

::-webkit-scrollbar {
	width: 4px;
}

::-webkit-scrollbar-track {
	background: var(--bg);
}

::-webkit-scrollbar-thumb {
	background: var(--neon);
	border-radius: 2px;
}

/** Error pages */
main {
	position: relative;
	z-index: 1;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.error-card {
	background: rgba(13, 13, 26, .75);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 56px 64px;
	backdrop-filter: blur(24px);
	max-width: 680px;
	width: 100%;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
	position: relative;
	overflow: hidden;
	opacity: 0;
	animation: fadeUp .7s .1s forwards;
}

.error-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 101, 0, .35), transparent);
}

.corner-tl,
.corner-br {
	position: absolute;
	width: 18px;
	height: 18px;
}

.corner-tl {
	top: 16px;
	left: 16px;
	border-top: 2px solid var(--neon);
	border-left: 2px solid var(--neon);
}

.corner-br {
	bottom: 16px;
	right: 16px;
	border-bottom: 2px solid var(--neon);
	border-right: 2px solid var(--neon);
}

.code-window {
	background: rgba(7, 7, 15, .8);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 40px;
	opacity: 0;
	animation: fadeUp .6s .25s forwards;
}

.code-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 11px 16px;
	background: rgba(255, 255, 255, .03);
	border-bottom: 1px solid var(--border);
}

.dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

.dot-r {
	background: #ff3e6c;
}

.dot-y {
	background: #ffd166;
}

.dot-g {
	background: #06d6a0;
}

.code-bar-label {
	margin-left: 6px;
	font-size: .68rem;
	color: var(--muted);
}

.code-body {
	padding: 20px 22px;
	font-size: .76rem;
	line-height: 2;
}

.eyebrow {
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--neon);
	margin-bottom: 14px;
	opacity: 0;
	animation: fadeUp .6s .35s forwards;
}

.eyebrow::before {
	content: '// ';
	color: var(--muted);
}

.error-code {
	font-family: var(--display);
	font-size: clamp(4.5rem, 12vh, 8rem);
	font-weight: 800;
	line-height: .9;
	letter-spacing: -.05em;
	color: #fff;
	margin-bottom: 12px;
	opacity: 0;
	animation: fadeUp .6s .45s forwards;
}

.error-code .accent {
	color: var(--neon);
}

.error-title {
	font-family: var(--display);
	font-size: clamp(1.2rem, 3vw, 1.7rem);
	font-weight: 700;
	color: var(--text);
	margin-bottom: 16px;
	opacity: 0;
	animation: fadeUp .6s .55s forwards;
}

.error-desc {
	font-size: .86rem;
	color: var(--muted);
	line-height: 1.9;
	margin-bottom: 40px;
	max-width: 480px;
	opacity: 0;
	animation: fadeUp .6s .65s forwards;
}

.status-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 36px;
	opacity: 0;
	animation: fadeUp .6s .7s forwards;
}

.status-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 100px;
	padding: 6px 14px;
	font-size: .72rem;
	color: var(--muted);
	letter-spacing: .08em;
}

.status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff3e6c;
	box-shadow: 0 0 8px #ff3e6c;
	animation: pulse 1.8s ease-in-out infinite;
}

.retry-count {
	font-size: .72rem;
	color: var(--muted);
}

.retry-count span {
	color: var(--neon);
}

.actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	opacity: 0;
	animation: fadeUp .6s .8s forwards;
}

.btn-primary {
	padding: 13px 32px;
	background: var(--neon);
	color: #000;
	font-family: var(--mono);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	display: inline-block;
	clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
	transition: box-shadow .3s, transform .2s;
}

.btn-primary:hover {
	box-shadow: 0 0 28px var(--neon), 0 0 56px rgba(255, 101, 0, .25);
	transform: translateY(-2px);
}

.btn-outline {
	padding: 12px 31px;
	background: transparent;
	font-family: var(--mono);
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;	
	color: var(--text);
	border: 1px solid var(--border);
	display: inline-block;
	clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
	transition: border-color .3s, color .3s;
}

.btn-outline:hover {
	border-color: var(--neon);
	color: var(--neon);
}

/** Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;

	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 60px;

	background: rgba(7, 7, 15, .7);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
}

.header-logo {
	font-family: var(--display);
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--neon);
	text-decoration: none;
	letter-spacing: -.02em;
}

.header-logo span {
	color: var(--text);
}

.header-right {
	display: flex;
	align-items: center;
	gap: 40px;
}

.header-links {
	display: flex;
	gap: 40px;
	list-style: none;
}

.header-links a {
	color: var(--muted);
	text-decoration: none;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;

	transition: color .3s;

	position: relative;
}

.header-links a::after {
	content: '';

	position: absolute;
	bottom: -4px;
	left: 0;
	right: 100%;
	height: 1px;

	background: var(--neon);

	transition: right .3s;
}

.header-links a:hover {
	color: var(--neon);
}

.header-links a:hover::after {
	right: 0;
}

.lang-toggle {
	display: flex;
	align-items: center;
	gap: 3px;

	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;

	padding: 4px;
}

.lang-btn {
	width: 32px;
	height: 28px;
	border-radius: 5px;
	border: none;

	background: transparent;

	font-size: 1.05rem;
	line-height: 1;

	transition: background .2s, transform .15s;
}

.lang-btn:hover {
	transform: scale(1.12);
}

.lang-btn.active {
	background: rgba(255, 101, 0, .18);
	box-shadow: 0 0 0 1px rgba(255, 101, 0, .35);
}

section {
	position: relative;
	z-index: 1;
}

/** Main section */
#hero {
	min-height: 100vh;

	display: flex;
	flex-direction: column;
	justify-content: center;

	padding: 120px 60px 80px;
	overflow: hidden;
}

.orb {
	position: absolute;

	border-radius: 50%;

	filter: blur(120px);

	pointer-events: none;
	z-index: 0;
}

.orb1 {
	width: 500px;
	height: 500px;
	top: -100px;
	left: -100px;

	background: rgba(255, 101, 0, .06);
}

.orb2 {
	width: 400px;
	height: 400px;
	bottom: 0;
	right: 20%;

	background: rgba(123, 94, 167, .08);
}

.hero-eyebrow {
	font-size: .75rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--neon);

	margin-bottom: 24px;
	opacity: 0;

	animation: fadeUp .6s .2s forwards;
}

.hero-eyebrow::before {
	content: '// ';
	color: var(--muted);
}

.hero-name {
	font-family: var(--display);
	font-size: clamp(2.4rem, 11vw, 8rem);
	font-weight: 800;
	line-height: .95;
	letter-spacing: -.04em;
	color: #fff;
	margin-bottom: 16px;
	opacity: 0;
	animation: fadeUp .6s .35s forwards;
}

.hero-name .accent {
	color: var(--neon);
}

.hero-typewriter {
	font-size: clamp(1rem, 2vw, 1.4rem);
	color: var(--muted);
	margin-bottom: 48px;
	min-height: 2em;
	opacity: 0;
	animation: fadeUp .6s .5s forwards;
}

.typed {
	color: var(--text);
	border-right: 2px solid var(--neon);
	animation: blink .7s step-end infinite;
}

.hero-cta {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	opacity: 0;
	animation: fadeUp .6s .65s forwards;
}

.hero-code-block {
	position: absolute;
	right: 60px;
	top: 50%;
	max-height: calc(100vh - 160px);
	transform: translateY(-50%);
	width: min(420px, 38vw);
	opacity: 0;
	overflow: hidden;
	animation: fadeLeft .8s .8s forwards;
}

.code-window {
	background: rgba(13, 13, 26, .9);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	backdrop-filter: blur(20px);
	box-shadow: 0 0 60px rgba(255, 101, 0, .07);
}

.code-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	background: rgba(255, 255, 255, .03);
	border-bottom: 1px solid var(--border);
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.dot-r {
	background: #ff3e6c;
}

.dot-y {
	background: #ffd166;
}

.dot-g {
	background: #06d6a0;
}

.code-body {
	padding: 24px;
	font-size: .78rem;
	line-height: 2;
}

.kw {
	color: #7b5ea7;
}

.fn {
	color: #ff6500;
}

.str {
	color: #ffd166;
}

.cm {
	color: #3a3a55;
}

.num {
	color: #ff3e6c;
}

.section-label {
	font-size: .7rem;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--neon);
	margin-bottom: 16px;
}

.section-label::before {
	content: '01. ';
	color: var(--muted);
}

#projects .section-label::before {
	content: '02. ';
}

#contact .section-label::before {
	content: '03. ';
}

.section-title {
	font-family: var(--display);
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.03em;
	color: #fff;
	margin-bottom: 28px;
}

.divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--border), transparent);
	margin: 0 60px;
}

/** About */
#about {
	padding: 140px 60px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.about-text p {
	color: var(--muted);
	margin-bottom: 16px;
	font-size: .9rem;
}

.about-text strong {
	color: var(--text);
	font-weight: 400;
}

.about-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 40px;
}

.stat-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	backdrop-filter: blur(10px);
	transition: border-color .3s, transform .3s;
}

.stat-card:hover {
	border-color: rgba(255, 101, 0, .3);
	transform: translateY(-4px);
}

.stat-num {
	font-family: var(--display);
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--neon);
	line-height: 1;
}

.stat-label {
	font-size: .72rem;
	color: var(--muted);
	margin-top: 6px;
	letter-spacing: .08em;
}

.about-image-area {
	display: flex;
	justify-content: center;
}

.avatar-frame {
	width: 320px;
	height: 380px;

	background: linear-gradient(135deg, rgba(255, 101, 0, .08), rgba(123, 94, 167, .08));
	border: 1px solid var(--border);
	border-radius: 2px;

	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;

	overflow: hidden;
}

.avatar-frame::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(255, 101, 0, .02) 30px, rgba(255, 101, 0, .02) 31px);
}

.avatar-initials {
	font-family: var(--display);
	font-size: 5rem;
	font-weight: 800;
	color: rgba(255, 101, 0, .22);
	z-index: 1;
}

.corner-tl,
.corner-br {
	position: absolute;
	width: 20px;
	height: 20px;
}

.corner-tl {
	top: 12px;
	left: 12px;
	border-top: 2px solid var(--neon);
	border-left: 2px solid var(--neon);
}

.corner-br {
	bottom: 12px;
	right: 12px;
	border-bottom: 2px solid var(--neon);
	border-right: 2px solid var(--neon);
}

/** Projects */
#projects {
	padding: 120px 60px;
}

.projects-header {
	margin-bottom: 64px;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 28px;
}

.project-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.project-card {
	background: rgba(13, 13, 26, .6);
	border: 1px solid var(--border);
	border-radius: 16px;

	padding: 36px;
	backdrop-filter: blur(20px);


	display: flex;
	flex-direction: column;

	position: relative;
	overflow: hidden;

	transition: border-color .35s, transform .4s, box-shadow .35s;
	transform-style: preserve-3d;
	will-change: transform;
}

.project-card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%),
			rgba(255, 101, 0, .13) 0%,
			rgba(255, 101, 0, .04) 45%,
			transparent 70%);
	opacity: 0;
	transition: opacity .3s;
}

.project-card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(circle 60px at var(--mx, 50%) var(--my, 50%),
			rgba(255, 180, 80, .18) 0%,
			transparent 70%);
	opacity: 0;
	transition: opacity .25s;
	border-radius: inherit;
}

.project-card:hover::before {
	opacity: 1;
}

.project-card:hover::after {
	opacity: 1;
}

.project-card:hover {
	border-color: rgba(255, 101, 0, .4);
	transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	box-shadow:
		0 20px 60px rgba(0, 0, 0, .5),
		0 0 0 1px rgba(255, 101, 0, .15),
		inset 0 1px 0 rgba(255, 180, 80, .12);
}

.project-card>* {
	position: relative;
	z-index: 1;
}

@media (max-width: 700px) {
	.project-card.featured {
		grid-template-columns: 1fr;
	}
}

.featured-visual {
	height: 220px;
	background: linear-gradient(135deg, rgba(255, 101, 0, .08), rgba(123, 94, 167, .12));
	border: 1px solid var(--border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	position: relative;
	overflow: hidden;
}

.featured-visual::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 101, 0, .02) 20px, rgba(255, 101, 0, .02) 21px);
}

.project-num {
	font-size: .7rem;
	color: var(--neon);
	letter-spacing: .12em;
	margin-bottom: 20px;
	font-weight: 500;
}

.project-title {
	font-family: var(--display);
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 12px;
	line-height: 1.2;
}

.project-desc {
	flex: 1;
	font-size: .82rem;
	color: var(--muted);
	margin-bottom: 28px;
	line-height: 1.8;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.tag {
	font-size: .7rem;
	color: var(--neon);
	border: 1px solid rgba(255, 101, 0, .2);
	padding: 4px 12px;
	border-radius: 100px;
	letter-spacing: .06em;
}

.project-links {
	display: flex;
	gap: 16px;
}

.proj-link {
	font-size: .75rem;
	color: var(--muted);
	text-decoration: none;
	letter-spacing: .08em;
	transition: color .3s;
}

.proj-link.github::before {
	content: '⌥ ';
}

.proj-link.live::before {
	content: '↗ ';
}

.proj-link:hover {
	color: var(--neon);
}

/** Contact */
#contact {
	padding: 120px 60px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
}

.contact-info p {
	font-size: .88rem;
	color: var(--muted);
	margin-bottom: 40px;
}

.contact-links {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-link {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--muted);
	text-decoration: none;
	font-size: .82rem;
	padding: 16px 20px;
	border: 1px solid var(--border);
	border-radius: 8px;
	transition: border-color .3s, color .3s, transform .3s;
}

.contact-link:hover {
	border-color: rgba(255, 101, 0, .3);
	color: var(--neon);
	transform: translateX(8px);
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-label {
	font-size: .7rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--muted);
}

.form-input,
.form-textarea {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px 18px;
	color: var(--text);
	font-family: var(--mono);
	font-size: .85rem;
	transition: border-color .3s, box-shadow .3s;
	outline: none;
	resize: none;
}

.form-input:focus,
.form-textarea:focus {
	border-color: rgba(255, 101, 0, .4);
	box-shadow: 0 0 20px rgba(255, 101, 0, .05);
}

.form-textarea {
	min-height: 140px;
}

.btn-send {
	align-self: flex-start;
	padding: 14px 40px;

	background: transparent;
	border: 1px solid var(--neon);

	color: var(--neon);
	font-family: var(--mono);
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;

	clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
	transition: background .3s, color .3s, box-shadow .3s;
}

.btn-send:hover {
	background: var(--neon);
	color: #000;
	box-shadow: 0 0 30px rgba(255, 101, 0, .3);
}

/** Footer */
footer {
	padding: 40px 60px;
	border-top: 1px solid var(--border);

	display: flex;
	align-items: center;
	justify-content: space-between;

	font-size: .72rem;
	color: var(--muted);
	letter-spacing: .08em;

	position: relative;
	z-index: 1;
}

/*^ Project pages */
/** Shorten */
.project-hero {
	min-height: 52vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 140px 60px 80px;
	position: relative;
	overflow: hidden;
}

.project-hero .orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
	z-index: 0;
}

.project-hero .orb1 {
	width: 500px;
	height: 500px;
	background: rgba(255, 101, 0, .06);
	top: -120px;
	left: -100px;
}

.project-hero .orb2 {
	width: 400px;
	height: 400px;
	background: rgba(123, 94, 167, .07);
	bottom: -60px;
	right: 10%;
}

.project-hero>* {
	position: relative;
	z-index: 1;
}

.project-eyebrow {
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--neon);
	margin-bottom: 18px;
	opacity: 0;
	animation: fadeUp .6s .15s forwards;
}

.project-eyebrow::before {
	content: '// ';
	color: var(--muted);
}

.project-title-main {
	font-family: var(--display);
	font-size: clamp(2.8rem, 7vw, 6rem);
	font-weight: 800;
	line-height: .95;
	letter-spacing: -.04em;
	color: #fff;
	margin-bottom: 20px;
	opacity: 0;
	animation: fadeUp .6s .28s forwards;
}

.project-title-main .accent {
	color: var(--neon);
}

.project-tagline {
	font-size: clamp(.9rem, 1.5vw, 1.1rem);
	color: var(--muted);
	max-width: 560px;
	margin-bottom: 36px;
	opacity: 0;
	animation: fadeUp .6s .4s forwards;
}

.project-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	opacity: 0;
	animation: fadeUp .6s .52s forwards;
}

.meta-tag {
	font-size: .7rem;
	color: var(--neon);
	border: 1px solid rgba(255, 101, 0, .2);
	padding: 5px 14px;
	border-radius: 100px;
	letter-spacing: .06em;
}

.shortener-section {
	padding: 80px 60px;
	position: relative;
	z-index: 1;
}

.shortener-card {
	background: rgba(13, 13, 26, .7);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 48px 56px;
	max-width: 760px;
	margin: 0 auto;
	backdrop-filter: blur(20px);
	box-shadow: 0 0 80px rgba(255, 101, 0, .05), inset 0 1px 0 rgba(255, 255, 255, .04);
	position: relative;
	overflow: hidden;
}

.shortener-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 101, 0, .3), transparent);
}

.corner-tl,
.corner-br {
	position: absolute;
	width: 18px;
	height: 18px;
}

.corner-tl {
	top: 14px;
	left: 14px;
	border-top: 2px solid var(--neon);
	border-left: 2px solid var(--neon);
}

.corner-br {
	bottom: 14px;
	right: 14px;
	border-bottom: 2px solid var(--neon);
	border-right: 2px solid var(--neon);
}

.shortener-label {
	font-size: .7rem;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--neon);
	margin-bottom: 10px;
}

.shortener-label::before {
	content: '// ';
	color: var(--muted);
}

.shortener-heading {
	font-family: var(--display);
	font-size: 1.7rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 32px;
	line-height: 1.1;
}

.url-form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 0;
}

.url-input {
	flex: 1;
	min-width: 200px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px 18px;
	color: var(--text);
	font-family: var(--mono);
	font-size: .85rem;
	transition: border-color .3s, box-shadow .3s;
	outline: none;
}

.url-input:focus {
	border-color: rgba(255, 101, 0, .45);
	box-shadow: 0 0 20px rgba(255, 101, 0, .06);
}

.url-input::placeholder {
	color: var(--muted);
}

.btn-shorten {
	padding: 14px 32px;
	background: var(--neon);
	color: #000;
	font-family: var(--mono);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	border: none;
	white-space: nowrap;
	clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
	transition: box-shadow .3s, transform .2s, opacity .2s;
}

.btn-shorten:hover {
	box-shadow: 0 0 26px var(--neon), 0 0 52px rgba(255, 101, 0, .25);
	transform: translateY(-2px);
}

.btn-shorten:disabled {
	opacity: .5;
	transform: none;
	box-shadow: none;
}

.flash-result {
	margin-top: 20px;
	padding: 16px 20px;
	border-radius: 10px;
	font-size: .82rem;
	display: none;
	align-items: center;
	gap: 14px;
	animation: fadeUp .35s ease forwards;
}

.flash-result.success {
	display: flex;
	background: rgba(6, 214, 160, .08);
	border: 1px solid rgba(6, 214, 160, .25);
	color: #06d6a0;
}

.flash-result.error {
	display: flex;
	background: rgba(255, 62, 108, .08);
	border: 1px solid rgba(255, 62, 108, .25);
	color: #ff3e6c;
}

.flash-icon {
	font-size: 1rem;
	flex-shrink: 0;
}

.flash-url {
	font-family: var(--mono);
	color: var(--neon);
	word-break: break-all;
	flex: 1;
	text-decoration: none;
	transition: opacity .2s;
}

.flash-url:hover {
	opacity: .75;
}

.btn-copy {
	padding: 6px 14px;
	background: transparent;
	border: 1px solid rgba(255, 101, 0, .3);
	border-radius: 6px;
	color: var(--neon);
	font-family: var(--mono);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: background .2s, color .2s;
	white-space: nowrap;
}

.btn-copy:hover {
	background: var(--neon);
	color: #000;
}

.btn-copy.copied {
	background: rgba(6, 214, 160, .15);
	border-color: rgba(6, 214, 160, .35);
	color: #06d6a0;
}

.story-section {
	display: block;
	padding: 100px 60px;
	position: relative;
	z-index: 1;
}

.story-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
}

.section-label {
	font-size: .7rem;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--neon);
	margin-bottom: 14px;
}

.section-label::before {
	content: '// ';
	color: var(--muted);
}

.section-title {
	font-family: var(--display);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.03em;
	color: #fff;
	margin-bottom: 24px;
}

.story-text p {
	color: var(--muted);
	font-size: .9rem;
	line-height: 1.9;
	margin-bottom: 16px;
}

.story-text strong {
	color: var(--text);
	font-weight: 400;
}

.story-text a {
	color: var(--neon);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 101, 0, .3);
	transition: border-color .2s;
}

.story-text a:hover {
	border-color: var(--neon);
}

.takeaways-section {
    display: block;
    width: 100%;
    padding: 60px;
    position: relative;
    z-index: 1;
}

.story-text code {
	font-family: var(--mono);
	font-size: .8rem;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--border);
	padding: 2px 7px;
	border-radius: 4px;
	color: var(--neon);
}

.arch-card {
	background: rgba(13, 13, 26, .6);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 32px;
	backdrop-filter: blur(16px);
	position: relative;
	overflow: hidden;
}

.arch-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 101, 0, .2), transparent);
}

.arch-code {
	font-family: var(--mono);
	font-size: .75rem;
	line-height: 2;
	color: var(--muted);
}

.arch-code .kw {
	color: #7b5ea7;
}

.arch-code .fn {
	color: #ff6500;
}

.arch-code .str {
	color: #ffd166;
}

.arch-code .cm {
	color: #3a3a55;
}

.arch-code .ok {
	color: #06d6a0;
}

.project-footer-section {
	padding: 80px 60px 120px;
	position: relative;
	z-index: 1;
}

.project-links-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/** Standalone shorter page */
.shorten-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 120px 40px 80px;
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.shorten-wrap .orb {
	position: fixed;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
	z-index: 0;
}

.shorten-wrap .orb1 {
	width: 500px;
	height: 500px;
	background: rgba(255, 101, 0, .06);
	top: -120px;
	left: -100px;
}

.shorten-wrap .orb2 {
	width: 400px;
	height: 400px;
	background: rgba(123, 94, 167, .07);
	bottom: -80px;
	right: 5%;
}

.shorten-card {
	background: rgba(13, 13, 26, .75);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 52px 60px;
	width: 100%;
	max-width: 680px;
	backdrop-filter: blur(24px);
	box-shadow: 0 40px 80px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
	position: relative;
	opacity: 0;
	animation: fadeUp .7s .1s forwards;
}

.shorten-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 101, 0, .35), transparent);
}

.corner-tl,
.corner-br {
	position: absolute;
	width: 18px;
	height: 18px;
}

.corner-tl {
	top: 14px;
	left: 14px;
	border-top: 2px solid var(--neon);
	border-left: 2px solid var(--neon);
}

.corner-br {
	bottom: 14px;
	right: 14px;
	border-bottom: 2px solid var(--neon);
	border-right: 2px solid var(--neon);
}

.shorten-eyebrow {
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--neon);
	margin-bottom: 12px;
	opacity: 0;
	animation: fadeUp .6s .25s forwards;
}

.shorten-eyebrow::before {
	content: '// ';
	color: var(--muted);
}

.shorten-heading {
	font-family: var(--display);
	font-size: clamp(1.8rem, 5vw, 3rem);
	font-weight: 800;
	line-height: .95;
	letter-spacing: -.04em;
	color: #fff;
	margin-bottom: 8px;
	opacity: 0;
	animation: fadeUp .6s .35s forwards;
}

.shorten-heading .accent {
	color: var(--neon);
}

.shorten-sub {
	font-size: .84rem;
	color: var(--muted);
	margin-bottom: 36px;
	opacity: 0;
	animation: fadeUp .6s .45s forwards;
}

.url-form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 0;
	opacity: 0;
	animation: fadeUp .6s .55s forwards;
}

.url-input {
	flex: 1;
	min-width: 200px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px 18px;
	color: var(--text);
	font-family: var(--mono);
	font-size: .85rem;
	transition: border-color .3s, box-shadow .3s;
	outline: none;
}

.url-input:focus {
	border-color: rgba(255, 101, 0, .45);
	box-shadow: 0 0 20px rgba(255, 101, 0, .06);
}

.url-input::placeholder {
	color: var(--muted);
}

.btn-shorten {
	padding: 14px 32px;
	background: var(--neon2);
	color: #000;
	font-family: var(--mono);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	border: none;
	white-space: nowrap;
	clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
	transition: box-shadow .3s, transform .2s, opacity .2s;
}

.btn-shorten:hover {
	box-shadow: 0 0 26px var(--neon), 0 0 52px rgba(255, 101, 0, .25);
	transform: translateY(-2px);
}

.btn-shorten:disabled {
	opacity: .5;
	transform: none;
	box-shadow: none;
}

.flash-result {
	margin-top: 20px;
	padding: 16px 20px;
	border-radius: 10px;
	font-size: .82rem;
	display: none;
	align-items: center;
	gap: 14px;
	animation: fadeUp .35s ease forwards;
}

.flash-result.success {
	display: flex;
	background: rgba(6, 214, 160, .08);
	border: 1px solid rgba(6, 214, 160, .25);
	color: #06d6a0;
}

.flash-result.error {
	display: flex;
	background: rgba(255, 62, 108, .08);
	border: 1px solid rgba(255, 62, 108, .25);
	color: #ff3e6c;
}

.flash-icon {
	font-size: 1rem;
	flex-shrink: 0;
}

.flash-url {
	font-family: var(--mono);
	color: var(--neon);
	word-break: break-all;
	flex: 1;
	text-decoration: none;
	transition: opacity .2s;
}

.flash-url:hover {
	opacity: .75;
}

.btn-copy {
	padding: 6px 14px;
	background: transparent;
	border: 1px solid rgba(255, 101, 0, .3);
	border-radius: 6px;
	color: var(--neon);
	font-family: var(--mono);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: background .2s, color .2s;
	white-space: nowrap;
}

.btn-copy:hover {
	background: var(--neon);
	color: #000;
}

.btn-copy.copied {
	background: rgba(6, 214, 160, .15);
	border-color: rgba(6, 214, 160, .35);
	color: #06d6a0;
}

.shorten-footer {
	margin-top: 32px;
	text-align: center;
	opacity: 0;
	animation: fadeUp .6s .65s forwards;
}

.back-link {
	font-size: .75rem;
	color: var(--muted);
	text-decoration: none;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: color .3s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.back-link:hover {
	color: var(--neon);
}

.back-link::before {
	content: '←';
}

.history-section {
	width: 100%;
	max-width: 680px;
	margin-top: 36px;
	opacity: 0;
	animation: fadeUp .7s .7s forwards;
}

.history-label {
	font-size: .68rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.history-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.history-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 12px 16px;
	font-size: .78rem;
	transition: border-color .3s;
}

.history-item:hover {
	border-color: rgba(255, 101, 0, .2);
}

.history-original {
	color: var(--muted);
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.history-short {
	color: var(--neon);
	text-decoration: none;
	white-space: nowrap;
}

.history-short:hover {
	text-decoration: underline;
}

.history-copy {
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 4px 10px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: .65rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: border-color .2s, color .2s;
}

.history-copy:hover {
	border-color: rgba(255, 101, 0, .3);
	color: var(--neon);
}

.history-copy.copied {
	color: #06d6a0;
	border-color: rgba(6, 214, 160, .3);
}

.history-empty {
	font-size: .78rem;
	color: var(--muted);
	text-align: center;
	padding: 20px;
	display: none;
}

/** Scroll effect */
.reveal {
	opacity: 0;

	transform: translateY(40px);
	transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-delay-1 {
	transition-delay: .1s;
}

.reveal-delay-2 {
	transition-delay: .2s;
}

.reveal-delay-3 {
	transition-delay: .3s;
}

.reveal-delay-4 {
	transition-delay: .4s;
}

/** Keyframes */
@keyframes pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: .5;
		transform: scale(.8);
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fadeLeft {
	from {
		opacity: 0;
		transform: translateX(40px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes blink {
	0%,
	100% {
		border-color: var(--neon);
	}

	50% {
		border-color: transparent;
	}
}

/** Responsiveness */
@media (max-width: 900px) {
	.hero-code-block {
		display: none;
	}

	.project-hero {
		padding: 120px 28px 60px;
	}

	.shortener-section,
	.story-section,
	.project-footer-section {
		padding-left: 28px;
		padding-right: 28px;
	}

	.shortener-card {
		padding: 32px 28px;
	}

	.story-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.takeaways-section {
		padding-left: 28px;
		padding-right: 28px;
	}
}

@media (max-width: 768px) {
    header {
        padding: 14px 20px;
    }

    .header-links {
        display: none;
    }

    .header-right {
        gap: 16px;
    }

    .lang-btn {
        width: 28px;
        height: 24px;
        font-size: .9rem;
    }
}

@media (max-width: 800px) {
	#about,
	#contact {
		grid-template-columns: 1fr;
		padding: 80px 28px;
		gap: 48px;
	}

	#projects {
		padding: 80px 28px;
	}

	header {
		padding: 18px 24px;
	}

	.header-links {
		gap: 10px;
	}

	.header-right {
		gap: 20px;
	}

	.divider {
		margin: 0 28px;
	}

	footer {
		flex-direction: column;
		gap: 10px;
		padding: 28px;

		text-align: center;
	}

	#hero {
		padding: 110px 28px 70px;
	}

	.error-card {
        padding: 36px 28px;
        border-radius: 14px;
    }

    .actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        text-align: center;
    }
}

@media (max-height: 820px) {
	main {
		padding: 20px;
	}

	.hero-code-block {
		max-height: calc(100vh - 140px);
	}

	.hero-code-block .code-body {
		padding: 14px 18px;
		line-height: 1.7;
		font-size: .72rem;
	}

	.hero-code-block .code-bar {
		padding: 10px 14px;
	}

	.error-card {
		padding: 32px 44px;
		border-radius: 16px;
	}

	.code-window {
		margin-bottom: 20px;
	}

	.code-body {
		padding: 12px 16px;
		line-height: 1.7;
	}

	.eyebrow {
		margin-bottom: 6px;
	}

	.error-title {
		margin-bottom: 8px;
	}

	.error-desc {
		margin-bottom: 20px;
		line-height: 1.7;
	}

	.status-row {
		margin-bottom: 20px;
	}
}

@media (max-height: 720px) {
	.hero-code-block {
		display: none;
	}
}

@media (max-height: 700px) {
	main {
		padding: 16px;
	}

	.error-card {
		padding: 24px 36px;
	}

	.code-body {
		line-height: 1.6;
	}

	.error-title {
		font-size: 1.1rem;
	}

	.error-desc {
		font-size: .8rem;
		margin-bottom: 16px;
	}

	.status-row {
		margin-bottom: 16px;
	}

	.actions {
		gap: 10px;
	}

	.btn-primary,
	.btn-outline {
		padding: 10px 24px;
	}

	.shorten-wrap {
		padding-top: 90px;
		padding-bottom: 40px;
		justify-content: flex-start;
	}
}

@media (max-height: 560px) {
	.error-card {
		padding: 20px 28px;
	}

	.code-window {
		display: none;
	}

	.error-desc {
		display: none;
	}

	.status-row {
		margin-bottom: 12px;
	}
}

@media (max-width: 600px) {
	.error-card {
		padding: 36px 28px;
		border-radius: 14px;
	}

	.actions {
		flex-direction: column;
	}

	.btn-primary,
	.btn-outline {
		text-align: center;
	}

	.shorten-card {
		padding: 36px 24px;
	}

	.url-form {
		flex-direction: column;
	}

	.btn-shorten {
		width: 100%;
		text-align: center;
		clip-path: none;
		border-radius: 8px;
	}
}