/* ==========================================================================
   Spheral Studio Main CSS - Dark Theme & High Aesthetics
   ========================================================================== */

:root {
	--spheral-bg: #0d0d0e;
	--spheral-surface: #141416;
	--spheral-surface-2: #1b1b1e;
	--spheral-border: rgba(255, 255, 255, 0.08);
	--spheral-text: #ffffff;
	--spheral-text-muted: #8e8e93;
	--spheral-accent: #e2ff3d;
	--spheral-accent-hover: #cbe628;
	--spheral-font-display: 'Syne', sans-serif;
	--spheral-font-body: 'Inter', sans-serif;
	--spheral-radius: 12px;
	--spheral-transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	background-color: var(--spheral-bg);
	color: var(--spheral-text);
	font-family: var(--spheral-font-body);
	-webkit-font-smoothing: antialiased;
}

body {
	background-color: var(--spheral-bg);
	color: var(--spheral-text);
	overflow-x: hidden;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--spheral-transition);
}

ul, ol {
	list-style: none;
}

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

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
	color: inherit;
}

.spheral-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ==========================================================================
   Dynamic Custom Cursor
   ========================================================================== */
#spheral-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 36px;
	height: 36px;
	border: 1.5px solid rgba(226, 255, 61, 0.6);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	transform: translate(-50%, -50%);
	transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

#spheral-cursor-dot {
	position: fixed;
	top: 0;
	left: 0;
	width: 6px;
	height: 6px;
	background: var(--spheral-accent);
	border-radius: 50%;
	pointer-events: none;
	z-index: 10000;
	transform: translate(-50%, -50%);
}

#spheral-cursor.hovered {
	width: 64px;
	height: 64px;
	background: rgba(226, 255, 61, 0.15);
	border-color: var(--spheral-accent);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.spheral-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 20px 0;
	background: rgba(13, 13, 14, 0.75);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--spheral-border);
	transition: var(--spheral-transition);
}

.spheral-header-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.spheral-logo-text {
	font-family: var(--spheral-font-display);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.spheral-logo-text small {
	font-size: 0.85rem;
	color: var(--spheral-accent);
}

.spheral-main-navigation .spheral-nav-list {
	display: flex;
	gap: 36px;
}

.spheral-main-navigation a {
	font-family: var(--spheral-font-body);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--spheral-text-muted);
	position: relative;
}

.spheral-main-navigation a:hover {
	color: var(--spheral-text);
}

.spheral-header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.spheral-btn-header {
	padding: 10px 22px;
	border: 1px solid var(--spheral-border);
	border-radius: 30px;
	font-size: 0.9rem;
	font-weight: 600;
	transition: var(--spheral-transition);
}

.spheral-btn-header:hover {
	background: var(--spheral-accent);
	color: #000;
	border-color: var(--spheral-accent);
}

.spheral-search-trigger, .spheral-menu-toggle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--spheral-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	transition: var(--spheral-transition);
}

.spheral-search-trigger:hover, .spheral-menu-toggle:hover {
	background: var(--spheral-surface);
	color: var(--spheral-accent);
	border-color: var(--spheral-accent);
}

.spheral-hamburger-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 18px;
}

.spheral-hamburger-icon span {
	height: 2px;
	background: #fff;
	width: 100%;
	transition: var(--spheral-transition);
}

.spheral-hamburger-icon span:last-child {
	width: 60%;
	align-self: flex-end;
}

/* ==========================================================================
   Side Overlay Menu
   ========================================================================== */
.spheral-side-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: var(--spheral-transition);
}

.spheral-side-overlay.active {
	opacity: 1;
	visibility: visible;
}

.spheral-overlay-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
}

.spheral-overlay-content {
	position: absolute;
	top: 0;
	right: 0;
	width: 50vw;
	min-width: 480px;
	height: 100%;
	background: var(--spheral-surface);
	border-left: 1px solid var(--spheral-border);
	padding: 60px 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transform: translateX(100%);
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.spheral-side-overlay.active .spheral-overlay-content {
	transform: translateX(0);
}

.spheral-overlay-close {
	position: absolute;
	top: 32px;
	right: 40px;
	font-size: 1.8rem;
	color: var(--spheral-text-muted);
}

.spheral-overlay-close:hover {
	color: var(--spheral-accent);
}

.spheral-overlay-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.spheral-overlay-tagline {
	font-size: 0.85rem;
	color: var(--spheral-accent);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	display: block;
	margin-bottom: 24px;
}

.spheral-overlay-menu li {
	margin-bottom: 16px;
}

.spheral-overlay-menu a {
	font-family: var(--spheral-font-display);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--spheral-text);
}

.spheral-overlay-menu a:hover {
	color: var(--spheral-accent);
	padding-left: 12px;
}

.spheral-overlay-info-block {
	margin-bottom: 32px;
}

.spheral-overlay-info-block h4 {
	font-size: 0.9rem;
	color: var(--spheral-text-muted);
	margin-bottom: 8px;
}

.spheral-social-links a {
	display: inline-block;
	margin-right: 12px;
	font-size: 0.9rem;
	color: var(--spheral-accent);
}

/* ==========================================================================
   Hero Section & Canvas
   ========================================================================== */
.spheral-hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: 100px;
}

.spheral-hero-canvas-wrap {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

#spheral-hero-canvas {
	width: 100%;
	height: 100%;
}

.spheral-hero-content-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
}

.spheral-hero-container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}

.spheral-hero-tagline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--spheral-border);
	font-size: 0.85rem;
	color: var(--spheral-text-muted);
	margin-bottom: 28px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.spheral-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--spheral-accent);
}

.spheral-hero-title {
	font-family: var(--spheral-font-display);
	font-size: clamp(2.8rem, 6vw, 5.2rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin-bottom: 24px;
	background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.spheral-hero-subtitle {
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	color: var(--spheral-text-muted);
	max-width: 680px;
	margin: 0 auto 40px;
}

.spheral-hero-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* Buttons */
.spheral-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 36px;
	border-radius: 40px;
	font-size: 1rem;
	font-weight: 600;
	transition: var(--spheral-transition);
}

.spheral-btn-primary {
	background: var(--spheral-accent);
	color: #000;
}

.spheral-btn-primary:hover {
	background: var(--spheral-accent-hover);
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(226, 255, 61, 0.25);
}

.spheral-btn-outline {
	background: transparent;
	border: 1px solid var(--spheral-border);
	color: var(--spheral-text);
}

.spheral-btn-outline:hover {
	border-color: var(--spheral-accent);
	color: var(--spheral-accent);
	transform: translateY(-3px);
}

/* ==========================================================================
   Marquee Ticker
   ========================================================================== */
.spheral-marquee-wrap {
	width: 100%;
	overflow: hidden;
	background: var(--spheral-surface);
	border-y: 1px solid var(--spheral-border);
	padding: 24px 0;
	white-space: nowrap;
}

.spheral-marquee-track {
	display: inline-flex;
	animation: marquee-scroll 24s linear infinite;
}

.spheral-marquee-item {
	font-family: var(--spheral-font-display);
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	font-weight: 800;
	color: var(--spheral-text-muted);
	padding: 0 20px;
	letter-spacing: 0.04em;
}

@keyframes marquee-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections Common Styling
   ========================================================================== */
.spheral-section {
	padding: 120px 0;
}

.spheral-section-header {
	margin-bottom: 64px;
}

.spheral-section-label {
	font-size: 0.85rem;
	color: var(--spheral-accent);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	display: block;
	margin-bottom: 12px;
}

.spheral-section-title {
	font-family: var(--spheral-font-display);
	font-size: clamp(2rem, 3.5vw, 3.2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* ==========================================================================
   Showcase Projects
   ========================================================================== */
.spheral-showcase-list {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.spheral-showcase-item {
	position: relative;
	border-radius: var(--spheral-radius);
	overflow: hidden;
	background: var(--spheral-surface);
	border: 1px solid var(--spheral-border);
}

.spheral-showcase-link {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
}

.spheral-showcase-item.odd .spheral-showcase-link {
	grid-template-columns: 1fr 1.2fr;
}

.spheral-showcase-item.odd .spheral-showcase-image-wrap {
	order: 2;
}

.spheral-showcase-image-wrap {
	height: 480px;
	overflow: hidden;
}

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

.spheral-showcase-item:hover .spheral-showcase-image-wrap img {
	transform: scale(1.06);
}

.spheral-showcase-info {
	padding: 60px;
}

.spheral-showcase-cat {
	font-size: 0.85rem;
	color: var(--spheral-accent);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	display: block;
	margin-bottom: 16px;
}

.spheral-showcase-title {
	font-family: var(--spheral-font-display);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 700;
}

/* ==========================================================================
   Services Interactive List
   ========================================================================== */
.spheral-services-list {
	border-top: 1px solid var(--spheral-border);
}

.spheral-service-item {
	border-bottom: 1px solid var(--spheral-border);
	transition: var(--spheral-transition);
}

.spheral-service-header {
	display: flex;
	align-items: center;
	padding: 32px 0;
	position: relative;
}

.spheral-service-num {
	font-family: var(--spheral-font-display);
	font-size: 1.2rem;
	color: var(--spheral-text-muted);
	width: 80px;
}

.spheral-service-title {
	font-family: var(--spheral-font-display);
	font-size: clamp(1.5rem, 2.5vw, 2.2rem);
	font-weight: 700;
	flex-grow: 1;
	transition: var(--spheral-transition);
}

.spheral-service-arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--spheral-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	transition: var(--spheral-transition);
}

.spheral-service-item:hover .spheral-service-title {
	color: var(--spheral-accent);
	padding-left: 12px;
}

.spheral-service-item:hover .spheral-service-arrow {
	background: var(--spheral-accent);
	color: #000;
	border-color: var(--spheral-accent);
	transform: rotate(45deg);
}

.spheral-service-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
}

.spheral-service-item:hover .spheral-service-body {
	max-height: 200px;
	padding-bottom: 32px;
}

.spheral-service-body p {
	color: var(--spheral-text-muted);
	max-width: 680px;
	margin-left: 80px;
}

/* ==========================================================================
   Awards Section
   ========================================================================== */
.spheral-awards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
}

.spheral-award-card {
	background: var(--spheral-surface);
	border: 1px solid var(--spheral-border);
	padding: 40px 32px;
	border-radius: var(--spheral-radius);
	transition: var(--spheral-transition);
}

.spheral-award-card:hover {
	border-color: var(--spheral-accent);
	transform: translateY(-6px);
}

.spheral-award-year {
	font-size: 0.85rem;
	color: var(--spheral-accent);
	font-weight: 700;
	display: block;
	margin-bottom: 12px;
}

.spheral-award-name {
	font-family: var(--spheral-font-display);
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.spheral-award-desc {
	font-size: 0.9rem;
	color: var(--spheral-text-muted);
}

/* ==========================================================================
   Portfolio Grid Section
   ========================================================================== */
.spheral-portfolio-grid {
	display: grid;
	gap: 32px;
}

.cols-2 .spheral-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
.cols-3 .spheral-portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.cols-4 .spheral-portfolio-grid { grid-template-columns: repeat(4, 1fr); }

.spheral-portfolio-item {
	position: relative;
	border-radius: var(--spheral-radius);
	overflow: hidden;
	background: var(--spheral-surface);
	border: 1px solid var(--spheral-border);
}

.spheral-portfolio-image {
	position: relative;
	height: 380px;
	overflow: hidden;
}

.spheral-portfolio-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.spheral-portfolio-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13, 13, 14, 0.95), transparent 60%);
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.spheral-portfolio-item:hover .spheral-portfolio-image img {
	transform: scale(1.08);
}

.spheral-portfolio-meta {
	padding: 24px;
}

.spheral-portfolio-cat-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8rem;
	color: var(--spheral-accent);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.spheral-portfolio-title {
	font-family: var(--spheral-font-display);
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 4px;
}

.spheral-portfolio-client {
	font-size: 0.85rem;
	color: var(--spheral-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.spheral-footer {
	background: var(--spheral-surface);
	border-top: 1px solid var(--spheral-border);
}

.spheral-footer-cta-wrap {
	padding: 100px 0;
	border-bottom: 1px solid var(--spheral-border);
	text-align: center;
}

.spheral-footer-tag {
	font-size: 0.85rem;
	color: var(--spheral-accent);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	display: block;
	margin-bottom: 16px;
}

.spheral-footer-heading {
	font-family: var(--spheral-font-display);
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 800;
	margin-bottom: 40px;
}

.spheral-footer-cta-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.spheral-btn-accent {
	background: var(--spheral-accent);
	color: #000;
}

.spheral-footer-body {
	padding: 80px 0 40px;
}

.spheral-footer-row {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 60px;
	margin-bottom: 60px;
}

.spheral-footer-logo {
	font-family: var(--spheral-font-display);
	font-size: 1.6rem;
	font-weight: 800;
	display: inline-block;
	margin-bottom: 16px;
}

.spheral-footer-logo small {
	color: var(--spheral-accent);
}

.spheral-footer-desc {
	color: var(--spheral-text-muted);
	max-width: 400px;
}

.spheral-footer-title {
	font-size: 1rem;
	color: var(--spheral-text);
	margin-bottom: 20px;
	font-weight: 600;
}

.spheral-footer-links li, .spheral-footer-social li {
	margin-bottom: 12px;
}

.spheral-footer-links a, .spheral-footer-social a {
	color: var(--spheral-text-muted);
	font-size: 0.95rem;
}

.spheral-footer-links a:hover, .spheral-footer-social a:hover {
	color: var(--spheral-accent);
}

.spheral-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 32px;
	border-top: 1px solid var(--spheral-border);
	font-size: 0.85rem;
	color: var(--spheral-text-muted);
}

#spheral-top-btn {
	color: var(--spheral-accent);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ==========================================================================
   Search Modal
   ========================================================================== */
.spheral-search-modal {
	position: fixed;
	inset: 0;
	z-index: 2500;
	opacity: 0;
	visibility: hidden;
	transition: var(--spheral-transition);
}

.spheral-search-modal.active {
	opacity: 1;
	visibility: visible;
}

.spheral-search-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 13, 14, 0.95);
	backdrop-filter: blur(12px);
}

.spheral-search-modal-content {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 20vh auto 0;
	padding: 0 24px;
}

.spheral-search-modal-close {
	position: absolute;
	top: -60px;
	right: 24px;
	font-size: 2rem;
	color: var(--spheral-text-muted);
}

.spheral-search-form {
	display: flex;
	align-items: center;
	border-bottom: 2px solid var(--spheral-accent);
}

.spheral-search-field {
	width: 100%;
	background: transparent;
	border: none;
	outline: none;
	font-family: var(--spheral-font-display);
	font-size: 2rem;
	color: #fff;
	padding: 16px 0;
}

.spheral-search-submit {
	font-size: 1.8rem;
	color: var(--spheral-accent);
	padding: 0 16px;
}

/* Single Portfolio Details */
.spheral-single-portfolio {
	padding-top: 140px;
	padding-bottom: 100px;
}

.spheral-portfolio-single-title {
	font-family: var(--spheral-font-display);
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	font-weight: 800;
	margin-bottom: 40px;
}

.spheral-portfolio-single-meta {
	display: flex;
	gap: 60px;
	flex-wrap: wrap;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--spheral-border);
	margin-bottom: 40px;
}

.spheral-meta-label {
	font-size: 0.8rem;
	color: var(--spheral-text-muted);
	text-transform: uppercase;
	display: block;
	margin-bottom: 6px;
}

.spheral-meta-val {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--spheral-text);
}

.spheral-portfolio-hero-image img {
	width: 100%;
	border-radius: var(--spheral-radius);
	margin-bottom: 60px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.cols-3 .spheral-portfolio-grid, .cols-4 .spheral-portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.spheral-showcase-link, .spheral-showcase-item.odd .spheral-showcase-link {
		grid-template-columns: 1fr;
	}
	.spheral-showcase-item.odd .spheral-showcase-image-wrap {
		order: 1;
	}
	.spheral-overlay-content {
		width: 100vw;
		min-width: auto;
		padding: 40px;
	}
	.spheral-footer-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.spheral-main-navigation {
		display: none;
	}
	.cols-2 .spheral-portfolio-grid {
		grid-template-columns: 1fr;
	}
	.spheral-overlay-inner {
		grid-template-columns: 1fr;
	}
}
