/* =========================
   PROJECTS LIST PAGE
   ========================= */

/* ── Hero ─────────────────────────────────── */
.pl-hero {
	position: relative;
	padding: 7rem 0 4rem;
	background: #050506;
	overflow: hidden;
}

.pl-hero::before {
	content: '';
	position: absolute;
	top: -20%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(162, 89, 255, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.pl-hero__container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 2rem;
	text-align: center;
}

.pl-hero__label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: 'Poppins', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-animation-blue-color, #7b93ff);
	text-transform: uppercase;
	letter-spacing: 2.5px;
	margin-bottom: 1.2rem;
}

.pl-hero__label::before,
.pl-hero__label::after {
	content: '';
	display: inline-block;
	width: 32px;
	height: 2px;
	background: var(--text-animation-blue-color, #7b93ff);
	border-radius: 1px;
}

.pl-hero__title {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	line-height: 1.15;
	margin: 0 0 1.2rem;
}

.pl-hero__accent {
	color: var(--text-animation-blue-color, #7b93ff);
}

.pl-hero__desc {
	font-family: 'Poppins', sans-serif;
	font-size: 1.05rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.5);
	max-width: 640px;
	margin: 0 auto 3rem;
}

.pl-hero__stats {
	display: flex;
	justify-content: center;
	gap: 3rem;
}

.pl-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
}

.pl-hero__stat-num {
	font-family: 'Oswald', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-animation-blue-color, #7b93ff);
}

.pl-hero__stat-label {
	font-family: 'Poppins', sans-serif;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ── Filtry ────────────────────────────────── */
.pl-filters {
	background: #050506;
	padding: 1.5rem 0 2rem;
	position: sticky;
	top: 70px;
	z-index: 10;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pl-filters__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: center;
}

.pl-filters__btn {
	font-family: 'Poppins', sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	padding: 0.55rem 1.3rem;
	border-radius: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	transition: all 0.25s ease;
	letter-spacing: 0.3px;
	opacity: 1;
}

.pl-filters__btn:hover {
	color: #ffffff;
	border-color: rgba(162, 89, 255, 0.5);
	background: rgba(162, 89, 255, 0.1);
}

.pl-filters__btn--active {
	color: #ffffff;
	background: rgba(162, 89, 255, 0.2);
	border-color: var(--text-animation-blue-color, #a259ff);
	box-shadow:
		0 0 0 1px rgba(162, 89, 255, 0.3),
		0 4px 16px rgba(162, 89, 255, 0.15);
	font-weight: 600;
}

.pl-filters__btn--active:hover {
	background: rgba(162, 89, 255, 0.28);
}

/* ── Grid ─────────────────────────────────── */
.pl-grid-section {
	background: #050506;
	padding: 1rem 0 6rem;
}

.pl-grid__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.pl-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

/* ── Card ─────────────────────────────────── */
.pl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #0a0a0c;
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition:
		transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		border-color 0.5s ease,
		box-shadow 0.5s ease;
}

.pl-card.is-hidden {
	display: none;
}

.pl-card:hover {
	transform: translateY(-6px);
	border-color: rgba(162, 89, 255, 0.25);
	box-shadow:
		0 24px 64px rgba(162, 89, 255, 0.08),
		0 0 0 1px rgba(162, 89, 255, 0.06);
}

/* Visual */
.pl-card__visual {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #111113;
}

.pl-card__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pl-card:hover .pl-card__visual img {
	transform: scale(1.04);
}

/* Number badge */
.pl-card__number {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	font-family: 'Oswald', sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 2rem;
	padding: 0.25rem 0.7rem;
	letter-spacing: 1.5px;
	z-index: 2;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: all 0.4s ease;
}

.pl-card:hover .pl-card__number {
	background: rgba(162, 89, 255, 0.3);
	border-color: rgba(162, 89, 255, 0.5);
	color: #ffffff;
}

/* Overlay z dwoma przyciskami */
.pl-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	background: rgba(5, 5, 6, 0.82);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
}

.pl-card:hover .pl-card__overlay {
	opacity: 1;
}

.pl-card__overlay-year {
	font-family: 'Oswald', sans-serif;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.4);
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.pl-card__overlay-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.2rem;
	border-radius: 2rem;
	font-family: 'Poppins', sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-decoration: none;
	color: #ffffff;
	background: rgba(162, 89, 255, 0.2);
	border: 1px solid rgba(162, 89, 255, 0.4);
	cursor: pointer;
	transition: all 0.3s ease;
}

.pl-card__overlay-btn:hover {
	background: rgba(162, 89, 255, 0.35);
	border-color: var(--text-animation-blue-color, #7b93ff);
	transform: translateY(-2px);
}

/* Body */
.pl-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.4rem 1.4rem 1.6rem;
	flex: 1;
}

.pl-card__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.pl-card__title {
	font-family: 'Oswald', sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.pl-card:hover .pl-card__title {
	color: var(--text-animation-blue-color, #7b93ff);
}

.pl-card__category {
	font-family: 'Poppins', sans-serif;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.3);
	white-space: nowrap;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	font-weight: 500;
	flex-shrink: 0;
}

.pl-card__desc {
	font-family: 'Poppins', sans-serif;
	font-size: 0.85rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.42);
	margin: 0;
}

.pl-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.25rem;
}

.pl-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.pl-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.22rem 0.65rem;
	background: rgba(162, 89, 255, 0.08);
	color: var(--text-animation-blue-color, #7b93ff);
	border-radius: 2rem;
	font-size: 0.68rem;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
	border: 1px solid rgba(162, 89, 255, 0.18);
	letter-spacing: 0.3px;
	transition: all 0.3s ease;
}

.pl-card__tag .projects__tag-icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	opacity: 0.8;
}

.pl-card:hover .pl-card__tag {
	background: rgba(162, 89, 255, 0.14);
	border-color: rgba(162, 89, 255, 0.35);
}

.pl-card__year {
	font-family: 'Oswald', sans-serif;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.2);
	letter-spacing: 1.5px;
	flex-shrink: 0;
}

/* ── Modal ────────────────────────────────── */
.pl-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
}

.pl-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.pl-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.pl-modal__content {
	position: relative;
	z-index: 1;
	max-width: 720px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	background: #0c0c0e;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1.2rem;
	transform: translateY(30px) scale(0.96);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pl-modal.is-open .pl-modal__content {
	transform: translateY(0) scale(1);
}

.pl-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	cursor: pointer;
	z-index: 2;
	transition: all 0.3s ease;
}

.pl-modal__close:hover {
	background: rgba(162, 89, 255, 0.3);
	border-color: rgba(162, 89, 255, 0.5);
}

.pl-modal__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111113;
}

.pl-modal__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.pl-modal__body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.pl-modal__category {
	font-family: 'Poppins', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-animation-blue-color, #7b93ff);
	text-transform: uppercase;
	letter-spacing: 2px;
}

.pl-modal__title {
	font-family: 'Oswald', sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
}

.pl-modal__desc {
	font-family: 'Poppins', sans-serif;
	font-size: 0.92rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

.pl-modal__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.pl-modal__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.28rem 0.75rem;
	background: rgba(162, 89, 255, 0.08);
	color: var(--text-animation-blue-color, #7b93ff);
	border-radius: 2rem;
	font-size: 0.72rem;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
	border: 1px solid rgba(162, 89, 255, 0.2);
}

.pl-modal__tag .projects__tag-icon {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	opacity: 0.8;
}

.pl-modal__actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.pl-modal__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.5rem;
	border-radius: 2rem;
	font-family: 'Poppins', sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease;
}

.pl-modal__link--primary {
	background: var(--text-animation-blue-color, #7b93ff);
	color: #050506;
}

.pl-modal__link--primary:hover {
	filter: brightness(1.15);
	transform: translateY(-2px);
}

.pl-modal__link--secondary {
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.pl-modal__link--secondary:hover {
	border-color: rgba(162, 89, 255, 0.4);
	color: #ffffff;
}

/* ── Marquee ──────────────────────────────── */
.pl-marquee {
	overflow: hidden;
	padding: 1.25rem 0;
	background: #050506;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.pl-marquee__track {
	display: flex;
	gap: 1.8rem;
	width: max-content;
	align-items: center;
	animation: marqueeScroll 28s linear infinite;
	white-space: nowrap;
}

.pl-marquee__track span {
	font-family: 'Oswald', sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.17);
}

.pl-marquee__sep {
	color: var(--text-animation-blue-color, #7b93ff) !important;
	opacity: 0.45;
}

@keyframes marqueeScroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ── CTA Section ──────────────────────────── */
.pl-cta {
	background: #050506;
	padding: 6rem 0;
}

.pl-cta__container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.pl-cta__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.9rem;
	background: rgba(0, 200, 100, 0.07);
	border: 1px solid rgba(0, 200, 100, 0.2);
	border-radius: 2rem;
	font-family: 'Poppins', sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	color: #00c864;
	margin-bottom: 1.5rem;
}

.pl-cta__badge-dot {
	width: 7px;
	height: 7px;
	background: #00c864;
	border-radius: 50%;
	animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.35;
		transform: scale(0.65);
	}
}

.pl-cta__title {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2rem, 3vw, 2.8rem);
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.15;
	margin: 0 0 1rem;
}

.pl-cta__accent {
	color: var(--text-animation-blue-color, #7b93ff);
}

.pl-cta__desc {
	font-family: 'Poppins', sans-serif;
	font-size: 0.95rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.42);
	margin: 0 0 2rem;
	max-width: 400px;
}

.pl-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

.pl-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1.6rem;
	border-radius: 2rem;
	font-family: 'Poppins', sans-serif;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.pl-cta__btn--primary {
	background: var(--text-animation-blue-color, #7b93ff);
	color: #050506;
}

.pl-cta__btn--primary:hover {
	filter: brightness(1.15);
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(162, 89, 255, 0.3);
}

.pl-cta__btn--ghost {
	background: transparent;
	color: rgba(255, 255, 255, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 0.78rem;
	font-weight: 400;
	padding: 0.6rem 1.2rem;
}

.pl-cta__btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.75);
}

/* GitHub Card */
.pl-cta__github {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.6rem;
	background: #0a0a0c;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 1.2rem;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	transition:
		border-color 0.35s ease,
		box-shadow 0.35s ease;
}

.pl-cta__github::before {
	content: '';
	position: absolute;
	top: -30%;
	right: -15%;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(162, 89, 255, 0.05) 0%, transparent 65%);
	pointer-events: none;
}

.pl-cta__github:hover {
	border-color: rgba(162, 89, 255, 0.3);
	box-shadow: 0 20px 60px rgba(162, 89, 255, 0.08);
}

.pl-cta__github-top {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.pl-cta__github-icon {
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.65);
	transition:
		background 0.3s ease,
		color 0.3s ease;
}

.pl-cta__github:hover .pl-cta__github-icon {
	background: rgba(162, 89, 255, 0.12);
	color: #ffffff;
}

.pl-cta__github-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.pl-cta__github-name {
	font-family: 'Oswald', sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: 0.5px;
}

.pl-cta__github-url {
	font-family: 'Poppins', sans-serif;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.28);
}

.pl-cta__github-arrow {
	color: rgba(255, 255, 255, 0.18);
	transition:
		transform 0.3s ease,
		color 0.3s ease;
	flex-shrink: 0;
}

.pl-cta__github:hover .pl-cta__github-arrow {
	color: var(--text-animation-blue-color, #7b93ff);
	transform: translate(3px, -3px);
}

.pl-cta__github-grid {
	display: grid;
	grid-template-rows: repeat(7, 1fr);
	grid-auto-flow: column;
	gap: 3px;
	height: 80px;
}

.pl-cta__github-cell {
	border-radius: 2px;
	background: rgba(162, 89, 255, var(--ci, 0.05));
	transition: background 0.25s ease;
}

.pl-cta__github:hover .pl-cta__github-cell {
	background: rgba(162, 89, 255, calc(var(--ci, 0.05) * 1.5));
}

.pl-cta__github-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pl-cta__github-foot span {
	font-family: 'Poppins', sans-serif;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.2);
}

.pl-cta__github-tag {
	color: var(--text-animation-blue-color, #7b93ff) !important;
	opacity: 0.55;
	transition: opacity 0.3s ease;
}

.pl-cta__github:hover .pl-cta__github-tag {
	opacity: 1;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
	.pl-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 900px) {
	.pl-cta__container {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		max-width: 560px;
	}

	.pl-cta__desc {
		max-width: none;
	}
}

@media (max-width: 768px) {
	.pl-hero {
		padding: 5rem 0 3rem;
	}

	.pl-hero__stats {
		gap: 2rem;
	}

	.pl-grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		max-width: 540px;
		margin: 0 auto;
	}

	.pl-card__body {
		padding: 1.2rem;
	}

	.pl-card__header {
		flex-direction: column;
		gap: 0.2rem;
	}

	.pl-card__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.pl-modal__content {
		width: 95%;
		border-radius: 0.8rem;
	}

	.pl-modal__body {
		padding: 1.5rem;
	}

	.pl-modal__actions {
		flex-direction: column;
	}

	.pl-filters {
		position: static;
	}
}

@media (max-width: 480px) {
	.pl-hero__title {
		font-size: 2rem;
	}

	.pl-hero__stats {
		flex-direction: column;
		gap: 1.2rem;
	}

	.pl-card__title {
		font-size: 0.95rem;
	}

	.pl-card__desc {
		font-size: 0.8rem;
	}

	.pl-filters__btn {
		font-size: 0.72rem;
		padding: 0.45rem 1rem;
	}
}
