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

:root {
	--bg: #0a0a0f;
	--surface: #13131a;
	--surface2: #1c1c28;
	--border: rgba(255, 255, 255, 0.08);
	--text: #f0f0f5;
	--muted: #8888a8;
	--accent1: #7c3aed;
	--accent2: #06b6d4;
	--accent3: #f59e0b;
	--grad: linear-gradient(135deg, #7c3aed, #06b6d4);
	--grad2: linear-gradient(135deg, #f59e0b, #ef4444);
	--nav-bg: rgba(10, 10, 15, 0.8);
}

[data-theme='light'] {
	--bg: #f5f5fa;
	--surface: #ffffff;
	--surface2: #eaeaf3;
	--border: rgba(0, 0, 0, 0.08);
	--text: #0a0a0f;
	--muted: #55556e;
	--nav-bg: rgba(245, 245, 250, 0.85);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}

/* ── Nav ─────────────────────────────────────────── */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 2.5rem;
	background: var(--nav-bg);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}

.nav-logo {
	font-weight: 900;
	font-size: 1.2rem;
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

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

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

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

/* ── Theme toggle ────────────────────────────────── */
.theme-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: 100px;
	padding: 0.3rem 0.85rem;
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--muted);
	transition:
		color 0.2s,
		border-color 0.2s,
		background 0.2s;
}

.theme-toggle:hover {
	color: var(--text);
	border-color: rgba(124, 58, 237, 0.4);
}

.theme-toggle svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────── */
#hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 8rem 2rem 4rem;
	position: relative;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.35;
	animation: float 8s ease-in-out infinite;
}

.blob-1 {
	width: 500px;
	height: 500px;
	background: var(--accent1);
	top: -100px;
	left: -150px;
	animation-delay: 0s;
}

.blob-2 {
	width: 400px;
	height: 400px;
	background: var(--accent2);
	bottom: -80px;
	right: -100px;
	animation-delay: 3s;
}

.blob-3 {
	width: 300px;
	height: 300px;
	background: var(--accent3);
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.2;
	animation-delay: 5s;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-30px) scale(1.05);
	}
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
}

.hero-badge {
	display: inline-block;
	padding: 0.4rem 1rem;
	border-radius: 100px;
	border: 1px solid rgba(124, 58, 237, 0.4);
	background: rgba(124, 58, 237, 0.1);
	color: #a78bfa;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

.hero-title {
	font-size: clamp(2.8rem, 8vw, 6rem);
	font-weight: 900;
	line-height: 1.05;
	margin-bottom: 1.5rem;
}

.hero-title .name {
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: clamp(1rem, 2.5vw, 1.35rem);
	color: var(--muted);
	max-width: 600px;
	margin: 0 auto 2.5rem;
}

.hero-ctas {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 2rem;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}

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

.btn-primary {
	background: var(--grad);
	color: #fff;
	border: none;
	box-shadow: 0 4px 30px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
	box-shadow: 0 8px 40px rgba(124, 58, 237, 0.55);
}

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

.btn-outline:hover {
	border-color: rgba(255, 255, 255, 0.25);
	background: var(--surface);
}

.scroll-indicator {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted);
	font-size: 0.75rem;
	animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
	width: 20px;
	height: 20px;
}

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

/* ── Sections shared ─────────────────────────────── */
section {
	padding: 6rem 2rem;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
}

.section-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent2);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.section-label::before {
	content: '';
	display: block;
	width: 24px;
	height: 2px;
	background: var(--accent2);
	border-radius: 2px;
}

.section-title {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 800;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.section-desc {
	color: var(--muted);
	max-width: 540px;
	margin-bottom: 3.5rem;
	font-size: 1.05rem;
}

/* ── About ───────────────────────────────────────── */
#about {
	background: var(--surface);
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-avatar-wrap {
	position: relative;
	display: flex;
	justify-content: center;
}

.avatar-ring {
	position: absolute;
	inset: -12px;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		var(--accent1),
		var(--accent2),
		var(--accent3),
		var(--accent1)
	);
	z-index: 0;
}

.avatar-inner {
	position: relative;
	z-index: 1;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: var(--surface2);
	border: 4px solid var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 6rem;
}

.about-text p {
	color: var(--muted);
	margin-bottom: 1.25rem;
	font-size: 1.05rem;
}

.about-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.stat-card {
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.25rem;
	text-align: center;
}

.stat-num {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 0.4rem;
}

.stat-heading {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.5;
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.15rem;
}

.stat-label {
	font-size: 0.8rem;
	color: var(--muted);
}

/* ── Projects ────────────────────────────────────── */
#projects {
	background: var(--bg);
}

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

.project-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 2rem;
	transition:
		transform 0.25s,
		border-color 0.25s,
		box-shadow 0.25s;
	position: relative;
	overflow: hidden;
}

.project-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
}

.project-card.c1::before {
	background: var(--grad);
}
.project-card.c2::before {
	background: var(--grad2);
}
.project-card.c3::before {
	background: linear-gradient(90deg, var(--accent2), #a78bfa);
}
.project-card.c4::before {
	background: linear-gradient(90deg, #10b981, var(--accent2));
}

.project-card:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-icon {
	font-size: 2.5rem;
	margin-bottom: 1.25rem;
}

.project-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 0.6rem;
}

.project-desc {
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
	line-height: 1.7;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.tag {
	padding: 0.25rem 0.75rem;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--surface2);
	border: 1px solid var(--border);
	color: var(--muted);
}

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

.project-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	padding: 0.4rem 0.9rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	transition:
		color 0.2s,
		border-color 0.2s;
}

.project-link:hover {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.25);
}

/* ── Skills ──────────────────────────────────────── */
#skills {
	background: var(--surface);
}

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

.skill-category {
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 1.75rem;
}

.skill-category-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.skill-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.skill-pill {
	padding: 0.4rem 0.9rem;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 600;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	transition:
		border-color 0.2s,
		background 0.2s;
}

.skill-pill:hover {
	border-color: var(--accent1);
	background: rgba(124, 58, 237, 0.1);
	color: #a78bfa;
}

/* ── Experience ──────────────────────────────────── */
#experience {
	background: var(--bg);
}

.timeline {
	position: relative;
	padding-left: 2.5rem;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 0.6rem;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(
		to bottom,
		var(--accent1),
		var(--accent2),
		transparent
	);
}

.timeline-item {
	position: relative;
	margin-bottom: 3rem;
}

.timeline-dot {
	position: absolute;
	left: -2.05rem;
	top: 0.35rem;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--grad);
	border: 3px solid var(--bg);
	box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.timeline-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.6rem;
	flex-wrap: wrap;
}

.timeline-period {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--accent2);
	background: rgba(6, 182, 212, 0.1);
	padding: 0.2rem 0.7rem;
	border-radius: 100px;
	border: 1px solid rgba(6, 182, 212, 0.2);
}

.timeline-role {
	font-size: 1.1rem;
	font-weight: 700;
}

.timeline-company {
	color: var(--muted);
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
}

.timeline-desc {
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.75;
}

.timeline-desc li {
	margin-bottom: 0.4rem;
	padding-left: 1rem;
	position: relative;
}
.timeline-desc li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--accent1);
}

/* ── Contact ─────────────────────────────────────── */
#contact {
	background: var(--surface);
}

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

.contact-inner .section-label {
	justify-content: center;
}
.contact-inner .section-label::before {
	display: none;
}

.contact-inner .section-title {
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.contact-inner p {
	color: var(--muted);
	font-size: 1.05rem;
	margin-bottom: 2.5rem;
}

.contact-links {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9rem 1.75rem;
	border-radius: 14px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--border);
	color: var(--text);
	background: var(--surface2);
	transition:
		transform 0.2s,
		border-color 0.2s,
		box-shadow 0.2s;
}

.contact-link:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-link svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────── */
footer {
	text-align: center;
	padding: 2rem;
	color: var(--muted);
	font-size: 0.82rem;
	border-top: 1px solid var(--border);
}

footer span {
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
	nav {
		padding: 1rem 1.25rem;
	}
	.nav-links {
		gap: 1.25rem;
	}
	.about-grid {
		grid-template-columns: 1fr;
	}
	.avatar-inner {
		width: 200px;
		height: 200px;
		font-size: 4.5rem;
	}
	.about-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 520px) {
	.nav-links {
		display: none;
	}
	.about-stats {
		grid-template-columns: 1fr 1fr;
	}
}
