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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: 'Inter', sans-serif;
	min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: 'Space Grotesk', sans-serif;
}

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

button {
	cursor: pointer;
	font-family: 'Inter', sans-serif;
}

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


:root {
	--purple-dark: #1B1434;
	--purple-mid: #5F279E;
	--purple-light: #B85DF1;
	--btn-gradient: linear-gradient(100.55deg, #1B1434 0%, #5F279E 50%, #B85DF1 100%);
	--purple-glow: rgba(95, 39, 158, 0.15);
	--bg-page: #f5f3fb;
	--bg-header: #ffffff;
	--bg-card: #ffffff;
	--bg-tabs: #ffffff;
	--bg-input: #ede9f8;
	--bg-niche-pill: rgba(95, 39, 158, 0.06);
	--text-primary: #0d0b14;
	--text-body: #2d2840;
	--text-muted: #6b6785;
	--border-page: #e8e3f5;
	--border-card: #ece8f7;
	--border-purple: rgba(95, 39, 158, 0.18);
	--border-input: rgba(95, 39, 158, 0.22);
	--live-bg: rgba(22, 163, 74, 0.09);
	--live-color: #16a34a;
	--live-border: rgba(22, 163, 74, 0.25);
	--staging-bg: rgba(202, 138, 4, 0.09);
	--staging-color: #b45309;
	--staging-border: rgba(202, 138, 4, 0.25);
	--done-bg: rgba(95, 39, 158, 0.09);
	--done-color: #5F279E;
	--done-border: rgba(95, 39, 158, 0.25);
	--arch-bg: rgba(107, 103, 133, 0.07);
	--arch-color: #6b6785;
	--arch-border: rgba(107, 103, 133, 0.18);
	--shadow-header: 0 1px 0 #e8e3f5, 0 2px 16px rgba(95, 39, 158, 0.06);
	--shadow-card: 0 2px 12px rgba(95, 39, 158, 0.07);
	--shadow-card-hover: 0 8px 32px rgba(95, 39, 158, 0.14);
	--radius: 12px;
	--radius-sm: 8px;
}

body {
	background: var(--bg-page);
	color: var(--text-body);
}

header#site-header {
	display: none !important;
}

.pf-topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg-header);
	box-shadow: var(--shadow-header);
	padding: 0 40px;
	display: flex;
	align-items: center;
	gap: 16px;
	height: 64px;
}

.pf-topbar-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	text-decoration: none;
}

.pf-logo-icon {
	width: 34px;
	height: 34px;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pf-logo-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pf-logo-name {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
}

.pf-logo-name em {
	font-style: normal;
	background: var(--btn-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.pf-divider {
	width: 1px;
	height: 26px;
	background: var(--border-page);
	flex-shrink: 0;
}

.pf-topbar-tag {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--purple-mid);
	background: rgba(95, 39, 158, 0.08);
	border: 1px solid rgba(95, 39, 158, 0.15);
	padding: 4px 10px;
	border-radius: 99px;
	flex-shrink: 0;
}

.pf-topbar-right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pf-search {
	position: relative;
}

.pf-search svg {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
}

.pf-search input {
	background: var(--bg-input);
	border: 1px solid var(--border-input);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	padding: 8px 14px 8px 34px;
	width: 260px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.pf-search input::placeholder {
	color: var(--text-muted);
}

.pf-search input:focus {
	border-color: var(--purple-mid);
	box-shadow: 0 0 0 3px rgba(95, 39, 158, 0.1);
}

.portfolio-page {
	max-width: 1360px;
	margin: 0 auto;
	padding: 36px 40px 80px;
	width: 100%;
}

.pf-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 32px;
}

.pf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--purple-mid);
	margin-bottom: 8px;
}

.pf-eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--purple-light);
	border-radius: 50%;
}

.pf-title {
	font-size: clamp(22px, 2.4vw, 34px);
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.15;
}

.pf-title .grad {
	background: var(--btn-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.pf-subtitle {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 6px;
}

.pf-stats {
	display: flex;
	gap: 4px;
}

.pf-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 24px;
	background: var(--bg-card);
	border: 1px solid var(--border-card);
	border-radius: var(--radius-sm);
}

.pf-stat:first-child {
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.pf-stat:last-child {
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.pf-stat-val {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 24px;
	font-weight: 700;
	background: var(--btn-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
}

.pf-stat-label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--text-muted);
	margin-top: 4px;
	white-space: nowrap;
}

.tabs-area {
	background: var(--bg-tabs);
	border: 1px solid var(--border-card);
	border-radius: 14px;
	padding: 20px 24px 0;
	margin-bottom: 28px;
	box-shadow: var(--shadow-card);
}

.platform-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.platform-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-input);
	border: 1px solid var(--border-purple);
	color: var(--text-muted);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: var(--radius-sm);
	transition: all .18s;
	user-select: none;
}

.platform-tab:hover {
	color: var(--purple-mid);
	border-color: var(--purple-mid);
	background: rgba(95, 39, 158, 0.06);
}

.platform-tab.active {
	background: var(--btn-gradient);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 14px rgba(95, 39, 158, 0.3);
}

.tab-count {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.platform-tab:not(.active) .tab-count {
	background: rgba(95, 39, 158, 0.1);
	color: var(--purple-mid);
}

.niche-bar {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
	padding: 14px 0 16px;
	border-top: 1px solid var(--border-page);
	margin-top: 16px;
	min-height: 56px;
}

.niche-bar-empty {
	display: none;
}

.niche-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--text-muted);
	margin-right: 2px;
	flex-shrink: 0;
}

.niche-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--bg-niche-pill);
	border: 1px solid var(--border-purple);
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 500;
	padding: 4px 13px;
	border-radius: 99px;
	transition: all .16s;
	user-select: none;
}

.niche-pill:hover {
	color: var(--purple-mid);
	border-color: var(--purple-mid);
	background: rgba(95, 39, 158, 0.08);
}

.niche-pill.active {
	background: var(--btn-gradient);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 2px 8px rgba(95, 39, 158, 0.25);
}

.niche-pill.active .pill-x {
	opacity: 1;
}

.pill-x {
	opacity: 0;
	font-size: 11px;
	font-weight: 700;
	margin-left: 2px;
	line-height: 1;
}

.niche-active-count {
	display: none;
	font-size: 11px;
	font-weight: 700;
	background: var(--purple-mid);
	color: #fff;
	padding: 2px 8px;
	border-radius: 99px;
	margin-left: 4px;
}

.niche-active-count.visible {
	display: inline-flex;
	align-items: center;
}

.niche-clear {
	display: none;
	font-size: 11px;
	font-weight: 600;
	color: var(--purple-mid);
	background: transparent;
	border: 1px solid var(--border-purple);
	padding: 4px 10px;
	border-radius: 99px;
	margin-left: 4px;
	transition: all .15s;
}

.niche-clear:hover {
	background: rgba(95, 39, 158, 0.08);
	border-color: var(--purple-mid);
}

.niche-clear.visible {
	display: inline-flex;
	align-items: center;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 18px;
}

.project-card {
	background: var(--bg-card);
	border: 1px solid var(--border-card);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-card);
	transition: transform .22s, border-color .22s, box-shadow .22s;
}

.project-card:hover {
	transform: translateY(-4px);
	border-color: rgba(95, 39, 158, 0.3);
	box-shadow: var(--shadow-card-hover);
}

.card-preview {
	width: 100%;
	height: 192px;
	position: relative;
	overflow: hidden;
	background: var(--bg-input);
	flex-shrink: 0;
}

.card-preview img,
.card-preview .screenshot-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s;
}

.project-card:hover .card-preview img,
.project-card:hover .screenshot-img {
	transform: scale(1.04);
}

.preview-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ede9f8 0%, #f5f3fb 100%);
	gap: 8px;
	position: relative;
	overflow: hidden;
}

.preview-placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 65% 35%, rgba(184, 93, 241, 0.12) 0%, transparent 65%);
}

.preview-initials {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 44px;
	font-weight: 700;
	background: var(--btn-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	opacity: 0.45;
	position: relative;
	z-index: 1;
}

.preview-url-text {
	font-size: 11px;
	color: var(--text-muted);
	max-width: 200px;
	text-align: center;
	word-break: break-all;
	position: relative;
	z-index: 1;
}

.card-status {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	padding: 3px 9px;
	border-radius: 99px;
	border: 1px solid transparent;
	backdrop-filter: blur(10px);
}

.status-live {
	background: var(--live-bg);
	color: var(--live-color);
	border-color: var(--live-border);
}

.status-staging {
	background: var(--staging-bg);
	color: var(--staging-color);
	border-color: var(--staging-border);
}

.status-completed {
	background: var(--done-bg);
	color: var(--done-color);
	border-color: var(--done-border);
}

.status-archived {
	background: var(--arch-bg);
	color: var(--arch-color);
	border-color: var(--arch-border);
}

.card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.card-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.3;
}

.card-niches {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.card-niche {
	font-size: 11px;
	color: var(--purple-mid);
	background: rgba(95, 39, 158, 0.07);
	border: 1px solid rgba(95, 39, 158, 0.15);
	padding: 2px 9px;
	border-radius: 99px;
}

.card-footer {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--border-page);
}

.card-url {
	font-size: 11px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	transition: color .18s;
}

.card-url:hover {
	color: var(--purple-mid);
}

.card-open-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: transparent;
	border: 1px solid var(--border-purple);
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 6px;
	flex-shrink: 0;
	transition: all .16s;
	text-decoration: none;
}

.card-open-btn:hover {
	border-color: var(--purple-mid);
	color: var(--purple-mid);
	background: rgba(95, 39, 158, 0.05);
}

.card-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--btn-gradient);
	border: none;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 6px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(95, 39, 158, 0.25);
	transition: opacity .16s, transform .14s;
}

.card-copy-btn:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.card-copy-btn.copied {
	background: #16a34a;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.empty-state {
	grid-column: 1/-1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 80px 20px;
	text-align: center;
	color: var(--text-muted);
}

.empty-state-icon {
	width: 60px;
	height: 60px;
	border-radius: 14px;
	background: rgba(95, 39, 158, 0.07);
	border: 1px solid rgba(95, 39, 158, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--purple-mid);
}

.empty-state p {
	font-size: 14px;
}

.pf-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 36px;
	flex-wrap: wrap;
}

.pf-pagination.hidden {
	display: none;
}

.pf-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	background: var(--bg-card);
	border: 1px solid var(--border-purple);
	color: var(--text-body);
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	transition: all .16s;
	justify-content: center;
}

.pf-page-btn:hover:not(:disabled):not(.active) {
	border-color: var(--purple-mid);
	color: var(--purple-mid);
	background: rgba(95, 39, 158, 0.05);
}

.pf-page-btn.active {
	background: var(--btn-gradient);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 2px 8px rgba(95, 39, 158, 0.25);
}

.pf-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.pf-page-ellipsis {
	color: var(--text-muted);
	font-size: 13px;
	padding: 0 4px;
}

.pf-page-info {
	font-size: 12px;
	color: var(--text-muted);
	margin: 0 12px;
}

.copy-toast {
	position: fixed;
	bottom: 28px;
	right: 28px;
	background: #16a34a;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 11px 18px 11px 14px;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
	transform: translateY(14px);
	opacity: 0;
	transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
	z-index: 9999;
	pointer-events: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.copy-toast.show {
	transform: translateY(0);
	opacity: 1;
}

footer {
    border-top: 1px solid var(--border-page);
    padding: 20px;
    text-align: center;
}

@media (max-width: 960px) {
	.pf-topbar {
		padding: 0 24px;
	}

	.portfolio-page {
		padding: 28px 24px 60px;
	}

	.pf-stats {
		display: none;
	}

	.projects-grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}
}

@media (max-width: 600px) {
	.pf-topbar {
		padding: 0 16px;
		height: 56px;
	}

	.pf-topbar-tag {
		display: none;
	}

	.pf-search input {
		width: 170px;
	}

	.portfolio-page {
		padding: 20px 16px 60px;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.tabs-area {
		padding: 14px 14px 0;
	}
}