:root {
	--card: rgba(255, 255, 255, 0.76);
	--text: #1c2b40;
	--text-soft: #5f7289;
	--primary: #148fd1;
	--primary-dark: #0f78b1;
	--line: #c5dff3;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 1200px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	background: linear-gradient(150deg, #eef7ff 0%, #f4f9ff 40%, #edf3ff 70%, #f0f8ff 100%);
}

/* ── Particle canvas background ─────────────────── */
#bgCanvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

/* keep all real content above the canvas */
header, main, section, footer {
	position: relative;
	z-index: 1;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	width: 100%;
	margin: 0;
	padding: 20px 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid rgba(20, 143, 209, 0.10);
	backdrop-filter: blur(12px);
	box-shadow: 0 4px 16px rgba(20, 143, 209, 0.06);
}

.menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	gap: 34px;
}

.menu a {
	position: relative;
	text-decoration: none;
	font-size: 1.33rem;
	font-weight: 500;
	color: #2f4156;
	transition: color 0.2s ease;
}

.menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -8px;
	width: 0;
	height: 2px;
	background: var(--primary);
	border-radius: 2px;
	transition: width 0.22s ease;
}

.menu a:hover {
	color: var(--primary);
}

.menu a:hover::after,
.menu a.active::after {
	width: 100%;
}

.menu a.active {
	color: var(--primary);
}

.hero {
	max-width: 1320px;
	margin: 0 auto;
	min-height: calc(100vh - 94px);
	padding: 56px 16px 70px;
	display: flex;
	align-items: center;
	text-align: left;
}

.hero__content {
	width: 100%;
	max-width: 1320px;
	padding-top: 0;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
	column-gap: 34px;
	align-items: center;
}

.hero__welcome {
	grid-column: 2;
	grid-row: 1 / 6;
	justify-self: end;
	align-self: center;
	width: 470px;
	height: 345px;
	margin: 24px 0 0;
	position: relative;
	pointer-events: auto;
	cursor: pointer;
	animation: rise 0.6s ease both;
}

.hero__welcome dotlottie-player {
	display: block;
	width: 100%;
	height: 100%;
}

.hero__intro {
	grid-column: 1;
	margin: 0 0 10px;
	font-size: 1.5rem;
	font-weight: 600;
	color: #5e7390;
	animation: rise 0.65s ease both;
}

.hero__title {
	grid-column: 1;
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 6.4rem;
	line-height: 0.96;
	letter-spacing: -0.02em;
	animation: rise 0.8s ease both;
}

.hero__role {
	grid-column: 1;
	margin: 16px 0 0;
	font-size: 3.1rem;
	font-weight: 700;
	background: linear-gradient(90deg, #5f60de, #1199df);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: rise 1s ease both;
}

.hero__description {
	grid-column: 1;
	margin: 26px 0 0;
	max-width: 760px;
	font-size: 1.35rem;
	line-height: 1.55;
	color: var(--text-soft);
	animation: rise 1.2s ease both;
}

.hero__actions {
	grid-column: 1;
	margin-top: 40px;
	display: flex;
	justify-content: flex-start;
	gap: 18px;
	animation: rise 1.35s ease both;
}

.hero__socials {
	grid-column: 1;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	justify-content: flex-start;
	gap: 34px;
	animation: rise 1.45s ease both;
}

.hero__socials a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: 500;
	color: #6d7f96;
	transition: color 0.2s ease;
}

.hero__socials a:hover {
	color: var(--primary);
}

.hero__socials i {
	font-size: 1.15em;
	width: 1.35em;
	text-align: center;
	flex: 0 0 auto;
}

.hero__intro,
.hero__title,
.hero__role,
.hero__description,
.hero__actions,
.hero__socials {
	position: relative;
	left: -26px;
}

.btn {
	text-decoration: none;
	font-size: 1.42rem;
	font-weight: 700;
	padding: 16px 34px;
	border-radius: 12px;
	border: 2px solid transparent;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.btn--solid {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 12px 28px rgba(20, 143, 209, 0.24);
}

.btn--solid:hover {
	background: var(--primary-dark);
}

.btn--outline {
	color: var(--primary);
	border-color: var(--primary);
	background: rgba(255, 255, 255, 0.58);
}

.btn--outline:hover {
	background: rgba(20, 143, 209, 0.08);
}

.section {
	max-width: 1120px;
	margin: 0 auto;
	padding: 90px 24px 10px;
}

.section--projects,
.section--courses {
	max-width: 1320px;
}

.section__head {
	text-align: center;
	margin-bottom: 34px;
}

.section__title {
	margin: 10px 0 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 3rem;
}

.about__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 34px;
	align-items: center;
}

.about__photo-wrap {
	order: 2;
	justify-self: end;
	width: 82%;
	max-width: 360px;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/* blob gradient backdrop */
.about__photo-wrap::before {
	content: '';
	position: absolute;
	inset: -8% -6%;
	background: linear-gradient(135deg, rgba(20, 143, 209, 0.22) 0%, rgba(197, 223, 243, 0.35) 50%, rgba(255,255,255,0) 100%);
	border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
	z-index: 0;
	animation: blobMorph 8s ease-in-out infinite;
}

@keyframes blobMorph {
	0%, 100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
	33%       { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
	66%       { border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%; }
}

.about__content {
	order: 1;
}

.about__photo-wrap img {
	display: block;
	width: 100%;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 12px 28px rgba(20, 143, 209, 0.20));
}

.about__content p {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.7;
	color: var(--text-soft);
}

.about__content p + p {
	margin-top: 16px;
}

.about__stats {
	margin-top: 26px;
	display: flex;
	gap: 14px;
}

.about__stats article {
	flex: 1;
	padding: 18px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--line);
	text-align: center;
}

.about__stats h3 {
	margin: 0;
	font-size: 2rem;
	font-family: 'Space Grotesk', sans-serif;
	color: var(--primary);
}

.about__stats p {
	margin: 6px 0 0;
	font-size: 1rem;
}

.pill-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.pill-grid span {
	padding: 12px 20px;
	font-size: 1.06rem;
	font-weight: 600;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--line);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill-grid span:hover {
	transform: translateY(-4px);
	background: var(--primary);
	color: #ffffff;
	border-color: var(--primary);
	box-shadow: 0 10px 20px rgba(20, 143, 209, 0.24);
}

.section--skills {
	max-width: 1500px;
	padding-top: 64px;
	padding-bottom: 26px;
}

.section--skills .section__head {
	margin-bottom: 30px;
}

.section--skills .section__title {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 3rem;
}

.skills-grid {
	max-width: 1450px;
	margin: 0 auto;
	gap: 18px 16px;
	justify-content: center;
	align-content: center;
}

.skills-grid span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 12px 28px;
	white-space: nowrap;
	font-size: 1.06rem;
	line-height: 1;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	align-items: start;
}

.project-card {
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid var(--line);
	box-shadow: 0 8px 28px rgba(102, 150, 183, 0.1);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
	border-color: #4b7592;
	box-shadow: 0 20px 48px rgba(20, 143, 209, 0.16);
	transform: translateY(-4px);
}

.project-card__img-wrap {
	width: 100%;
	overflow: hidden;
	max-height: 230px;
	position: relative;
}

.project-card__img-wrap img {
	display: block;
	width: 100%;
	height: 230px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.project-card:hover .project-card__img-wrap img {
	transform: scale(1.06);
}

.project-card__body {
	padding: 22px 22px 24px;
	border-top: 1px solid #dbeaf6;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.project-card__title {
	margin: 0;
	font-size: 1.45rem;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	color: var(--text);
	transition: color 0.2s ease;
}

.project-card:hover .project-card__title {
	color: var(--primary);
}

.project-card__desc {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-soft);
	min-height: 7.2em;
}

.project-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.project-card__tags span {
	padding: 5px 14px;
	font-size: 0.88rem;
	font-weight: 500;
	border-radius: 999px;
	border: 1px solid #c5ddf3;
	color: var(--text-soft);
	background: #f2f8fd;
}

.project-card__actions {
	display: flex;
	gap: 12px;
	margin-top: 10px;
}

.pcard-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.pcard-btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

.pcard-btn--demo {
	background: var(--primary);
	color: #ffffff;
}

.pcard-btn--github {
	background: #1c2b40;
	color: #ffffff;
}

/* ── Certification Carousel ────────── */
.cert-carousel {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cert-arrow--first {
	width: 34px;
	height: 34px;
	font-size: 0.72rem;
	opacity: 0.9;
}

.cert-viewport {
	flex: 1;
	overflow: hidden;
	padding: 6px;
}

.cert-track {
	display: flex;
	gap: 24px;
	width: 100%;
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card {
	flex-shrink: 0;
	width: calc((100% - 48px) / 3);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(20,143,209,0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover {
	border-color: #4b7592;
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(20,143,209,0.14);
}

.cert-card__img {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.cert-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cert-card:hover .cert-card__img img {
	transform: scale(1.05);
}

.cert-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cert-card__title {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--primary);
	font-family: 'Space Grotesk', sans-serif;
	line-height: 1.35;
}

.cert-card__desc {
	margin: 0;
	font-size: 0.94rem;
	color: var(--text-soft);
	line-height: 1.55;
}

.cert-card__meta {
	display: flex;
	justify-content: flex-end;
	font-size: 0.87rem;
	color: var(--text-soft);
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.cert-card__meta span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.cert-arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	background: var(--card);
	color: var(--primary);
	font-size: 0.95rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}

.cert-arrow:hover {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 4px 14px rgba(20,143,209,0.25);
}

.cert-dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 22px;
}

.cert-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line);
	border: none;
	cursor: pointer;
	transition: background 0.3s, transform 0.3s;
	padding: 0;
}

.cert-dot.active {
	background: var(--primary);
	transform: scale(1.35);
}

.contact {
	padding-bottom: 100px;
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
}

.contact__lottie {
	display: flex;
	justify-content: center;
	align-items: center;
}

.contact__form-wrap {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 255, 0.88));
	border: 1px solid rgba(20, 143, 209, 0.16);
	border-radius: 24px;
	padding: 38px 36px;
	box-shadow: 0 12px 34px rgba(20, 143, 209, 0.09);
	backdrop-filter: blur(8px);
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cform__group {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-bottom: 18px;
}

.cform__label {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--primary-dark);
}

.cform__input {
	width: 100%;
	padding: 14px 18px;
	border: 1.5px solid rgba(20, 143, 209, 0.18);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--text);
	font-size: 1rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	outline: none;
	transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s, background 0.22s;
	box-sizing: border-box;
}

.cform__input::placeholder {
	color: #8a9bb0;
}

.cform__input:focus {
	border-color: var(--primary);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(20, 143, 209, 0.12);
	transform: translateY(-1px);
}

.cform__textarea {
	resize: vertical;
	min-height: 138px;
}

.cform__send {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(90deg, var(--primary), var(--primary-dark));
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	font-family: 'Plus Jakarta Sans', sans-serif;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: opacity 0.22s, transform 0.22s, box-shadow 0.22s, filter 0.22s;
	box-shadow: 0 10px 24px rgba(20, 143, 209, 0.26);
}

.cform__send:hover {
	transform: translateY(-2px);
	filter: brightness(1.02);
	box-shadow: 0 14px 28px rgba(20, 143, 209, 0.32);
}

.cform__status {
	min-height: 1.25rem;
	margin: 14px 2px 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--text-soft);
}

.cform__status--info {
	color: var(--primary-dark);
}

.cform__status--warn {
	color: #c06a00;
}

.cform__status--success {
	color: #1d7f4a;
}

.site-footer {
	margin-top: 56px;
	padding: 0;
	background:
		radial-gradient(circle at top left, rgba(20, 143, 209, 0.18), transparent 40%),
		linear-gradient(135deg, #cce7f8 0%, #d6eeff 40%, #c8e3f5 70%, #d2ecff 100%);
	border-top: 1px solid rgba(20, 143, 209, 0.22);
}

.site-footer__inner {
	max-width: none;
	margin: 0 auto;
	padding: 52px 56px 28px;
}

.site-footer__intro {
	text-align: center;
	max-width: 780px;
	margin: 0 auto 34px;
}

.site-footer__name {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 2.7rem;
	color: var(--primary-dark);
}

.site-footer__tagline {
	margin: 14px 0 0;
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--text-soft);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 44px;
}

.footer-card {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.footer-card h3 {
	margin: 0 0 18px;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.5rem;
	color: var(--text);
}

.footer-links,
.footer-meta {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.footer-links a,
.footer-meta a,
.footer-meta span {
	text-decoration: none;
	font-size: 1.02rem;
	font-weight: 500;
	color: var(--text-soft);
	transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-meta a:hover {
	color: var(--primary);
	transform: translateX(2px);
}

.footer-meta li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text-soft);
}

.footer-meta i {
	width: 18px;
	text-align: center;
	color: var(--primary);
}

.footer-socials {
	display: flex;
	gap: 14px;
	margin-bottom: 18px;
}

.footer-socials a {
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 1.5rem;
	color: var(--primary);
	background: transparent;
	border: 0;
	transition: transform 0.22s ease, color 0.22s ease;
}

.footer-socials a:hover {
	transform: translateY(-3px);
	color: var(--primary-dark);
}

.footer-note {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-soft);
}

.site-footer__bottom {
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid rgba(20, 143, 209, 0.14);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.site-footer__bottom p {
	margin: 0;
	font-size: 0.98rem;
	color: var(--text-soft);
}

.footer-credit {
	text-decoration: none;
	font-weight: 700;
	color: var(--primary-dark);
	transition: color 0.2s ease;
}

.footer-credit:hover {
	color: var(--primary);
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Robot Popup ─────────────────────────────────── */
.robot-popup {
	position: absolute;
	bottom: calc(100% - 55px);
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 18px;
	padding: 20px 22px 18px;
	max-width: 300px;
	width: max-content;
	box-shadow: 0 12px 36px rgba(20, 143, 209, 0.18);
	z-index: 100;
	animation: rise 0.3s ease both;
}

.robot-popup::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 34px;
	transform: none;
	border: 10px solid transparent;
	border-top-color: #fff;
	border-bottom: 0;
}

.robot-popup[hidden] {
	display: none;
}

.robot-popup__msg {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
}

.robot-popup__msg a {
	color: var(--primary);
	font-weight: 700;
	text-decoration: none;
}

.robot-popup__msg a:hover {
	text-decoration: underline;
}

.robot-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: var(--text-soft);
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.robot-popup__close:hover {
	color: var(--primary);
}

#robotClickTarget {
	position: absolute;
	inset: 0;
	z-index: 5;
}

