:root {
	--bg: #0b0d10;
	--panel: #12161b;
	--text: #e6eaf2;
	--muted: #9aa3b2;
	--brand: #4f8cff;
	--brand-2: #7c4dff;
	--card: #131820;
	--border: #1e2530;
	--accent: #2ee6a6;
}

* {
	box-sizing: border-box;
}

html, body {
	padding: 0;
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--brand);
	text-decoration: none;
}

.container {
	width: min(1100px, 92%);
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	backdrop-filter: saturate(160%) blur(8px);
	background: color-mix(in oklab, var(--bg) 80%, transparent);
	border-bottom: 1px solid var(--border);
	z-index: 10;
}
.site-header.compact { background: color-mix(in oklab, var(--bg) 70%, transparent); }

.brand-name { display: inline-flex; align-items: center; gap: 10px; }
.badge {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.85rem;
	border: 1px solid color-mix(in oklab, #000 12%, transparent);
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
}

.id-block {
	display: flex;
	gap: 14px;
	align-items: center;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-dot { width: 8px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 20%, transparent); }
.brand-name { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.brand-role { color: var(--muted); font-size: .95rem; border-left: 1px solid var(--border); padding-left: 10px; margin-left: 4px; }

.role {
	color: var(--muted);
	margin-top: -6px;
}

.meta {
	color: var(--muted);
	font-size: 0.95rem;
}

.nav {
	display: flex;
	align-items: center;
	gap: 14px;
}

.nav a {
	color: var(--text);
	padding: 8px 10px;
	border-radius: 8px;
}

.nav a:hover {
	background: var(--panel);
}

#themeToggle {
	background: var(--panel);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 10px;
	cursor: pointer;
}
.lang { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.hero {
	position: relative;
	overflow: hidden;
	padding-top: 36px;
}
.hero-bg {
	position: absolute;
	inset: -20% -10% -10% -10%;
	background: radial-gradient(600px 300px at 20% 10%, color-mix(in oklab, var(--brand) 60%, transparent), transparent),
		radial-gradient(600px 300px at 80% 30%, color-mix(in oklab, var(--brand-2) 60%, transparent), transparent);
	filter: blur(40px) saturate(140%);
	opacity: 0.6;
	animation: float 12s ease-in-out infinite alternate;
	z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.eyebrow { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; }
.hero-title { font-size: clamp(28px, 5vw, 44px); line-height: 1.12; margin: 10px 0 8px 0; }
.gradient { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); max-width: 60ch; }
.actions { display: flex; gap: 12px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; border: none; box-shadow: 0 8px 24px color-mix(in oklab, var(--brand) 25%, transparent); }
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost { background: var(--panel); color: var(--text); }
.btn.ghost:hover { background: color-mix(in oklab, var(--panel) 70%, transparent); transform: translateY(-2px); }
.btn.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: #ffffff; border: none; box-shadow: 0 8px 24px rgba(18,140,126,.35); }
.btn.whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(18,140,126,.45); }
.btn-ico { display: inline-grid; place-items: center; }

.device { width: 280px; max-width: 90vw; aspect-ratio: 9/19.5; border-radius: 28px; background: linear-gradient(180deg, #0f1217, #0b0d10); border: 1px solid var(--border); box-shadow: 0 20px 45px rgba(0,0,0,.35); padding: 14px; transform-style: preserve-3d; }
.device-notch { height: 22px; width: 38%; margin: 0 auto 10px auto; background: #0b0d10; border-radius: 0 0 14px 14px; border: 1px solid var(--border); border-top: none; }
.device-screen { height: calc(100% - 32px); background: radial-gradient(120% 100% at 0% 0%, color-mix(in oklab, var(--brand) 14%, transparent), transparent), radial-gradient(100% 100% at 100% 0%, color-mix(in oklab, var(--brand-2) 14%, transparent), transparent); border-radius: 18px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.app-view { position: absolute; inset: 0; overflow: hidden; }
.app-list { position: absolute; left: 0; right: 0; top: 0; will-change: transform; padding: 10px 10px 20px 10px; }
.app-header { height: 32px; display: grid; place-items: center; color: var(--text); background: color-mix(in oklab, var(--panel) 70%, transparent); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.app-card { display: flex; gap: 10px; align-items: center; background: color-mix(in oklab, var(--panel) 80%, transparent); border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.app-thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--h, #ccc); filter: saturate(120%); }
.app-meta { display: grid; }
.app-title { font-size: 12px; font-weight: 600; }
.app-sub { font-size: 11px; color: var(--muted); }
.app-footer { text-align: center; color: var(--muted); font-size: 10px; padding: 6px 0 2px 0; }
.app-view-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,.35)); pointer-events: none; }

@keyframes float { 0% { transform: translateY(0px); } 100% { transform: translateY(-12px); } }
@keyframes pulse { 0% { opacity: .6; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.visible { opacity: 1; transform: translateY(0); animation: fadeUp .7s ease both; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
	.hero-bg { display: none; }
}

.section {
	padding: 56px 0;
	border-bottom: 1px solid var(--border);
}

.grid.two {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 24px;
}

.grid.three {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 860px) {
	.grid.two { grid-template-columns: 1fr; }
	.grid.three { grid-template-columns: 1fr; }
	.header-content { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.skill-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px 8px 10px;
	border-radius: 12px;
	background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 85%, transparent), color-mix(in oklab, var(--card) 85%, transparent));
	border: 1px solid var(--border);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.chip:before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: 14px;
	background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 40%, transparent), color-mix(in oklab, var(--accent) 30%, transparent));
	opacity: .35;
	filter: blur(10px);
	z-index: -1;
}
.chip:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--brand) 35%, var(--border)); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.chip-icon { width: 18px; height: 18px; color: var(--brand); display: inline-grid; place-items: center; }
.chip-icon svg { width: 18px; height: 18px; display: block; }

.timeline {
	display: grid;
	gap: 18px;
}

.item {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 18px 18px 12px 18px;
}

.item .sub {
	color: var(--muted);
	margin-top: -10px;
	margin-bottom: 8px;
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 18px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.project h3 { margin-top: 0; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.32); border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
.tilt { will-change: transform; }

/* Intro overlay */
.intro { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 999; pointer-events: none; }
.intro-inner { position: relative; width: 160px; height: 160px; display: grid; place-items: center; }
.intro-ring { position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--brand) 24%, transparent), transparent 60%); animation: introRing 1.2s ease both; filter: blur(6px); }
.intro-mark { position: relative; transform: translateY(8px) scale(.92); opacity: 0; animation: introMark .9s .15s cubic-bezier(.2,.8,.2,1) forwards; display: grid; place-items: center; }
.intro-mark svg { width: 64px; height: 64px; }
@keyframes introRing { 0% { transform: scale(.6); opacity: 0; } 60% { opacity: .9; } 100% { transform: scale(1.08); opacity: 0; } }
@keyframes introMark { 0% { opacity: 0; transform: translateY(12px) scale(.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.intro.hide { animation: introOut .4s ease forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

.bulleted { padding-left: 18px; }

.site-footer {
	background: var(--panel);
	border-top: 1px solid var(--border);
	padding: 40px 0;
}

.social {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 16px;
}

.small { color: var(--muted); }

/* Light theme */
.light {
	--bg: #f7f9fc;
	--panel: #ffffff;
	--text: #12161b;
	--muted: #546072;
	--brand: #2c6cff;
	--brand-2: #7c4dff;
	--card: #ffffff;
	--border: #e7ecf3;
	--accent: #0fb;
}

