@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
	--bg: #071018;
	--bg-soft: rgba(255, 255, 255, 0.04);
	--panel: rgba(8, 16, 24, 0.78);
	--panel-border: rgba(255, 255, 255, 0.09);
	--text: #f4f1ea;
	--muted: rgba(244, 241, 234, 0.72);
	--accent: #9ef0d1;
	--accent-strong: #60f5c4;
	--accent-warm: #ffb86b;
	--shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	--radius-xl: 32px;
	--radius-lg: 24px;
	--radius-md: 18px;
	--content-width: min(1180px, calc(100vw - 32px));
}

body[data-theme='light'] {
	--bg: #eef4fb;
	--bg-soft: rgba(5, 32, 58, 0.06);
	--panel: rgba(255, 255, 255, 0.88);
	--panel-border: rgba(20, 58, 90, 0.2);
	--text: #0d2236;
	--muted: rgba(13, 34, 54, 0.72);
	--accent: #138a6e;
	--accent-strong: #0ea980;
	--accent-warm: #f3a352;
	--shadow: 0 24px 55px rgba(18, 46, 72, 0.16);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: 'Inter', sans-serif;
	-webkit-text-size-adjust: 100%;
	background:
		radial-gradient(circle at top left, rgba(96, 245, 196, 0.14), transparent 28%),
		radial-gradient(circle at 85% 18%, rgba(255, 184, 107, 0.16), transparent 24%),
		radial-gradient(circle at 50% 100%, rgba(158, 240, 209, 0.1), transparent 28%),
		linear-gradient(180deg, #09131c 0%, #071018 52%, #050a10 100%);
	overflow-x: hidden;
}

body[data-theme='light'] {
	background:
		radial-gradient(circle at top left, rgba(19, 138, 110, 0.1), transparent 28%),
		radial-gradient(circle at 85% 18%, rgba(243, 163, 82, 0.12), transparent 24%),
		radial-gradient(circle at 50% 100%, rgba(14, 169, 128, 0.09), transparent 30%),
		linear-gradient(180deg, #f8fbff 0%, #eef4fb 52%, #e8f1fa 100%);
}

body.is-loading {
	overflow: hidden;
}

body.theme-switching,
body.theme-switching *,
body.theme-switching *::before,
body.theme-switching *::after {
	transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease, box-shadow 280ms ease, fill 280ms ease, stroke 280ms ease, opacity 280ms ease;
}

@media (prefers-reduced-motion: reduce) {
	body.theme-switching,
	body.theme-switching *,
	body.theme-switching *::before,
	body.theme-switching *::after {
		transition: none;
	}
}

.site-loader {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 22% 18%, rgba(96, 245, 196, 0.2), transparent 34%),
		radial-gradient(circle at 78% 80%, rgba(255, 184, 107, 0.2), transparent 38%),
		linear-gradient(180deg, #050a10 0%, #071018 54%, #09131c 100%);
	backdrop-filter: blur(4px);
	opacity: 1;
	visibility: visible;
	transition: opacity 320ms ease, visibility 320ms ease;
}

.site-loader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.site-loader-core {
	display: grid;
	place-items: center;
	padding: 24px;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 16, 24, 0.72);
	box-shadow: 0 16px 56px rgba(0, 0, 0, 0.44);
}

.site-loader-ring {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.12);
	border-top-color: var(--accent-strong);
	border-right-color: var(--accent-warm);
	animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
	to {
		transform: rotate(1turn);
	}
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: radial-gradient(circle at center, black 44%, transparent 100%);
	opacity: 0.18;
}

a {
	color: inherit;
	text-decoration: none;
}

.brand-text,
.topnav a,
.button,
.project-card p,
.photo-text,
.process-list p,
.contact-section h2 + * {
	overflow-wrap: anywhere;
}

img {
	max-width: 100%;
	display: block;
}

.page-shell {
	position: relative;
	width: var(--content-width);
	margin: 0 auto;
	padding: 24px 0 48px;
}

.topbar {
	position: sticky;
	top: 16px;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 18px;
	margin-bottom: 28px;
	border: 1px solid var(--panel-border);
	border-radius: 999px;
	background: rgba(8, 16, 24, 0.62);
	backdrop-filter: blur(18px);
	box-shadow: var(--shadow);
}

.brand {
	display: none;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), rgba(158, 240, 209, 0.22));
	color: #041117;
	font-family: 'Space Grotesk', sans-serif;
}

.brand-text {
	font-size: 0.85rem;
}

.topnav {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	color: var(--muted);
	margin-left: 40px;
}

.topnav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.02);
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1;
	letter-spacing: 0.02em;
}

.topnav a:hover {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
}

.topbar-actions {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.topnav a,
.topbar-cta,
.button {
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.topnav a:hover,
.topbar-cta:hover,
.button:hover {
	transform: translateY(-2px);
}

.topbar-cta,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-weight: 600;
}

.topbar-cta {
	padding: 12px 18px;
	border: 1px solid var(--panel-border);
	background: rgba(255, 255, 255, 0.03);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lang-switcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	border-radius: 999px;
	border: 1px solid var(--panel-border);
	background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
	appearance: none;
	border: 0;
	background: transparent;
	width: 46px;
	height: 32px;
	padding: 0;
	border-radius: 999px;
	cursor: pointer;
	opacity: 0.55;
	transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
	overflow: hidden;
	position: relative;
}

.lang-btn:hover {
	transform: translateY(-1px);
	opacity: 1;
}

.lang-btn.is-active {
	background: rgba(255, 255, 255, 0.09);
	opacity: 1;
}

.flag {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.flag-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-toggle {
	appearance: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--panel-border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
	transform: translateY(-2px);
	border-color: rgba(96, 245, 196, 0.45);
	background: rgba(96, 245, 196, 0.15);
	box-shadow: 0 12px 26px rgba(5, 16, 27, 0.22);
}

body[data-theme='light'] .theme-toggle:hover {
	border-color: rgba(14, 169, 128, 0.45);
	background: rgba(14, 169, 128, 0.12);
	box-shadow: 0 12px 26px rgba(18, 46, 72, 0.16);
}

.theme-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-icon-sun {
	display: block;
}

.theme-icon-moon {
	display: none;
}

body[data-theme='light'] .theme-icon-moon {
	display: block;
}

body[data-theme='light'] .theme-icon-sun {
	display: none;
}

.flag-br {
	background: linear-gradient(180deg, #1f8f4a 0%, #1c7f41 100%);
}

.flag-br::before {
	content: '';
	position: absolute;
	inset: 50% auto auto 50%;
	width: 19px;
	height: 19px;
	background: #f6c64f;
	transform: translate(-50%, -50%) rotate(45deg);
}

.flag-br::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #1d4f9f;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.flag-us {
	background:
		repeating-linear-gradient(
			180deg,
			#b22234 0,
			#b22234 2.45px,
			#ffffff 2.45px,
			#ffffff 4.9px
		);
}

.flag-us::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 44%;
	height: 55%;
	background: #3c3b6e;
}

.flag-us::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 3px;
	width: 14px;
	height: 12px;
	background:
		radial-gradient(circle, #ffffff 18%, transparent 19%) 0 0 / 4px 4px,
		radial-gradient(circle, #ffffff 18%, transparent 19%) 2px 2px / 4px 4px;
	opacity: 0.9;
}

.section {
	margin-top: 28px;
	border: 1px solid var(--panel-border);
	border-radius: var(--radius-xl);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
	backdrop-filter: blur(20px);
	box-shadow: var(--shadow);
}

.hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding: 42px;
	min-height: auto;
	align-items: center;
}

.hero-copy {
	max-width: 680px;
}

.eyebrow {
	margin: 0 0 18px;
	color: var(--accent);
	font-size: 0.82rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	line-height: 1;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

h1 {
	max-width: 12ch;
	font-size: clamp(2.6rem, 6.4vw, 5.4rem);
	overflow-wrap: normal;
}

h2 {
	font-size: clamp(2rem, 4.5vw, 3rem);
}

h3 {
	font-size: clamp(1.3rem, 2vw, 2rem);
}

.hero-text,
.project-card p,
.about-grid p,
.process-list p,
.contact-section h2 + * {
	color: var(--muted);
	line-height: 1.75;
	font-size: 1.02rem;
}

.hero-text {
	max-width: 62ch;
	margin: 22px 0 0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.button {
	padding: 14px 22px;
	border: 1px solid transparent;
}

.button-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	color: #08131b;
}

.button-secondary {
	border-color: var(--panel-border);
	background: rgba(255, 255, 255, 0.03);
}

.button-large {
	min-width: min(100%, 280px);
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	list-style: none;
	padding: 0;
	margin: 34px 0 0;
}

.hero-stats li {
	padding: 18px 16px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hero-stats li:hover {
	transform: translateY(-3px) scale(1.03);
	background: rgba(96, 245, 196, 0.12);
	border-color: rgba(96, 245, 196, 0.45);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.hero-stats strong {
	display: block;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.5rem;
	margin-bottom: 8px;
}

.hero-stats span {
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.photo-section {
	display: grid;
	grid-template-columns: 1fr 0.85fr;
	gap: 24px;
	align-items: center;
	padding: 30px 32px;
}

.photo-content {
	display: grid;
	gap: 14px;
}

.photo-text {
	margin: 0;
	color: var(--muted);
	line-height: 1.75;
	font-size: 1.02rem;
	max-width: 60ch;
}

.photo-frame {
	margin: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(255, 255, 255, 0.03);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
	min-height: 320px;
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.photo-frame:hover {
	transform: translateY(-3px) scale(1.03);
	background: rgba(96, 245, 196, 0.12);
	border-color: rgba(96, 245, 196, 0.45);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.photo-frame img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	display: block;
}

.visual-card {
	position: absolute;
	padding: 20px;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 16, 24, 0.6);
	backdrop-filter: blur(16px);
	z-index: 2;
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.visual-card:hover {
	transform: translateY(-3px) scale(1.03);
	background: rgba(96, 245, 196, 0.12);
	border-color: rgba(96, 245, 196, 0.45);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.visual-card span {
	display: block;
	color: var(--accent);
	font-size: 0.78rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.visual-card strong {
	display: block;
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.8rem);
	margin-bottom: 8px;
}

.visual-card p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

.visual-card-large {
	left: 26px;
	bottom: 28px;
	width: min(78%, 360px);
}

.visual-card-small {
	width: 170px;
}

.visual-card-top {
	right: 22px;
	top: 100px;
}

.visual-card-bottom {
	right: 58px;
	bottom: 176px;
}

.orb {
	position: absolute;
	border-radius: 50%;
	z-index: 0;
	filter: blur(4px);
	animation: float 10s ease-in-out infinite;
}

.orb-one {
	width: 88px;
	height: 88px;
	left: 48%;
	top: 20%;
	background: rgba(96, 245, 196, 0.28);
}

.orb-two {
	width: 56px;
	height: 56px;
	right: 20%;
	bottom: 28%;
	background: rgba(255, 184, 107, 0.34);
	animation-delay: -2s;
}

.section-split,
.about-section,
.experience-section,
.process-section,
.stacks-section,
.contact-section {
	padding: 30px 32px;
}

.section-heading {
	display: grid;
	gap: 10px;
	margin-bottom: 24px;
}

.section-heading-projects {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: 14px;
	margin-bottom: 34px;
	padding-bottom: 8px;
}

.project-controls {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0 10px;
}

.project-arrow {
	appearance: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--panel-border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font-size: 1.05rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.project-arrow:hover {
	transform: translateY(-2px);
	border-color: rgba(96, 245, 196, 0.45);
	background: rgba(96, 245, 196, 0.15);
}

body[data-theme='light'] .project-arrow:hover {
	border-color: rgba(14, 169, 128, 0.45);
	background: rgba(14, 169, 128, 0.12);
}

.project-arrow:disabled {
	opacity: 0.42;
	cursor: default;
	transform: none;
}

.project-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (18px * 2)) / 3);
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pinch-zoom;
	cursor: grab;
	scroll-padding-inline: 2px;
	padding-bottom: 6px;
}

.project-grid.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.project-grid.is-dragging,
.stacks-grid.is-dragging {
	scroll-snap-type: none;
}

.project-card {
	padding: 24px;
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.075);
	min-height: 280px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
	transform: translateY(-3px) scale(1.03);
	background: rgba(96, 245, 196, 0.12);
	border-color: rgba(96, 245, 196, 0.45);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.project-card-featured {
	background:
		linear-gradient(180deg, rgba(96, 245, 196, 0.1), rgba(255, 255, 255, 0.035)),
		rgba(255, 255, 255, 0.035);
}

.project-meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	min-height: 2.7em;
	color: var(--muted);
	font-size: 0.86rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.project-meta span:last-child {
	text-align: right;
}

.project-demo {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(5, 16, 27, 0.46);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
	aspect-ratio: 16 / 10;
}

.project-demo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 240ms ease;
}

.project-card:hover .project-demo img {
	transform: scale(1.03);
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2px;
}

.project-link {
	margin-top: auto;
	width: fit-content;
}

.project-tags span,
.process-list article span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	border: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.8rem;
}

.experience-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.experience-professional-column {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.experience-card {
	padding: 24px;
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.075);
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.experience-card:hover {
	transform: translateY(-3px) scale(1.02);
	background: rgba(96, 245, 196, 0.12);
	border-color: rgba(96, 245, 196, 0.45);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.experience-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 0.82rem;
	color: var(--muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.experience-meta span {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.experience-card h3 {
	margin: 2px 0 0;
}

.experience-card p {
	margin: 0;
	color: var(--muted);
	font-weight: 500;
}

.experience-education-column {
	min-height: 100%;
}

.experience-points {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 8px;
	color: var(--text);
}

.experience-points li {
	line-height: 1.4;
}

.about-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.process-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.process-list article {
	padding: 22px;
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.075);
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.process-list article:hover {
	transform: translateY(-3px) scale(1.03);
	background: rgba(96, 245, 196, 0.12);
	border-color: rgba(96, 245, 196, 0.45);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.process-list h3 {
	margin: 18px 0 12px;
}

.process-list p {
	margin: 0;
}

.stacks-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.project-grid::-webkit-scrollbar,
.stacks-grid::-webkit-scrollbar {
	display: none;
}

.stack-card {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	min-height: 88px;
	padding: 16px 18px;
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.075);
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.35rem);
	letter-spacing: 0.04em;
	text-align: left;
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.stack-card:hover {
	transform: translateY(-3px) scale(1.03);
	background: rgba(96, 245, 196, 0.12);
	border-color: rgba(96, 245, 196, 0.45);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.stack-card i {
	font-size: 1.7rem;
	color: var(--accent);
	flex: 0 0 auto;
}

.stack-card svg {
	width: 1.7rem;
	height: 1.7rem;
	flex: 0 0 auto;
	color: var(--accent);
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.stack-card .aws-logo {
	stroke-width: 2.2;
}

.stack-card .dynamodb-logo {
	stroke-width: 1.8;
}

.stack-card span {
	line-height: 1;
}

.contact-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.contact-section h2 {
	max-width: 12ch;
}

.contact-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: min(100%, 460px);
}

.contact-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.contact-link svg {
	width: 18px;
	height: 18px;
	fill: none;
	opacity: 0.92;
	flex: 0 0 auto;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-icon-image {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex: 0 0 auto;
	display: block;
}

.contact-link:hover {
	transform: translateY(-3px) scale(1.03);
	background: rgba(96, 245, 196, 0.12);
	border-color: rgba(96, 245, 196, 0.45);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
	padding: 22px 28px;
	border: 1px solid rgba(132, 244, 223, 0.26);
	border-radius: var(--radius-xl);
	background: linear-gradient(135deg, rgba(18, 126, 159, 0.34), rgba(16, 75, 110, 0.52) 55%, rgba(11, 42, 71, 0.64));
	color: rgba(244, 241, 234, 0.82);
	box-shadow: var(--shadow);
	transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-footer:hover {
	transform: translateY(-3px) scale(1.02);
	background: linear-gradient(135deg, rgba(24, 148, 184, 0.42), rgba(18, 89, 131, 0.58) 55%, rgba(12, 49, 82, 0.7));
	border-color: rgba(148, 249, 231, 0.4);
	box-shadow: 0 16px 34px rgba(5, 16, 27, 0.32);
}

.site-footer p {
	margin: 0;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

body[data-theme='light'] .site-footer,
body[data-theme='light'] .site-footer p {
	color: #0f2133;
}

body[data-theme='light'] .site-footer {
	border-color: rgba(34, 120, 151, 0.28);
	background: linear-gradient(135deg, rgba(193, 236, 255, 0.9), rgba(168, 223, 247, 0.92) 55%, rgba(214, 244, 255, 0.95));
}

body[data-theme='light'] .site-footer:hover {
	background: linear-gradient(135deg, rgba(181, 231, 255, 0.96), rgba(149, 213, 244, 0.96) 55%, rgba(203, 240, 255, 0.98));
	border-color: rgba(21, 128, 170, 0.34);
}

[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px) translateX(0px);
	}
	50% {
		transform: translateY(-12px) translateX(6px);
	}
}

@media (max-width: 1080px) {
	.hero,
	.photo-section,
	.process-list,
	.experience-layout,
	.about-grid,
	.stacks-grid,
	.contact-section {
		grid-template-columns: 1fr;
	}

	.project-grid {
		grid-auto-columns: minmax(260px, calc((100% - 18px) / 2));
		scroll-snap-type: x proximity;
		scroll-padding-inline: 2px;
	}

	.topnav {
		display: none !important;
	}

	.topbar {
		justify-content: space-between;
	}

	.topbar-actions {
		margin-left: 0;
		width: auto;
		justify-content: flex-end;
		flex-wrap: nowrap;
	}

	.section-heading-projects {
		grid-template-columns: 1fr;
		row-gap: 20px;
		margin-bottom: 32px;
	}

	.project-controls {
		justify-self: start;
		padding: 4px 0 10px;
	}

	.hero {
		min-height: auto;
	}

	.contact-section {
		display: grid;
	}

	.contact-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	.experience-professional-column {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	.topbar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-radius: 28px;
	}

	.topbar-actions {
		width: auto;
		justify-content: flex-end;
		flex-wrap: nowrap;
	}

	.hero {
		grid-template-columns: 1fr;
	}

	.hero,
	.photo-section,
	.section-split,
	.about-section,
	.experience-section,
	.process-section,
	.stacks-section,
	.contact-section {
		padding: 24px;
	}

	.hero-stats {
		grid-template-columns: 1fr;
	}

	.stacks-grid {
		grid-template-columns: 1fr;
		grid-auto-flow: row;
		overflow: visible;
		touch-action: auto;
		padding-bottom: 0;
	}

	.stacks-grid .stack-card {
		min-height: 76px;
	}

	.contact-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project-grid {
		grid-auto-columns: minmax(250px, 88%);
	}

	.experience-layout {
		grid-template-columns: 1fr;
	}

	.site-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.lang-switcher {
		margin-left: auto;
	}

	.lang-btn {
		width: 44px;
		height: 30px;
	}

	.theme-toggle {
		width: 42px;
		height: 42px;
	}

	.photo-frame,
	.photo-frame img {
		min-height: 280px;
	}
}

@media (max-width: 560px) {
	.page-shell {
		width: min(100vw - 18px, 100%);
		padding-top: 10px;
	}

	.topbar {
		padding: 12px 14px;
	}

	.topnav {
		display: none !important;
	}

	.topnav a {
		padding: 11px 12px;
		font-size: 0.88rem;
		border-color: rgba(255, 255, 255, 0.1);
		background: rgba(255, 255, 255, 0.04);
		border-radius: 16px;
	}

	.topnav a:last-child {
		grid-column: 1 / -1;
	}

	.topbar-actions {
		gap: 10px;
		width: 100%;
		justify-content: flex-end;
		flex-wrap: nowrap;
	}

	.topbar-cta {
		flex: 1 1 auto;
		justify-content: center;
	}

	.lang-switcher {
		margin-left: 0;
		flex: 0 0 auto;
	}

	.lang-btn {
		width: 42px;
		height: 28px;
	}

	.theme-toggle {
		width: 40px;
		height: 40px;
	}

	.hero {
		padding: 22px;
	}

	h1 {
		font-size: clamp(2.2rem, 11.5vw, 3.6rem);
	}

	.photo-frame,
	.photo-frame img {
		min-height: 220px;
	}

	.visual-card {
		padding: 16px;
	}

	.stacks-grid {
		grid-template-columns: 1fr;
		grid-auto-flow: row;
		overflow: visible;
		touch-action: auto;
		padding-bottom: 0;
	}

	.stack-card {
		min-height: 76px;
	}

	.project-grid {
		scroll-snap-type: x proximity;
		grid-auto-columns: minmax(240px, 92%);
	}

	.contact-links {
		grid-template-columns: 1fr;
	}
}
