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

html {
	scroll-behavior: smooth;
}

:root {
	--bg: #0a0a0f;
	--bg-alt: #08080d;
	--surface: #12121a;
	--surface-hover: #1a1a26;
	--border: #1e1e2e;
	--text: #e4e4e7;
	--text-muted: #8b8b9e;
	--text-dim: #5a5a72;
	--accent: #6366f1;
	--accent-hover: #818cf8;
	--accent-glow: rgba(99, 102, 241, 0.12);
	--green: #22c55e;
	--radius: 12px;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* --- Nav --- */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(10, 10, 15, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.nav-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0.8rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-logo {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--accent);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.nav-links {
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.nav-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: color 0.2s;
}

.nav-links a:hover {
	color: var(--text);
}

.nav-cta {
	background: var(--accent) !important;
	color: #fff !important;
	padding: 0.4rem 1rem;
	border-radius: 6px;
	font-size: 0.85rem !important;
}

.nav-cta:hover {
	background: var(--accent-hover) !important;
}

/* --- Hero --- */
.hero {
	padding: 8rem 1.5rem 4rem;
	text-align: center;
}

.hero-content {
	max-width: 640px;
	margin: 0 auto;
}

.hero-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--border);
	margin-bottom: 1.5rem;
}

.hero h1 {
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: 0.3rem;
}

.hero-title {
	color: var(--accent);
	font-size: 1.1rem;
	font-weight: 500;
	margin-bottom: 1.2rem;
}

.hero-bio {
	color: var(--text-muted);
	font-size: 0.98rem;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.hero-links {
	display: flex;
	gap: 0.6rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 1.3rem;
	border-radius: 8px;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: all 0.2s;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
}

.btn-primary:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
}

.btn-outline {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-outline:hover {
	border-color: var(--accent);
	background: var(--accent-glow);
}

.btn-sm {
	padding: 0.5rem 1rem;
	font-size: 0.82rem;
}

/* --- Stack Pills --- */
.stack-section {
	padding: 2rem 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.stack-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.stack-pills span {
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 0.35rem 0.8rem;
	border-radius: 6px;
	font-size: 0.78rem;
	color: var(--text-muted);
	font-family: 'JetBrains Mono', monospace;
}

/* --- Sections --- */
.section {
	padding: 5rem 0;
	scroll-margin-top: 60px;
}

.section-dark {
	background: var(--bg-alt);
}

.section-title {
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 2.5rem;
	text-align: center;
}

/* --- Project Cards --- */
.project-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem;
	margin-bottom: 1.5rem;
	transition: border-color 0.3s, transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
	border-color: rgba(99, 102, 241, 0.4);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px var(--accent-glow);
}

.project-card.featured {
	border-color: var(--accent);
	background: linear-gradient(135deg, var(--surface) 50%, rgba(99, 102, 241, 0.18));
	box-shadow: 0 4px 24px rgba(99, 102, 241, 0.12);
}

.project-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	background: var(--accent-glow);
	padding: 0.25rem 0.7rem;
	border-radius: 4px;
	margin-bottom: 0.8rem;
}

.project-card h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 0.7rem;
}

.project-desc {
	color: var(--text-muted);
	font-size: 0.92rem;
	line-height: 1.65;
	margin-bottom: 1rem;
}

.project-features {
	list-style: none;
	margin-bottom: 1rem;
}

.project-features li {
	position: relative;
	padding-left: 1.2rem;
	margin-bottom: 0.4rem;
	font-size: 0.88rem;
	color: var(--text-muted);
}

.project-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
}

.project-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.project-stack span {
	font-size: 0.72rem;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	background: rgba(99, 102, 241, 0.08);
	color: var(--accent);
	font-family: 'JetBrains Mono', monospace;
}

.project-links {
	display: flex;
	gap: 0.5rem;
}

.project-images {
	margin-bottom: 1rem;
	border-radius: 8px;
	overflow: hidden;
}

.project-images img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	object-position: center;
	border-radius: 8px;
}

/* --- Code Block --- */
.code-block {
	background: #0d0d14;
	border: 1px solid var(--border);
	border-radius: 8px;
	margin-bottom: 1rem;
	overflow: hidden;
}

.code-title {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	color: var(--text-dim);
	border-bottom: 1px solid var(--border);
	font-family: 'JetBrains Mono', monospace;
}

.code-block pre {
	padding: 1rem;
	overflow-x: auto;
	font-size: 0.78rem;
	line-height: 1.5;
}

.code-block code {
	font-family: 'JetBrains Mono', monospace;
	color: #c4c4d8;
}

/* --- Achievements --- */
.achievement-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem;
	margin-bottom: 2rem;
}

.achievement-card h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 0.7rem;
	color: var(--accent);
}

.achievement-card p {
	color: var(--text-muted);
	font-size: 0.92rem;
	line-height: 1.65;
	margin-bottom: 0.5rem;
}

.achievement-team {
	font-size: 0.85rem !important;
	font-style: italic;
	color: var(--text-dim) !important;
}

.achievement-images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1.2rem;
}

.achievement-images img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	object-position: top;
	border-radius: 8px;
}

/* --- Certs Grid --- */
.certs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.cert-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	transition: border-color 0.2s, transform 0.2s;
}

.cert-card:hover {
	border-color: var(--accent);
	transform: scale(1.02);
}

.cert-card img {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.cert-card span:first-of-type {
	font-size: 0.82rem;
	font-weight: 600;
}

.cert-date {
	font-size: 0.75rem;
	color: var(--text-dim);
}

/* --- Footer --- */
.footer {
	padding: 3rem 0;
	text-align: center;
	border-top: 1px solid var(--border);
}

.footer p {
	color: var(--text-dim);
	font-size: 0.82rem;
	margin-bottom: 0.5rem;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
}

.footer-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.82rem;
}

.footer-links a:hover {
	color: var(--accent);
}

/* --- Live Demo dot --- */
.btn-live {
	position: relative;
}

.btn-live::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	display: inline-block;
	margin-right: 4px;
	flex-shrink: 0;
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
	50%       { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* --- Project note (no-link explanation) --- */
.project-note {
	font-size: 0.78rem;
	color: var(--text-dim);
	font-style: italic;
	margin-top: 0.25rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
	.hero h1 {
		font-size: 1.8rem;
	}

	.hero {
		padding: 6rem 1rem 3rem;
	}

	.project-card {
		padding: 1.5rem;
	}

	.achievement-images {
		grid-template-columns: 1fr;
	}

	.certs-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.nav-links {
		gap: 0.8rem;
	}

	.nav-links a {
		font-size: 0.8rem;
	}
}