/* ==========================================================================
   STEELY AI — Theme Stylesheet
   AI-Forged Software Solutions
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */
:root {
	/* Colors */
	--bg-primary: #0a0f1c;
	--bg-secondary: #111827;
	--bg-tertiary: #1e293b;
	--bg-card: #151d2e;
	--bg-card-hover: #1a2540;

	--accent: #6366f1;
	--accent-light: #818cf8;
	--accent-dark: #4f46e5;
	--accent-glow: rgba(99, 102, 241, 0.4);
	--accent-subtle: rgba(99, 102, 241, 0.08);

	--purple: #8b5cf6;
	--cyan: #22d3ee;
	--emerald: #10b981;

	--text-primary: #e2e8f0;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	--text-white: #ffffff;

	--border: rgba(148, 163, 184, 0.1);
	--border-hover: rgba(99, 102, 241, 0.4);

	/* Typography */
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', monospace;

	/* Spacing */
	--section-py: 7rem;
	--container-max: 1200px;
	--container-px: 1.5rem;

	/* Transitions */
	--transition: 0.3s ease;
	--transition-slow: 0.5s ease;

	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
	--shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

	/* Border Radius */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-full: 9999px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 80px;
}

body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-primary);
	background: var(--bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent-light);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--accent);
}

ul, ol {
	list-style: none;
}

::selection {
	background: var(--accent);
	color: var(--text-white);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-white);
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
	color: var(--text-secondary);
	margin-bottom: 1rem;
}

.text-gradient {
	background: linear-gradient(135deg, var(--accent-light), var(--purple));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--accent-light);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1rem;
}

.section-badge::before {
	content: '';
	width: 32px;
	height: 2px;
	background: var(--accent);
	border-radius: 2px;
}

.section-heading {
	margin-bottom: 1rem;
}

.section-desc {
	font-size: 1.125rem;
	max-width: 600px;
	color: var(--text-secondary);
}

.section-header {
	margin-bottom: 4rem;
}

.section-header--center {
	text-align: center;
}

.section-header--center .section-badge {
	justify-content: center;
}

.section-header--center .section-desc {
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-px);
}

.section {
	padding: var(--section-py) 0;
	position: relative;
}

.section--alt {
	background: var(--bg-secondary);
}

.section--dark {
	background: var(--bg-primary);
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 0.8125rem 1.75rem;
	border-radius: var(--radius-full);
	border: none;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

.btn--primary {
	background: linear-gradient(135deg, var(--accent), var(--purple));
	color: var(--text-white);
	box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
	color: var(--text-white);
}

.btn--outline {
	background: transparent;
	color: var(--text-primary);
	border: 1.5px solid var(--border-hover);
}

.btn--outline:hover {
	background: var(--accent-subtle);
	border-color: var(--accent);
	color: var(--text-white);
	transform: translateY(-2px);
}

.btn--sm {
	font-size: 0.8125rem;
	padding: 0.5rem 1.25rem;
}

.btn--lg {
	font-size: 1rem;
	padding: 1rem 2.25rem;
}

.btn--icon {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
}

/* ==========================================================================
   6. Header / Navigation
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 1rem 0;
	transition: all var(--transition);
}

.site-header.scrolled {
	background: rgba(10, 15, 28, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.site-logo__text {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.site-logo__steely {
	color: var(--text-white);
}

.site-logo__ai {
	background: linear-gradient(135deg, var(--accent-light), var(--purple));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.site-nav {
	display: flex;
	align-items: center;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.site-nav__link,
.site-nav__list a {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	padding: 0.5rem 1rem;
	border-radius: var(--radius-full);
	transition: all var(--transition);
	text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.active,
.site-nav__list a:hover {
	color: var(--text-white);
	background: var(--accent-subtle);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.mobile-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--text-primary);
	border-radius: 2px;
	transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 8rem 0 4rem;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -30%;
	width: 160%;
	height: 200%;
	background:
		radial-gradient(ellipse at 25% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
		radial-gradient(ellipse at 75% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
		radial-gradient(ellipse at 50% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 40%);
	animation: heroBgFloat 20s ease-in-out infinite;
	pointer-events: none;
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
	background-size: 70px 70px;
	pointer-events: none;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
	z-index: 1;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 1rem;
	background: var(--accent-subtle);
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--accent-light);
	margin-bottom: 1.5rem;
}

.hero__badge i {
	font-size: 0.75rem;
	animation: pulse 2s ease-in-out infinite;
}

.hero__title {
	font-size: clamp(2.75rem, 5.5vw, 4.25rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

.hero__title-line {
	display: block;
}

.hero__rotating-wrapper {
	display: inline-block;
	position: relative;
	min-width: 300px;
}

.hero__rotating {
	background: linear-gradient(135deg, var(--accent-light), var(--purple), var(--cyan));
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: gradientShift 4s ease infinite;
}

.hero__desc {
	font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
	line-height: 1.8;
	color: var(--text-secondary);
	margin-bottom: 2rem;
	max-width: 520px;
}

.hero__actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Terminal Visual */
.hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.terminal {
	width: 100%;
	max-width: 480px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.08);
}

.terminal__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1rem;
	background: rgba(30, 41, 59, 0.5);
	border-bottom: 1px solid var(--border);
}

.terminal__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.terminal__dot--red { background: #ef4444; }
.terminal__dot--yellow { background: #eab308; }
.terminal__dot--green { background: #22c55e; }

.terminal__title {
	margin-left: 0.75rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--text-muted);
}

.terminal__body {
	padding: 1.5rem;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	line-height: 1.9;
	min-height: 280px;
}

.terminal__line {
	display: block;
	white-space: pre;
}

.code-keyword { color: #c084fc; }
.code-class { color: #22d3ee; }
.code-func { color: #fbbf24; }
.code-string { color: #34d399; }
.code-comment { color: var(--text-muted); font-style: italic; }
.code-param { color: #fb923c; }
.code-op { color: var(--text-secondary); }

.terminal__cursor {
	display: inline-block;
	width: 8px;
	height: 16px;
	background: var(--accent-light);
	animation: blink 1s step-end infinite;
	vertical-align: middle;
	margin-left: 2px;
}

/* Terminal Typewriter Effect */
.terminal--typing .terminal__line {
	visibility: hidden;
}

.terminal--typing .terminal__line.tl-done {
	visibility: visible;
}

.terminal--typing .terminal__line.tl-active {
	visibility: visible;
	overflow: hidden;
	white-space: pre;
	box-sizing: content-box;
	border-right: 2px solid var(--accent-light);
	animation: cursor-blink 0.7s step-end infinite;
}

.terminal--typing .terminal__cursor {
	opacity: 0;
}

.terminal--typing.typing-done .terminal__cursor {
	opacity: 1;
}

/* ==========================================================================
   8. Services Section
   ========================================================================== */
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.service-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	transition: all var(--transition);
	position: relative;
	overflow: hidden;
}

.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	opacity: 0;
	transition: opacity var(--transition);
}

.service-card:hover {
	border-color: var(--border-hover);
	transform: translateY(-4px);
	box-shadow: var(--shadow-md), var(--shadow-glow);
	background: var(--bg-card-hover);
}

.service-card:hover::before {
	opacity: 1;
}

.service-card__icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-light);
	font-size: 1.375rem;
	margin-bottom: 1.5rem;
	transition: all var(--transition);
}

.service-card:hover .service-card__icon {
	background: linear-gradient(135deg, var(--accent), var(--purple));
	color: var(--text-white);
	box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.service-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.service-card__desc {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 0;
}

/* ==========================================================================
   9. About / Stats Section
   ========================================================================== */
.about__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about__text p {
	font-size: 1.0625rem;
	margin-bottom: 1.5rem;
}

.about__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.about__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem 0.875rem;
	background: var(--accent-subtle);
	border: 1px solid rgba(99, 102, 241, 0.15);
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--accent-light);
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.stat-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	text-align: center;
	transition: all var(--transition);
}

.stat-card:hover {
	border-color: var(--border-hover);
	box-shadow: var(--shadow-glow);
}

.stat-card__number {
	font-size: 2.5rem;
	font-weight: 800;
	background: linear-gradient(135deg, var(--accent-light), var(--purple));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	margin-bottom: 0.375rem;
}

.stat-card__label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	font-weight: 500;
}

/* ==========================================================================
   10. Portfolio Section
   ========================================================================== */
.portfolio__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.portfolio-card {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-card);
	border: 1px solid var(--border);
	transition: all var(--transition);
}

.portfolio-card:hover {
	border-color: var(--border-hover);
	transform: translateY(-4px);
	box-shadow: var(--shadow-md), var(--shadow-glow);
}

.portfolio-card__image-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.portfolio-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__image {
	transform: scale(1.08);
}

.portfolio-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
	opacity: 0;
	transition: opacity var(--transition);
	display: flex;
	align-items: flex-end;
	padding: 1.5rem;
}

.portfolio-card:hover .portfolio-card__overlay {
	opacity: 1;
}

.portfolio-card__overlay-text {
	color: var(--text-primary);
	font-size: 0.875rem;
}

.portfolio-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: var(--accent);
	opacity: 0.3;
}

.portfolio-card__content {
	padding: 1.5rem;
}

.portfolio-card__tech {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--accent-light);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}

.portfolio-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.portfolio-card__desc {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 0;
}

a.portfolio-card--link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

/* ===== SINGLE PORTFOLIO ===== */
.portfolio-hero {
	padding: 6rem 0 3rem;
	text-align: center;
}
.portfolio-hero__icon {
	font-size: 3rem;
	color: var(--accent);
	margin-bottom: 1.5rem;
}
.portfolio-hero__title {
	font-size: 2.2rem;
	font-weight: 800;
	margin-bottom: 1rem;
}
.portfolio-hero__tech {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent-light);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: rgba(99,102,241,0.1);
	padding: 0.4rem 1rem;
	border-radius: var(--radius-full);
	margin-bottom: 1.5rem;
}
.portfolio-hero__desc {
	font-size: 1.1rem;
	color: var(--text-secondary);
	max-width: 640px;
	margin: 0 auto 2rem;
	line-height: 1.7;
}
.portfolio-body {
	padding: 2rem 0 4rem;
}
.portfolio-body__inner {
	max-width: 800px;
	margin: 0 auto;
}
.portfolio-other__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
@media (max-width: 768px) {
	.portfolio-hero__title {
		font-size: 1.6rem;
	}
	.portfolio-other__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   11. Technologies Section
   ========================================================================== */
.tech-stack__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.tech-item {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 1.25rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	transition: all var(--transition);
}

.tech-item:hover {
	border-color: var(--border-hover);
	color: var(--text-white);
	background: var(--bg-card-hover);
}

.tech-item i {
	font-size: 1.125rem;
	color: var(--accent-light);
}

/* ==========================================================================
   12. Contact Section
   ========================================================================== */
.contact__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.contact-form {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
}

.form-group {
	margin-bottom: 1.25rem;
}

.form-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.form-control {
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--bg-secondary);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	transition: all var(--transition);
	outline: none;
}

.form-control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
	color: var(--text-muted);
}

textarea.form-control {
	resize: vertical;
	min-height: 140px;
}

.form-message {
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	margin-top: 1rem;
	display: none;
}

.form-message--success {
	display: block;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.3);
	color: var(--emerald);
}

.form-message--error {
	display: block;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #ef4444;
}

.recaptcha-notice {
	font-size: 0.7rem;
	color: var(--text-muted);
	margin-top: 0.75rem;
	line-height: 1.5;
}

.recaptcha-notice a {
	color: var(--text-secondary);
	text-decoration: underline;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.contact-info__item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.contact-info__icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	background: var(--accent-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-light);
	font-size: 1.125rem;
	flex-shrink: 0;
}

.contact-info__text h4 {
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.contact-info__text p,
.contact-info__text a {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	margin-bottom: 0;
}

.contact-info__text a:hover {
	color: var(--accent-light);
}

.contact-social {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.contact-social a {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bg-card);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 1.125rem;
	transition: all var(--transition);
}

.contact-social a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text-white);
	transform: translateY(-2px);
}

/* ==========================================================================
   13. Blog / Archive
   ========================================================================== */
.blog-hero {
	padding: 8rem 0 4rem;
	background: var(--bg-secondary);
	text-align: center;
	position: relative;
}

.blog-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	opacity: 0.4;
}

.blog-content {
	padding: 4rem 0 6rem;
}

.blog-content__inner {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2.5rem;
	align-items: start;
}

.blog-content__inner.no-sidebar {
	grid-template-columns: 1fr;
	max-width: 900px;
	margin: 0 auto;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem;
}

.blog-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: all var(--transition);
	display: flex;
	flex-direction: column;
}

.blog-card:hover {
	border-color: var(--accent);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.blog-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
	position: relative;
}

/* Placeholder icon when no image */
.blog-card__image::before {
	content: '\f15c';
	font-family: 'Font Awesome 6 Free';
	font-weight: 400;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: var(--border);
	z-index: 0;
}

.blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
	position: relative;
	z-index: 1;
}

.blog-card:hover .blog-card__image img {
	transform: scale(1.05);
}

.blog-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card__meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 0.875rem;
}

.blog-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.blog-card__meta i {
	color: var(--accent);
	font-size: 0.75rem;
}

.blog-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.625rem;
	line-height: 1.4;
}

.blog-card__title a {
	color: var(--text-white);
	transition: color var(--transition);
}

.blog-card__title a:hover {
	color: var(--accent-light);
}

.blog-card__excerpt {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 1.25rem;
	line-height: 1.7;
	flex: 1;
}

.blog-card__more {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--accent-light);
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	transition: all var(--transition);
	margin-top: auto;
}

.blog-card__more:hover {
	gap: 0.625rem;
	color: var(--accent);
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 0.875rem;
	transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text-white);
}

/* ==========================================================================
   14. Single Post
   ========================================================================== */
.single-hero {
	padding: 10rem 0 3rem;
	background: var(--bg-secondary);
}

.single-hero__meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-top: 1.5rem;
}

.single-hero__meta i {
	margin-right: 0.375rem;
}

.single-content {
	padding: 3rem 0 5rem;
}

.single-content__inner {
	max-width: 760px;
	margin: 0 auto;
}

.single-content__body {
	font-size: 1.0625rem;
	line-height: 1.9;
}

.single-content__body h2 {
	font-size: 1.75rem;
	margin: 2.5rem 0 1rem;
}

.single-content__body h3 {
	font-size: 1.375rem;
	margin: 2rem 0 0.75rem;
}

.single-content__body p {
	margin-bottom: 1.5rem;
	color: var(--text-secondary);
}

.single-content__body a {
	color: var(--accent-light);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-content__body img {
	border-radius: var(--radius-md);
	margin: 2rem 0;
}

.single-content__body blockquote {
	border-left: 3px solid var(--accent);
	padding: 1rem 1.5rem;
	margin: 2rem 0;
	background: var(--accent-subtle);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.single-content__body blockquote p {
	color: var(--text-primary);
	font-style: italic;
	margin-bottom: 0;
}

.single-content__body pre {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 0.875rem;
	margin: 2rem 0;
}

.single-content__body code {
	font-family: var(--font-mono);
	font-size: 0.875em;
	background: var(--bg-tertiary);
	padding: 0.125em 0.375em;
	border-radius: 4px;
	color: var(--accent-light);
}

.single-content__body pre code {
	background: none;
	padding: 0;
	color: var(--text-primary);
}

.single-content__body ul,
.single-content__body ol {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.single-content__body li {
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
}

.single-content__body ul li {
	list-style: disc;
}

.single-content__body ol li {
	list-style: decimal;
}

/* Post Tags */
.single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.single-tags a {
	display: inline-flex;
	padding: 0.375rem 0.875rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	color: var(--text-secondary);
	transition: all var(--transition);
}

.single-tags a:hover {
	border-color: var(--accent);
	color: var(--accent-light);
}

/* Post Nav */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.post-nav__item {
	padding: 1.25rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	transition: all var(--transition);
}

.post-nav__item:hover {
	border-color: var(--border-hover);
}

.post-nav__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.375rem;
}

.post-nav__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-white);
}

.post-nav__item--next {
	text-align: right;
}

/* ==========================================================================
   15. Sidebar & Widgets
   ========================================================================== */
.sidebar {
	position: sticky;
	top: 6rem;
}

.sidebar .widget,
.sidebar .wp-block-group,
.sidebar > section,
.sidebar > div {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

/* Widget titles — WP uses various selectors */
.sidebar .widget__title,
.sidebar .widget-title,
.sidebar .wp-block-heading,
.sidebar h2,
.sidebar h3 {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
	letter-spacing: 0.02em;
}

/* Widget list items */
.sidebar .widget ul,
.sidebar .wp-block-latest-posts,
.sidebar .wp-block-latest-comments {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar .widget ul li,
.sidebar .wp-block-latest-posts li,
.sidebar .wp-block-latest-comments li {
	margin-bottom: 0;
	padding: 0.625rem 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.sidebar .widget ul li:last-child,
.sidebar .wp-block-latest-posts li:last-child,
.sidebar .wp-block-latest-comments li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sidebar .widget ul li:first-child,
.sidebar .wp-block-latest-posts li:first-child,
.sidebar .wp-block-latest-comments li:first-child {
	padding-top: 0;
}

.sidebar .widget ul li a,
.sidebar .wp-block-latest-posts__post-title,
.sidebar .wp-block-latest-comments__comment-link {
	font-size: 0.875rem;
	color: var(--text-secondary);
	transition: color var(--transition);
	line-height: 1.5;
	text-decoration: none;
}

.sidebar .widget ul li a:hover,
.sidebar .wp-block-latest-posts__post-title:hover,
.sidebar .wp-block-latest-comments__comment-link:hover {
	color: var(--accent-light);
}

/* Comment meta */
.sidebar .wp-block-latest-comments__comment-meta,
.sidebar .wp-block-latest-comments__comment-excerpt {
	font-size: 0.8125rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.sidebar .wp-block-latest-comments__comment-author-link {
	color: var(--text-white);
	font-weight: 600;
	text-decoration: none;
}

.sidebar .wp-block-latest-comments__comment-excerpt p {
	font-size: 0.8125rem;
	color: var(--text-muted);
	margin: 0.25rem 0 0;
}

/* Search Widget */
.sidebar .wp-block-search,
.sidebar .widget_search {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}

.sidebar .wp-block-search__label,
.sidebar .widget_search label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 0.75rem;
}

.sidebar .wp-block-search__inside-wrapper,
.sidebar .widget_search form {
	display: flex;
	gap: 0;
}

.sidebar .wp-block-search__input,
.sidebar .widget_search input[type="search"],
.sidebar .widget_search input[type="text"] {
	flex: 1;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-right: none;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	padding: 0.625rem 0.875rem;
	color: var(--text-primary);
	font-size: 0.875rem;
	outline: none;
	transition: border-color var(--transition);
}

.sidebar .wp-block-search__input:focus,
.sidebar .widget_search input:focus {
	border-color: var(--accent);
}

.sidebar .wp-block-search__button,
.sidebar .widget_search button,
.sidebar .widget_search input[type="submit"] {
	background: var(--accent);
	color: var(--text-white);
	border: 1px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	padding: 0.625rem 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
	white-space: nowrap;
}

.sidebar .wp-block-search__button:hover,
.sidebar .widget_search button:hover,
.sidebar .widget_search input[type="submit"]:hover {
	background: var(--accent-dark);
}

/* Avoid double background on nested widget containers */
.sidebar .widget .wp-block-group,
.sidebar .widget .wp-block-group__inner-container {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	border-radius: 0;
}

/* No comments state */
.sidebar .no-comments {
	font-size: 0.875rem;
	color: var(--text-muted);
	padding: 0.5rem 0;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */
.site-footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border);
	padding: 4rem 0 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--border);
}

.site-footer__desc {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	margin-top: 1rem;
	line-height: 1.7;
}

.site-footer__social {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.site-footer__social a {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bg-card);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 1rem;
	transition: all var(--transition);
}

.site-footer__social a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text-white);
}

.site-footer__links h4,
.site-footer__contact h4 {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 1.25rem;
}

.site-footer__links ul li {
	margin-bottom: 0.625rem;
}

.site-footer__links ul li a {
	color: var(--text-secondary);
	font-size: 0.9375rem;
	transition: color var(--transition);
}

.site-footer__links ul li a:hover {
	color: var(--accent-light);
}

.site-footer__contact ul li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.875rem;
	color: var(--text-secondary);
	font-size: 0.9375rem;
}

.site-footer__contact ul li i {
	color: var(--accent-light);
	font-size: 0.875rem;
	width: 16px;
	text-align: center;
}

.site-footer__contact ul li a {
	color: var(--text-secondary);
}

.site-footer__contact ul li a:hover {
	color: var(--accent-light);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 0;
}

.site-footer__bottom p {
	font-size: 0.8125rem;
	color: var(--text-muted);
	margin-bottom: 0;
}

.site-footer__tagline {
	font-style: italic;
}

/* ==========================================================================
   17. 404 Page
   ========================================================================== */
.error-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem var(--container-px);
	position: relative;
	overflow: hidden;
}

.error-page__inner {
	position: relative;
	z-index: 1;
	max-width: 600px;
}

.error-page__glitch {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	font-size: clamp(12rem, 30vw, 22rem);
	font-weight: 900;
	color: transparent;
	-webkit-text-stroke: 1px rgba(99, 102, 241, 0.08);
	z-index: 0;
	pointer-events: none;
	user-select: none;
	line-height: 1;
}

.error-page__code {
	font-size: clamp(6rem, 15vw, 12rem);
	font-weight: 900;
	background: linear-gradient(135deg, var(--accent-light), var(--purple));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	margin-bottom: 1rem;
	position: relative;
}

.error-page__terminal {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 0.75rem 1.25rem;
	margin: 0 auto 1.5rem;
	display: inline-block;
	text-align: left;
	line-height: 1.8;
}

.error-page__title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.error-page__desc {
	font-size: 1.125rem;
	color: var(--text-secondary);
	max-width: 480px;
	margin: 0 auto 2rem;
}

.error-page__search {
	display: flex;
	gap: 0.5rem;
	max-width: 420px;
	margin: 0 auto 2rem;
}

.error-page__search .form-control {
	flex: 1;
}

.error-page__search .btn {
	white-space: nowrap;
}

.error-page__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Hide reCAPTCHA badge (using text attribution instead per Google TOS) */
.grecaptcha-badge {
	visibility: hidden !important;
}

/* ==========================================================================
   18. Page Template
   ========================================================================== */
.page-hero {
	padding: 10rem 0 4rem;
	background: var(--bg-secondary);
}

.page-content {
	padding: 4rem 0;
}

.page-content__inner {
	max-width: 800px;
	margin: 0 auto;
}

.page-content__body {
	font-size: 1.0625rem;
	line-height: 1.9;
}

.page-content__body h2,
.page-content__body h3,
.page-content__body p,
.page-content__body a,
.page-content__body img,
.page-content__body blockquote,
.page-content__body pre,
.page-content__body code,
.page-content__body ul,
.page-content__body ol,
.page-content__body li {
	/* Inherits all styles from single-content__body */
}

/* ==========================================================================
   19. Animations
   ========================================================================== */
@keyframes heroBgFloat {
	0%, 100% { transform: translate(0, 0); }
	25% { transform: translate(3%, -2%); }
	50% { transform: translate(-2%, 3%); }
	75% { transform: translate(1%, -1%); }
}

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

@keyframes cursor-blink {
	0%, 100% { border-color: var(--accent-light); }
	50% { border-color: transparent; }
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Scroll Reveal */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
	opacity: 1;
	transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ==========================================================================
   20. Utilities
   ========================================================================== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-light); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   21. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	:root {
		--section-py: 5rem;
	}

	.hero__inner {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.hero__visual {
		order: -1;
	}

	.terminal {
		max-width: 400px;
	}

	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about__inner {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.portfolio__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact__inner {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}

	.blog-content__inner {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	:root {
		--section-py: 4rem;
		--container-px: 1rem;
	}

	.site-nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 300px;
		height: 100vh;
		background: var(--bg-secondary);
		border-left: 1px solid var(--border);
		flex-direction: column;
		justify-content: center;
		padding: 2rem;
		transition: right var(--transition);
		z-index: 999;
	}

	.site-nav.active {
		right: 0;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0.5rem;
		width: 100%;
	}

	.site-nav__link,
	.site-nav__list a {
		display: block;
		padding: 0.75rem 1rem;
		font-size: 1rem;
		width: 100%;
	}

	.mobile-toggle {
		display: flex;
	}

	.site-header__actions .btn {
		display: none;
	}

	.hero {
		min-height: auto;
		padding: 7rem 0 3rem;
	}

	.hero__title {
		font-size: clamp(2rem, 7vw, 2.75rem);
	}

	.hero__visual {
		display: none;
	}

	.services__grid {
		grid-template-columns: 1fr;
	}

	.portfolio__grid {
		grid-template-columns: 1fr;
	}

	.stats__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.site-footer__bottom {
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.blog-hero {
		padding: 6rem 0 3rem;
	}

	.single-hero {
		padding: 7rem 0 2.5rem;
	}

	.single-content {
		padding: 2rem 0 4rem;
	}

	.single-content__body h2 {
		font-size: 1.5rem;
	}

	.contact-form {
		padding: 2rem;
	}

	.service-card {
		padding: 1.5rem;
	}

	.contact__inner {
		gap: 2rem;
	}
}

@media (max-width: 480px) {
	:root {
		--section-py: 3rem;
	}

	.hero {
		padding: 6rem 0 2.5rem;
	}

	.hero__actions {
		flex-direction: column;
	}

	.hero__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.stat-card__number {
		font-size: 2rem;
	}

	.stats__grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}

	.hero__badge {
		font-size: 0.75rem;
	}

	.blog-hero {
		padding: 5rem 0 2rem;
	}

	.blog-content {
		padding: 2rem 0 3rem;
	}

	.single-hero {
		padding: 5.5rem 0 2rem;
	}

	.single-content {
		padding: 1.5rem 0 3rem;
	}

	.single-content__body {
		font-size: 0.9375rem;
	}

	.single-content__body h2 {
		font-size: 1.25rem;
		margin: 2rem 0 0.75rem;
	}

	.single-content__body h3 {
		font-size: 1.125rem;
		margin: 1.5rem 0 0.5rem;
	}

	.contact-form {
		padding: 1.25rem;
	}

	textarea.form-control {
		min-height: 100px;
	}

	.service-card {
		padding: 1.25rem;
	}

	.site-footer__grid {
		gap: 1.5rem;
	}

	.site-footer__bottom {
		padding: 1rem 0;
	}

	.error-page {
		padding: 3rem var(--container-px);
	}

	.error-page__search {
		flex-direction: column;
	}

	.error-page__search .btn {
		width: 100%;
		justify-content: center;
	}

	.whatsapp-float {
		bottom: 1rem;
		right: 1rem;
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}

	html[dir="rtl"] .whatsapp-float {
		right: auto;
		left: 1rem;
	}
}

/* 360px — very small phones */
@media (max-width: 360px) {
	.hero__title {
		font-size: clamp(1.5rem, 8vw, 2rem);
	}

	.stats__grid {
		grid-template-columns: 1fr;
	}

	.stat-card {
		padding: 1rem;
	}

	.contact-form {
		padding: 1rem;
	}

	.site-nav {
		width: 100%;
	}
}

/* Mobile nav overlay */
.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 998;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition);
}

.nav-overlay.active {
	opacity: 1;
	pointer-events: all;
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: #25d366;
	color: #fff;
	border-radius: 50%;
	font-size: 1.75rem;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
}

.whatsapp-float:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
	color: #fff;
}

.whatsapp-float:active {
	transform: scale(0.95);
}

html[dir="rtl"] .whatsapp-float {
	right: auto;
	left: 1.5rem;
}

/* ==========================================================================
   20. Language Switcher
   ========================================================================== */
.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.5rem 0.85rem;
	min-height: 44px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-primary);
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.lang-switch:hover {
	background: var(--accent-subtle);
	border-color: var(--accent);
	color: var(--accent-light);
}

/* ==========================================================================
   21. RTL Support
   ========================================================================== */
html[dir="rtl"] {
	font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

html[dir="rtl"] .hero__inner {
	flex-direction: row-reverse;
}

html[dir="rtl"] .about__inner {
	flex-direction: row-reverse;
}

html[dir="rtl"] .contact__inner {
	flex-direction: row-reverse;
}

html[dir="rtl"] .contact-info__item {
	flex-direction: row-reverse;
}

html[dir="rtl"] .service-card {
	text-align: right;
}

html[dir="rtl"] .portfolio-card__content {
	text-align: right;
}

html[dir="rtl"] .site-footer__grid {
	direction: rtl;
}

html[dir="rtl"] .site-nav__list {
	flex-direction: row-reverse;
}

html[dir="rtl"] .site-header__inner {
	flex-direction: row-reverse;
}

html[dir="rtl"] .site-header__actions {
	flex-direction: row-reverse;
}

html[dir="rtl"] .btn i {
	margin-left: 0.5rem;
	margin-right: 0;
}

html[dir="rtl"] .hero__badge i {
	margin-left: 0.5rem;
	margin-right: 0;
}

html[dir="rtl"] .about__tag i {
	margin-left: 0.35rem;
	margin-right: 0;
}

html[dir="rtl"] .post-nav {
	flex-direction: row-reverse;
}

/* RTL: Blog & Sidebar */
html[dir="rtl"] .blog-card__meta {
	flex-direction: row-reverse;
}

html[dir="rtl"] .blog-card__more {
	flex-direction: row-reverse;
}

html[dir="rtl"] .blog-card__content {
	text-align: right;
}

html[dir="rtl"] .blog-content__inner {
	direction: rtl;
}

html[dir="rtl"] .sidebar {
	text-align: right;
}

html[dir="rtl"] .sidebar .wp-block-search__input,
html[dir="rtl"] .sidebar .widget_search input[type="search"],
html[dir="rtl"] .sidebar .widget_search input[type="text"] {
	border-right: 1px solid var(--border);
	border-left: none;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

html[dir="rtl"] .sidebar .wp-block-search__button,
html[dir="rtl"] .sidebar .widget_search button,
html[dir="rtl"] .sidebar .widget_search input[type="submit"] {
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

html[dir="rtl"] .pagination {
	flex-direction: row-reverse;
}

@media (max-width: 768px) {
	html[dir="rtl"] .hero__inner,
	html[dir="rtl"] .about__inner,
	html[dir="rtl"] .contact__inner {
		flex-direction: column;
	}

	html[dir="rtl"] .site-header__inner {
		flex-direction: row-reverse;
	}

	html[dir="rtl"] .site-nav__list {
		flex-direction: column;
		text-align: right;
	}
}

@media (max-width: 480px) {
	html[dir="rtl"] .error-page__search {
		flex-direction: column;
	}

	html[dir="rtl"] .site-footer__bottom {
		text-align: center;
	}

	html[dir="rtl"] .contact-info__item {
		flex-direction: column;
		text-align: center;
	}
}

/* ==========================================================================
   22. Skip to Content (Accessibility)
   ========================================================================== */
.skip-to-content {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	padding: 0.75rem 1.5rem;
	background: var(--accent);
	color: var(--text-white);
	font-weight: 700;
	font-size: 0.875rem;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	text-decoration: none;
	transition: top 0.2s ease;
}

/* ===== COMMENTS ===== */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--steel-800, #1e293b);
}
.comments-title {
	font-size: 1.3rem;
	margin-bottom: 1.5rem;
	color: var(--text-primary, #f1f5f9);
}
.comments-count {
	color: var(--text-secondary, #94a3b8);
	font-weight: 400;
	font-size: 1rem;
}
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.comment-item {
	margin-bottom: 1.5rem;
}
.comment-body {
	background: var(--steel-900, #0f172a);
	border: 1px solid var(--steel-800, #1e293b);
	border-radius: var(--radius-md, 0.5rem);
	padding: 1.25rem;
}
.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}
.comment-avatar {
	border-radius: 50%;
}
.comment-author {
	font-weight: 600;
	color: var(--text-primary, #f1f5f9);
}
.comment-date {
	display: block;
	font-size: 0.8rem;
	color: var(--text-secondary, #94a3b8);
}
.comment-content {
	color: var(--text-secondary, #cbd5e1);
	line-height: 1.7;
}
.comment-content p:last-child {
	margin-bottom: 0;
}
.comment-reply-link {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--accent, #3b82f6);
	text-decoration: none;
}
.comment-reply-link:hover {
	text-decoration: underline;
}
.comment-awaiting {
	font-size: 0.85rem;
	color: var(--accent, #3b82f6);
	font-style: italic;
	margin-bottom: 0.5rem;
}
.children {
	list-style: none;
	padding-left: 2rem;
}
[dir="rtl"] .children {
	padding-left: 0;
	padding-right: 2rem;
}
.no-comments {
	color: var(--text-secondary, #94a3b8);
	font-style: italic;
}

/* Comment Form */
#respond {
	margin-top: 2rem;
}
#respond .comment-reply-title {
	font-size: 1.2rem;
	color: var(--text-primary, #f1f5f9);
	margin-bottom: 1rem;
}
#respond .comment-reply-title small {
	display: block;
	font-size: 0.85rem;
	margin-top: 0.25rem;
}
#respond .comment-reply-title small a {
	color: var(--accent, #3b82f6);
}
.comment-form label {
	display: block;
	font-size: 0.85rem;
	color: var(--text-secondary, #94a3b8);
	margin-bottom: 0.3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.6rem 0.8rem;
	background: var(--steel-900, #0f172a);
	border: 1px solid var(--steel-700, #334155);
	border-radius: var(--radius-sm, 0.375rem);
	color: var(--text-primary, #f1f5f9);
	font-family: inherit;
	font-size: 0.9rem;
	transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent, #3b82f6);
}
.comment-form textarea {
	min-height: 120px;
	resize: vertical;
}
.comment-form p {
	margin-bottom: 1rem;
}
.comment-form .form-submit .submit {
	background: var(--accent, #3b82f6);
	color: #fff;
	border: none;
	padding: 0.65rem 1.5rem;
	border-radius: var(--radius-sm, 0.375rem);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}
.comment-form .form-submit .submit:hover {
	background: var(--accent-hover, #2563eb);
}

.skip-to-content:focus {
	top: 0;
	outline: none;
}

/* ==========================================================================
   23. Focus Visible (Keyboard Accessibility)
   ========================================================================== */
:focus-visible {
	outline: 2px solid var(--accent-light);
	outline-offset: 2px;
}

.btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.blog-card:focus-within {
	border-color: var(--accent);
	box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.service-card:focus-within {
	border-color: var(--border-hover);
	box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ==========================================================================
   24. Scroll Indicator (Hero)
   ========================================================================== */
.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	opacity: 0.6;
	transition: opacity var(--transition);
}

.scroll-indicator:hover {
	opacity: 1;
}

.scroll-indicator__mouse {
	width: 24px;
	height: 40px;
	border: 2px solid var(--text-secondary);
	border-radius: 12px;
	position: relative;
	display: flex;
	justify-content: center;
}

.scroll-indicator__wheel {
	width: 4px;
	height: 8px;
	background: var(--accent-light);
	border-radius: 2px;
	margin-top: 6px;
	animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
	0%   { opacity: 1; transform: translateY(0); }
	100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 768px) {
	.scroll-indicator {
		bottom: 1rem;
	}

	.scroll-indicator__mouse {
		width: 20px;
		height: 32px;
	}
}

/* ==========================================================================
   25. Back to Top Button
   ========================================================================== */
.back-to-top {
	position: fixed;
	bottom: 1.5rem;
	right: 5rem;
	z-index: 9998;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	color: var(--accent-light);
	border: 1px solid var(--border);
	border-radius: 50%;
	font-size: 1rem;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
	box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
	opacity: 1;
	pointer-events: all;
	transform: translateY(0);
}

.back-to-top:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text-white);
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

html[dir="rtl"] .back-to-top {
	right: auto;
	left: 5rem;
}

@media (max-width: 480px) {
	.back-to-top {
		bottom: 1rem;
		right: 4.5rem;
		width: 40px;
		height: 40px;
	}

	html[dir="rtl"] .back-to-top {
		right: auto;
		left: 4.5rem;
	}
}

/* ==========================================================================
   26. Form Message Transition
   ========================================================================== */
.form-message {
	transition: opacity 0.4s ease;
}

/* ==========================================================================
   27. Service Page Template
   ========================================================================== */

/* Hero */
.service-hero {
	padding: 10rem 0 4rem;
	background: var(--bg-secondary);
	position: relative;
	overflow: hidden;
}
.service-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, var(--accent-glow), transparent 70%);
	opacity: 0.15;
	pointer-events: none;
}
.service-hero__inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}
.service-hero__icon {
	width: 80px;
	height: 80px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-light);
	font-size: 2rem;
	margin-bottom: 1.5rem;
}
.service-hero__title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
	line-height: 1.2;
}
.service-hero__desc {
	font-size: 1.125rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto 2rem;
	line-height: 1.7;
}
.service-hero__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Body */
.service-body {
	padding: 4rem 0 3rem;
}
.service-body__inner {
	max-width: 760px;
	margin: 0 auto;
}

/* Features Grid */
.service-features__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
.service-feature-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	transition: all var(--transition);
}
.service-feature-card:hover {
	border-color: var(--border-hover);
	background: var(--bg-card-hover);
}
.service-feature-card__icon {
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, var(--accent), var(--purple));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-white);
	font-size: 0.875rem;
}
.service-feature-card__title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}
.service-feature-card__desc {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin: 0;
}

/* Tools Grid */
.service-tools__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}
.service-tool-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	padding: 0.6rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary);
	transition: all var(--transition);
}
.service-tool-item i {
	color: var(--accent-light);
	font-size: 1rem;
}
.service-tool-item:hover {
	border-color: var(--border-hover);
	background: var(--bg-card-hover);
	transform: translateY(-2px);
}

/* Other Services (compact) */
.services__grid--compact {
	grid-template-columns: repeat(3, 1fr);
}
.service-card--link {
	text-decoration: none;
	color: inherit;
	display: block;
	cursor: pointer;
}

/* CTA Section */
.service-cta {
	padding: var(--section-py) 0;
}
.service-cta__inner {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
	padding: 3rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	position: relative;
	overflow: hidden;
}
.service-cta__inner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), var(--purple), var(--cyan));
}
.service-cta__inner h2 {
	font-size: 1.75rem;
	font-weight: 800;
	margin-bottom: 0.75rem;
}
.service-cta__inner p {
	color: var(--text-secondary);
	margin-bottom: 2rem;
	font-size: 1.0625rem;
}
.service-cta__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* RTL support */
[dir="rtl"] .service-feature-card {
	flex-direction: row-reverse;
	text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
	.service-hero { padding: 8rem 0 3rem; }
	.service-hero__title { font-size: 1.75rem; }
	.service-features__grid { grid-template-columns: 1fr; }
	.services__grid--compact { grid-template-columns: 1fr; }
	.service-cta__inner { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   28. Prefers Reduced Motion (Accessibility)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	html {
		scroll-behavior: auto;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}

	.hero__rotating {
		animation: none;
	}

	.hero::before {
		animation: none;
	}

	.terminal__cursor {
		animation: none;
		opacity: 1;
	}

	.scroll-indicator__wheel {
		animation: none;
		opacity: 0.7;
	}

	.service-card:hover,
	.portfolio-card:hover,
	.blog-card:hover,
	.btn--primary:hover,
	.btn--outline:hover {
		transform: none;
	}
}
