﻿:root {
	--ink-900: #13223a;
	--ink-700: #1f3b5d;
	--ink-500: #3f6489;
	--accent: #f56b42;
	--accent-strong: #d84a20;
	--accent-soft: #ffd9cc;
	--mint: #1e9f9a;
	--mint-strong: #147c78;
	--mint-soft: #d5f5f3;
	--paper: #fffdf8;
	--sand: #f2eadf;
	--card: #ffffff;
	--border: rgba(18, 46, 78, 0.12);
	--shadow-soft: 0 18px 42px rgba(19, 34, 58, 0.12);
	--shadow-strong: 0 24px 55px rgba(19, 34, 58, 0.2);
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Outfit", "Segoe UI", Tahoma, sans-serif;
	line-height: 1.6;
	color: var(--ink-900);
	background-color: var(--paper);
	background-image:
		radial-gradient(circle at 10% 5%, #fff1df 0%, transparent 32%),
		radial-gradient(circle at 85% 0%, #dcf7f5 0%, transparent 34%),
		linear-gradient(180deg, #fffdf8 0%, #f8f2e9 100%);
	padding: 1rem;
	position: relative;
	overflow-x: hidden;
}

body::before,
body::after {
	content: "";
	position: fixed;
	z-index: -1;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.35;
	pointer-events: none;
}

body::before {
	top: -120px;
	left: -80px;
	background: #ffc3ae;
}

body::after {
	bottom: -180px;
	right: -90px;
	background: #bdece8;
}

a {
	text-decoration: none;
	color: inherit;
}

.navbar {
	position: sticky;
	top: 1rem;
	max-width: 1180px;
	margin: 0 auto 1rem;
	padding: 0.85rem 1.25rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.75);
	box-shadow: 0 12px 28px rgba(19, 34, 58, 0.14);
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 1000;
}

.navbar.scrolled {
	box-shadow: 0 16px 35px rgba(19, 34, 58, 0.18);
}

.nav-brand {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--ink-700);
	padding: 0.25rem 0.45rem;
	border-radius: 12px;
	background: linear-gradient(135deg, #ffe8d8, #d9f4f1);
}

.nav-links {
	display: flex;
	gap: 0.4rem;
	list-style: none;
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	font-size: 0.93rem;
	font-weight: 500;
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		transform 0.25s ease;
}

.nav-links a:hover {
	background: #edf4ff;
	color: var(--ink-700);
	transform: translateY(-1px);
}

.hamburger {
	display: none;
	cursor: pointer;
	font-size: 1.15rem;
	color: var(--ink-700);
	padding: 0.35rem 0.5rem;
	border-radius: 10px;
	background: rgba(246, 107, 66, 0.12);
}

.hero {
	position: relative;
	max-width: 1180px;
	margin: 0 auto 1.5rem;
	min-height: min(86vh, 760px);
	border-radius: 32px;
	padding: clamp(2.2rem, 5vw, 4.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
	background:
		linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(253, 243, 228, 0.9)),
		linear-gradient(220deg, #ffd4c5 0%, #d8f3f0 100%);
	border: 1px solid rgba(255, 255, 255, 0.7);
	overflow: hidden;
	box-shadow: var(--shadow-strong);
}

.hero::before,
.hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	z-index: 0;
}

.hero::before {
	width: 520px;
	height: 520px;
	right: -180px;
	top: -190px;
	background: radial-gradient(
		circle,
		rgba(246, 107, 66, 0.28),
		transparent 70%
	);
}

.hero::after {
	width: 450px;
	height: 450px;
	left: -160px;
	bottom: -220px;
	background: radial-gradient(
		circle,
		rgba(30, 159, 154, 0.25),
		transparent 72%
	);
}

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

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(18, 46, 78, 0.1);
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-700);
	margin-bottom: 1rem;
}

.hero h1 {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(2.1rem, 4.8vw, 4.1rem);
	line-height: 1.1;
	max-width: 840px;
	margin-bottom: 1rem;
	color: var(--ink-900);
}

.hero-lead {
	font-size: clamp(1rem, 1.8vw, 1.26rem);
	max-width: 700px;
	color: rgba(19, 34, 58, 0.9);
}

.hero-metrics {
	margin-top: 1.8rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(140px, 1fr));
	gap: 0.85rem;
	width: min(760px, 100%);
}

.metric-item {
	background: rgba(255, 255, 255, 0.72);
	padding: 0.8rem 1rem;
	border-radius: 16px;
	border: 1px solid rgba(18, 46, 78, 0.12);
	box-shadow: 0 10px 20px rgba(19, 34, 58, 0.08);
}

.metric-value {
	display: block;
	font-size: clamp(1rem, 2.4vw, 1.45rem);
	font-weight: 800;
	color: var(--ink-700);
}

.metric-label {
	font-size: 0.84rem;
	color: rgba(19, 34, 58, 0.8);
}

.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.45rem;
	align-items: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1.2rem;
	border-radius: 12px;
	background: linear-gradient(120deg, var(--accent), #fb815f);
	color: #fff;
	font-weight: 600;
	border: 1px solid transparent;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		background 0.25s ease;
	box-shadow: 0 12px 22px rgba(245, 107, 66, 0.32);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 28px rgba(245, 107, 66, 0.34);
	background: linear-gradient(120deg, #ff7f59, var(--accent-strong));
}

.btn-secondary {
	background: linear-gradient(120deg, var(--mint), #3bb8b2);
	box-shadow: 0 12px 22px rgba(30, 159, 154, 0.28);
}

.btn-secondary:hover {
	background: linear-gradient(120deg, #24aca6, var(--mint-strong));
	box-shadow: 0 16px 28px rgba(30, 159, 154, 0.32);
}

.btn-outline {
	background: rgba(255, 255, 255, 0.72);
	color: var(--ink-700);
	border-color: rgba(18, 46, 78, 0.2);
	box-shadow: none;
}

.btn-outline:hover {
	background: #fff;
	color: var(--ink-900);
}

.hero-note {
	margin-top: 1rem;
	font-size: 0.92rem;
	color: rgba(19, 34, 58, 0.76);
}

section {
	position: relative;
	max-width: 1180px;
	margin: 0 auto 1.35rem;
	padding: clamp(2rem, 3.8vw, 3rem);
	background: rgba(255, 255, 255, 0.72);
	border-radius: 28px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
	box-shadow: var(--shadow-soft);
}

section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	border-radius: 28px 28px 0 0;
	background: linear-gradient(90deg, var(--accent), var(--mint));
	opacity: 0.7;
}

h2 {
	font-family: "Fraunces", Georgia, serif;
	text-align: center;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	line-height: 1.15;
	margin-bottom: 0.9rem;
	color: var(--ink-900);
}

.section-intro,
.tech-intro {
	max-width: 760px;
	margin: 0 auto 1.6rem;
	text-align: center;
	color: rgba(19, 34, 58, 0.82);
	font-size: 1.02rem;
}

.value-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1rem;
}

.value-card {
	background: linear-gradient(180deg, #fff, #fffbf6);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 1.2rem;
	box-shadow: 0 12px 24px rgba(19, 34, 58, 0.08);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease;
}

.value-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 30px rgba(19, 34, 58, 0.12);
}

.value-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-size: 1.12rem;
	background: linear-gradient(135deg, var(--accent-soft), #fff);
	color: var(--accent-strong);
	margin-bottom: 0.9rem;
}

.value-card h3 {
	font-size: 1.04rem;
	margin-bottom: 0.5rem;
	color: var(--ink-700);
}

.value-card p {
	font-size: 0.94rem;
	color: rgba(19, 34, 58, 0.84);
}

.about-content {
	display: grid;
	grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
	gap: 1.8rem;
	align-items: center;
}

.about-image {
	position: relative;
	padding: 0.8rem;
	border-radius: 26px;
	background: linear-gradient(150deg, #ffe2d3, #d7f4f1);
	overflow: hidden;
	display: flex;
	justify-content: center;
}

.about-image::before {
	content: "";
	position: absolute;
	inset: 10px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	pointer-events: none;
}

.profile-img {
	width: 100%;
	max-width: 320px;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 34%;
	display: block;
	margin: 0 auto;
	box-shadow: 0 18px 38px rgba(19, 34, 58, 0.2);
}

.profile-img--scanned {
	transform: rotate(-17deg) scale(1.24);
	transform-origin: center;
	filter: contrast(1.04);
}

.about-text p {
	margin-bottom: 0.8rem;
	color: rgba(19, 34, 58, 0.9);
}

.about-highlights {
	list-style: none;
	display: grid;
	gap: 0.55rem;
	margin: 1rem 0 1.2rem;
}

.about-highlights li {
	position: relative;
	padding-left: 1.5rem;
	font-weight: 500;
	color: var(--ink-700);
}

.about-highlights li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45rem;
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--mint));
}

.cv-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1rem;
}

.tech-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1rem;
}

.tech-category {
	background: linear-gradient(180deg, #ffffff, #fffaf2);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1rem;
	box-shadow: 0 10px 22px rgba(19, 34, 58, 0.08);
}

.tech-category h3 {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 1rem;
	margin-bottom: 0.85rem;
	color: var(--ink-700);
}

.tech-category h3 i {
	color: var(--accent-strong);
}

.tech-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.tech-chip {
	padding: 0.32rem 0.68rem;
	border-radius: 999px;
	border: 1px solid #dbdce4;
	background: #fbfbfd;
	font-size: 0.84rem;
	line-height: 1.2;
	color: var(--ink-700);
}

.projects-stack {
	display: flex;
	flex-direction: column;
	gap: 1.7rem;
}

.stack-title {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0.35rem 0.8rem;
	border-radius: 10px;
	background: linear-gradient(120deg, #ffe7dc, #dcf5f2);
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--ink-700);
	letter-spacing: 0.02em;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.2rem;
}

.project-card {
	position: relative;
	background: var(--card);
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 14px 30px rgba(19, 34, 58, 0.09);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease;
}

.project-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		130deg,
		rgba(245, 107, 66, 0.11),
		transparent 45%,
		rgba(30, 159, 154, 0.11)
	);
	opacity: 0;
	transition: opacity 0.28s ease;
	pointer-events: none;
}

.project-card:hover {
	transform: translateY(-7px);
	box-shadow: 0 22px 40px rgba(19, 34, 58, 0.15);
}

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

.project-img {
	width: 100%;
	height: 220px;
	background: linear-gradient(180deg, #f4f6fb, #e5ebf6);
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}

.project-img--contain {
	background: linear-gradient(180deg, #f5fbfa, #ebf6f5);
}

.project-img--contain img {
	object-fit: contain;
	padding: 0.8rem;
}

.project-img--mean,
.project-img--next {
	height: 260px;
}

.project-img--mobile {
	height: 350px;
	background: linear-gradient(180deg, #f7fafc, #eef2f9);
}

.project-img--mobile img {
	object-fit: contain;
	max-width: 190px;
	margin: 0 auto;
	padding: 0.7rem;
}

.project-content {
	padding: 1.15rem;
}

.project-content h3 {
	font-size: 1.2rem;
	margin-bottom: 0.65rem;
	color: var(--ink-700);
}

.project-short {
	font-weight: 600;
	margin-bottom: 0.7rem;
}

.project-view-switch {
	display: inline-flex;
	gap: 0.4rem;
	background: #eef4ff;
	padding: 0.33rem;
	border-radius: 999px;
	margin-bottom: 0.85rem;
	border: 1px solid rgba(18, 46, 78, 0.1);
}

.view-btn {
	border: none;
	background: transparent;
	color: #2e4d71;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.view-btn.active {
	background: linear-gradient(120deg, var(--accent), #ff8f6f);
	color: #fff;
}

.project-copy {
	display: none;
	color: rgba(19, 34, 58, 0.87);
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

.project-copy.active {
	display: block;
}

.project-short.active {
	font-weight: 700;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.95rem 0;
}

.tag {
	background: #fff2ec;
	color: #b54f30;
	padding: 0.26rem 0.7rem;
	border-radius: 999px;
	font-size: 0.82rem;
	border: 1px solid #ffd2c3;
	font-weight: 500;
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.8rem;
}

.project-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.72rem;
	border-radius: 10px;
	background: #f2f7ff;
	color: var(--ink-700);
	font-weight: 600;
	font-size: 0.9rem;
	border: 1px solid rgba(19, 34, 58, 0.12);
	transition: transform 0.22s ease;
}

.project-link:hover {
	transform: translateY(-1px);
}

.project-status {
	font-style: italic;
	color: rgba(19, 34, 58, 0.74);
	font-size: 0.9rem;
	padding: 0.3rem 0;
}

.project-access {
	margin-top: 0.9rem;
	padding: 0.75rem 0.8rem;
	border-radius: 12px;
	background: linear-gradient(180deg, #fff8f2, #fff);
	border: 1px solid #ffd9c9;
}

.project-access.open {
	background: linear-gradient(180deg, #fff4ec, #fff);
	border-color: #ffc9b1;
}

.project-access-title {
	margin: 0;
	font-weight: 700;
	font-size: 0.9rem;
	color: #8c3c21;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.project-access-title::after {
	content: "+";
	font-size: 1rem;
	line-height: 1;
	color: #a64a29;
}

.project-access.open .project-access-title::after {
	content: "−";
}

.project-access-list {
	list-style: none;
	display: none;
	gap: 0.3rem;
	margin: 0.55rem 0 0;
	padding: 0;
	font-size: 0.82rem;
	color: rgba(19, 34, 58, 0.86);
	line-height: 1.35;
	word-break: break-word;
}

.project-access.open .project-access-list {
	display: grid;
}

.project-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-top: 0.9rem;
}

.project-gallery img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #e3e8ef;
	cursor: zoom-in;
	transition: transform 0.24s ease;
}

.project-gallery img:hover {
	transform: translateY(-2px) scale(1.02);
}

.project-gallery.project-carousel {
	display: block;
	position: relative;
	margin-top: 1rem;
}

.project-carousel-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	border-radius: 12px;
	border: 1px solid #dfe6f2;
	background: linear-gradient(180deg, #f8fbff, #eef4fb);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
	-ms-overflow-style: none;
}

.project-carousel-track::-webkit-scrollbar {
	display: none;
}

.project-gallery.project-carousel .project-carousel-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 205px;
	border: none;
	border-radius: 0;
	object-fit: cover;
	scroll-snap-align: start;
	cursor: zoom-in;
	transition: transform 0.25s ease;
}

.project-gallery.project-carousel .project-carousel-slide:hover {
	transform: scale(1.01);
}

.project-card--mobile
	.project-gallery.project-carousel
	.project-carousel-slide {
	object-fit: contain;
	background: linear-gradient(180deg, #f6f9ff, #eef3fb);
	padding: 0.4rem;
}

.project-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 1px solid rgba(19, 34, 58, 0.2);
	background: rgba(255, 255, 255, 0.9);
	color: var(--ink-700);
	box-shadow: 0 8px 18px rgba(19, 34, 58, 0.18);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease,
		opacity 0.2s ease;
}

.project-carousel-btn:hover {
	background: linear-gradient(135deg, #ffe9df, #dbf6f3);
	color: var(--ink-900);
	transform: translateY(-50%) scale(1.04);
}

.project-carousel-btn:disabled {
	opacity: 0.42;
	cursor: not-allowed;
	transform: translateY(-50%);
}

.project-carousel-btn--prev {
	left: 0.55rem;
}

.project-carousel-btn--next {
	right: 0.55rem;
}

.project-carousel-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.42rem;
	margin-top: 0.62rem;
}

.project-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: none;
	background: #bfd0e7;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		width 0.2s ease;
}

.project-carousel-dot.active {
	width: 20px;
	background: linear-gradient(90deg, var(--accent), var(--mint));
}

.achievements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.achievement-card {
	background: linear-gradient(180deg, #fff, #fff9ef);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 12px 24px rgba(19, 34, 58, 0.09);
	transition:
		transform 0.26s ease,
		box-shadow 0.26s ease;
}

.achievement-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 32px rgba(19, 34, 58, 0.13);
}

.achievement-img {
	width: 100%;
	height: 220px;
	background: linear-gradient(180deg, #f5f7fc, #ecf2fb);
	display: flex;
	align-items: center;
	justify-content: center;
}

.achievement-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.55rem;
	cursor: zoom-in;
}

.achievement-info {
	padding: 1rem;
	text-align: center;
}

.achievement-info h3 {
	font-size: 1.02rem;
	margin-bottom: 0.42rem;
	color: var(--ink-700);
}

.achievement-info p {
	font-size: 0.9rem;
	color: rgba(19, 34, 58, 0.82);
}

.contact-container {
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.contact-container > p {
	font-size: 1.03rem;
	color: rgba(19, 34, 58, 0.83);
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 0.9rem;
	margin-top: 1.2rem;
}

.social-link {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	font-size: 1.4rem;
	background: #ffffff;
	border: 1px solid var(--border);
	color: var(--ink-700);
	box-shadow: 0 10px 18px rgba(19, 34, 58, 0.08);
	transition:
		transform 0.25s ease,
		color 0.25s ease,
		background-color 0.25s ease;
}

.social-link:hover {
	transform: translateY(-4px);
	background: linear-gradient(135deg, #ffe8de, #ddf6f3);
	color: var(--ink-900);
}

.contact-details {
	margin-top: 1rem;
	display: grid;
	gap: 0.35rem;
	color: rgba(19, 34, 58, 0.84);
}

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 18, 31, 0.86);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.2rem;
	z-index: 2000;
}

.lightbox.open {
	display: flex;
}

.lightbox img {
	max-width: min(100%, 1120px);
	max-height: 90vh;
	border-radius: 14px;
	box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

footer {
	max-width: 1180px;
	margin: 1.35rem auto 0;
	background: linear-gradient(120deg, var(--ink-900), #264f74);
	color: #fff;
	text-align: center;
	padding: 1.6rem;
	border-radius: 18px;
	box-shadow: 0 16px 34px rgba(19, 34, 58, 0.24);
}

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(28px) scale(0.985);
	transition:
		opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
		transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
	transition-delay: calc(var(--reveal-index, 0) * 55ms);
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

@media (max-width: 1024px) {
	.navbar {
		top: 0.75rem;
	}

	.hero-metrics {
		grid-template-columns: repeat(2, minmax(140px, 1fr));
	}

	.about-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.about-highlights li {
		text-align: left;
	}
}

@media (max-width: 820px) {
	body {
		padding: 0.65rem;
	}

	.navbar {
		padding: 0.75rem 0.9rem;
	}

	.hamburger {
		display: block;
	}

	.nav-links {
		position: fixed;
		top: 74px;
		right: -110%;
		width: min(320px, calc(100% - 1.3rem));
		height: auto;
		max-height: calc(100vh - 100px);
		overflow-y: auto;
		padding: 1rem;
		gap: 0.42rem;
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.95);
		border: 1px solid rgba(18, 46, 78, 0.12);
		box-shadow: 0 18px 32px rgba(19, 34, 58, 0.2);
		flex-direction: column;
		transition: right 0.3s ease;
	}

	.nav-links.active {
		right: 0.65rem;
	}

	.hero {
		border-radius: 24px;
		align-items: center;
		text-align: center;
		padding: 2rem 1.3rem;
	}

	.hero-metrics {
		grid-template-columns: 1fr;
		max-width: 360px;
	}

	.hero-buttons {
		justify-content: center;
	}

	section {
		border-radius: 22px;
		padding: 1.5rem 1.1rem;
	}

	.section-intro,
	.tech-intro {
		font-size: 0.96rem;
	}

	.cv-buttons {
		justify-content: center;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.project-img,
	.project-img--mean,
	.project-img--next {
		height: 230px;
	}

	.project-img--mobile {
		height: 300px;
	}

	.project-gallery:not(.project-carousel) {
		grid-template-columns: repeat(2, 1fr);
	}

	.project-gallery.project-carousel .project-carousel-slide {
		height: 220px;
	}
}

@media (max-width: 560px) {
	.hero h1 {
		font-size: 2rem;
	}

	.btn {
		width: 100%;
	}

	.social-link {
		width: 48px;
		height: 48px;
		font-size: 1.25rem;
	}

	.project-gallery:not(.project-carousel) {
		grid-template-columns: 1fr 1fr;
	}

	.project-carousel-btn {
		width: 34px;
		height: 34px;
	}

	.project-gallery.project-carousel .project-carousel-slide {
		height: 245px;
	}

	footer {
		border-radius: 14px;
		padding: 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.reveal-on-scroll,
	.reveal-on-scroll.is-visible {
		opacity: 1;
		transform: none;
	}
}
