/* Portfolio showcase (child theme). Uses the theme's colours and Barlow type. */
.sxp-page {
	--sxp-surface: #18191b;
	--sxp-line: rgba(255, 255, 255, 0.1);
	--sxp-muted: #a3a6ab;
	--sxp-accent: var(--color-primary, #C9F31D);
	color: #ffffff;
}

/* Intro */
.sxp-intro { padding: 40px 0 70px; }
.sxp-intro .elementor-heading-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(38px, 5vw, 72px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: #ffffff;
	max-width: 14ch;
	margin: 0;
}
.sxp-intro-text p {
	font-size: 19px;
	line-height: 1.6;
	color: var(--sxp-muted);
	max-width: 46ch;
	margin: 0;
}

/* Filters */
.sxp-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 50px;
	margin-bottom: 60px;
	border-bottom: 1px solid var(--sxp-line);
}
.sxp-filter {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	background: #ffeded1c;
	border: 1px solid var(--sxp-line);
	border-radius: 40px;
	padding: 11px 20px;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sxp-filter span { color: var(--sxp-muted); margin-left: 4px; transition: color 0.25s ease; }
.sxp-filter:hover { border-color: rgba(255, 255, 255, 0.4); }
.sxp-filter.is-active { background: #c9f31d; border-color: var(--sxp-accent); color: var(--color-heading); }
.sxp-filter.is-active span { color: rgba(4, 0, 11, 0.6); }
.sxp-filter:focus-visible { outline: 2px solid var(--sxp-accent); outline-offset: 3px; }

/* Grid */
.sxp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 80px 48px;
}
.sxp-card[hidden] { display: none; }

/* Browser window */
.sxp-window {
	display: block;
	background: var(--sxp-surface);
	border: 1px solid var(--sxp-line);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.35s ease, transform 0.35s ease;
}
.sxp-chrome {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 42px;
	padding: 0 16px;
	border-bottom: 1px solid var(--sxp-line);
}
.sxp-dots { display: flex; gap: 6px; }
.sxp-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.sxp-address {
	flex: 1;
	max-width: 280px;
	margin: 0 auto;
	padding: 4px 14px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--sxp-muted);
	font-size: 13px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sxp-view { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ffffff; }
.sxp-view img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: object-position 2.4s ease-in-out;
}
.sxp-window:hover, .sxp-window:focus-visible { border-color: rgba(201, 243, 29, 0.6); }
.sxp-window:hover .sxp-view img, .sxp-window:focus-visible .sxp-view img { object-position: center bottom; }
.sxp-window:focus-visible { outline: 2px solid var(--sxp-accent); outline-offset: 4px; }

/* Project info */
.sxp-info { padding-top: 26px; }
.sxp-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 15px; color: var(--sxp-muted); }
.sxp-meta span { padding-left: 12px; border-left: 1px solid var(--sxp-line); }
.sxp-name { font-family: var(--font-heading); font-size: 30px; font-weight: 600; line-height: 1.15; margin: 0 0 8px; }
.sxp-name a { color: #ffffff; text-decoration: none; }
.sxp-name a:hover { color: var(--sxp-accent); }
.sxp-what { font-size: 17px; line-height: 1.5; color: var(--sxp-muted); margin: 0 0 20px; max-width: 48ch; }
.sxp-links { display: flex; flex-wrap: wrap; gap: 24px; }
.sxp-links a {
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.3);
	text-underline-offset: 6px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.sxp-links a:hover { color: var(--sxp-accent); text-decoration-color: var(--sxp-accent); }
.sxp-links .sxp-live { color: var(--sxp-muted); }

/* Closing call to action */
.sxp-cta {
	margin-top: 120px;
	padding: 70px 60px;
	border-radius: 14px;
	background: var(--sxp-accent);
}
.sxp-cta .elementor-heading-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(32px, 4vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--color-heading);
	max-width: 16ch;
	margin: 0;
}
.sxp-cta-text p { color: rgba(4, 0, 11, 0.75); font-size: 18px; line-height: 1.6; max-width: 44ch; margin: 0; }
.sxp-cta .elementor-button {
	background: var(--color-heading) !important;
	color: #ffffff !important;
	border-radius: 40px;
	padding: 20px 36px;
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 600;
	transition: background-color 0.25s ease;
}
.sxp-cta .elementor-button:hover { background: #2a2d32 !important; }

@media (max-width: 991px) {
	.sxp-grid { grid-template-columns: 1fr; gap: 64px; }
	.sxp-cta { padding: 50px 30px; margin-top: 90px; }
}
@media (max-width: 575px) {
	.sxp-intro { padding: 20px 0 40px; }
	.sxp-filters { padding-bottom: 30px; margin-bottom: 40px; }
	.sxp-name { font-size: 26px; }
	.sxp-address { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
	.sxp-view img { transition: none; }
	.sxp-window:hover .sxp-view img { object-position: center top; }
}
/* ---------- Header section (v2): stronger rules so theme/Elementor defaults don't override ---------- */
.sxp-page .sxp-intro { padding-bottom: 80px !important; align-items: flex-end !important; }
.sxp-page .sxp-intro .elementor-widget-heading .elementor-heading-title {
	font-family: var(--font-heading) !important;
	font-size: clamp(42px, 5.6vw, 84px) !important;
	font-weight: 600 !important;
	line-height: 0.98 !important;
	letter-spacing: -0.03em !important;
	text-transform: none !important;
	color: #ffffff !important;
	max-width: 12ch;
	margin: 0;
}
.sxp-page .sxp-intro-text p {
	font-size: 18px !important;
	line-height: 1.65 !important;
	color: var(--sxp-muted) !important;
	max-width: 42ch;
	margin: 0 0 6px !important;
	padding-left: 24px;
	border-left: 2px solid var(--sxp-accent);
}

/* Filter bar */
.sxp-page .sxp-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 26px 0;
	margin-bottom: 70px;
	border-top: 1px solid var(--sxp-line);
	border-bottom: 1px solid var(--sxp-line);
}
.sxp-page .sxp-bar .sxp-filters { padding: 0 !important; margin: 0 !important; border: 0 !important; gap: 10px; }
.sxp-page .sxp-filters button.sxp-filter {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 40px !important;
	color: #ffffff !important;
	padding: 10px 18px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	overflow: visible;
}
.sxp-page .sxp-filters button.sxp-filter::after { display: none !important; }
.sxp-page .sxp-filters button.sxp-filter span {
	margin: 0 !important;
	min-width: 24px;
	padding: 2px 7px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--sxp-muted) !important;
	font-size: 13px;
	text-align: center;
}
.sxp-page .sxp-filters button.sxp-filter:hover { border-color: rgba(255, 255, 255, 0.5) !important; color: #ffffff !important; }
.sxp-page .sxp-filters button.sxp-filter.is-active {
	background: var(--sxp-accent) !important;
	border-color: var(--sxp-accent) !important;
	color: var(--color-heading) !important;
}
.sxp-page .sxp-filters button.sxp-filter.is-active span { background: rgba(4, 0, 11, 0.12); color: var(--color-heading) !important; }
.sxp-page .sxp-count { margin: 0; font-size: 15px; color: var(--sxp-muted); white-space: nowrap; }
.sxp-page .sxp-count strong { color: #ffffff; font-weight: 600; }

@media (max-width: 991px) {
	.sxp-page .sxp-intro { padding-bottom: 50px !important; align-items: flex-start !important; }
	.sxp-page .sxp-intro-text p { max-width: none; }
	.sxp-page .sxp-bar { margin-bottom: 50px; }
}
@media (max-width: 575px) {
	.sxp-page .sxp-bar { padding: 18px 0; }
	.sxp-page .sxp-filters { flex-wrap: nowrap !important; overflow-x: auto; width: 100%; padding-bottom: 4px !important; scrollbar-width: none; }
	.sxp-page .sxp-filters::-webkit-scrollbar { display: none; }
	.sxp-page .sxp-filters button.sxp-filter { flex: 0 0 auto; }
}
/* ---------- Hero (v3) ---------- */
.sxp-page .sxp-hero { padding: 0 0 110px !important; align-items: center !important; }
.sxp-page .sxp-hero .elementor-widget-heading .elementor-heading-title {
	font-family: var(--font-heading) !important;
	font-size: clamp(46px, 6vw, 94px) !important;
	font-weight: 600 !important;
	line-height: 0.95 !important;
	letter-spacing: -0.035em !important;
	text-transform: none !important;
	color: #ffffff !important;
	max-width: 11ch;
	margin: 0 !important;
}
.sxp-page .sxp-hero-text p {
	font-size: 19px !important;
	line-height: 1.65 !important;
	color: var(--sxp-muted) !important;
	max-width: 46ch;
	margin: 0 !important;
}
.sxp-page .sxp-hero-actions { gap: 14px !important; }
.sxp-page .sxp-btn .elementor-button {
	border-radius: 40px !important;
	padding: 18px 30px !important;
	font-family: var(--font-heading) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	line-height: 1 !important;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}
.sxp-page .sxp-btn-primary .elementor-button { background: var(--sxp-accent) !important; color: var(--color-heading) !important; border: 1px solid var(--sxp-accent) !important; }
.sxp-page .sxp-btn-primary .elementor-button:hover { background: #ffffff !important; border-color: #ffffff !important; }
.sxp-page .sxp-btn-ghost .elementor-button { background: transparent !important; color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.3) !important; }
.sxp-page .sxp-btn-ghost .elementor-button:hover { border-color: #ffffff !important; }

/* Overlapping browser windows */
.sxp-stack { position: relative; height: 520px; }
.sxp-stack::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 70%;
	height: 70%;
	transform: translate(-50%, -50%);
	background: radial-gradient(closest-side, rgba(201, 243, 29, 0.22), rgba(201, 243, 29, 0));
	filter: blur(20px);
	pointer-events: none;
}
.sxp-stack-item {
	position: absolute;
	width: 76%;
	background: var(--sxp-surface);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sxp-stack-item .sxp-chrome { height: 34px; }
.sxp-stack-item .sxp-address { font-size: 12px; }
.sxp-stack-1 { left: 0; top: 70px; transform: rotate(-6deg); z-index: 1; }
.sxp-stack-2 { left: 12%; top: 0; transform: rotate(0deg); z-index: 3; }
.sxp-stack-3 { right: 0; top: 130px; transform: rotate(5deg); z-index: 2; }
.sxp-stack:hover .sxp-stack-1 { transform: rotate(-9deg) translate(-14px, 6px); }
.sxp-stack:hover .sxp-stack-3 { transform: rotate(8deg) translate(14px, 10px); }
.sxp-stack:hover .sxp-stack-2 { transform: translateY(-8px); }

@media (max-width: 1199px) { .sxp-stack { height: 440px; } }
@media (max-width: 991px) {
	.sxp-page .sxp-hero { padding-bottom: 70px !important; }
	.sxp-stack { height: 420px; margin-top: 30px; }
}
@media (max-width: 575px) {
	.sxp-stack { height: 290px; }
	.sxp-stack-item { width: 82%; }
	.sxp-stack-1 { top: 45px; }
	.sxp-stack-3 { top: 85px; }
	.sxp-page .sxp-hero-text p { font-size: 17px !important; }
}
@media (prefers-reduced-motion: reduce) { .sxp-stack-item { transition: none; } }
/* ---------- Theme-style buttons + CTA (v4) ---------- */
.sxp-page .sxp-hero-actions .btn-animation { margin-left: 13px; }
.sxp-page .sxp-hero-actions .btn-animation + .btn-animation { margin-left: 40px; }
.sxp-page .sxp-hero-actions .btn-animation span { color: #ffffff; }
.sxp-page .sxp-hero-actions .elementor-widget-html { width: auto; }
.sxp-page .sxp-cta .btn-animation { color: var(--color-heading) !important; }
.sxp-page .sxp-cta .btn-animation span { color: var(--color-heading); }
.sxp-page .sxp-cta .btn-animation i { background: var(--color-heading) !important; color: var(--sxp-accent) !important; }
.sxp-page .sxp-cta .btn-animation::after { border-color: rgba(4, 0, 11, 0.45) !important; }
.sxp-page .sxp-cta .btn-animation:hover span { color: var(--color-heading); }
.sxp-page .sxp-cta .sxp-cta-text p { color: rgba(4, 0, 11, 0.78) !important; font-size: 18px !important; }
.sxp-page .sxp-cta .elementor-heading-title { color: var(--color-heading) !important; }
/* ---------- Full-page scroll on hover (v5) ---------- */
.sxp-view.sxp-scroll { position: relative; }
.sxp-page .sxp-view.sxp-scroll img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: auto !important;
	object-fit: initial;
	transform: translateY(0);
	transition: transform var(--sxp-time, 4s) cubic-bezier(0.45, 0, 0.25, 1);
	will-change: transform;
}
.sxp-page .sxp-window:hover .sxp-view.sxp-scroll img,
.sxp-page .sxp-window:focus-visible .sxp-view.sxp-scroll img { transform: translateY(var(--sxp-shift, 0)); }
@media (prefers-reduced-motion: reduce) {
	.sxp-page .sxp-view.sxp-scroll img { transition: none; }
	.sxp-page .sxp-window:hover .sxp-view.sxp-scroll img { transform: none; }
}