/**
 * Nexdev Theme — The Luminescent Frontier
 * Design system CSS: Aether Flux
 *
 * Translates the Stitch/Tailwind design tokens into semantic CSS.
 */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
	/* Colors */
	--nd-background:                #0c1324;
	--nd-surface:                   #0c1324;
	--nd-surface-dim:               #0c1324;
	--nd-surface-lowest:            #070d1f;
	--nd-surface-low:               #151b2d;
	--nd-surface-container:         #191f31;
	--nd-surface-high:              #23293c;
	--nd-surface-highest:           #2e3447;
	--nd-surface-bright:            #33394c;
	--nd-surface-variant:           #2e3447;
	--nd-surface-tint:              #adc6ff;
	--nd-primary:                   #adc6ff;
	--nd-primary-container:         #4d8eff;
	--nd-primary-fixed:             #d8e2ff;
	--nd-on-primary:                #002e6a;
	--nd-on-primary-container:      #00285d;
	--nd-secondary:                 #c0c1ff;
	--nd-secondary-container:       #3131c0;
	--nd-on-secondary:              #1000a9;
	--nd-on-secondary-container:    #b0b2ff;
	--nd-tertiary:                  #d2bbff;
	--nd-tertiary-container:        #a476ff;
	--nd-on-tertiary:               #3f008e;
	--nd-on-tertiary-container:     #36007d;
	--nd-on-surface:                #dce1fb;
	--nd-on-surface-variant:        #c2c6d6;
	--nd-on-background:             #dce1fb;
	--nd-outline:                   #8c909f;
	--nd-outline-variant:           #424754;
	--nd-inverse-surface:           #dce1fb;
	--nd-inverse-on-surface:        #2a3043;
	--nd-error:                     #ffb4ab;
	--nd-error-container:           #93000a;

	/* Gradients */
	--nd-gradient-cta:    linear-gradient(135deg, var(--nd-primary) 0%, var(--nd-tertiary-container) 100%);
	--nd-gradient-brand:  linear-gradient(135deg, #3B82F6 0%, #7C3AED 100%);
	--nd-gradient-text:   linear-gradient(to right, var(--nd-primary), var(--nd-tertiary-container));

	/* Glass effect */
	--nd-glass-bg:        rgba(25, 31, 49, 0.6);
	--nd-glass-blur:      12px;
	--nd-glass-border:    0.5px solid rgba(140, 144, 159, 0.2);

	/* Shadows */
	--nd-shadow-ambient:  0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(59, 130, 246, 0.08);
	--nd-shadow-glow:     0 0 20px rgba(59, 130, 246, 0.4);
	--nd-shadow-glow-soft:0 0 50px rgba(59, 130, 246, 0.15);
	--nd-shadow-blue-soft:0 0 30px rgba(59, 130, 246, 0.1);

	/* Border radius */
	--nd-radius-sm:   0.25rem;
	--nd-radius-md:   0.5rem;
	--nd-radius-lg:   0.75rem;
	--nd-radius-xl:   1.5rem;
	--nd-radius-full: 9999px;

	/* Spacing */
	--nd-section-py:    8rem;
	--nd-content-max:   80rem;
	--nd-content-px:    2rem;
	--nd-nav-height:    4.5rem;
	--nd-nav-offset:    var(--nd-nav-height);
}

/* ============================================================
   2. BASE RESET & GLOBALS
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nd-nav-offset);
}

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--nd-background);
	color: var(--nd-on-surface);
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--nd-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--nd-on-surface);
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */

/* Glass morphism */
.nd-glass {
	background: var(--nd-glass-bg);
	backdrop-filter: blur(var(--nd-glass-blur));
	-webkit-backdrop-filter: blur(var(--nd-glass-blur));
	border: var(--nd-glass-border);
}

/* Glow orb decorative element */
.nd-glow-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	z-index: 0;
	opacity: 0.2;
	pointer-events: none;
}

/* Gradient text */
.nd-gradient-text {
	background: var(--nd-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.nd-brand-text {
	background: var(--nd-gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Content container */
.nd-container {
	max-width: var(--nd-content-max);
	margin-inline: auto;
	padding-inline: var(--nd-content-px);
}

/* Section padding */
.nd-section {
	padding-block: var(--nd-section-py);
}

/* Material Symbols */
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined', sans-serif;
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	font-size: inherit;
	line-height: 1;
	vertical-align: middle;
	user-select: none;
}

/* ============================================================
   4. NAVIGATION / HEADER
   ============================================================ */
.nd-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	background: rgba(12, 19, 36, 0.8);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--nd-shadow-ambient);
}

.nd-nav__inner {
	display: grid;
	grid-template-columns: minmax(8rem, 1fr) auto minmax(8rem, 1fr);
	align-items: center;
	gap: 1.5rem;
	min-height: var(--nd-nav-height);
	max-width: 92rem;
	margin-inline: auto;
	padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
}

.nd-nav__inner > .nd-btn {
	justify-self: end;
}

.nd-nav__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

.nd-nav__logo img,
.nd-nav__logo-img {
	height: 50px;
	width: 50px;
}

.nd-nav__center-logo {
	display: none;
	text-decoration: none;
}

.nd-nav__center-logo-img {
	display: block;
	height: 28px;
	width: auto;
	max-width: 8rem;
}

.nd-nav__logo-text {
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: 0;
	background: var(--nd-gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nd-nav__links {
	display: none;
	gap: clamp(1.25rem, 2.8vw, 2.5rem);
	align-items: center;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	letter-spacing: 0.05em;
	font-size: 0.875rem;
	text-transform: uppercase;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nd-nav__links a {
	color: var(--nd-on-surface-variant);
	text-decoration: none;
	transition: color 0.2s ease;
}

.nd-nav__links a:hover {
	color: #ffffff;
}

.nd-nav__links a.active {
	color: var(--nd-primary);
}

@media (min-width: 1024px) {
	.nd-nav__links {
		display: flex;
	}
}

/* Burger button — hidden on desktop */
.nd-nav__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 44px;
	min-height: 44px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.nd-nav__burger-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
	transform-origin: center;
}

.nd-nav__burger[aria-expanded="true"] .nd-nav__burger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nd-nav__burger[aria-expanded="true"] .nd-nav__burger-bar:nth-child(2) {
	opacity: 0;
}

.nd-nav__burger[aria-expanded="true"] .nd-nav__burger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
	:root {
		--nd-nav-height: 4rem;
		--nd-content-px: 1rem;
	}

	.nd-nav__inner {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		position: relative;
	}

	.nd-nav__center-logo {
		position: absolute;
		top: 50%;
		left: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		transform: translate(-50%, -50%);
		pointer-events: auto;
		z-index: 1;
	}

	.nd-nav__logo-text {
		font-size: 1.3rem;
	}

	/* Hide desktop CTA, show burger */
	.nd-nav__inner > .nd-btn {
		display: none;
	}

	.nd-nav__burger {
		display: flex;
	}

	/* Mobile dropdown menu */
	.nd-nav__links {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: rgba(12, 19, 36, 0.97);
		backdrop-filter: blur(24px);
		-webkit-backdrop-filter: blur(24px);
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding: 0.25rem 0 0.75rem;
		max-height: calc(100svh - var(--nd-nav-offset));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		pointer-events: none;
		transition:
			opacity    0.22s ease,
			transform  0.22s ease,
			visibility 0s   linear 0.22s;
	}

	.nd-nav__links.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
		transition:
			opacity    0.22s ease,
			transform  0.22s ease,
			visibility 0s   linear 0s;
	}

	.nd-nav__links li {
		width: 100%;
	}

	.nd-nav__links a {
		display: block;
		margin-right: 0;
		padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		border-left: 3px solid transparent;
	}

	.nd-nav__links a.active {
		border-left-color: var(--nd-primary);
		background: rgba(173, 198, 255, 0.06);
		padding-left: calc(clamp(1rem, 3vw, 2.5rem) - 3px);
	}

}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.nd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: none;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
	line-height: 1;
}

.nd-btn:active {
	opacity: 0.8;
	transform: scale(0.95);
}

.nd-btn--primary {
	background: var(--nd-gradient-cta);
	color: var(--nd-on-primary-container);
	padding: 0.75rem 1.5rem;
	border-radius: var(--nd-radius-full);
	font-size: 0.875rem;
	box-shadow: var(--nd-shadow-glow);
	display: none;
}

@media (min-width: 768px) {
	.nd-btn--primary {
		display: inline-block;
	}
}

.nd-btn--primary:hover {
	transform: scale(1.05);
	color: var(--nd-on-primary-container);
}

.nd-btn--primary-lg {
	background: var(--nd-gradient-cta);
	color: var(--nd-on-primary-container);
	padding: 1rem 2.5rem;
	border-radius: var(--nd-radius-full);
	font-size: 1.125rem;
	font-weight: 800;
	box-shadow: var(--nd-shadow-glow);
}

.nd-btn--primary-lg:hover {
	transform: scale(1.05);
	color: var(--nd-on-primary-container);
}

.nd-btn--outline {
	background: transparent;
	border: 1px solid var(--nd-outline-variant);
	color: #ffffff;
	padding: 1rem 1.5rem;
	border-radius: var(--nd-radius-lg);
	font-size: 0.875rem;
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
	display: block;
	text-align: center;
	transition: background 0.2s ease;
}

.nd-btn--outline:hover {
	background: var(--nd-surface-highest);
	color: #ffffff;
}

.nd-btn--gradient-full {
	background: var(--nd-gradient-cta);
	color: var(--nd-on-primary-container);
	padding: 1.25rem 1.5rem;
	border-radius: var(--nd-radius-full);
	font-size: 1.125rem;
	font-weight: 900;
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
	box-shadow: var(--nd-shadow-glow);
	transition: transform 0.2s ease;
}

.nd-btn--gradient-full:hover {
	transform: scale(1.01);
	color: var(--nd-on-primary-container);
}

/* ============================================================
   6. HERO SECTION  — mobile-first
   ============================================================ */
.nd-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: calc(100svh - var(--nd-nav-offset));
	display: flex;
	align-items: center;
	padding-top: clamp(3rem, 8vh, 6rem);
	padding-bottom: clamp(4rem, 10vh, 8rem);
	padding-inline: var(--nd-content-px);
	width: 100%;
	margin: 0;
	background-color: var(--nd-surface-lowest);
}

.nd-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}

@media (min-width: 1461px) {
	.nd-hero {
		min-height: 0;
		aspect-ratio: 31 / 18;
	}

	.nd-hero__video {
		object-fit: contain;
		object-position: center center;
		background-color: var(--nd-surface-lowest);
	}
}

.nd-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(7, 13, 31, 0.78), rgba(7, 13, 31, 0.34) 52%, rgba(7, 13, 31, 0.18)),
		linear-gradient(180deg, rgba(7, 13, 31, 0.28), rgba(7, 13, 31, 0.72));
	pointer-events: none;
}

/* Dark overlay for text readability */
.nd-hero__video-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 22% at 50% 0%, rgba(173, 198, 255, 0.18), transparent 70%);
	opacity: 0.42;
	z-index: 2;
	pointer-events: none;
}

.nd-hero .nd-glow-orb {
	z-index: 2;
}

/* Content sits above all background layers */
.nd-hero__inner {
	width: 100%;
	max-width: 68rem;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 3;
}

.nd-hero__badge {
	display: inline-block;
	padding: 0.375rem 1rem;
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	background: var(--nd-surface-high);
	color: var(--nd-primary);
	border-radius: var(--nd-radius-full);
	border: 1px solid rgba(66, 71, 84, 0.3);
}

.nd-hero__headline {
	font-size: clamp(3rem, 7vw, 6rem);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	color: #ffffff;
	margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

.nd-hero__sub {
	color: var(--nd-on-surface-variant);
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	max-width: min(44rem, 100%);
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	line-height: 1.6;
}

/* Mobile: stacked full-width */
.nd-hero__cta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	width: 100%;
	max-width: 360px;
}

.nd-hero__cta .nd-btn,
.nd-hero__cta .nd-btn--primary-lg {
	width: 100%;
	text-align: center;
	justify-content: center;
}

/* ≥ 600px: side-by-side */
@media (min-width: 600px) {
	.nd-hero__cta {
		flex-direction: row;
		align-items: center;
		width: auto;
		gap: 1.25rem;
	}

	.nd-hero__cta .nd-btn,
	.nd-hero__cta .nd-btn--primary-lg {
		width: auto;
	}
}

/* Tablet ≥ 640px */
@media (min-width: 640px) {
	.nd-hero__headline {
		max-width: 48rem;
	}
}

@media (min-width: 1024px) {
	.nd-hero__cta {
		display: none;
	}
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
	.nd-hero {
		padding-top: 5rem;
		padding-bottom: 7rem;
	}

	.nd-hero__headline {
		max-width: 62rem;
	}
}

@media (max-width: 599px) {
	.nd-hero__headline {
		font-size: clamp(2.1rem, 8.5vw, 2.6rem);
		line-height: 1.08;
	}
}


/* ============================================================
   7. SECTION HEADERS
   ============================================================ */
.nd-section-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	color: var(--nd-primary);
}

.nd-section-label--tertiary { color: var(--nd-tertiary); }
.nd-section-label--secondary { color: var(--nd-secondary); }

.nd-section-headline {
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 900;
	color: #ffffff;
	letter-spacing: -0.01em;
	margin: 0;
}

/* ============================================================
   8. SERVICES SECTION
   ============================================================ */
.nd-services {
	padding-block: var(--nd-section-py);
	padding-inline: var(--nd-content-px);
}

.nd-services__inner {
	max-width: var(--nd-content-max);
	margin-inline: auto;
}

.nd-services__header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 4rem;
	gap: 2rem;
}

@media (max-width: 767px) {
	.nd-services__header {
		align-items: flex-start;
	}
}

@media (min-width: 768px) {
	.nd-services__header {
		flex-direction: row;
	}
}

.nd-services__header-desc {
	color: var(--nd-on-surface-variant);
	max-width: 28rem;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.nd-services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.nd-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.nd-services__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.nd-service-card {
	background: var(--nd-glass-bg);
	backdrop-filter: blur(var(--nd-glass-blur));
	-webkit-backdrop-filter: blur(var(--nd-glass-blur));
	border: var(--nd-glass-border);
	padding: 2.5rem;
	border-radius: var(--nd-radius-xl);
	transition: background 0.3s ease, transform 0.3s ease;
}

.nd-service-card:hover {
	background: var(--nd-surface-high);
	transform: translateY(-0.5rem);
}

.nd-service-card__icon {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--nd-radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	font-size: 1.75rem;
	transition: background 0.3s ease, color 0.3s ease;
}

.nd-service-card__icon--primary {
	background: rgba(173, 198, 255, 0.1);
	color: var(--nd-primary);
}

.nd-service-card:hover .nd-service-card__icon--primary {
	background: var(--nd-primary);
	color: var(--nd-on-primary);
}

.nd-service-card__icon--tertiary {
	background: rgba(210, 187, 255, 0.1);
	color: var(--nd-tertiary);
}

.nd-service-card:hover .nd-service-card__icon--tertiary {
	background: var(--nd-tertiary);
	color: var(--nd-on-tertiary);
}

.nd-service-card__icon--secondary {
	background: rgba(192, 193, 255, 0.1);
	color: var(--nd-secondary);
}

.nd-service-card:hover .nd-service-card__icon--secondary {
	background: var(--nd-secondary);
	color: var(--nd-on-secondary);
}

.nd-service-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 1rem;
}

.nd-service-card__desc {
	color: var(--nd-on-surface-variant);
	font-size: 0.875rem;
	line-height: 1.75;
	margin: 0;
}

/* ============================================================
   9. PROCESS SECTION
   ============================================================ */
.nd-process {
	padding-block: var(--nd-section-py);
	padding-inline: var(--nd-content-px);
	background: var(--nd-surface-low);
	position: relative;
	overflow: hidden;
}

.nd-process__inner {
	max-width: var(--nd-content-max);
	margin-inline: auto;
}

.nd-process__header {
	text-align: center;
	margin-bottom: 6rem;
}

.nd-process__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
}

@media (min-width: 768px) {
	.nd-process__steps {
		grid-template-columns: repeat(4, 1fr);
		align-items: start;
	}

	.nd-process__steps::before {
		content: '';
		position: absolute;
		top: 2.5rem;
		left: 0;
		width: 100%;
		height: 1px;
		background: linear-gradient(to right, transparent, rgba(66, 71, 84, 0.3), transparent);
		z-index: 0;
	}
}

.nd-process__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
	padding-inline: 1rem;
}


.nd-process__step-num {
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	background: var(--nd-surface-lowest);
	border: 4px solid var(--nd-surface-container);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
	box-shadow: var(--nd-shadow-blue-soft);
}

.nd-process__step-num span {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--nd-primary);
}

.nd-process__step-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 1rem;
}

.nd-process__step-desc {
	color: var(--nd-on-surface-variant);
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0;
}

/* ============================================================
   10. PORTFOLIO / PROJECTS SECTION
   ============================================================ */
.nd-portfolio {
	padding-block: var(--nd-section-py);
	padding-inline: var(--nd-content-px);
}

.nd-portfolio__inner {
	max-width: var(--nd-content-max);
	margin-inline: auto;
}

.nd-portfolio__header {
	margin-bottom: 2rem;
}

.nd-portfolio__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-bottom: 3rem;
}

.nd-portfolio__filter-btn {
	padding: 0.5rem 1.25rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(25, 31, 49, 0.6);
	color: var(--nd-on-surface-variant);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	line-height: 1;
}

.nd-portfolio__filter-btn:hover {
	border-color: var(--nd-primary);
	color: var(--nd-primary);
}

.nd-portfolio__filter-btn.is-active {
	background: var(--nd-primary);
	border-color: var(--nd-primary);
	color: #0c1324;
}

.nd-portfolio__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.nd-portfolio__grid {
		grid-template-columns: repeat(12, 1fr);
	}
}

.nd-portfolio__item {
	position: relative;
	border-radius: var(--nd-radius-xl);
	overflow: hidden;
	background: var(--nd-glass-bg);
	backdrop-filter: blur(var(--nd-glass-blur));
	-webkit-backdrop-filter: blur(var(--nd-glass-blur));
	border: var(--nd-glass-border);
}

.nd-portfolio__item--wide {
	grid-column: span 1;
	aspect-ratio: 16 / 9;
}

.nd-portfolio__item--narrow {
	grid-column: span 1;
}

@media (min-width: 768px) {
	.nd-portfolio__item--wide { grid-column: span 8; }
	.nd-portfolio__item--narrow { grid-column: span 4; }

	.nd-portfolio__grid--filtered .nd-portfolio__item--wide,
	.nd-portfolio__grid--filtered .nd-portfolio__item--narrow {
		grid-column: span 6;
	}
}

.nd-portfolio__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.nd-portfolio__item:hover img {
	transform: scale(1.05);
}

.nd-portfolio__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(12, 19, 36, 0.9), transparent);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2.5rem;
	transform: translateY(1rem);
	transition: transform 0.3s ease;
}

.nd-portfolio__item:hover .nd-portfolio__overlay {
	transform: translateY(0);
}

.nd-portfolio__cat {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	letter-spacing: 0.05em;
}

.nd-portfolio__cat--primary { color: var(--nd-primary); }
.nd-portfolio__cat--tertiary { color: var(--nd-tertiary); }
.nd-portfolio__cat--secondary { color: var(--nd-secondary); }

.nd-portfolio__title {
	font-size: 1.5rem;
	font-weight: 900;
	color: #ffffff;
	margin: 0;
}

.nd-portfolio__title--sm {
	font-size: 1.25rem;
}

/* ============================================================
   11. PRICING SECTION
   ============================================================ */
.nd-pricing {
	padding-block: var(--nd-section-py);
	padding-inline: var(--nd-content-px);
	background: rgba(21, 27, 45, 0.5);
}

.nd-pricing__inner {
	max-width: var(--nd-content-max);
	margin-inline: auto;
}

.nd-pricing__header {
	text-align: center;
	margin-bottom: 6rem;
}

.nd-pricing__headline {
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 900;
	color: #ffffff;
	letter-spacing: -0.01em;
	margin: 0 0 1rem;
}

.nd-pricing__sub {
	color: var(--nd-on-surface-variant);
	margin: 0;
}

.nd-pricing__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.nd-pricing__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.nd-pricing-card {
	background: var(--nd-glass-bg);
	backdrop-filter: blur(var(--nd-glass-blur));
	-webkit-backdrop-filter: blur(var(--nd-glass-blur));
	border: var(--nd-glass-border);
	padding: 2.5rem;
	border-radius: var(--nd-radius-xl);
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

.nd-pricing-card--featured {
	border-color: rgba(173, 198, 255, 0.2);
	background: linear-gradient(to bottom, rgba(173, 198, 255, 0.05), transparent), var(--nd-glass-bg);
	box-shadow: var(--nd-shadow-glow-soft);
	z-index: 1;
}

.nd-pricing-card__badge {
	position: absolute;
	top: -1rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--nd-primary);
	color: var(--nd-on-primary);
	font-size: 0.625rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.375rem 1rem;
	border-radius: var(--nd-radius-full);
	white-space: nowrap;
}

.nd-pricing-card__tier {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: capitalize;
	letter-spacing: 0.03em;
	margin-top: -1rem;
	margin-bottom: 1rem;
	display: block;
	color: var(--nd-on-surface-variant);
}

.nd-pricing-card__tier--primary { color: var(--nd-primary); font-weight: 900; }

.nd-pricing-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	min-height: 3rem;
	margin-bottom: 2rem;
}

.nd-pricing-card__from {
	color: var(--nd-on-surface-variant);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.nd-pricing-card__amount {
	font-size: 2.25rem;
	font-weight: 900;
	color: #ffffff;
	line-height: 1;
}

.nd-pricing-card__amount--lg {
	font-size: 3rem;
}

.nd-pricing-card__divider,
.nd-pricing-card__feature-divider {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	width: 100%;
}

.nd-pricing-card__divider {
	margin: -0.75rem 0 1.75rem;
}

.nd-pricing-card__feature-divider {
	display: block;
	margin: 0.25rem 0;
}

.nd-pricing-card__period {
	color: var(--nd-on-surface-variant);
	margin-left: 0.5rem;
}

.nd-pricing-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 3rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex: 1;
}

.nd-pricing-card__feature {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: var(--nd-on-surface);
}

.nd-pricing-card__feature--disabled {
	color: #9ea2b0;
}

.nd-pricing-card__feature .material-symbols-outlined {
	font-size: 1.125rem;
	color: var(--nd-primary);
}

.nd-pricing-card__feature--disabled .material-symbols-outlined {
	color: var(--nd-on-surface-variant);
}

.nd-pricing-card__feature--tertiary .material-symbols-outlined {
	color: var(--nd-tertiary);
}

.nd-pricing-addons {
	margin-top: 2rem;
	text-align: left;
}

.nd-pricing-addons__heading {
	color: #ffffff;
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 1rem;
}

.nd-pricing-addons__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.nd-pricing-addons__table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	color: var(--nd-on-surface);
	font-size: 0.875rem;
}

.nd-pricing-addons__table th,
.nd-pricing-addons__table td {
	padding: 1rem 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	text-align: left;
	vertical-align: middle;
}

.nd-pricing-addons__table thead th {
	color: var(--nd-on-surface-variant);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: capitalize;
}

.nd-pricing-addons__table tbody th {
	color: #ffffff;
	font-weight: 800;
}

.nd-pricing-addons__details {
	color: var(--nd-on-surface-variant);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.6;
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
}

.nd-pricing-addons__details li {
	padding-block: 0.25rem;
}

.nd-pricing-addons__details li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.nd-pricing-addons__table td {
	color: var(--nd-on-surface-variant);
}

/* ============================================================
   12. TESTIMONIALS SECTION
   ============================================================ */
.nd-testimonials {
	padding-block: var(--nd-section-py);
	padding-inline: var(--nd-content-px);
}

.nd-testimonials__inner {
	max-width: var(--nd-content-max);
	margin-inline: auto;
}

.nd-testimonials__headline {
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 900;
	color: #ffffff;
	letter-spacing: -0.01em;
	text-align: center;
	margin: 0 0 4rem;
}

.nd-testimonials__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.nd-testimonials__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.nd-testimonial-card {
	background: var(--nd-glass-bg);
	backdrop-filter: blur(var(--nd-glass-blur));
	-webkit-backdrop-filter: blur(var(--nd-glass-blur));
	border: var(--nd-glass-border);
	padding: 2.5rem;
	border-radius: var(--nd-radius-xl);
	font-style: italic;
	color: var(--nd-on-surface-variant);
	line-height: 1.7;
}

.nd-testimonial-card__author {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.nd-testimonial-card__avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid rgba(173, 198, 255, 0.2);
	flex-shrink: 0;
}

.nd-testimonial-card__avatar--tertiary { border-color: rgba(210, 187, 255, 0.2); }
.nd-testimonial-card__avatar--secondary { border-color: rgba(192, 193, 255, 0.2); }

.nd-testimonial-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nd-testimonial-card__name {
	font-weight: 700;
	color: #ffffff;
	font-style: normal;
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
}

.nd-testimonial-card__role {
	font-size: 0.75rem;
	font-style: normal;
	margin: 0;
	color: var(--nd-primary);
}

.nd-testimonial-card__role--tertiary { color: var(--nd-tertiary); }
.nd-testimonial-card__role--secondary { color: var(--nd-secondary); }

/* ============================================================
   13. CONTACT SECTION
   ============================================================ */
.nd-contact {
	padding-block: var(--nd-section-py);
	padding-inline: var(--nd-content-px);
}

.nd-contact__inner {
	max-width: 60rem;
	margin-inline: auto;
}

.nd-contact__card {
	background: var(--nd-glass-bg);
	backdrop-filter: blur(var(--nd-glass-blur));
	-webkit-backdrop-filter: blur(var(--nd-glass-blur));
	border: var(--nd-glass-border);
	border-radius: var(--nd-radius-xl);
	padding: 3rem;
	position: relative;
	overflow: hidden;
}

@media (min-width: 768px) {
	.nd-contact__card {
		padding: 5rem;
	}
}

.nd-contact__notice {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	border-radius: var(--nd-radius-lg);
	font-size: 0.9375rem;
	font-weight: 500;
	margin-bottom: 2rem;
}

.nd-contact__notice--success {
	background: rgba(173, 198, 255, 0.1);
	border: 1px solid rgba(173, 198, 255, 0.3);
	color: var(--nd-primary);
}

.nd-contact__notice--error {
	background: rgba(255, 180, 171, 0.1);
	border: 1px solid rgba(255, 180, 171, 0.3);
	color: var(--nd-error);
}

.nd-contact__header {
	text-align: center;
	margin-bottom: 4rem;
}

.nd-contact__headline {
	font-size: clamp(2rem, 6vw, 55px);
	font-weight: 900;
	color: #ffffff;
	letter-spacing: 0;
	margin: 0 0 1.5rem;
	line-height: 1;
}

.nd-contact__sub {
	color: var(--nd-on-surface-variant);
	margin: 0;
}

.nd-contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.nd-contact__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.nd-contact__row {
		grid-template-columns: repeat(2, 1fr);
	}
}

.nd-contact__field label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--nd-on-surface-variant);
	margin-bottom: 0.5rem;
}

.nd-contact__field input,
.nd-contact__field select,
.nd-contact__field textarea {
	width: 100%;
	background: var(--nd-surface-lowest);
	border: 1px solid rgba(66, 71, 84, 0.3);
	border-radius: var(--nd-radius-lg);
	padding: 1rem 1.5rem;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
}

.nd-contact__field input:focus,
.nd-contact__field select:focus,
.nd-contact__field textarea:focus {
	border-color: var(--nd-primary);
	box-shadow: 0 0 0 2px rgba(173, 198, 255, 0.2);
}

.nd-contact__field select {
	cursor: pointer;
}

.nd-contact__field select:invalid {
	color: rgba(194, 198, 214, 0.6);
}

.nd-contact__field select option {
	background: var(--nd-surface-lowest);
	color: #ffffff;
}

.nd-contact__field textarea {
	resize: vertical;
	min-height: 8rem;
}

.nd-contact__field input::placeholder,
.nd-contact__field textarea::placeholder {
	color: var(--nd-on-surface-variant);
	opacity: 0.8;
}

.nexdev-cookie-backdrop {
	opacity: 0.2;
}

/* ============================================================
   14. PRIVACY POLICY PAGE
   ============================================================ */
.nd-privacy {
	position: relative;
	overflow: hidden;
	background: var(--nd-background);
	color: var(--nd-on-surface);
	padding: 5rem 1.5rem;
	isolation: isolate;
}

.nd-privacy__orb {
	position: fixed;
	width: 25rem;
	height: 25rem;
	border-radius: var(--nd-radius-full);
	filter: blur(100px);
	opacity: 0.15;
	pointer-events: none;
	z-index: -1;
}

.nd-privacy__orb--primary {
	top: -12rem;
	left: -12rem;
	background: var(--nd-primary-container);
}

.nd-privacy__orb--tertiary {
	right: -6rem;
	bottom: 0;
	background: var(--nd-tertiary-container);
}

.nd-privacy__inner {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	margin-inline: auto;
}

.nd-privacy__hero {
	position: relative;
	text-align: center;
	margin-bottom: 5rem;
}

.nd-privacy__hero-glow {
	position: absolute;
	top: -2.5rem;
	left: 50%;
	width: 12rem;
	height: 12rem;
	background: rgba(173, 198, 255, 0.2);
	border-radius: var(--nd-radius-full);
	filter: blur(80px);
	transform: translateX(-50%);
	pointer-events: none;
}

.nd-privacy__headline {
	position: relative;
	margin: 0 0 1.5rem;
	padding-bottom: 0.25rem;
	font-size: clamp(2.75rem, 5.5vw, 4.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
	background: linear-gradient(90deg, var(--nd-on-surface), var(--nd-primary), var(--nd-tertiary));
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.nd-privacy__meta {
	position: relative;
	margin: 0;
	color: var(--nd-on-surface-variant);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0;
}

.nd-privacy__stack {
	display: grid;
	gap: 3rem;
}

.nd-privacy__intro {
	width: 100%;
	max-width: 1000px;
	margin-inline: auto;
	background: rgba(21, 27, 45, 0.4);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	border-left: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	box-shadow: var(--nd-shadow-ambient);
	padding: 2rem;
	line-height: 1.75;
	backdrop-filter: blur(var(--nd-glass-blur));
	-webkit-backdrop-filter: blur(var(--nd-glass-blur));
}

.nd-privacy__intro p,
.nd-privacy-section__body p,
.nd-privacy-cta p {
	margin: 0;
}

.nd-privacy__intro p + p,
.nd-privacy-section__body p + p,
.nd-privacy-section__body .nd-privacy-note + p,
.nd-privacy-section__body .nd-privacy-bullets + p {
	margin-top: 1rem;
}

.nd-privacy__intro p {
	font-size: 1.125rem;
	color: var(--nd-on-surface);
}

.nd-privacy-section {
	position: relative;
}

.nd-privacy-section__heading {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.nd-privacy-section__heading h2 {
	margin: 0;
	color: var(--nd-on-surface);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}

.nd-privacy-section__icon {
	flex: 0 0 auto;
	color: var(--nd-primary);
	font-size: 2rem;
	line-height: 1;
}

.nd-privacy-section__body {
	color: var(--nd-on-surface-variant);
	line-height: 1.75;
}

.nd-privacy-bullets {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0 0 0 0.5rem;
}

.nd-privacy-bullets li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	color: var(--nd-on-surface-variant);
	line-height: 1.65;
}

.nd-privacy-bullets strong {
	color: var(--nd-on-surface);
	font-weight: 600;
}

.nd-privacy-bullets__dot {
	flex: 0 0 auto;
	width: 0.375rem;
	height: 0.375rem;
	margin-top: 0.65rem;
	border-radius: var(--nd-radius-full);
	background: var(--nd-tertiary);
}

.nd-privacy__divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(66, 71, 84, 0.3), transparent);
}

.nd-privacy-note {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 800px;
	margin: 1.5rem auto 0 0;
	padding: 1.5rem;
	background: rgba(35, 41, 60, 0.3);
	border-radius: 8px;
}

.nd-privacy-note::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(173, 198, 255, 0.05), transparent);
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.nd-privacy-note:hover::before {
	opacity: 1;
}

.nd-privacy-note p {
	position: relative;
	color: var(--nd-on-surface-variant);
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.7;
}

.nd-privacy-cta {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 800px;
	margin: 5rem auto 0;
	padding: 3rem 1.5rem;
	text-align: center;
	background: var(--nd-surface-lowest);
	border: 1px solid rgba(66, 71, 84, 0.2);
	border-radius: 8px;
}

.nd-privacy-cta__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.1;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.nd-privacy-cta h2,
.nd-privacy-cta p,
.nd-privacy-cta a {
	position: relative;
	z-index: 1;
}

.nd-privacy-cta h2 {
	margin: 0 0 1rem;
	color: var(--nd-on-surface);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0;
}

.nd-privacy-cta p {
	margin-bottom: 2rem;
	color: var(--nd-on-surface-variant);
}

.nd-privacy-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: var(--nd-primary);
	font-weight: 700;
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}

.nd-privacy-cta a:hover {
	gap: 1rem;
	color: var(--nd-on-surface);
}

@media (min-width: 768px) {
	.nd-privacy {
		padding: 5rem 1.5rem;
	}

	.nd-privacy-cta {
		padding: 3rem;
	}
}

@media (max-width: 640px) {
	.nd-privacy__hero {
		margin-bottom: 3.5rem;
	}

	.nd-privacy__stack {
		gap: 2.25rem;
	}

	.nd-privacy__intro {
		padding: 1.5rem;
	}

	.nd-privacy-section__heading {
		align-items: flex-start;
	}
}

/* ============================================================
   15. BLOG (INSIGHTS) PAGE
   ============================================================ */
.nd-blog {
	position: relative;
	overflow: hidden;
	background: var(--nd-background);
	padding: 5rem 1.5rem;
	isolation: isolate;
}

.nd-blog__orb {
	position: fixed;
	width: 25rem;
	height: 25rem;
	border-radius: var(--nd-radius-full);
	filter: blur(100px);
	opacity: 0.15;
	pointer-events: none;
	z-index: -1;
}

.nd-blog__orb--primary {
	top: -12rem;
	left: -12rem;
	background: var(--nd-primary-container);
}

.nd-blog__orb--tertiary {
	right: -6rem;
	bottom: 0;
	background: var(--nd-tertiary-container);
}

.nd-blog__inner {
	position: relative;
	z-index: 1;
	max-width: 68rem;
	margin-inline: auto;
}

.nd-blog__hero {
	margin-bottom: 2.5rem;
}

.nd-blog__headline {
	margin: 0 0 1rem;
	padding-bottom: 0.15em;
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 800;
	line-height: 1.1;
	background: linear-gradient(90deg, var(--nd-on-surface), var(--nd-primary), var(--nd-tertiary));
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.nd-blog__tagline {
	margin: 0;
	max-width: 44rem;
	color: var(--nd-on-surface-variant);
	font-size: 1rem;
	line-height: 1.7;
}

/* Featured post — full image with bottom overlay */
.nd-blog-featured {
	position: relative;
	display: block;
	border-radius: var(--nd-radius-xl);
	overflow: hidden;
	border: var(--nd-glass-border);
	margin-bottom: 3rem;
	text-decoration: none;
	color: inherit;
	height: auto;
	aspect-ratio: 2 / 1;
	background: url('https://nexdev.gr/wp-content/uploads/2026/05/blog-placeholder.webp') center center / cover no-repeat var(--nd-surface-low);
}

@media (max-width: 767px) {
	.nd-blog-featured {
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

.nd-blog-featured:hover {
	color: inherit;
}

.nd-blog-featured__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.nd-blog-featured__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.nd-blog-featured:hover .nd-blog-featured__img img {
	transform: scale(1.04);
}

.nd-blog-featured__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(7, 13, 31, 0.95) 0%, rgba(7, 13, 31, 0.5) 50%, transparent 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.625rem;
	padding: 2.5rem;
}

.nd-blog__featured-label {
	display: inline-block;
	width: fit-content;
	padding: 0.25rem 0.75rem;
	border-radius: var(--nd-radius-full);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #ffffff;
}

.nd-blog-featured__title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.2;
	max-width: 40rem;
}

.nd-blog-featured__meta {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.65);
}

/* Category label (plain colored text, no pill) */
.nd-blog__cat-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--nd-tertiary-container);
}

/* Filters */
.nd-blog__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-bottom: 2.5rem;
}

/* Post grid */
.nd-blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.nd-blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.nd-blog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.nd-blog-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--nd-radius-xl);
	overflow: hidden;
	background: var(--nd-surface-low);
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nd-blog-card:hover {
	box-shadow: var(--nd-shadow-glow-soft);
	transform: translateY(-4px);
}

.nd-blog-card__thumb {
	display: block;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	flex-shrink: 0;
}

.nd-blog-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.nd-blog-card:hover .nd-blog-card__thumb img {
	transform: scale(1.05);
}

.nd-blog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
	padding: 1.25rem 1.5rem 1.5rem;
}

.nd-blog-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.nd-blog-card__title a {
	color: var(--nd-on-surface);
	text-decoration: none;
	transition: color 0.2s ease;
}

.nd-blog-card__title a:hover {
	color: var(--nd-primary);
}

.nd-blog-card__excerpt {
	margin: 0;
	color: var(--nd-on-surface-variant);
	font-size: 0.875rem;
	line-height: 1.65;
	flex: 1;
}

.nd-blog-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 1rem;
	margin-top: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nd-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 0;
}

.nd-blog-card__author {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--nd-outline);
}

.nd-blog-card__date {
	font-size: 0.8125rem;
	color: var(--nd-outline);
}

.nd-blog-card__meta-sep {
	color: var(--nd-outline);
	font-size: 0.8125rem;
}

.nd-blog-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--nd-primary);
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.nd-blog-card__read-more:hover {
	gap: 0.55rem;
	color: var(--nd-on-surface);
}

.nd-blog-card__read-more .material-symbols-outlined {
	font-size: 1rem;
}

.nd-blog__empty {
	text-align: center;
	color: var(--nd-on-surface-variant);
	padding: 4rem 0;
}

@media (max-width: 640px) {
	.nd-blog-featured__overlay {
		padding: 1.5rem;
	}
}

@media (max-width: 639px) {
	.nd-blog-card {
		position: relative;
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.nd-blog-card__thumb {
		position: absolute;
		inset: 0;
		aspect-ratio: unset;
		height: 100%;
		width: 100%;
	}

	.nd-blog-card__body {
		position: absolute;
		inset: 0;
		padding: 1.5rem;
		background: linear-gradient(to top, rgba(7, 13, 31, 0.95) 0%, rgba(7, 13, 31, 0.55) 50%, transparent 100%);
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		gap: 0.625rem;
		flex: unset;
	}

	.nd-blog-card__title {
		font-size: clamp(1.5rem, 3vw, 2.25rem);
		font-weight: 800;
		line-height: 1.2;
		margin: 0;
	}

	.nd-blog-card__title a {
		color: #ffffff;
	}

	.nd-blog-card__title a::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 1;
	}

	.nd-blog-card__excerpt {
		display: none;
	}

	.nd-blog-card__footer {
		padding-top: 0;
		border-top: none;
		margin-top: 0;
	}

	.nd-blog-card__meta {
		flex-direction: row;
	}

	.nd-blog-card__author,
	.nd-blog-card__date,
	.nd-blog-card__meta-sep {
		color: rgba(255, 255, 255, 0.65);
		font-size: 0.875rem;
		font-weight: 500;
	}

	.nd-blog-card__read-more {
		display: none;
	}
}

/* ============================================================
   16. SINGLE BLOG POST
   ============================================================ */
.nd-single-post {
	position: relative;
	overflow: hidden;
	background: var(--nd-background);
	isolation: isolate;
}

.nd-single-post__orb {
	position: fixed;
	width: 22rem;
	height: 22rem;
	border-radius: var(--nd-radius-full);
	filter: blur(100px);
	opacity: 0.12;
	pointer-events: none;
	z-index: -1;
}

.nd-single-post__orb--primary {
	top: -8rem;
	left: -8rem;
	background: var(--nd-primary-container);
}

.nd-single-post__orb--tertiary {
	right: -6rem;
	top: 30%;
	background: var(--nd-tertiary-container);
}

.nd-single-post__inner {
	position: relative;
	z-index: 1;
	max-width: 48rem;
	margin-inline: auto;
	padding: 4rem var(--nd-content-px) 6rem;
}

/* Header */
.nd-single-post__header {
	margin-bottom: 2.5rem;
}

.nd-single-post__header .nd-blog__cat-label {
	display: inline-block;
	margin-bottom: 1rem;
}

.nd-single-post__title {
	margin: 0 0 1.75rem;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--nd-on-surface);
	letter-spacing: -0.01em;
}

/* Meta row */
.nd-single-post__meta {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	flex-wrap: wrap;
}

.nd-single-post__avatar {
	flex-shrink: 0;
}

.nd-single-post__avatar-img {
	width: 40px;
	height: 40px;
	border-radius: var(--nd-radius-full);
	object-fit: cover;
	display: block;
}

.nd-single-post__author-info {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.nd-single-post__author-name {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--nd-on-surface);
}

.nd-single-post__author-role {
	font-size: 0.8125rem;
	color: var(--nd-on-surface-variant);
}

.nd-single-post__meta-right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	font-size: 0.8125rem;
	color: var(--nd-outline);
}

.nd-single-post__meta-right time::after {
	content: '·';
	margin-left: 0.5rem;
}

/* Featured image */
.nd-single-post__featured-img {
	margin-bottom: 2.5rem;
	border-radius: var(--nd-radius-xl);
	overflow: hidden;
	border: var(--nd-glass-border);
}

.nd-single-post__featured-img img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 28rem;
	object-fit: cover;
}

/* Post content — prose styles */
.nd-single-post__content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--nd-on-surface-variant);
}

.nd-single-post__content > * + * {
	margin-top: 1.5rem;
}

.nd-single-post__content p {
	margin: 0;
}

.nd-single-post__content h2,
.nd-single-post__content h3,
.nd-single-post__content h4 {
	margin: 2.5rem 0 0.875rem;
	color: var(--nd-on-surface);
	font-weight: 700;
	line-height: 1.5 !important;
	letter-spacing: -0.01em;
}

.nd-single-post__content h2 { font-size: 1.5rem; }
.nd-single-post__content h3 { font-size: 1.25rem; }
.nd-single-post__content h4 { font-size: 1.0625rem; }

.nd-single-post__content a {
	color: var(--nd-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nd-single-post__content a:hover {
	color: var(--nd-on-surface);
}

.nd-single-post__content strong {
	color: var(--nd-on-surface);
	font-weight: 700;
}

.nd-single-post__content ul,
.nd-single-post__content ol {
	padding-left: 1.5rem;
}

.nd-single-post__content li {
	margin-top: 0.4rem;
}

.nd-single-post__content blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid var(--nd-primary);
	background: var(--nd-surface-container);
	border-radius: 0 var(--nd-radius-md) var(--nd-radius-md) 0;
	color: var(--nd-on-surface);
	font-style: italic;
}

.nd-single-post__content img {
	border-radius: var(--nd-radius-lg);
	max-width: 100%;
	height: auto;
}

.nd-single-post__content pre,
.nd-single-post__content code {
	font-family: 'Fira Code', 'Courier New', monospace;
	font-size: 0.9em;
	background: var(--nd-surface-container);
	border-radius: var(--nd-radius-md);
	padding: 0.2em 0.4em;
}

.nd-single-post__content pre {
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
}

.nd-single-post__content pre code {
	padding: 0;
	background: none;
}

/* Footer nav */
.nd-single-post__footer {
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--nd-outline-variant);
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.nd-single-post__nav {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
}

.nd-single-post__nav-link .material-symbols-outlined {
	line-height: 1.4;
	flex-shrink: 0;
}

.nd-single-post__nav-link {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--nd-on-surface-variant);
	text-decoration: none;
	max-width: 48%;
	transition: color 0.2s ease;
}

.nd-single-post__nav-link:hover {
	color: var(--nd-primary);
}

.nd-single-post__nav-link--next {
	margin-left: auto;
	text-align: right;
}

.nd-single-post__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--nd-primary);
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}

.nd-single-post__back:hover {
	gap: 0.7rem;
	color: var(--nd-on-surface);
}

@media (max-width: 640px) {
	.nd-single-post__inner {
		padding-top: 2.5rem;
	}

	.nd-single-post__meta-right {
		margin-left: 0;
		width: 100%;
	}

	.nd-single-post__nav-link {
		max-width: 100%;
	}
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.nd-footer {
	background: var(--nd-background);
	padding: 3rem 2rem;
}

.nd-footer__inner {
	max-width: var(--nd-content-max);
	margin-inline: auto;
}

.nd-footer__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

@media (min-width: 768px) {
	.nd-footer__top {
		flex-direction: row;
		justify-content: space-between;
	}
}

.nd-footer__logo {
	display: none;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

.nd-footer__logo img {
	height: 1.5rem;
	width: auto;
}

@media (min-width: 1024px) {
	.nd-footer__logo {
		display: flex;
	}
}

.nd-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.75rem;
	color: #94a3b8;
}

.nd-footer__links a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nd-footer__links a:hover {
	color: #60a5fa;
}

@media (max-width: 767px) {
	.nd-footer {
		padding-inline: 1rem;
	}

	.nd-footer__links {
		flex-wrap: wrap;
		gap: clamp(0.5rem, 2.6vw, 0.9rem);
		font-size: clamp(0.75rem, 2.55vw, 0.875rem);
	}
}

.nd-footer__bottom {
	padding-top: 2rem;
	padding-bottom: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

@media (min-width: 768px) {
	.nd-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}

.nd-footer__copy {
	font-size: 0.75rem;
	color: #64748b;
	margin: 0;
}

/* ============================================================
   15. WORDPRESS BLOCK OVERRIDES
   ============================================================ */

/* Override WordPress's cached inline CSS custom properties that enforce
   content-size constraints from theme.json (may be stale after edits) */
:root {
	--wp--style--global--content-size: 100% !important;
	--wp--style--global--wide-size: 100% !important;
	--wp--style--root--padding-top: 0px !important;
	--wp--style--root--padding-right: 0px !important;
	--wp--style--root--padding-bottom: 0px !important;
	--wp--style--root--padding-left: 0px !important;
}

/* Strip all spacing WordPress injects on the root blocks wrapper */
.wp-site-blocks {
	padding: 0 !important;
	margin: 0 !important;
}

/* Admin bar adds html { margin-top: 32px } — neutralise the resulting gap.
   The bar is position:fixed so the page content doesn't need the offset. */
html.admin-bar {
	margin-top: 0 !important;
}

html.admin-bar body,
html.admin-bar .wp-site-blocks {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Keep the admin bar itself visible at the top */
html.admin-bar #wpadminbar {
	position: fixed !important;
	top: 0 !important;
}

.wp-site-blocks > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Strip header template part wrapper spacing */
header.wp-block-template-part {
	margin: 0;
	padding: 0;
	display: block;
}

/* Strip the main group block constraints */
main.wp-block-group,
.wp-block-group.nd-main {
	max-width: 100% !important;
	padding: var(--nd-nav-offset) 0 0 !important;
	margin: 0 !important;
}

/* Strip layout constraints WordPress applies to every wp:html block child —
   the is-layout-flow / is-layout-constrained selectors are how WordPress
   enforces contentSize: 80rem on direct children of any group block. */
.wp-block-html {
	max-width: none !important;
	width: 100% !important;
	margin-inline: 0 !important;
	padding: 0 !important;
}

/* ============================================================
   SCROLL TO TOP BUTTON (mobile only)
   ============================================================ */
.nd-scroll-top {
	display: flex;
	position: fixed;
	bottom: 10px;
	right: 20px;
	z-index: 9998;
	width: 48px;
	height: 48px;
	padding: 0;
	background: rgba(10, 17, 38, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, box-shadow 0.3s ease;
	align-items: center;
	justify-content: center;
}

.nd-scroll-top img {
	width: auto;
	height: auto;
	max-width: 28px;
	max-height: 28px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.nd-scroll-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.nd-scroll-top:active {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.is-layout-flow > .wp-block-html,
.is-layout-constrained > .wp-block-html,
.is-layout-flow > :where(.wp-block-html),
.is-layout-constrained > :where(.wp-block-html) {
	max-width: none !important;
	margin-inline: 0 !important;
}

/* Make template parts and aligned groups full width */
.wp-block-template-part,
.wp-block-group.alignfull {
	width: 100%;
}

/* Remove padding from wp-block-group when used as section wrapper */
.nd-section-wrapper {
	padding: 0;
	margin: 0;
}

/* ============================================================
   16. RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 767px) {
	:root {
		--nd-section-py: 4rem;
		--nd-content-px: 1.25rem;
	}

}

/* ============================================================
   17. CONTACT OVERLAY
   ============================================================ */
.nd-contact-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(7, 13, 31, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.nd-contact-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.nd-contact-overlay__card {
	background: var(--nd-surface-container);
	border: var(--nd-glass-border);
	border-radius: var(--nd-radius-xl);
	padding: 3rem 2.5rem;
	max-width: 28rem;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	transform: translateY(1.5rem) scale(0.96);
	transition: transform 0.3s ease;
	box-shadow: var(--nd-shadow-ambient);
}

.nd-contact-overlay.is-visible .nd-contact-overlay__card {
	transform: translateY(0) scale(1);
}

.nd-contact-overlay__icon .material-symbols-outlined {
	font-size: 4rem;
	color: var(--nd-primary);
	font-variation-settings: 'FILL' 1;
}

.nd-contact-overlay--error .nd-contact-overlay__icon .material-symbols-outlined {
	color: var(--nd-error);
}

.nd-contact-overlay__title {
	font-size: 1.75rem;
	font-weight: 900;
	color: #ffffff;
	margin: 0;
}

.nd-contact-overlay__msg {
	color: var(--nd-on-surface-variant);
	line-height: 1.6;
	margin: 0;
}

.nd-contact-overlay__close {
	margin-top: 0.5rem;
	min-width: 10rem;
}

/* ============================================================
   18. SELECTION & SCROLLBAR
   ============================================================ */
::selection {
	background-color: var(--nd-primary-container);
	color: var(--nd-on-primary-container);
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--nd-surface-lowest);
}

::-webkit-scrollbar-thumb {
	background: var(--nd-surface-bright);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--nd-outline);
}

/* ============================================================
   CASE STUDY — single-portfolio.php
   ============================================================ */

/* -- Container width variants ------------------------------ */
.nd-container--wide {
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: var(--nd-content-px);
}

/* -- Page shell -------------------------------------------- */
.nd-cs {
	position: relative;
	overflow: hidden;
	padding-top: 7rem;
	padding-bottom: 6rem;
}

.nd-cs__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	opacity: 0.12;
	z-index: 0;
}

.nd-cs__orb--a {
	width: 38rem;
	height: 38rem;
	background: var(--nd-primary);
	top: -6rem;
	left: -8rem;
}

.nd-cs__orb--b {
	width: 30rem;
	height: 30rem;
	background: var(--nd-tertiary-container);
	bottom: -5rem;
	right: -6rem;
}

/* -- Header ------------------------------------------------ */
.nd-cs__header-wrap {
	position: relative;
	z-index: 1;
	margin-bottom: 0;
}

.nd-cs__breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nd-on-surface-variant);
	margin-bottom: 1.75rem;
	flex-wrap: wrap;
}

.nd-cs__breadcrumb-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--nd-on-surface-variant);
	text-decoration: none;
	transition: color 0.2s ease;
}

.nd-cs__breadcrumb-link:hover {
	color: var(--nd-primary);
}

.nd-cs__breadcrumb-link .material-symbols-outlined {
	font-size: 0.9rem;
}

.nd-cs__breadcrumb-sep {
	opacity: 0.35;
}

.nd-cs__breadcrumb-dot {
	display: inline-block;
	width: 0.25rem;
	height: 0.25rem;
	border-radius: 50%;
	background: var(--nd-primary);
}

.nd-cs__headline {
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 700;
	line-height: 1.1;
	max-width: 48rem;
	margin: 0 0 1.5rem;
	color: var(--nd-on-surface);
}

.nd-cs__headline-colon {
	color: var(--nd-on-surface);
	-webkit-text-fill-color: var(--nd-on-surface);
}

.nd-cs__lead {
	font-size: 1.125rem;
	color: var(--nd-on-surface-variant);
	max-width: 42rem;
	line-height: 1.75;
	font-weight: 300;
	margin: 0;
}

/* -- Hero image -------------------------------------------- */
.nd-cs__hero-wrap {
	position: relative;
	z-index: 1;
	margin-top: 3rem;
}

.nd-cs__hero {
	border-radius: var(--nd-radius-xl);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.nd-cs__hero-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

/* -- Overview + details ------------------------------------ */
.nd-cs__overview {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-top: 5rem;
	position: relative;
	z-index: 1;
	align-items: start;
}

@media (min-width: 768px) {
	.nd-cs__overview {
		grid-template-columns: 2fr 1fr;
	}
}

.nd-cs__section-title {
	font-size: clamp(1.5rem, 2.5vw, 1.875rem);
	font-weight: 700;
	margin: 0 0 1.5rem;
	color: var(--nd-on-surface);
}

.nd-cs__section-title--center {
	text-align: center;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.nd-cs__overview-body {
	color: var(--nd-on-surface-variant);
	font-weight: 300;
	line-height: 1.8;
	font-size: 1rem;
}

.nd-cs__overview-body p {
	margin: 0 0 1.25rem;
}

.nd-cs__overview-body p:last-child {
	margin: 0;
}

/* Details card */
.nd-cs__details-card {
	border-radius: var(--nd-radius-xl);
	padding: 1.75rem;
}

.nd-cs__details-title {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0 0 1.5rem;
	color: var(--nd-on-surface);
}

.nd-cs__details-list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.nd-cs__detail-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nd-on-surface-variant);
	margin-bottom: 0.25rem;
}

.nd-cs__detail-value {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--nd-on-surface);
}

.nd-cs__visit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 1.25rem;
	border-radius: var(--nd-radius-lg);
	background: var(--nd-gradient-cta);
	color: var(--nd-on-primary);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.nd-cs__visit-btn:hover {
	opacity: 0.88;
	color: var(--nd-on-primary);
}

.nd-cs__visit-btn .material-symbols-outlined {
	font-size: 1rem;
}

/* -- Challenge / Solution ---------------------------------- */
.nd-cs__two-col {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 5rem;
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.nd-cs__two-col {
		grid-template-columns: 1fr 1fr;
	}
}

.nd-cs__feature-card {
	border-radius: var(--nd-radius-xl);
	padding: 2rem;
}

.nd-cs__icon-badge {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--nd-radius-lg);
	background: var(--nd-gradient-cta);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	flex-shrink: 0;
}

.nd-cs__icon-badge .material-symbols-outlined {
	font-size: 1.25rem;
	color: var(--nd-on-primary);
}

.nd-cs__feature-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--nd-on-surface);
}

.nd-cs__feature-body {
	font-size: 0.9rem;
	color: var(--nd-on-surface-variant);
	line-height: 1.75;
	font-weight: 300;
	margin: 0;
}

/* -- Secondary image --------------------------------------- */
.nd-cs__secondary-wrap {
	position: relative;
	z-index: 1;
	margin-top: 4rem;
}

.nd-cs__secondary {
	border-radius: var(--nd-radius-xl);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.nd-cs__secondary-img {
	width: 100%;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	display: block;
}

/* -- Impact / Stats ---------------------------------------- */
.nd-cs__impact {
	margin-top: 6rem;
	position: relative;
	z-index: 1;
}

.nd-cs__stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 3rem;
}

@media (min-width: 640px) {
	.nd-cs__stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.nd-cs__stat-card {
	border-radius: var(--nd-radius-xl);
	padding: 2rem;
	text-align: center;
}

.nd-cs__stat-value {
	font-size: clamp(3rem, 6vw, 4rem);
	font-weight: 700;
	line-height: 1;
}

.nd-cs__stat-label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--nd-on-surface);
	margin-top: 0.75rem;
}

.nd-cs__stat-desc {
	font-size: 0.8125rem;
	color: var(--nd-on-surface-variant);
	font-weight: 300;
	margin-top: 0.4rem;
	line-height: 1.5;
}

/* -- CTA outro --------------------------------------------- */
.nd-cs__outro {
	margin-top: 7rem;
	text-align: center;
	position: relative;
	z-index: 1;
	max-width: 48rem;
}

.nd-cs__outro-headline {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	margin: 0 0 1.25rem;
	color: var(--nd-on-surface);
	line-height: 1.15;
}

.nd-cs__outro-lead {
	font-size: 1.0625rem;
	color: var(--nd-on-surface-variant);
	font-weight: 300;
	line-height: 1.75;
	margin: 0 0 2rem;
}

.nd-cs__outro-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border-radius: var(--nd-radius-lg);
	background: var(--nd-gradient-cta);
	color: var(--nd-on-primary);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.nd-cs__outro-cta:hover {
	opacity: 0.88;
	color: var(--nd-on-primary);
}

.nd-cs__outro-cta .material-symbols-outlined {
	font-size: 1rem;
}

/* ============================================================
   PORTFOLIO — Archive & Single
   ============================================================ */

/* -- Shared decorative orbs --------------------------------- */
.nd-portfolio-archive__orb,
.nd-portfolio-single__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	pointer-events: none;
	z-index: 0;
	opacity: 0.15;
	will-change: transform;
	transform: translateZ(0);
}

.nd-portfolio-archive__orb--primary,
.nd-portfolio-single__orb--primary {
	width: 40rem;
	height: 40rem;
	background: var(--nd-primary);
	top: -10rem;
	left: -12rem;
}

.nd-portfolio-archive__orb--tertiary,
.nd-portfolio-single__orb--tertiary {
	width: 32rem;
	height: 32rem;
	background: var(--nd-tertiary-container);
	bottom: -8rem;
	right: -10rem;
}

/* -- Archive section ---------------------------------------- */
.nd-portfolio-archive {
	position: relative;
	overflow: hidden;
	padding-block: var(--nd-section-py);
}

.nd-portfolio-archive .nd-container {
	position: relative;
	z-index: 1;
}

.nd-portfolio-archive__header {
	text-align: center;
	margin-bottom: 4rem;
}

.nd-portfolio-archive__eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nd-primary);
	margin: 0 0 0.75rem;
}

.nd-portfolio-archive__headline {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 1rem;
	background: var(--nd-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.nd-portfolio-archive__sub {
	font-size: 1.0625rem;
	color: var(--nd-on-surface-variant);
	max-width: 38rem;
	margin-inline: auto;
	line-height: 1.65;
}

/* -- Portfolio grid ----------------------------------------- */
.nd-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

@media (max-width: 1024px) {
	.nd-portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.nd-portfolio-grid {
		grid-template-columns: 1fr;
	}
}

/* -- Portfolio card ----------------------------------------- */
.nd-portfolio-card {
	position: relative;
	border-radius: var(--nd-radius-lg);
	overflow: hidden;
	background: var(--nd-surface-container);
	border: 1px solid var(--nd-outline-variant);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.nd-portfolio-card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: var(--nd-shadow-ambient), var(--nd-shadow-glow-soft);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.nd-portfolio-card:hover {
	transform: translateY(-4px);
	border-color: var(--nd-primary);
}

.nd-portfolio-card:hover::after {
	opacity: 1;
}

.nd-portfolio-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.nd-portfolio-card__link:hover {
	color: inherit;
}

.nd-portfolio-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nd-surface-low);
}

.nd-portfolio-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.nd-portfolio-card:hover .nd-portfolio-card__img {
	transform: scale(1.05);
}

.nd-portfolio-card__img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nd-outline);
	font-size: 3rem;
}

.nd-portfolio-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(173, 198, 255, 0.1), rgba(164, 118, 255, 0.15));
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
}

.nd-portfolio-card:hover .nd-portfolio-card__overlay {
	opacity: 1;
}

.nd-portfolio-card__overlay-icon {
	font-size: 2rem;
	color: var(--nd-primary-fixed);
	filter: drop-shadow(0 0 8px rgba(173, 198, 255, 0.6));
}

.nd-portfolio-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
}

.nd-portfolio-card__title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--nd-on-surface);
	margin: 0 0 0.5rem;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.nd-portfolio-card:hover .nd-portfolio-card__title {
	color: var(--nd-primary);
}

.nd-portfolio-card__excerpt {
	font-size: 0.875rem;
	color: var(--nd-on-surface-variant);
	margin: 0;
	line-height: 1.6;
}

/* -- Pagination --------------------------------------------- */
.nd-portfolio-pagination {
	margin-top: 3.5rem;
	display: flex;
	justify-content: center;
}

.nd-portfolio-pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nd-portfolio-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.75rem;
	border-radius: var(--nd-radius-md);
	border: 1px solid var(--nd-outline-variant);
	background: var(--nd-surface-container);
	color: var(--nd-on-surface-variant);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nd-portfolio-pagination .page-numbers:hover,
.nd-portfolio-pagination .page-numbers.current {
	border-color: var(--nd-primary);
	background: rgba(173, 198, 255, 0.08);
	color: var(--nd-primary);
}

/* -- Empty state -------------------------------------------- */
.nd-portfolio-archive__empty {
	text-align: center;
	padding-block: 5rem;
	color: var(--nd-on-surface-variant);
}

.nd-portfolio-archive__empty-icon {
	font-size: 3.5rem;
	display: block;
	margin-bottom: 1rem;
	opacity: 0.5;
}

/* -- Single project ----------------------------------------- */
.nd-portfolio-single {
	position: relative;
	overflow: hidden;
	padding-block: var(--nd-section-py);
}

.nd-portfolio-single .nd-container {
	position: relative;
	z-index: 1;
	max-width: 56rem;
}

/* Breadcrumb */
.nd-portfolio-single__breadcrumb {
	margin-bottom: 2rem;
}

.nd-portfolio-single__breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--nd-on-surface-variant);
	text-decoration: none;
	transition: color 0.2s ease;
}

.nd-portfolio-single__breadcrumb a:hover {
	color: var(--nd-primary);
}

.nd-portfolio-single__breadcrumb .material-symbols-outlined {
	font-size: 1.125rem;
}

/* Header */
.nd-portfolio-single__header {
	margin-bottom: 2.5rem;
}

.nd-portfolio-single__eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nd-primary);
	margin: 0 0 0.75rem;
}

.nd-portfolio-single__headline {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 1.75rem;
	background: var(--nd-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Meta strip */
.nd-portfolio-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	padding: 1.25rem 1.5rem;
	background: var(--nd-surface-container);
	border: 1px solid var(--nd-outline-variant);
	border-radius: var(--nd-radius-lg);
}

.nd-portfolio-single__meta-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.nd-portfolio-single__meta-label {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nd-on-surface-variant);
}

.nd-portfolio-single__meta-label .material-symbols-outlined {
	font-size: 0.9rem;
}

.nd-portfolio-single__meta-value {
	font-size: 0.9375rem;
	color: var(--nd-on-surface);
	font-weight: 500;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

/* Tech tags */
.nd-portfolio-single__tech-tag {
	display: inline-block;
	padding: 0.2rem 0.625rem;
	border-radius: var(--nd-radius-full);
	background: rgba(173, 198, 255, 0.1);
	border: 1px solid rgba(173, 198, 255, 0.2);
	color: var(--nd-primary);
	font-size: 0.8125rem;
	font-weight: 500;
}

/* Live link */
.nd-portfolio-single__live-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--nd-primary);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nd-portfolio-single__live-link:hover {
	color: var(--nd-primary-fixed);
}

.nd-portfolio-single__live-link .material-symbols-outlined {
	font-size: 1rem;
}

/* Cover image */
.nd-portfolio-single__cover {
	border-radius: var(--nd-radius-xl);
	overflow: hidden;
	margin-bottom: 3rem;
	border: 1px solid var(--nd-outline-variant);
	box-shadow: var(--nd-shadow-ambient);
}

.nd-portfolio-single__cover-img {
	width: 100%;
	height: auto;
	display: block;
}

/* Content */
.nd-portfolio-single__body {
	margin-bottom: 3rem;
}

.nd-prose {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--nd-on-surface-variant);
}

.nd-prose h2,
.nd-prose h3,
.nd-prose h4 {
	color: var(--nd-on-surface);
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	line-height: 1.25;
}

.nd-prose h2 { font-size: 1.5rem; }
.nd-prose h3 { font-size: 1.25rem; }
.nd-prose h4 { font-size: 1.0625rem; }

.nd-prose p {
	margin: 0 0 1.25rem;
}

.nd-prose ul,
.nd-prose ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

.nd-prose li {
	margin-bottom: 0.5rem;
}

.nd-prose strong {
	color: var(--nd-on-surface);
	font-weight: 600;
}

.nd-prose a {
	color: var(--nd-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nd-prose a:hover {
	color: var(--nd-primary-fixed);
}

.nd-prose img {
	border-radius: var(--nd-radius-lg);
	margin-block: 1.5rem;
}

.nd-prose blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border-left: 3px solid var(--nd-primary);
	background: var(--nd-surface-container);
	border-radius: 0 var(--nd-radius-md) var(--nd-radius-md) 0;
	color: var(--nd-on-surface);
	font-style: italic;
}

/* Footer CTA */
.nd-portfolio-single__footer {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Ghost button variant (add alongside existing nd-btn styles) */
.nd-btn--ghost {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.625rem 1.25rem;
	border-radius: var(--nd-radius-full);
	border: 1px solid var(--nd-outline-variant);
	background: transparent;
	color: var(--nd-on-surface-variant);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
	cursor: pointer;
}

.nd-btn--ghost:hover {
	border-color: var(--nd-primary);
	color: var(--nd-primary);
	background: rgba(173, 198, 255, 0.06);
}

/* ============================================================
   PERFORMANCE
   ============================================================ */

/* Promote fixed nav to its own compositor layer — avoids repaint on scroll */
.nd-nav {
	will-change: transform;
}

/* Defer rendering of below-fold sections until near viewport */
.nd-services,
.nd-portfolio,
.nd-process,
.nd-pricing,
.nd-testimonials,
.nd-contact {
	content-visibility: auto;
	contain-intrinsic-size: auto 600px;
}

/* Glow orbs are GPU-expensive (filter:blur). Kill them on mobile/low-end. */
@media (max-width: 767px) {
	.nd-glow-orb,
	.nd-privacy__orb,
	.nd-privacy__hero-glow,
	.nd-portfolio-archive__orb,
	.nd-portfolio-single__orb {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nd-glow-orb,
	.nd-privacy__orb,
	.nd-privacy__hero-glow,
	.nd-portfolio-archive__orb,
	.nd-portfolio-single__orb {
		display: none;
	}
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* Short viewports (landscape phones, iPhone SE landscape) */
@media (max-height: 500px) and (max-width: 1023px) {
	.nd-hero {
		min-height: auto;
		padding-top: calc(var(--nd-nav-offset) + 2rem);
		padding-bottom: 2rem;
	}
}

