* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	margin: 0;
	font-family: 'Inter', sans-serif;
	background: #050505;
	color: #0f172a;
}

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

img {
	max-width: 100%;
	display: block;
}

.page-shell {
	width: 100%;
}

.hero {
	min-height: 100vh;
	padding: 72px 24px 260px;
	background:
		radial-gradient(circle at 18% 20%, rgba(31, 185, 67, 0.24), transparent 34%),
		linear-gradient(180deg, #041104 0%, #031103 42%, #050505 42%, #050505 100%);
	color: #dbe4db;
}

.hero__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
	gap: 64px;
	align-items: center;
	min-height: calc(100vh - 192px);
}

.hero__copy h1 {
	margin: 0;
	font-size: clamp(3.5rem, 8vw, 6.25rem);
	line-height: 0.95;
	letter-spacing: -0.06em;
	font-weight: 800;
	color: #f3f7f4;
}

.hero__copy h1 span {
	display: inline-block;
	color: #9cad9f;
}

.hero__copy p {
	max-width: 440px;
	margin: 24px 0 0;
	color: rgba(220, 230, 221, 0.72);
	font-size: 1rem;
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn--primary {
	background: #f5f7f5;
	color: #111827;
	border-color: #f5f7f5;
}

.btn--secondary {
	background: transparent;
	color: #f2f5f2;
}

.btn--pill {
	border-radius: 999px;
	padding-inline: 28px;
	background: #182036;
	color: #fff;
	border-color: #182036;
}

.hero__panel {
	justify-self: end;
	width: min(100%, 420px);
	padding: 12px;
	background: rgba(10, 27, 10, 0.72);
	border: 1px solid rgba(69, 112, 67, 0.55);
	box-shadow: 0 0 0 1px rgba(44, 75, 42, 0.35), 0 30px 80px rgba(0, 0, 0, 0.45);
}

.window-dots {
	display: flex;
	gap: 6px;
	padding: 2px 2px 12px;
}

.window-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.window-dots span:nth-child(1) {
	background: #ff5f57;
}

.window-dots span:nth-child(2) {
	background: #febc2e;
}

.window-dots span:nth-child(3) {
	background: #28c840;
}

.code-window {
	min-height: 270px;
	padding: 18px 20px 20px;
	background: rgba(10, 27, 10, 0.46);
	border: 1px solid rgba(94, 149, 90, 0.34);
	color: #2cca34;
	font-size: 0.82rem;
	line-height: 2;
	font-family: 'Courier New', monospace;
}

.code-window p {
	margin: 0;
}

.code-window span {
	color: #68f070;
}

.skills,
.projects,
.contact {
	background: #f4f6f7;
	color: #111827;
	padding: 104px 24px;
	scroll-snap-align: start;
}

.skills {
	padding-top: 128px;
	padding-bottom: 180px;
}

.skills,
.projects,
.contact,
.footer {
	border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.section-heading {
	max-width: 980px;
	margin: 0 auto 54px;
	text-align: center;
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.05;
	letter-spacing: -0.05em;
	font-weight: 800;
}

.section-heading--compact h2 {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-heading p {
	margin: 14px 0 0;
	color: rgba(17, 24, 39, 0.58);
}

.section-tabs {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 18px;
	font-size: 0.76rem;
	color: rgba(17, 24, 39, 0.45);
	font-weight: 700;
}

.section-tab {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.section-tab:hover {
	color: #111827;
	transform: translateY(-1px);
}

.section-tab.is-active {
	color: #111827;
}

.skill-grid {
	max-width: 1160px;
	margin: 44px auto 0;
	display: block;
}

.skill-panel {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.skill-panel[hidden] {
	display: none !important;
}

.skill-card {
	min-height: 68px;
	padding: 12px 14px 14px;
	display: grid;
	place-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid rgba(17, 24, 39, 0.1);
	border-radius: 11px;
	color: #1f2937;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.skill-card i {
	font-size: 1.55rem;
	color: #1f2937;
}

.skill-card span {
	font-size: 0.84rem;
	font-weight: 600;
}

.projects {
	padding-top: 140px;
	padding-bottom: 140px;
}

.project-grid {
	max-width: 1160px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
}

.project-card {
	background: #fff;
	border: 1px solid rgba(17, 24, 39, 0.1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.project-card__image {
	height: 200px;
	background: linear-gradient(135deg, #d9dedd 0%, #a9b5b1 100%);
	position: relative;
}

.project-card__image--dark {
	background: linear-gradient(135deg, #0d1727 0%, #13213a 100%);
}

.project-card__image--empty {
	position: relative;
}

.project-card__image--empty::after {
	content: '';
	position: absolute;
	inset: 18px;
	border: 1px dashed rgba(255, 255, 255, 0.16);
	opacity: 0.18;
}

/* Image inside project card */
.project-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 260ms ease;
}

.project-card__linkbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 1px solid rgba(17,24,39,0.06);
	border-radius: 8px;
	color: rgba(17,24,39,0.6);
}

.project-card__linkbtn img {
	width: 16px;
	height: 16px;
	display: block;
}

.project-card__title-row {
	align-items: center;
}

.project-card__title-row .project-card__linkbtn {
	margin-left: auto;
}

/* Staggered overlap effect so images feel like they overlap slightly (Figma-style) */
.project-card__image--dark img {
	object-position: top center;
}

.project-card__image img:hover {
	transform: none;
}

.project-card__body {
	padding: 16px 14px 18px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.project-card__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.project-card h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
}

.project-card__icon {
	color: rgba(17, 24, 39, 0.54);
	font-size: 1rem;
}

.project-card p {
	margin: 10px 0 0;
	color: rgba(17, 24, 39, 0.62);
	font-size: 0.86rem;
	line-height: 1.6;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.tag-list span {
	padding: 4px 9px;
	border: 1px solid rgba(17, 24, 39, 0.08);
	background: #f7f8fa;
	color: rgba(17, 24, 39, 0.7);
	font-size: 0.72rem;
}

.centered-action {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

.contact {
	padding-top: 120px;
	padding-bottom: 120px;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 72px;
	align-items: start;
}

.contact__copy {
	max-width: 420px;
	justify-self: end;
	padding-top: 18px;
}

.contact__copy h2 {
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	line-height: 1.05;
	letter-spacing: -0.06em;
}

.contact__copy p {
	margin: 14px 0 0;
	color: rgba(17, 24, 39, 0.58);
	line-height: 1.6;
}

.contact__form {
	max-width: 520px;
	width: 100%;
	justify-self: start;
	display: grid;
	gap: 22px;
}

.contact__form label {
	display: block;
}

.contact__form span {
	display: block;
	margin-bottom: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(17, 24, 39, 0.72);
}

.contact__form input,
.contact__form textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid rgba(17, 24, 39, 0.16);
	background: transparent;
	padding: 0 0 12px;
	font: inherit;
	color: #111827;
	outline: none;
}

.contact__form textarea {
	resize: vertical;
	min-height: 100px;
}

.contact__recaptcha {
	width: 100%;
	max-width: 304px;
	min-height: 78px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.contact__recaptcha > div {
	transform-origin: 0 0;
}

.contact__status {
	min-height: 1.2em;
	margin: -8px 0 0;
	font-size: 0.9rem;
	line-height: 1.4;
	color: rgba(17, 24, 39, 0.68);
}

.contact__status.is-success {
	color: #0f766e;
}

.contact__status.is-error {
	color: #b91c1c;
}

.contact__form button:disabled {
	opacity: 0.7;
	cursor: wait;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
	color: rgba(17, 24, 39, 0.5);
}

.footer {
	background: #050505;
	color: #e5e7eb;
	padding: 36px 24px 46px;
	scroll-snap-align: start;
}

.footer__top,
.footer__bottom {
	max-width: 1160px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	gap: 24px;
}

.footer__top {
	align-items: flex-start;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.footer__brand {
	display: inline-block;
	margin-bottom: 10px;
	color: #f5f7f5;
	font-weight: 800;
}

.footer__brand-mark {
	color: #2cca34;
}

.footer__top p,
.footer__bottom p {
	margin: 0;
	color: rgba(226, 232, 240, 0.56);
	font-size: 0.84rem;
	line-height: 1.6;
}

.footer__socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
}

.footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(148, 163, 184, 0.26);
	background: rgba(255, 255, 255, 0.02);
	color: #cbd5e1;
	font-size: 1rem;
}

.footer__social img {
	width: 20px;
	height: 20px;
	display: block;
}

.footer__social--github {
	color: #f5f7f5;
}

.footer__social--linkedin {
	color: #f5f7f5;
}

.footer__social--discord,
.footer__social--dribbble {
	color: #f5f7f5;
}

.footer__bottom {
	padding-top: 18px;
	align-items: center;
}

.status-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	margin-right: 8px;
	background: #2cca34;
}

@media (max-width: 1024px) {
	.hero__inner,
	.contact {
		grid-template-columns: 1fr;
	}

	.hero__panel,
	.contact__copy,
	.contact__form {
		justify-self: stretch;
	}

	.contact__recaptcha {
		max-width: 100%;
	}

	.skill-panel {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.skill-card .skill-icon {
		width: 1.55rem;
		height: 1.55rem;
		display: inline-block;
		vertical-align: middle;
		margin-right: 8px;
	}

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

@media (max-width: 720px) {
	.hero {
		padding-top: 48px;
		padding-bottom: 160px;
	}

	.hero__inner {
		gap: 36px;
		min-height: auto;
	}

	.hero__copy h1 {
		font-size: clamp(2.8rem, 14vw, 4.4rem);
	}

	.hero,
	.skills,
	.projects,
	.contact,
	.footer {
		scroll-snap-align: unset;
	}

	.skills,
	.projects,
	.contact {
		padding: 84px 18px;
	}

	.skills {
		padding-top: 110px;
		padding-bottom: 132px;
	}

	.projects {
		padding-top: 116px;
		padding-bottom: 116px;
	}

	.contact {
		padding-top: 96px;
		padding-bottom: 96px;
	}

	.contact__recaptcha > div {
		transform: scale(0.92);
	}

	.skill-panel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer__top,
	.footer__bottom {
		flex-direction: column;
	}

	.footer__socials {
		justify-content: flex-start;
	}
}
