/**
 * Slider Box Portfolio Slider Frontend Styles
 * Premium, dark-mode technical styling matching modern agency reference page.
 * Extended with full CSS variables support for dynamic colors, sizes, and font selections.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

.sb-portfolio-slider-section {
	/* Variables - customizable in WP Option Settings */
	--sb-bg: #030303;
	--sb-card-bg: rgba(15, 15, 17, 0.7);
	--sb-card-border: rgba(255, 255, 255, 0.06);
	--sb-text: #ffffff;
	--sb-text-muted: #a1a1aa;
	--sb-primary: #f97316;
	--sb-primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
	--font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-inter: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Dynamic Color & Sizing variables injected via inline style tag */
	--sb-subtitle-color: var(--sb-primary);
	--sb-title-color: #ffffff;
	--sb-desc-color: var(--sb-text-muted);
	--sb-slide-title-color: #ffffff;
	--sb-slide-desc-color: var(--sb-text-muted);
	--sb-title-size: 48px;
	--sb-slide-title-size: 24px;

	position: relative;
	background-color: var(--sb-bg);
	color: var(--sb-text);
	padding: 100px 20px;
	overflow: hidden;
	font-family: var(--font-inter);
}

.sb-portfolio-slider-section * {
	box-sizing: border-box;
}

/* Ambient Glowing Background Orbs */
.sb-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(140px);
	opacity: 0.15;
	pointer-events: none;
	z-index: 1;
	mix-blend-mode: plus-lighter;
}

.sb-orb-1 {
	top: -10%;
	right: -5%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, #f97316 0%, rgba(249, 115, 22, 0) 70%);
	animation: sb-orb-float-1 25s infinite alternate ease-in-out;
}

.sb-orb-2 {
	bottom: -15%;
	left: -5%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
	animation: sb-orb-float-2 30s infinite alternate ease-in-out;
}

@keyframes sb-orb-float-1 {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(-80px, 50px) scale(1.1); }
}

@keyframes sb-orb-float-2 {
	0% { transform: translate(0, 0) scale(1.1); }
	100% { transform: translate(80px, -50px) scale(0.9); }
}

/* Modern Technical Gridlines background */
.sb-gridlines {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
	background-size: 60px 60px;
	background-position: center center;
	pointer-events: none;
	z-index: 2;
}

/* Page/Section Container */
.sb-section-container {
	max-width: 1280px;
	margin: 0 auto;
	position: relative;
	z-index: 3;
}

/* Centered Header Section */
.sb-section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 70px auto;
}

.sb-sup-title {
	font-family: var(--font-outfit);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	color: var(--sb-subtitle-color);
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 12px;
	position: relative;
}

.sb-main-title {
	font-family: var(--font-outfit);
	font-size: var(--sb-title-size);
	font-weight: 800;
	line-height: 1.15;
	color: var(--sb-title-color);
	margin: 0 0 16px 0;
	letter-spacing: -0.02em;
}

.sb-gradient-accent {
	background: var(--sb-primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	position: relative;
}

.sb-gradient-accent::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 3px;
	background: var(--sb-primary-gradient);
	border-radius: 2px;
}

.sb-title-separator {
	width: 80px;
	height: 1px;
	background: rgba(255, 255, 255, 0.15);
	margin: 24px auto;
}

.sb-description {
	font-size: 16px;
	line-height: 1.6;
	color: var(--sb-desc-color);
	margin: 0;
	font-weight: 400;
}

/* Swiper Outer Wrap */
.sb-swiper-outer-wrap {
	position: relative;
	padding: 0 20px;
}

/* Swiper Core Settings */
.sb-swiper-container {
	padding: 20px 0 60px 0 !important;
	overflow: visible !important;
}

/* Portfolio Card Design */
.sb-portfolio-card {
	background: var(--sb-card-bg);
	border: 1px solid var(--sb-card-border);
	border-radius: 20px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sb-portfolio-card:hover {
	transform: translateY(-8px);
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
				0 0 20px rgba(249, 115, 22, 0.05);
}

/* Card Image Area */
.sb-card-media-wrap {
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #0d0d0f;
}

.sb-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-portfolio-card:hover .sb-card-image {
	transform: scale(1.08);
}

.sb-image-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #141416;
	color: #27272a;
}

.sb-image-fallback span {
	font-size: 48px;
	width: 48px;
	height: 48px;
}

/* Dynamic absolute badge overlay */
.sb-card-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 6px 14px;
	font-family: var(--font-outfit);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #ffffff;
	border-radius: 9999px;
	text-transform: uppercase;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card Details */
.sb-card-details {
	padding: 30px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.sb-card-title {
	font-family: var(--font-outfit);
	font-size: var(--sb-slide-title-size);
	font-weight: 700;
	line-height: 1.25;
	color: var(--sb-slide-title-color);
	margin: 0 0 12px 0;
	transition: color 0.3s ease;
}

.sb-portfolio-card:hover .sb-card-title {
	color: var(--sb-slide-title-color);
}

.sb-card-desc {
	font-family: var(--font-inter);
	font-size: 14px;
	line-height: 1.55;
	color: var(--sb-slide-desc-color);
	margin: 0 0 24px 0;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Card Link Button with Sliding Arrow */
.sb-card-link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
	color: #ffffff !important;
	font-family: var(--font-outfit);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	transition: all 0.3s ease;
	position: relative;
	padding-bottom: 2px;
}

.sb-card-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.2);
	transform: scaleX(1);
	transform-origin: left;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.sb-portfolio-card:hover .sb-card-link {
	color: var(--sb-primary) !important;
}

.sb-portfolio-card:hover .sb-card-link::after {
	background: var(--sb-primary);
}

.sb-link-arrow {
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-portfolio-card:hover .sb-link-arrow {
	transform: translateX(4px);
	color: var(--sb-primary);
}

/* Swiper Custom Navigation Button Controls */
.sb-swiper-arrow {
	width: 50px !important;
	height: 50px !important;
	border-radius: 50% !important;
	background: rgba(20, 20, 22, 0.6) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	color: #ffffff !important;
	backdrop-filter: blur(10px) !important;
	-webkit-backdrop-filter: blur(10px) !important;
	transition: all 0.3s ease !important;
	z-index: 15 !important;
	margin-top: -45px !important;
}

.sb-swiper-arrow::after {
	display: none !important;
}

.sb-swiper-arrow svg {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.sb-swiper-arrow:hover {
	background: var(--sb-primary-gradient) !important;
	border-color: transparent !important;
	box-shadow: 0 0 15px rgba(249, 115, 22, 0.4) !important;
}

.sb-swiper-next {
	right: -30px !important;
}

.sb-swiper-prev {
	left: -30px !important;
}

.sb-swiper-next:hover svg {
	transform: translateX(2px);
}

.sb-swiper-prev:hover svg {
	transform: translateX(-2px);
}

@media (max-width: 1360px) {
	.sb-swiper-next { right: -10px !important; }
	.sb-swiper-prev { left: -10px !important; }
}

@media (max-width: 768px) {
	.sb-swiper-arrow {
		display: none !important;
	}
	.sb-portfolio-slider-section {
		padding: 60px 10px;
	}
	.sb-main-title {
		font-size: 32px;
	}
}

/* Premium Swiper Pagination Styling */
.sb-swiper-pagination {
	bottom: 10px !important;
}

.sb-swiper-pagination .swiper-pagination-bullet {
	width: 8px !important;
	height: 8px !important;
	background: rgba(255, 255, 255, 0.2) !important;
	opacity: 1 !important;
	margin: 0 6px !important;
	border-radius: 4px !important;
	transition: all 0.3s ease !important;
}

.sb-swiper-pagination .swiper-pagination-bullet-active {
	background: var(--sb-primary-gradient) !important;
	width: 24px !important;
	box-shadow: 0 0 8px rgba(249, 115, 22, 0.4) !important;
}
