/* ---------- Base ---------- */
:root {
	--bg: #0b0d12;
	--bg-alt: #12151c;
	--surface: #161a23;
	--surface-2: #1c212c;
	--border: #262b38;
	--text: #e7e9ee;
	--text-dim: #9aa1b2;
	--accent: #6d8dff;
	--accent-2: #9b6dff;
	--accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
	--radius: 14px;
	--shadow: 0 20px 50px -20px rgba(0,0,0,.6);
	--maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

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

section { position: relative; }

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--accent-grad);
	border-radius: 2px;
}

.section-title {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	margin-bottom: 12px;
}

.section-sub {
	color: var(--text-dim);
	max-width: 560px;
	margin-bottom: 48px;
}

.section-head { margin-bottom: 8px; }

/* ---------- Background glow ---------- */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(600px circle at 15% 0%, rgba(109,141,255,0.12), transparent 55%),
		radial-gradient(700px circle at 90% 20%, rgba(155,109,255,0.10), transparent 55%),
		var(--bg);
}

/* ---------- Nav ---------- */
#nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	backdrop-filter: blur(14px);
	background: rgba(11,13,18,0.7);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease, background .3s ease;
}
#nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	font-weight: 800;
	font-size: 1.05rem;
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nav-links {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	font-size: 0.92rem;
	color: var(--text-dim);
	font-weight: 500;
	transition: color .2s ease;
	position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text);
	font-size: 1.4rem;
	cursor: pointer;
}

@media (max-width: 760px) {
	.nav-links {
		position: fixed;
		top: 64px;
		right: 0;
		left: 0;
		background: var(--bg-alt);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}
	.nav-links.open { max-height: 400px; }
	.nav-links li { width: 100%; }
	.nav-links a {
		display: block;
		padding: 16px 24px;
		border-top: 1px solid var(--border);
	}
	.nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
#intro {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 120px 0 80px;
}

.hero-grid {
	display: flex;
	align-items: center;
	gap: 64px;
	flex-wrap: wrap;
}

.hero-text { flex: 1 1 380px; }

.hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 100px;
	font-size: 0.82rem;
	color: var(--text-dim);
	margin-bottom: 24px;
	background: var(--surface);
}
.hero-tag .dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 3px rgba(74,222,128,0.18);
}

.hero-text h1 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	line-height: 1.1;
	margin-bottom: 18px;
}

.hero-text h1 span {
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-text p {
	color: var(--text-dim);
	font-size: 1.08rem;
	max-width: 480px;
	margin-bottom: 32px;
}

.hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.hero-photo {
	flex: 0 0 auto;
	width: 260px;
	height: 260px;
	border-radius: 28px;
	padding: 4px;
	background: var(--accent-grad);
	box-shadow: var(--shadow);
}
.hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px;
}

@media (max-width: 700px) {
	.hero-grid { flex-direction: column-reverse; text-align: center; }
	.hero-text p { margin-left: auto; margin-right: auto; }
	.hero-actions { justify-content: center; }
	.hero-photo { width: 200px; height: 200px; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.94rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: var(--accent-grad);
	color: #fff;
	box-shadow: 0 10px 30px -10px rgba(109,141,255,0.6);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(109,141,255,0.75); }

.btn-ghost {
	background: var(--surface);
	color: var(--text);
	border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Section wrapper ---------- */
.section {
	padding: 100px 0;
	border-top: 1px solid var(--border);
}

/* ---------- Experience ---------- */
.exp-card {
	display: flex;
	gap: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px 32px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.exp-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--accent-grad);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.3rem;
}

.exp-role { font-size: 1.15rem; margin-bottom: 4px; }
.exp-meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 10px; }
.exp-body { color: var(--text-dim); }

/* ---------- Projects ---------- */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
}

.project-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-card:hover {
	transform: translateY(-6px);
	border-color: rgba(109,141,255,0.4);
	box-shadow: var(--shadow);
}

.project-thumb {
	height: 190px;
	overflow: hidden;
	background: var(--surface-2);
}
.project-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.06); }

.project-body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.project-body h3 { font-size: 1.15rem; }
.project-body p { color: var(--text-dim); font-size: 0.92rem; flex: 1; margin: 0; }

.project-actions {
	display: flex;
	gap: 10px;
	margin-top: 4px;
	flex-wrap: wrap;
}

/* ---------- Skills ---------- */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 18px;
}

.skill-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px 12px;
	text-align: center;
	transition: transform .2s ease, border-color .2s ease;
}
.skill-card:hover {
	transform: translateY(-4px);
	border-color: rgba(109,141,255,0.4);
}
.skill-card .skill-icon {
	font-size: 1.6rem;
	margin-bottom: 12px;
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.skill-card span { font-size: 0.9rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.contact-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px;
}
.contact-card h3 {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dim);
	margin-bottom: 12px;
}
.contact-card p, .contact-card a { font-size: 1rem; }
.contact-card a:hover { color: var(--accent); }

.social-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.social-btn {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.social-btn:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	color: var(--accent);
}

/* ---------- Footer ---------- */
footer {
	padding: 32px 0;
	text-align: center;
	color: var(--text-dim);
	font-size: 0.85rem;
	border-top: 1px solid var(--border);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
