/* =========================================================
   Variant F — Final
   Forked from variant C. Modern single-page portfolio.
   Light default + dark toggle.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select, button { font: inherit; }

/* ---------- Tokens ---------- */
:root, [data-theme="light"] {
	/* Variant F: deeper orange so it stops blending into the cream background */
	--accent: #ea580c;          /* orange-600 — strong, readable on cream */
	--accent-2: #dc2626;        /* red-600 */
	--accent-grad: linear-gradient(135deg, #ea580c, #dc2626);
	--accent-soft: rgba(234, 88, 12, 0.12);
	--accent-glow: rgba(234, 88, 12, 0.45);

	--bg: #fbfaf7;
	--bg-elev: #ffffff;
	--bg-soft: #f3f1ec;
	--fg: #15171c;
	--fg-muted: #5a6068;
	--fg-faint: #8e94a0;
	--border: rgba(15, 23, 42, 0.10);
	--border-strong: rgba(15, 23, 42, 0.20);
	--shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 10px 28px -10px rgba(15, 23, 42, 0.18);
	--shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.25);

	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 20px;

	--ease: cubic-bezier(.2, .7, .2, 1);
	--font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

	--container: 1180px;
}

[data-theme="dark"] {
	--accent: #fbbf24;
	--accent-2: #f97316;
	--accent-grad: linear-gradient(135deg, #fbbf24, #f97316);
	--accent-soft: rgba(251, 191, 36, 0.18);
	--accent-glow: rgba(251, 191, 36, 0.45);

	--bg: #0b0e14;
	--bg-elev: #11161e;
	--bg-soft: #161c26;
	--fg: #f4f5f7;
	--fg-muted: #a4abb6;
	--fg-faint: #6b7280;
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.18);
	--shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 10px 28px -10px rgba(0, 0, 0, 0.55);
	--shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- Base ---------- */
body {
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--fg);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--fg); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { color: var(--fg-muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; position: relative; }
section:nth-of-type(even) { background: var(--bg-soft); }

.section-eyebrow {
	display: inline-block;
	font-size: .75rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: .75rem;
	padding: .35rem .7rem;
	border-radius: 999px;
	background: var(--accent-soft);
}
.section-title { margin-bottom: .75rem; }
.section-lead {
	color: var(--fg-muted);
	font-size: 1.05rem;
	margin-bottom: 3rem;
	max-width: 640px;
}

/* ---------- Header / Nav ---------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled {
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	box-shadow: var(--shadow-sm);
}
.nav {
	display: flex; align-items: center; justify-content: space-between;
	height: 70px;
}
.brand {
	display: inline-flex; align-items: center; gap: .65rem;
	font-weight: 700; letter-spacing: -0.01em;
}
.brand-mark {
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px;
	background: var(--accent-grad);
	color: #fff;
	font-weight: 800;
	box-shadow: 0 6px 18px -6px var(--accent-glow);
}
.brand-name { font-size: 1rem; }
.brand-name span { color: var(--fg-muted); font-weight: 400; }

.nav-links { display: flex; gap: .25rem; align-items: center; }
.nav-links a {
	padding: .5rem .85rem;
	border-radius: 8px;
	font-size: .9rem;
	font-weight: 500;
	color: var(--fg-muted);
	transition: color .2s, background-color .2s;
	position: relative;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-links a.is-active { background: var(--accent-soft); color: var(--accent); }

.nav-cta { display: inline-flex; gap: .5rem; align-items: center; }

.theme-btn, .menu-btn {
	width: 40px; height: 40px;
	border-radius: 10px;
	border: 1px solid var(--border);
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--fg);
	transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.theme-btn:hover, .menu-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55rem;
	padding: .75rem 1.2rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: .9rem;
	border: 1px solid var(--border-strong);
	color: var(--fg);
	background: var(--bg-elev);
	transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s, color .2s, background-color .2s;
}
.btn:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: 0 10px 22px -10px var(--accent-glow);
}
.btn-primary {
	background: var(--accent-grad);
	color: #fff !important;
	border: 0;
	box-shadow: 0 10px 22px -10px var(--accent-glow);
}
.btn-primary:hover { color: #fff !important; transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-icon {
	width: 42px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--fg-muted);
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
	min-height: 100vh;
	padding: 9rem 0 5rem;
	position: relative;
	overflow: hidden;
	background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg::before, .hero-bg::after {
	content: '';
	position: absolute;
	width: 520px; height: 520px;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .35;
	animation: float 14s ease-in-out infinite;
}
.hero-bg::before { background: var(--accent); top: -120px; left: -120px; }
.hero-bg::after { background: var(--accent-2); bottom: -160px; right: -120px; animation-delay: -7s; }
@keyframes float {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(40px, -30px); }
}

.hero-grid {
	position: relative; z-index: 1;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 4rem;
	align-items: center;
}

/* --- Hero "Open to opportunities" pill (Variant C original) --- */
.hero-status {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .4rem .9rem;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	border: 1px solid var(--accent);
	font-size: .8rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}
.hero-status .dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
	50%      { box-shadow: 0 0 0 8px transparent; }
}

.hero-title { margin-bottom: 1rem; }
.hero-title .accent {
	background: var(--accent-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}
.hero-sub {
	font-size: 1.1rem;
	color: var(--fg-muted);
	margin-bottom: 2rem;
	max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-socials { display: flex; gap: .5rem; }
.hero-socials a {
	width: 42px; height: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px;
	border: 1px solid var(--border);
	color: var(--fg-muted);
	transition: transform .2s var(--ease), color .2s, border-color .2s, background-color .2s;
}
.hero-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); background: var(--accent-soft); }

.hero-portrait-wrap {
	position: relative;
	justify-self: center;
	width: min(380px, 100%);
	aspect-ratio: 1;
}
.hero-portrait-wrap::before {
	content: '';
	position: absolute;
	inset: -14px;
	border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
	background: var(--accent-grad);
	filter: blur(20px);
	opacity: .55;
	animation: morph 10s ease-in-out infinite;
}
@keyframes morph {
	0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
	50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(8deg); }
}
.hero-portrait {
	position: relative;
	width: 100%; height: 100%;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 4px solid var(--bg-elev);
	background: var(--bg-soft);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* === Hero right column: portrait stacked above terminal (Variant D) === */
.hero-right {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: stretch;
	position: relative;
	z-index: 1;
}
.hero-right .hero-portrait-wrap {
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
	aspect-ratio: 4 / 5;
}
.hero-right .terminal {
	max-width: 360px;
	width: 100%;
	margin: 0 auto;
}
.hero-hint {
	margin-top: 1.5rem;
	font-size: .82rem;
	color: var(--fg-muted);
}

/* === Terminal panel (Variant D style: cycling typewriter) === */
.terminal {
	position: relative;
	z-index: 1;
	background: #0d1117;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	overflow: hidden;
	font-family: var(--font-mono);
	font-size: .82rem;
	line-height: 1.7;
	box-shadow: var(--shadow-lg);
	width: 100%;
}
.terminal-bar {
	display: flex; align-items: center; gap: .4rem;
	padding: .55rem .8rem;
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-bar .tdot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .tdot.r { background: #ff5f56; }
.terminal-bar .tdot.y { background: #ffbd2e; }
.terminal-bar .tdot.g { background: #27c93f; }
.terminal-bar .file {
	margin-left: auto;
	color: rgba(255, 255, 255, 0.4);
	font-size: .7rem;
}
.terminal-body {
	padding: 1rem 1.1rem 1.2rem;
	color: #cbd5e1;
	min-height: 11rem;
	white-space: pre-wrap;
	word-break: break-word;
	margin: 0;
}
.terminal-body .prompt { color: #22d3ee; }
.terminal-body .cmd { color: #f1f5f9; }
.terminal-body .out { color: #94a3b8; }
.terminal-body .key { color: #a78bfa; }
.terminal-body .str { color: #fbbf24; }
.terminal-body .num { color: #34d399; }
.terminal-body .hash { color: #f472b6; }
.terminal-body .cur {
	display: inline-block;
	width: 7px; height: 1em;
	background: #22d3ee;
	vertical-align: -2px;
	margin-left: 1px;
	animation: tblink 1.1s steps(2) infinite;
}
@keyframes tblink { 50% { opacity: 0; } }

.hero-stats {
	margin-top: 4rem;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	position: relative; z-index: 1;
}
.stat {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.stat-num {
	font-size: 1.9rem;
	font-weight: 800;
	background: var(--accent-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1;
}
.stat-label { color: var(--fg-muted); font-size: .85rem; margin-top: .35rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.about-quote {
	font-family: var(--font-mono);
	font-size: .82rem;
	color: var(--fg-faint);
	letter-spacing: .03em;
	margin-bottom: 1rem;
	text-transform: lowercase;
}
.currently-card {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
}
.currently-card .head {
	display: flex; align-items: center; gap: .5rem;
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .05em;
	text-transform: lowercase;
	color: var(--accent);
	margin-bottom: 1rem;
}
.currently-card .head .pill {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .15rem .5rem;
	border-radius: 4px;
	background: var(--accent-soft);
}
.currently-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.currently-card li { display: flex; gap: .75rem; align-items: flex-start; color: var(--fg); font-size: .92rem; }
.currently-card li i { color: var(--accent); margin-top: 4px; width: 16px; text-align: center; }
.currently-card li span { color: var(--fg-muted); }
.about-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.about-tags span {
	padding: .35rem .7rem;
	border-radius: 999px;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	font-size: .8rem;
	color: var(--fg);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
	content: '';
	position: absolute;
	left: 7px; top: 0; bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, var(--accent), transparent);
}
.tl-item { position: relative; padding-bottom: 2.5rem; }
.tl-item::before {
	content: '';
	position: absolute;
	left: -27px; top: 6px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--bg);
	border: 3px solid var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-meta {
	display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
	font-size: .85rem;
	color: var(--fg-muted);
	margin-bottom: .5rem;
}
.tl-meta .role {
	display: inline-flex;
	align-items: center;
	padding: .28rem .7rem;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	border: 1px solid var(--accent);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .01em;
	text-transform: uppercase;
	line-height: 1;
}
.tl-title { margin-bottom: .25rem; }
.tl-org { color: var(--fg-muted); margin-bottom: .75rem; }
.tl-stack { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 .75rem; }
.tl-stack span {
	font-size: .72rem; padding: .2rem .55rem; border-radius: 5px;
	background: var(--bg-soft); border: 1px solid var(--border); color: var(--fg-muted);
	font-family: var(--font-mono);
}
.tl-bullets { color: var(--fg-muted); padding-left: 1.1rem; list-style: disc; }
.tl-bullets li { margin-bottom: .35rem; }
.tl-bullets li::marker { color: var(--accent); }

/* ---------- Projects ---------- */
.proj-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.proj-filters button {
	padding: .45rem .9rem;
	border-radius: 999px;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	color: var(--fg-muted);
	font-size: .8rem;
	font-weight: 500;
	transition: all .2s var(--ease);
}
.proj-filters button:hover { color: var(--accent); border-color: var(--accent); }
.proj-filters button.is-active { background: var(--accent-grad); color: #fff; border-color: transparent; }

.proj-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1.5rem;
}
.proj-card {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
	position: relative;
}
.proj-card:hover {
	transform: translateY(-6px);
	border-color: var(--accent);
	box-shadow: 0 20px 40px -16px var(--accent-glow);
}
.proj-thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bg-soft);
	position: relative;
}
.proj-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ease);
}
.proj-card:hover .proj-thumb img { transform: scale(1.06); }
.proj-thumb.empty {
	display: flex; align-items: center; justify-content: center;
	color: var(--fg-faint);
	font-size: 2.5rem;
	background: linear-gradient(135deg, var(--bg-soft), var(--bg-elev));
}
.proj-cat {
	position: absolute; top: .75rem; left: .75rem;
	font-size: .7rem; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase;
	padding: .3rem .6rem;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	backdrop-filter: blur(6px);
}
.proj-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.proj-body h3 { font-size: 1.1rem; }
.proj-body p { font-size: .9rem; flex: 1; }
.proj-stack { display: flex; flex-wrap: wrap; gap: .3rem; }
.proj-stack span {
	font-family: var(--font-mono);
	font-size: .7rem;
	padding: .2rem .5rem;
	border-radius: 5px;
	background: var(--accent-soft);
	color: var(--accent);
}
.proj-actions { display: flex; gap: .5rem; margin-top: .25rem; }
.proj-actions .btn { padding: .55rem .85rem; font-size: .8rem; flex: 1; justify-content: center; }

/* ---------- Skills ---------- */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}
.skill-card {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.skill-card-head {
	display: flex; align-items: center; gap: .75rem;
	margin-bottom: 1rem;
}
.skill-card-head i {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 1.1rem;
}
.skill-card-head h3 { font-size: 1rem; margin: 0; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.skill-tags span {
	font-size: .78rem;
	padding: .3rem .65rem;
	border-radius: 6px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	color: var(--fg);
	transition: all .2s;
}
.skill-tags span:hover {
	background: var(--accent-soft);
	color: var(--accent);
	border-color: var(--accent);
	transform: translateY(-1px);
}

/* ---------- Education / Workshops ---------- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.edu-card {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.75rem;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.edu-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.edu-card h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.edu-card h3 i { color: var(--accent); }
.edu-list li {
	padding: .85rem 0;
	border-bottom: 1px solid var(--border);
	color: var(--fg-muted);
	font-size: .92rem;
}
.edu-list li:last-child { border-bottom: 0; }
.edu-list b { color: var(--fg); }

.workshop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}
.workshop-card {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.workshop-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.workshop-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.workshop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.workshop-card:hover .workshop-thumb img { transform: scale(1.05); }
.workshop-body { padding: 1.25rem; }
.workshop-body h3 { font-size: 1rem; margin-bottom: .5rem; }
.workshop-body p { font-size: .85rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.contact-info p { margin-bottom: 1.25rem; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-list a {
	display: flex; align-items: center; gap: .85rem;
	padding: .9rem 1.1rem;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: all .25s var(--ease);
}
.contact-list a:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-list a i {
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
}
.contact-list a strong { display: block; }
.contact-list a span { color: var(--fg-muted); font-size: .85rem; }

.contact-form {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow-sm);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-c { position: relative; margin-bottom: 1.25rem; }
.field-c input, .field-c textarea {
	width: 100%;
	padding: 1.1rem 1rem .55rem;
	border-radius: 10px;
	border: 1px solid var(--border-strong);
	background: var(--bg);
	color: var(--fg);
	transition: border-color .2s, box-shadow .2s;
	font-size: .95rem;
}
.field-c textarea { padding-top: 1.4rem; resize: vertical; min-height: 130px; }
.field-c label {
	position: absolute; left: 1rem; top: .9rem;
	color: var(--fg-faint);
	pointer-events: none;
	transition: all .2s var(--ease);
	font-size: .9rem;
}
.field-c input:focus, .field-c textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-c input:focus + label,
.field-c input:not(:placeholder-shown) + label,
.field-c textarea:focus + label,
.field-c textarea:not(:placeholder-shown) + label {
	top: .35rem;
	font-size: .7rem;
	color: var(--accent);
	font-weight: 600;
}

/* Form result panel (success / fail / error states) */
.contact-form-wrap { position: relative; }
.form-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	padding: 2.5rem 1.5rem;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	animation: resultIn .35s var(--ease) both;
}
.form-result[hidden] { display: none; }
.form-result .result-icon {
	width: 64px; height: 64px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 2rem;
}
.form-result .result-title { margin: 0; font-size: 1.4rem; }
.form-result .result-msg { margin: 0; color: var(--fg-muted); max-width: 420px; }
.form-result.is-error .result-icon { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.form-result.is-error .result-title { color: #dc2626; }
@keyframes resultIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 2.5rem 0;
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	text-align: center;
	color: var(--fg-muted);
	font-size: .85rem;
}
.site-footer a { color: var(--accent); }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
	position: fixed; top: 0; left: 0;
	height: 3px; width: 0%;
	background: var(--accent-grad);
	z-index: 9999;
	transition: width .1s linear;
}

/* ---------- Toast ---------- */
.toast {
	position: fixed; left: 50%; bottom: 2rem;
	transform: translateX(-50%) translateY(20px);
	background: var(--fg);
	color: var(--bg);
	padding: .75rem 1.25rem;
	border-radius: 10px;
	box-shadow: var(--shadow-lg);
	font-size: .85rem;
	font-weight: 500;
	opacity: 0;
	transition: opacity .25s, transform .25s;
	z-index: 9999;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Back to top ---------- */
.to-top {
	position: fixed; bottom: 1.5rem; right: 1.5rem;
	width: 46px; height: 46px;
	border-radius: 12px;
	background: var(--accent-grad);
	color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 12px 28px -10px var(--accent-glow);
	opacity: 0; pointer-events: none;
	transform: translateY(8px);
	transition: opacity .25s, transform .25s;
	z-index: 99;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Focus ---------- */
*:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
	.hero-grid, .about-grid, .contact-grid, .edu-grid { grid-template-columns: 1fr; }
	.hero-portrait-wrap { justify-self: start; }
	.hero-right { align-items: center; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); }
	.field-row { grid-template-columns: 1fr; }
	section { padding: 4.5rem 0; }
	.terminal-body { min-height: 9rem; font-size: .78rem; }
}
@media (max-width: 700px) {
	.nav-links { display: none; position: absolute; top: 70px; right: 1.5rem; flex-direction: column; gap: .25rem; padding: .75rem; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 180px; }
	.nav-links.is-open { display: flex; }
	.menu-btn { display: inline-flex; }
	.hero { padding: 7rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after { transition: none !important; animation: none !important; }
	.reveal { opacity: 1; transform: none; }
}
