/* Gege portfolio — fresh design system (light / dark via data-theme) */

/* --- Theme tokens --- */
:root {
	color-scheme: light;
	--font-sans: "Inter", "Poppins", system-ui, sans-serif;
	--font-mono: "Fira Code", ui-monospace, monospace;
	--radius-lg: 28px;
	--radius-md: 18px;
	--radius-pill: 999px;
	--shadow-soft: 0 12px 40px rgba(15, 23, 42, 0.08);
	--shadow-card: 0 8px 32px rgba(15, 23, 42, 0.06);
	--accent: #2563eb;
	--accent-hover: #1d4ed8;
	--accent-soft: rgba(37, 99, 235, 0.12);
	--accent-rgb: 37 99 235;
	--bg-page: #f4f6fb;
	--bg-elevated: #ffffff;
	--bg-effect-a-rgb: 124 58 237;
	--bg-effect-b-rgb: 217 70 239;
	--bg-hero-mesh: radial-gradient(ellipse 120% 80% at 50% -20%, rgb(var(--bg-effect-a-rgb) / 0.1), transparent 55%),
		radial-gradient(ellipse 80% 50% at 100% 50%, rgb(var(--bg-effect-b-rgb) / 0.075), transparent 50%);
	--text-primary: #0f172a;
	--text-secondary: #64748b;
	--text-muted: #94a3b8;
	--border-subtle: rgba(15, 23, 42, 0.08);
	--border-strong: rgba(15, 23, 42, 0.12);
	--glass: rgba(255, 255, 255, 0.72);
	--glass-border: rgba(255, 255, 255, 0.9);
	--sticky-bg: rgba(255, 255, 255, 0.82);
	--scrollbar-track: #e2e8f0;
	--scrollbar-thumb: #94a3b8;
	--scrollbar-thumb-hover: #64748b;
	--name-gradient: linear-gradient(120deg, #1e293b 0%, #2563eb 45%, #6366f1 100%);
	--ring-glow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 20px 50px rgba(37, 99, 235, 0.12);
	--icon-well-bg: #dde6f4;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
	color-scheme: dark;
	--accent: #60a5fa;
	--accent-hover: #93c5fd;
	--accent-soft: rgba(96, 165, 250, 0.15);
	--accent-rgb: 96 165 250;
	--bg-page: #0f1115;
	--bg-elevated: #1a1d24;
	--bg-effect-a-rgb: 192 132 252;
	--bg-effect-b-rgb: 244 114 182;
	--bg-hero-mesh: radial-gradient(ellipse 120% 80% at 50% -20%, rgb(var(--bg-effect-a-rgb) / 0.13), transparent 55%),
		radial-gradient(ellipse 80% 50% at 100% 40%, rgb(var(--bg-effect-b-rgb) / 0.09), transparent 50%);
	--text-primary: #f1f5f9;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	--border-subtle: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.12);
	--glass: rgba(26, 29, 36, 0.75);
	--glass-border: rgba(255, 255, 255, 0.06);
	--sticky-bg: rgba(15, 17, 21, 0.85);
	--icon-well-bg: #2a303c;
	--shadow-soft: 0 12px 48px rgba(0, 0, 0, 0.45);
	--shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
	--scrollbar-track: #1e293b;
	--scrollbar-thumb: #475569;
	--scrollbar-thumb-hover: #64748b;
	--name-gradient: linear-gradient(120deg, #f8fafc 0%, #60a5fa 50%, #a78bfa 100%);
	--ring-glow: 0 0 0 1px rgba(96, 165, 250, 0.2), 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* --- Reset & base --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	background:
		radial-gradient(ellipse 90% 55% at 15% -10%, rgb(var(--bg-effect-a-rgb) / 0.12), transparent 52%),
		radial-gradient(ellipse 70% 45% at 95% 105%, rgb(var(--bg-effect-b-rgb) / 0.09), transparent 48%),
		var(--bg-page);
	color: var(--text-primary);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

* {
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-thumb-hover);
}

.particles-canvas {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.84;
}

[data-theme="dark"] .particles-canvas {
	opacity: 0.88;
}

/* --- Layout --- */
.container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
	flex: 1;
	position: relative;
	z-index: 1;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

body.loaded .container {
	opacity: 1;
	transform: translateY(0);
}

/* --- Hero / header --- */
header {
	--header-pad-x: 1.5rem;
	position: relative;
	margin-bottom: 3.5rem;
	padding: 3rem var(--header-pad-x) 2.5rem;
	border-radius: var(--radius-lg);
	background: var(--bg-elevated);
	box-shadow: var(--shadow-soft);
	border: 1px solid var(--border-subtle);
	overflow: hidden;
}

header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bg-hero-mesh);
	pointer-events: none;
}

header::after {
	content: "";
	position: absolute;
	width: min(420px, 90vw);
	height: min(420px, 90vw);
	border-radius: 50%;
	background: radial-gradient(circle, rgb(var(--bg-effect-a-rgb) / 0.12) 0%, transparent 70%);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	pointer-events: none;
	z-index: 0;
}

.profile {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
	width: 100%;
	max-width: 100%;
}

.profile-image {
	display: inline-block;
	position: relative;
	line-height: 0;
	background: none;
	border: none;
	outline: none;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
}

.profile-image img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(220px, 85vw);
	max-height: min(260px, 50vh);
	object-fit: contain;
	object-position: center;
	border: none;
	outline: none;
	box-shadow: none;
}

.profile-divider {
	align-self: stretch;
	flex-shrink: 0;
	height: 1px;
	margin: 0 calc(-1 * var(--header-pad-x)) 2.85rem;
	width: calc(100% + 2 * var(--header-pad-x));
	max-width: none;
	box-sizing: border-box;
	background: linear-gradient(
		90deg,
		transparent,
		var(--border-strong),
		transparent
	);
	border: none;
}

.name-location-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.profile h1 {
	font-size: clamp(2rem, 5vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--text-primary);
	max-width: 100%;
	margin-bottom: 0.65rem;
}

.profile h1.is-typing,
.profile h1.name-gradient-applied {
	background: var(--name-gradient);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradient-shift 8s ease infinite;
	color: transparent;
}

.typing-cursor {
	animation: cursor-blink 1s infinite;
	margin-left: 1px;
	-webkit-text-fill-color: var(--accent);
	color: var(--accent);
	background: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
}

@keyframes gradient-shift {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

@keyframes cursor-blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.tech-tags-section {
	width: 100%;
	position: relative;
	z-index: 1;
	margin-top: 1.05rem;
}

.tech-tag-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.role-tag {
	display: inline-block;
	padding: 0.45rem 1rem;
	border-radius: var(--radius-pill);
	font-size: 0.8125rem;
	font-weight: 500;
	font-family: var(--font-mono);
	letter-spacing: 0.02em;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid rgb(var(--accent-rgb) / 0.25);
	cursor: default;
	transition: var(--transition);
}

.role-tag:hover {
	border-color: rgb(var(--accent-rgb) / 0.45);
	transform: translateY(-1px);
}

/* Clock / location */
.location.timezone-clock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	margin-top: 0.5rem;
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-pill);
	background: var(--glass);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: none;
	font-family: var(--font-mono);
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.location-info {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.flag-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

.clock-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: nowrap;
}

.clock-display {
	font-variant-numeric: tabular-nums;
}

.clock-daynight {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	line-height: 1;
	color: var(--accent);
	cursor: help;
	position: relative;
}

.clock-daynight-moon {
	display: none !important;
}

.clock-daynight.is-night .clock-daynight-sun {
	display: none !important;
}

.clock-daynight.is-night .clock-daynight-moon {
	display: inline !important;
}

.location.timezone-clock .clock-digits {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	color: var(--accent);
	font-weight: 600;
}

.location.timezone-clock .clock-digits span {
	display: inline-block;
	min-width: 0.55em;
	text-align: center;
}

.location.timezone-clock .digit-animated {
	animation: digit-flip 0.45s ease;
}

@keyframes digit-flip {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Sections --- */
section {
	margin-bottom: 4rem;
	position: relative;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

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

section h2 {
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	position: relative;
	padding-bottom: 0.75rem;
}

section h2::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 48px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-subtitle {
	text-align: center;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

/* Intro */
.intro h2 {
	margin-bottom: 1.5rem;
}

.intro-content {
	max-width: 720px;
	margin: 0 auto;
	line-height: 1.75;
	font-size: 1.0625rem;
	color: var(--text-secondary);
}

.intro-content p {
	margin-bottom: 1.25rem;
}

.intro-content p:first-child {
	font-size: 1.125rem;
	color: var(--text-primary);
	padding-left: 1rem;
	border-left: 3px solid var(--accent);
}

.intro-content p:last-child {
	margin-bottom: 0;
}

.intro-content p {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.45s ease, transform 0.45s ease;
	transition-delay: calc(var(--index, 0) * 100ms);
}

.intro-content.visible p {
	opacity: 1;
	transform: translateY(0);
}

/* --- Grids --- */
.jobs-grid,
.projects-grid,
.universities-grid,
.contacts-grid,
.socials-grid {
	display: grid;
	gap: 1.25rem;
}

.jobs-grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.projects-grid,
.universities-grid {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.contacts-grid {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.socials-grid {
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

/* --- Cards --- */
.job-card,
.projects-card,
.university-card {
	background: var(--bg-elevated);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-card);
	padding: 1.5rem;
	cursor: pointer;
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
	position: relative;
	overflow: hidden;
}

.job-card::before,
.projects-card::before,
.university-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), #818cf8);
	opacity: 0;
	transition: opacity var(--transition);
}

.job-card:hover,
.projects-card:hover,
.university-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-soft);
	border-color: rgb(var(--accent-rgb) / 0.25);
}

.job-card:hover::before,
.projects-card:hover::before,
.university-card:hover::before {
	opacity: 1;
}

.job-card-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

.job-icon,
.projects-icon,
.university-icon {
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: var(--icon-well-bg);
	padding: 0.5rem;
}

.job-icon img,
.projects-icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.university-icon img {
	max-width: 85%;
	max-height: 100%;
	object-fit: contain;
}

.university-icon[data-university="UNECON"] img {
	max-width: 75%;
	filter: brightness(1.08) contrast(1.05);
}

.university-icon[data-university="SUAI"] img {
	max-width: 85%;
}

.university-icon[data-university="SPBPU"] img {
	max-width: 80%;
}

.job-details h3,
.projects-details h3,
.university-details h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.35rem;
}

.job-details p,
.projects-details p,
.university-details p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 0.75rem;
}

.job-url,
.projects-url,
.university-url {
	font-size: 0.75rem;
}

.job-url a,
.projects-url a,
.university-url a {
	color: var(--accent);
	text-decoration: none;
	word-break: break-all;
	font-family: var(--font-mono);
}

.job-url a:hover,
.projects-url a:hover,
.university-url a:hover {
	text-decoration: underline;
}

.projects-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

.university-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

.university-details {
	width: 100%;
}

.projects-details {
	width: 100%;
}

.projects-icon {
	margin-bottom: 0;
}

/* Contact & social */
.contact-card,
.social-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.25rem 1rem;
	background: var(--bg-elevated);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
	text-decoration: none;
	color: inherit;
	box-shadow: var(--shadow-card);
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
	min-height: 120px;
}

@media (hover: hover) and (pointer: fine) {
	.contact-card:hover,
	.social-card:hover {
		transform: translateY(-3px);
		border-color: rgb(var(--accent-rgb) / 0.3);
		box-shadow: var(--shadow-soft);
	}
}

.contact-icon,
.social-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--icon-well-bg);
}

.contact-icon img,
.social-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

[data-theme="light"] .job-icon,
[data-theme="light"] .projects-icon,
[data-theme="light"] .university-icon,
[data-theme="light"] .contact-icon,
[data-theme="light"] .social-icon {
	background: linear-gradient(165deg, #f0f4fc 0%, #e2eaf6 45%, #d8e2f2 100%);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.95),
		inset 0 0 0 1px rgb(37 99 235 / 0.09),
		0 2px 10px rgb(15 23 42 / 0.05);
}

[data-theme="dark"] .job-icon,
[data-theme="dark"] .projects-icon,
[data-theme="dark"] .university-icon,
[data-theme="dark"] .contact-icon,
[data-theme="dark"] .social-icon {
	background: linear-gradient(165deg, #363d4d 0%, #2c3340 42%, #222831 100%);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.08),
		inset 0 0 0 1px rgb(var(--accent-rgb) / 0.12),
		0 2px 14px rgb(0 0 0 / 0.45);
}

.contact-card h3,
.social-card h3 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-primary);
	text-align: center;
}

/* Footer */
footer {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 2.5rem 1.5rem 2rem;
	color: var(--text-secondary);
	font-size: 0.875rem;
	border-top: 1px solid var(--border-subtle);
	background: var(--bg-page);
}

.footer-tagline {
	margin-top: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--text-muted);
}

.footer-tagline i {
	color: var(--accent);
	margin: 0 0.3rem;
}

.footer-tagline .fa-heart {
	color: #e11d48;
}

/* Sticky header */
.sticky-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	transform: translateY(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	background: var(--sticky-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border-subtle);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .sticky-header {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.sticky-header.visible {
	transform: translateY(0);
}

.sticky-header-content {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0.65rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: nowrap;
}

.sticky-header-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.sticky-profile-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	background: none;
	border: none;
	outline: none;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
}

.sticky-profile-image img {
	display: block;
	width: auto;
	height: auto;
	max-width: 40px;
	max-height: 40px;
	object-fit: contain;
	object-position: center;
	border: none;
	outline: none;
	box-shadow: none;
}

.sticky-profile-info {
	min-width: 0;
}

.sticky-profile-info h3 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sticky-toolbar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.theme-toggle {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid var(--border-subtle);
	background: var(--bg-elevated);
	color: var(--text-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition), border-color var(--transition), transform 0.15s ease;
}

.theme-toggle:hover {
	border-color: rgb(var(--accent-rgb) / 0.35);
	background: var(--accent-soft);
}

.theme-toggle:active {
	transform: scale(0.96);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
	font-size: 1rem;
	line-height: 1;
}

[data-theme="light"] .theme-toggle .icon-moon {
	display: none !important;
}

[data-theme="dark"] .theme-toggle .icon-sun {
	display: none !important;
}

.theme-toggle--hero {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 3;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: var(--glass);
	box-shadow: var(--shadow-card);
}

@media (max-width: 480px) {
	.theme-toggle--hero {
		top: 0.75rem;
		right: 0.75rem;
		width: 40px;
		height: 40px;
	}
}

.sticky-nav {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.sticky-nav a {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text-secondary);
	text-decoration: none;
	padding: 0.45rem 0.7rem;
	border-radius: var(--radius-pill);
	transition: color var(--transition), background var(--transition);
}

.sticky-nav a:hover {
	color: var(--accent);
	background: var(--accent-soft);
}

.sticky-nav a.active {
	color: var(--accent);
	background: var(--accent-soft);
	box-shadow: inset 0 -2px 0 0 var(--accent);
}

.hamburger-menu {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	border-radius: 10px;
	border: 1px solid var(--border-subtle);
	background: transparent;
	cursor: pointer;
}

.hamburger-menu span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--text-primary);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-open .hamburger-menu span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-open .hamburger-menu span:nth-child(2) {
	opacity: 0;
}

.menu-open .hamburger-menu span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
	.hamburger-menu {
		display: flex;
	}

	.sticky-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex: none;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		background: var(--sticky-bg);
		backdrop-filter: blur(16px);
		border-bottom: 1px solid var(--border-subtle);
		max-height: 0;
		overflow: hidden;
		padding: 0 1rem;
		transition: max-height 0.35s ease, padding 0.35s ease;
	}

	.menu-open .sticky-nav {
		max-height: 320px;
		padding: 0.75rem 1rem 1rem;
	}

	.sticky-nav a {
		text-align: center;
		padding: 0.65rem;
	}
}

/* Scroll indicator */
.scroll-indicator {
	position: fixed;
	bottom: 2rem;
	right: 1.5rem;
	z-index: 50;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 0.5rem;
	opacity: 1;
	transition: opacity 0.4s ease;
	animation: scroll-bounce 2.2s ease infinite;
}

.scroll-indicator.hidden {
	opacity: 0;
	pointer-events: none;
}

.scroll-indicator .chevron {
	width: 28px;
	height: 12px;
	position: relative;
}

.scroll-indicator .chevron::before,
.scroll-indicator .chevron::after {
	content: "";
	position: absolute;
	top: 0;
	width: 50%;
	height: 2px;
	background: var(--accent);
	border-radius: 1px;
}

.scroll-indicator .chevron::before {
	left: 0;
	transform: skewY(28deg);
}

.scroll-indicator .chevron::after {
	right: 0;
	transform: skewY(-28deg);
}

.scroll-indicator .chevron-2 {
	opacity: 0.65;
	margin-top: -6px;
}

.scroll-indicator .chevron-3 {
	opacity: 0.35;
	margin-top: -6px;
}

@keyframes scroll-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(6px);
	}
}

/* Animation utilities */
.animate-item {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-item.visible {
	opacity: 1;
	transform: translateY(0);
}

.job-card,
.university-card,
.contact-card,
.social-card,
.projects-card {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.job-card.visible,
.university-card.visible,
.contact-card.visible,
.social-card.visible,
.projects-card.visible {
	opacity: 1;
	transform: translateY(0);
}

#jobs .job-card {
	transition-delay: calc(var(--index, 0) * 55ms);
}

#projects .projects-card,
#universities .university-card {
	transition-delay: calc(var(--index, 0) * 55ms);
}

#contacts .contact-card {
	transition-delay: calc(var(--index, 0) * 50ms);
}

#socials .social-card {
	transition-delay: calc(var(--index, 0) * 40ms);
}

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

	.scroll-indicator {
		animation: none;
	}
}
