/* ============================================================
   Wyn Christian Rebanal — Portfolio
   Dark glassmorphism redesign with light/dark theme
   ============================================================ */

:root {
	/* Signature gradient */
	--accent-1: #7c8cff; /* indigo  */
	--accent-2: #22d3ee; /* cyan    */
	--accent-3: #a855f7; /* violet  */
	--gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 45%, #22d3ee 100%);

	--sidebar-width: 250px;

	--font-head: "Space Grotesk", sans-serif;
	--font-body: "Inter", sans-serif;
	--font-mono: "JetBrains Mono", monospace;

	--radius: 18px;
	--radius-sm: 12px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- DARK (default) ---------- */
:root,
[data-theme="dark"] {
	--bg: #070a13;
	--bg-2: #0b1020;
	--text: #aeb9cc;
	--text-soft: #9aa6bd;
	--heading: #f1f5fb;
	--glass-bg: rgba(255, 255, 255, 0.045);
	--glass-bg-2: rgba(255, 255, 255, 0.07);
	--glass-border: rgba(255, 255, 255, 0.09);
	--glass-border-hover: rgba(124, 140, 255, 0.5);
	--shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
	--tag-bg: rgba(124, 140, 255, 0.12);
	--tag-text: #c4ccff;
	--nav-bg: rgba(10, 14, 26, 0.7);
	--blob-opacity: 0.55;
	--grid-color: rgba(255, 255, 255, 0.035);
}

/* ---------- LIGHT ---------- */
[data-theme="light"] {
	--bg: #eef1f8;
	--bg-2: #e4e9f5;
	--text: #475066;
	--text-soft: #6b7488;
	--heading: #0e1326;
	--glass-bg: rgba(255, 255, 255, 0.6);
	--glass-bg-2: rgba(255, 255, 255, 0.78);
	--glass-border: rgba(13, 19, 38, 0.08);
	--glass-border-hover: rgba(99, 102, 241, 0.55);
	--shadow: 0 22px 50px -22px rgba(40, 50, 90, 0.35);
	--tag-bg: rgba(99, 102, 241, 0.1);
	--tag-text: #4f46e5;
	--nav-bg: rgba(255, 255, 255, 0.72);
	--blob-opacity: 0.4;
	--grid-color: rgba(13, 19, 38, 0.04);
}

/* ---------- Base ---------- */
/* Keep decorative / UI chrome non-selectable, but let real content
   (headings, body copy, contact info) stay selectable so recruiters
   can actually copy your email, phone, and project names. */
.aurora,
#particles-js,
.marquee-band,
.navbar,
.btn,
.nav-link,
.float-chip,
.scroll-hint,
.back-to-top,
.cmdk-trigger,
.iconbox {
	user-select: none;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.7;
	overflow-x: hidden;
	transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

/* hide scrollbar but keep scroll */
body::-webkit-scrollbar {
	display: none;
}
body {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--heading);
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: -0.02em;
}

a {
	text-decoration: none;
	color: var(--text);
	transition: color 0.3s var(--ease);
}

img {
	max-width: 100%;
}

::selection {
	background: var(--accent-1);
	color: #fff;
}

.gradient-text {
	background: linear-gradient(120deg, #a855f7, #6366f1, #22d3ee, #6366f1, #a855f7);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradientShift 9s ease infinite;
}
@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* ---------- Skip link / noscript ---------- */
.skip-link {
	position: fixed;
	top: -100px;
	left: 1rem;
	z-index: 3000;
	padding: 0.7rem 1.1rem;
	border-radius: 10px;
	background: var(--gradient);
	color: #fff;
	font-weight: 600;
	transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.noscript-banner {
	position: relative;
	z-index: 2500;
	background: #1a2236;
	color: #f1f5fb;
	text-align: center;
	padding: 0.9rem 1rem;
	font-size: 0.95rem;
}
.noscript-banner a { color: #7c8cff; text-decoration: underline; }

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

/* ---------- Scroll progress ---------- */
#scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--gradient);
	z-index: 2000;
	transition: width 0.1s linear;
}

/* ---------- Aurora background ---------- */
.aurora {
	position: fixed;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	background: radial-gradient(120% 120% at 80% 0%, var(--bg-2), var(--bg) 60%);
}

.aurora-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(64px);
	opacity: var(--blob-opacity);
	will-change: transform;
}

.blob-1 {
	width: 520px;
	height: 520px;
	background: #6366f1;
	top: -120px;
	left: -80px;
	animation: drift1 22s ease-in-out infinite;
}
.blob-2 {
	width: 480px;
	height: 480px;
	background: #22d3ee;
	bottom: -140px;
	right: -60px;
	animation: drift2 26s ease-in-out infinite;
}
.blob-3 {
	width: 420px;
	height: 420px;
	background: #a855f7;
	top: 40%;
	left: 55%;
	animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes drift2 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-100px, -60px) scale(1.1); }
}
@keyframes drift3 {
	0%, 100% { transform: translate(-50%, 0) scale(1); }
	50% { transform: translate(-60%, -90px) scale(0.9); }
}

.grid-overlay {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
	-webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
}

#particles-js {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.7;
}

/* ---------- Glass primitive ---------- */
.glass {
	position: relative;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--shadow);
	transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
		background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Cursor-following spotlight glow (set via --mx/--my in JS).
   Scoped to the main interactive cards only — keeps the number of
   composited layers low so the page stays smooth. */
.service::before,
.card-custom::before,
.contact-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(
		200px circle at var(--mx, 50%) var(--my, 0%),
		rgba(124, 140, 255, 0.16),
		transparent 60%
	);
	opacity: 0;
	transition: opacity 0.35s var(--ease);
	pointer-events: none;
	z-index: 0;
}
.service:hover::before,
.card-custom:hover::before,
.contact-card:hover::before { opacity: 1; }
.service > *,
.card-custom > *,
.contact-card > * { position: relative; z-index: 1; }

/* ============================================================
   NAVBAR / SIDEBAR
   ============================================================ */
.navbar {
	background: var(--nav-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--glass-border);
	padding: 0.6rem 1rem;
}

.navbar .navbar-brand {
	color: var(--heading);
}

.avatar-ring {
	display: inline-block;
	padding: 4px;
	border-radius: 50%;
	background: var(--gradient);
}
.avatar-ring img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid var(--bg);
}

.brand-name {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.05rem;
	margin-top: 0.6rem;
	color: var(--heading);
}
.brand-role {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-soft);
}

.navbar .nav-link {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--text);
	border-radius: 10px;
	padding: 0.55rem 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	transition: all 0.3s var(--ease);
}
.navbar .nav-link i {
	font-size: 1.15rem;
}
.navbar .nav-link:hover {
	color: var(--heading);
	background: var(--glass-bg-2);
}
.navbar .nav-link.active {
	color: #fff;
	background: var(--gradient);
	box-shadow: 0 8px 20px -8px var(--accent-1);
}

/* Mobile top-bar actions (theme toggle + compact search). The hamburger
   toggler was removed in favour of the app-style bottom tab bar, so its
   styles are gone too. */
.nav-actions-mobile {
	gap: 0.5rem;
}
.avatar-ring-sm {
	padding: 2px;
}
.avatar-ring-sm img {
	width: 30px;
	height: 30px;
	border-width: 2px;
}
.brand-mobile {
	gap: 0.55rem;
}
.brand-name-mobile {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1;
}
/* Compact pill variant of the ⌘K trigger — icon + "Search", no keycap (N4). */
.cmdk-search-btn {
	width: auto;
	justify-content: center;
	padding: 0.45rem 0.75rem;
	gap: 0.4rem;
	min-height: 38px;
}

.sidebar-socials a {
	font-size: 1.25rem;
	color: var(--text-soft);
}
.sidebar-socials a:hover {
	color: var(--accent-1);
	transform: translateY(-2px);
}

.theme-toggle {
	background: var(--glass-bg-2);
	border: 1px solid var(--glass-border);
	color: var(--heading);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	cursor: pointer;
	transition: all 0.3s var(--ease);
}
.theme-toggle:hover {
	border-color: var(--accent-1);
	color: var(--accent-1);
	transform: rotate(20deg);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (min-width: 992px) {
	.navbar {
		min-height: 100vh;
		width: var(--sidebar-width);
		flex-direction: column;
		padding: 2rem 1.2rem;
		border-bottom: none;
		border-right: 1px solid var(--glass-border);
	}
	.navbar-collapse {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}
	.navbar .navbar-nav {
		gap: 0.35rem;
	}
	#content-wrapper {
		padding-left: var(--sidebar-width);
	}
}

/* ============================================================
   MOBILE BOTTOM TAB BAR (<992px) — app-style primary nav
   ============================================================ */
.mobile-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1400;
	display: flex;
	justify-content: space-around;
	align-items: stretch;
	background: var(--nav-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid var(--glass-border);
	/* iOS safe area so tabs sit above the home indicator */
	padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-link {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 56px;
	padding: 0.45rem 0.25rem;
	color: var(--text-soft);
	font-family: var(--font-body);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 0.25s var(--ease);
}
.tabbar-link i {
	font-size: 1.3rem;
	line-height: 1;
}
.tabbar-link:hover {
	color: var(--heading);
}
.tabbar-link.active {
	color: var(--accent-1);
}

/* ============================================================
   SECTIONS / LAYOUT
   ============================================================ */
.section {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 7rem 1.5rem;
	position: relative;
}

@media (min-width: 992px) {
	.section {
		padding: 7rem 4rem;
	}
}

.section-head {
	max-width: 640px;
	margin-bottom: 3.5rem;
}
.section-eyebrow {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--accent-2);
	margin-bottom: 0.6rem;
}
.section-title {
	font-size: clamp(2rem, 4vw, 2.9rem);
	margin-bottom: 1rem;
}
.section-sub {
	color: var(--text-soft);
	font-size: 1.05rem;
}

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
	min-height: 100vh;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: var(--glass-bg-2);
	border: 1px solid var(--glass-border);
	color: var(--text);
}
.status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
	70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.eyebrow {
	font-family: var(--font-mono);
	color: var(--accent-2);
	font-size: 0.95rem;
	margin-bottom: 0.4rem;
}

.hero-title {
	font-size: clamp(2.4rem, 6vw, 4.4rem);
	line-height: 1.05;
	margin-bottom: 1.4rem;
}

.hero-typed {
	font-family: var(--font-mono);
	font-size: 1.05rem;
	color: var(--heading);
	margin-bottom: 1.2rem;
	min-height: 1.6em;
}
.hero-typed .typed-text { color: var(--accent-2); font-weight: 500; }
.hero-typed .typed-cursor {
	display: inline-block;
	width: 2px;
	margin-left: 2px;
	background: var(--accent-1);
	animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lead {
	font-size: 1.12rem;
	color: var(--text-soft);
	max-width: 560px;
	margin-bottom: 2rem;
}
.hero-lead .hl {
	color: var(--heading);
	font-weight: 600;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2.6rem;
}

.hero-stats {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	flex-wrap: wrap;
}
.stat-num {
	display: block;
	font-family: var(--font-head);
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--heading);
	line-height: 1;
}
.stat-label {
	font-size: 0.82rem;
	color: var(--text-soft);
}
.stat-divider {
	width: 1px;
	height: 38px;
	background: var(--glass-border);
}

/* Hero visual */
.hero-visual {
	position: relative;
	max-width: 360px;
	margin: 0 auto;
}
.hero-photo {
	padding: 10px;
	border-radius: 26px;
	overflow: hidden;
	position: relative;
}
.hero-photo::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 28px;
	padding: 2px;
	background: var(--gradient);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.8;
}
.hero-photo img {
	border-radius: 18px;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1.05;
	object-fit: cover;
}

.float-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	font-family: var(--font-mono);
	padding: 0.45rem 0.8rem;
	border-radius: 12px;
	background: var(--glass-bg-2);
	border: 1px solid var(--glass-border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--heading);
	box-shadow: var(--shadow);
	animation: floaty 5s ease-in-out infinite;
}
.float-chip i { color: var(--accent-2); font-size: 1rem; }
.chip-1 { top: 6%; left: -12%; animation-delay: 0s; }
.chip-2 { top: 28%; right: -16%; animation-delay: 0.8s; }
.chip-3 { bottom: 20%; left: -16%; animation-delay: 1.6s; }
.chip-4 { bottom: 2%; right: -8%; animation-delay: 2.4s; }
@keyframes floaty {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

/* Hero terminal card (data-engineer signature) */
.hero-terminal {
	margin-top: 1.3rem;
	border-radius: 14px;
	overflow: hidden;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	text-align: left;
}
.term-bar {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.8rem;
	background: var(--glass-bg-2);
	border-bottom: 1px solid var(--glass-border);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }
.term-bar em {
	margin-left: 0.5rem;
	font-style: normal;
	color: var(--text-soft);
	font-size: 0.72rem;
}
.term-body { padding: 0.9rem 1rem; line-height: 1.75; }
.term-line { word-break: break-word; }
.term-prompt { color: var(--accent-2); }
.term-cmd { color: var(--heading); }
.term-out { color: var(--text-soft); padding-left: 1.1rem; }
.term-caret {
	display: inline-block;
	width: 8px;
	height: 1em;
	vertical-align: -2px;
	background: var(--accent-1);
	animation: blink 1s steps(1) infinite;
}

.scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	width: 26px;
	height: 42px;
	border: 2px solid var(--glass-border);
	border-radius: 14px;
	display: flex;
	justify-content: center;
}
.scroll-hint span {
	width: 5px;
	height: 9px;
	background: var(--accent-2);
	border-radius: 3px;
	margin-top: 7px;
	animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot {
	0% { opacity: 0; transform: translateY(0); }
	40% { opacity: 1; }
	100% { opacity: 0; transform: translateY(14px); }
}
@media (max-width: 991px) {
	.scroll-hint { display: none; }
}

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn {
	font-family: var(--font-head);
	padding: 0.8rem 1.6rem;
	font-weight: 600;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s var(--ease);
}
.btn i { font-size: 1.15rem; }

.btn-brand {
	background: var(--gradient);
	border: none;
	color: #fff;
	background-size: 160% 160%;
}
.btn-brand:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -10px var(--accent-1);
	background-position: 100% 0;
}

.btn-ghost {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	color: var(--heading);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.btn-ghost:hover {
	color: var(--heading);
	border-color: var(--glass-border-hover);
	transform: translateY(-3px);
}

.link-custom {
	font-weight: 600;
	color: var(--accent-2);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
button.link-custom {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: inherit;
}
.link-details { color: var(--heading); }
.link-details:hover { color: var(--accent-1); }

/* Confidential project cover (cards + modal) */
.card-cover-confidential,
.pm-cover-confidential {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: var(--heading);
	font-family: var(--font-mono);
	font-size: 0.82rem;
	text-align: center;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(99, 102, 241, 0.26), rgba(34, 211, 238, 0.26)),
		var(--bg-2);
}
.card-cover-confidential i,
.pm-cover-confidential i { font-size: 1.9rem; color: var(--accent-2); }
.pm-cover-confidential { min-height: 200px; }

/* Placeholder cover for image-less projects */
.card-cover-placeholder,
.pm-cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.18)),
		var(--bg-2);
}
.card-cover-placeholder i,
.pm-cover-placeholder i { font-size: 2.6rem; color: var(--accent-2); opacity: 0.85; }
.pm-cover-placeholder { min-height: 200px; }

/* Metric rows (cards + modal) */
.card-metrics,
.pm-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 1.4rem;
	margin: 0.2rem 0 0.4rem;
}
.pm-metrics { gap: 2rem; margin-bottom: 1.4rem; }
.metric { display: flex; flex-direction: column; }
.metric-val {
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--heading);
	font-size: 1.15rem;
	line-height: 1.1;
}
.pm-metrics .metric-val { font-size: 1.6rem; }
.metric-label {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-soft);
}
.link-custom i { transition: transform 0.3s var(--ease); }
.link-custom:hover {
	color: var(--accent-1);
}
.link-custom:hover i { transform: translateX(4px); }

/* ============================================================
   SKILLS / SERVICE CARDS
   ============================================================ */
.service {
	padding: 1.8rem;
}
.service:hover,
.card-custom:hover,
.contact-card:hover {
	transform: translateY(-6px);
	border-color: var(--glass-border-hover);
	background: var(--glass-bg-2);
}

.iconbox {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.7rem;
	color: #fff;
	background: var(--gradient);
	margin-bottom: 1.2rem;
	box-shadow: 0 10px 24px -10px var(--accent-1);
}

.service h5 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.service p { font-size: 0.95rem; color: var(--text-soft); }

.tag-row, .card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1rem;
}
.tag {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 500;
	padding: 0.25rem 0.65rem;
	border-radius: 8px;
	background: var(--tag-bg);
	color: var(--tag-text);
}

/* ============================================================
   WORK / PROJECT CARDS
   ============================================================ */
.card-custom {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.card-custom-image {
	overflow: hidden;
	aspect-ratio: 16 / 10;
}
.card-custom-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
.card-custom:hover .card-custom-image img {
	transform: scale(1.08);
}
.card-custom-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.card-custom-content .card-tags {
	margin-top: 0;
	margin-bottom: 0.8rem;
}
.card-custom-content h4 {
	font-size: 1.2rem;
	margin-bottom: 0.6rem;
}
.card-role {
	display: block;
	margin: -0.3rem 0 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent-2);
}
.card-custom-content p {
	color: var(--text-soft);
	font-size: 0.93rem;
	flex: 1;
}
.card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.2rem;
	margin-top: 0.9rem;
}
.link-demo { color: var(--accent-1); }
.link-demo:hover { color: var(--accent-2); }

/* ============================================================
   ABOUT / TIMELINE
   ============================================================ */
.timeline-heading {
	font-size: 1.4rem;
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.timeline-heading i { color: var(--accent-2); }

.timeline {
	position: relative;
	padding-left: 1.8rem;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(var(--accent-1), var(--accent-2), transparent);
}
.timeline-item {
	position: relative;
	margin-bottom: 1.4rem;
}
.timeline-item::before {
	content: "";
	position: absolute;
	left: -1.8rem;
	top: 1.6rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--accent-1);
	transform: translateX(1px);
}
.timeline-card {
	padding: 1.4rem 1.5rem;
}
.timeline-card:hover {
	transform: translateX(6px);
	border-color: var(--glass-border-hover);
}
.timeline-date {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--accent-2);
	letter-spacing: 0.05em;
}
.timeline-card h5 {
	margin: 0.4rem 0 0.2rem;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}
.timeline-org {
	color: var(--text-soft);
	font-size: 0.9rem;
	margin-bottom: 0.6rem;
}
.timeline-card ul {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.92rem;
	color: var(--text-soft);
}
.timeline-badge {
	display: block;
	width: 100%;
	height: auto;
	margin: 0.2rem 0 0.8rem;
	border-radius: 12px;
	border: 1px solid var(--glass-border);
}
.badge-now {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--gradient);
	color: #fff;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
	padding: 1.8rem;
	display: flex;
	flex-direction: column;
	text-align: left;
}
.contact-card h5 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.contact-card p {
	color: var(--text-soft);
	font-size: 0.9rem;
	margin: 0;
	word-break: break-word;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial {
	padding: 1.8rem;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.testimonial blockquote {
	font-size: 1.05rem;
	color: var(--heading);
	margin: 0 0 1.2rem;
	line-height: 1.7;
}
.testimonial blockquote::before {
	content: "\201C";
	font-family: var(--font-head);
	font-size: 2.6rem;
	color: var(--accent-2);
	line-height: 0;
	margin-right: 0.15rem;
	vertical-align: -0.45em;
	opacity: 0.6;
}
.testimonial figcaption { margin-top: auto; }
.t-name { display: block; font-weight: 600; color: var(--heading); }
.t-role { font-size: 0.85rem; color: var(--text-soft); }

.site-footer {
	text-align: center;
	margin-top: 5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--glass-border);
	color: var(--text-soft);
	font-size: 0.85rem;
}

/* ============================================================
   TECH MARQUEE
   ============================================================ */
.marquee-band {
	overflow: hidden;
	border-top: 1px solid var(--glass-border);
	border-bottom: 1px solid var(--glass-border);
	background: var(--glass-bg-2);
	padding: 1.1rem 0;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
	display: flex;
	width: max-content;
	gap: 2.6rem;
	animation: marquee 32s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-soft);
	white-space: nowrap;
	transition: color 0.3s var(--ease);
}
.marquee-item:hover { color: var(--heading); }
.marquee-item i { font-size: 1.3rem; color: var(--accent-2); }
@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
	position: fixed;
	right: 1.4rem;
	bottom: 1.4rem;
	z-index: 1500;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	background: var(--gradient);
	box-shadow: 0 12px 28px -10px var(--accent-1);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: all 0.35s var(--ease);
}
.back-to-top.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   COMMAND PALETTE (⌘K)
   ============================================================ */
.cmdk-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	width: 100%;
	padding: 0.55rem 0.8rem;
	border-radius: 10px;
	border: 1px solid var(--glass-border);
	background: var(--glass-bg-2);
	color: var(--text-soft);
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s var(--ease);
}
.cmdk-trigger:hover {
	border-color: var(--glass-border-hover);
	color: var(--heading);
}
.cmdk-trigger kbd,
.cmdk-input-wrap kbd {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	padding: 0.12rem 0.4rem;
	border-radius: 6px;
	background: var(--bg-2);
	border: 1px solid var(--glass-border);
	color: var(--text-soft);
}

.cmdk {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 1rem 1rem;
}
.cmdk[hidden] { display: none; }
.cmdk-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 6, 14, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: fadeIn 0.2s var(--ease);
}
.cmdk-panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	border-radius: 16px;
	overflow: hidden;
	animation: cmdkPop 0.22s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmdkPop {
	from { opacity: 0; transform: translateY(-12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
.cmdk-input-wrap {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 1rem 1.1rem;
	border-bottom: 1px solid var(--glass-border);
}
.cmdk-input-wrap > i { font-size: 1.3rem; color: var(--accent-2); }
.cmdk-input-wrap input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: var(--heading);
	font-family: var(--font-body);
	font-size: 1.05rem;
}
.cmdk-input-wrap input::placeholder { color: var(--text-soft); }

.cmdk-list {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	max-height: 52vh;
	overflow-y: auto;
}
.cmdk-group-label {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-soft);
	padding: 0.6rem 0.7rem 0.3rem;
}
.cmdk-item {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.65rem 0.7rem;
	border-radius: 10px;
	cursor: pointer;
	color: var(--text);
	transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.cmdk-item .cmdk-icon {
	width: 32px;
	height: 32px;
	flex: none;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	background: var(--tag-bg);
	color: var(--tag-text);
}
.cmdk-item .cmdk-label { flex: 1; font-weight: 500; }
.cmdk-item .cmdk-hint { font-size: 0.75rem; color: var(--text-soft); }
.cmdk-item.active,
.cmdk-item:hover {
	background: var(--glass-bg-2);
	color: var(--heading);
}
.cmdk-item.active .cmdk-icon { background: var(--gradient); color: #fff; }
.cmdk-empty {
	padding: 1.6rem;
	text-align: center;
	color: var(--text-soft);
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */
.project-modal .modal-content {
	border-radius: var(--radius);
	color: var(--text);
	overflow: hidden;
}
.project-modal .modal-backdrop,
.modal-backdrop.show { opacity: 0.65; }
.pm-image {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
}
.pm-body { padding: 1.8rem; }
.pm-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 5;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--glass-border);
	background: rgba(7, 10, 19, 0.55);
	color: #fff;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s var(--ease);
}
.pm-close:hover { background: var(--accent-1); border-color: var(--accent-1); }
.pm-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.4rem;
	margin-bottom: 1rem;
	font-size: 0.85rem;
	color: var(--text-soft);
}
.pm-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.pm-meta i { color: var(--accent-2); }
.pm-body h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.pm-overview { color: var(--text-soft); margin-bottom: 1.4rem; }
.pm-section-label {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-2);
	margin-bottom: 0.6rem;
}
.pm-highlights {
	list-style: none;
	padding: 0;
	margin: 0 0 1.4rem;
}
.pm-highlights li {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: 0.5rem;
}
.pm-highlights li::before {
	content: "✓";
	font-weight: 700;
	position: absolute;
	left: 0;
	color: var(--accent-1);
}
.pm-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.6rem;
}

/* clickable affordance on project cards */
.card-custom { cursor: pointer; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
	/* The navbar is position:fixed at the top below 992px, so anchor jumps
	   (nav links + ⌘K navigation) must offset or the section heading lands
	   behind the bar. Honored by both CSS anchors and scrollIntoView. */
	html { scroll-padding-top: 5rem; scroll-padding-bottom: 5rem; }
	/* Clear the fixed bottom tab bar (≈56px + iOS safe area) so the footer and
	   bottom-anchored fixed UI don't sit underneath it. */
	#content-wrapper { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
	.back-to-top { bottom: calc(5rem + env(safe-area-inset-bottom)); }
	.cmdk-toast { bottom: calc(8.8rem + env(safe-area-inset-bottom)); }
	.hero-visual { max-width: 280px; margin-bottom: 1rem; }
	.float-chip { font-size: 0.72rem; padding: 0.35rem 0.6rem; }
	.chip-1 { left: -4%; }
	.chip-2 { right: -6%; }
	.chip-3 { left: -6%; }
	.chip-4 { right: -2%; }
	.section { padding: 5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	html { scroll-behavior: auto; }
}

/* ============================================================
   GITHUB STATS STRIP (hero, below hero-stats)
   ============================================================ */
.gh-stats-strip {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--text-soft);
}
/* Hidden until the async fetch populates it; the fade-up (matching the
   AOS "fade-up" feel) plays automatically once it switches to display:flex. */
.gh-stats-strip:empty { display: none; }
.gh-stats-strip:not(:empty) {
	animation: gh-fade-up 0.8s var(--ease) both;
}
@keyframes gh-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}
.gh-stats-link {
	color: var(--accent-1);
	font-size: 1.1rem;
	line-height: 1;
	transition: color 0.2s var(--ease);
}
.gh-stats-link:hover { color: var(--accent-2); }
.gh-stat-num { color: var(--heading); font-weight: 600; }
.gh-stat-sep {
	width: 1px;
	height: 0.85em;
	background: var(--glass-border);
}

/* ============================================================
   ⌘K DISCOVERABILITY TOAST (shown once, bottom-right)
   ============================================================ */
.cmdk-toast {
	position: fixed;
	bottom: 5.5rem;
	right: 1.5rem;
	z-index: 1080;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1rem;
	background: var(--glass-bg-2);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	font-family: var(--font-body);
	font-size: 0.82rem;
	color: var(--text-soft);
	pointer-events: none;
	box-shadow: var(--shadow);
}
.cmdk-hint-key {
	display: inline-flex;
	align-items: center;
	padding: 0.1em 0.45em;
	background: var(--tag-bg);
	color: var(--accent-1);
	border: 1px solid var(--glass-border-hover);
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.5;
}
@keyframes cmdk-hint-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes cmdk-hint-out {
	from { opacity: 1; transform: translateY(0); }
	to   { opacity: 0; transform: translateY(8px); }
}
.cmdk-toast.cmdk-hint-in  { animation: cmdk-hint-in  0.35s var(--ease) forwards; }
.cmdk-toast.cmdk-hint-out { animation: cmdk-hint-out 0.4s var(--ease) forwards; }

/* ============================================================
   3D CARD TILT — smooth reset transition on tilted panels
   ============================================================ */
.card-custom {
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
	will-change: transform;
}
/* Hero photo + terminal + testimonials tilt the same way; keep their reset
   smooth. transform-style flat avoids inner content clipping during rotation. */
.hero-photo,
.hero-terminal,
.testimonial {
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
	transform-style: flat;
	will-change: transform;
}
