/* Mostafa Zeen — Personal Theme */

:root {
	--mz-bg: #0b1220;
	--mz-surface: #111827;
	--mz-surface-2: #1e293b;
	--mz-border: rgba(148, 163, 184, 0.16);
	--mz-text: #e2e8f0;
	--mz-muted: #94a3b8;
	--mz-primary: #3b82f6;
	--mz-primary-soft: rgba(59, 130, 246, 0.15);
	--mz-accent: #22d3ee;
	--mz-radius: 16px;
	--mz-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	--mz-font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
	--mz-container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	color-scheme: dark;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--mz-font);
	background: var(--mz-bg);
	color: var(--mz-text);
	line-height: 1.7;
	direction: rtl;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--mz-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mz-accent); }

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

.mz-container {
	width: min(100% - 32px, var(--mz-container));
	margin-inline: auto;
}

/* Header */
.mz-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(14px);
	background: rgba(11, 18, 32, 0.82);
	border-bottom: 1px solid var(--mz-border);
}

.mz-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	gap: 16px;
}

.mz-logo {
	font-weight: 700;
	font-size: 1.1rem;
	color: #fff;
	letter-spacing: 0.02em;
}
.mz-logo span { color: var(--mz-primary); }

.mz-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.mz-nav a {
	color: #e2e8f0;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	transition: color .2s, background .2s;
}
.mz-nav a:hover,
.mz-nav a.is-active {
	color: #ffffff;
	background: rgba(59, 130, 246, 0.22);
}

.mz-nav-desktop { display: flex; align-items: center; }
.mz-nav-panel { display: none; }
.mz-nav-backdrop { display: none; }
.mz-nav-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	width: 40px;
	height: 40px;
	border-radius: 10px;
}
.mz-nav-close:hover { background: rgba(255,255,255,0.08); }

@media (min-width: 721px) {
	.mz-nav-panel {
		position: static;
		transform: none;
		width: auto;
		height: auto;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
		overflow: visible;
	}
	.mz-nav-panel-head { display: none !important; }
	.mz-nav-backdrop { display: none !important; }
}


.mz-nav-toggle {
	display: none;
	background: rgba(15, 23, 42, 0.9);
	border: 1px solid rgba(148, 163, 184, 0.35);
	color: #fff;
	border-radius: 12px;
	padding: 0;
	cursor: pointer;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.mz-nav-toggle:hover,
.mz-nav-toggle[aria-expanded="true"] {
	background: #1e293b;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}
.mz-burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 20px;
	height: 16px;
}
.mz-burger span {
	display: block;
	width: 100%;
	height: 2.5px;
	background: #f8fafc;
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}
.mz-nav-toggle[aria-expanded="true"] .mz-burger span:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
}
.mz-nav-toggle[aria-expanded="true"] .mz-burger span:nth-child(2) {
	opacity: 0;
}
.mz-nav-toggle[aria-expanded="true"] .mz-burger span:nth-child(3) {
	transform: translateY(-7.5px) rotate(-45deg);
}
.mz-nav-panel-head { display: none; }
.mz-nav-backdrop { display: none; }

/* Hero */
.mz-hero {
	position: relative;
	padding: 96px 0 80px;
	overflow: hidden;
}
.mz-hero::before {
	content: "";
	position: absolute;
	inset: -20% auto auto 10%;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, rgba(59,130,246,.28), transparent 70%);
	pointer-events: none;
}
.mz-hero::after {
	content: "";
	position: absolute;
	inset: 30% -10% auto auto;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%);
	pointer-events: none;
}

.mz-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 48px;
	align-items: center;
}

.mz-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--mz-primary-soft);
	color: #93c5fd;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 18px;
	border: 1px solid rgba(59,130,246,.25);
}

.mz-hero h1 {
	margin: 0 0 16px;
	font-size: clamp(2.1rem, 4vw, 3.2rem);
	line-height: 1.25;
	color: #fff;
	font-weight: 800;
}

.mz-hero-lead {
	margin: 0 0 28px;
	color: var(--mz-muted);
	font-size: 1.08rem;
	max-width: 540px;
}

.mz-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s, background .2s, border-color .2s;
}
.mz-btn:hover { transform: translateY(-1px); }
.mz-btn-primary {
	background: var(--mz-primary);
	color: #fff;
}
.mz-btn-primary:hover { background: #2563eb; color: #fff; }
.mz-btn-ghost {
	background: transparent;
	color: #fff;
	border-color: var(--mz-border);
}
.mz-btn-ghost:hover { border-color: #64748b; color: #fff; }

.mz-hero-card {
	background: linear-gradient(160deg, rgba(30,41,59,.9), rgba(15,23,42,.95));
	border: 1px solid var(--mz-border);
	border-radius: 24px;
	padding: 28px;
	box-shadow: var(--mz-shadow);
}
.mz-hero-card h3 {
	margin: 0 0 16px;
	font-size: 1rem;
	color: var(--mz-muted);
	font-weight: 600;
}
.mz-meta-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.mz-meta-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: rgba(255,255,255,0.03);
	border-radius: 12px;
	border: 1px solid var(--mz-border);
	font-size: 0.92rem;
}
.mz-meta-list strong { color: #fff; }
.mz-meta-list span { color: var(--mz-muted); }

/* Sections */
.mz-section {
	padding: 72px 0;
}
.mz-section-alt {
	background: rgba(255,255,255,0.02);
	border-block: 1px solid var(--mz-border);
}
.mz-section-head {
	margin-bottom: 36px;
	max-width: 640px;
}
.mz-section-head h2 {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3vw, 2rem);
	color: #fff;
}
.mz-section-head p {
	margin: 0;
	color: var(--mz-muted);
}

.mz-about-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 28px;
	align-items: stretch;
}
.mz-about-panel {
	position: relative;
	background: linear-gradient(165deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
	border: 1px solid var(--mz-border);
	border-radius: 24px;
	padding: 32px 28px 28px;
	box-shadow: var(--mz-shadow);
	overflow: hidden;
}
.mz-about-panel::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle at top right, rgba(59,130,246,0.2), transparent 70%);
	pointer-events: none;
}
.mz-about-kicker {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #93c5fd;
	background: var(--mz-primary-soft);
	border: 1px solid rgba(59,130,246,0.25);
	border-radius: 999px;
	padding: 4px 12px;
	margin-bottom: 14px;
}
.mz-about-title {
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 3vw, 2rem);
	color: #fff;
	position: relative;
}
.mz-about-lead {
	margin: 0 0 20px;
	font-size: 1.08rem;
	line-height: 1.7;
	color: #cbd5e1;
	font-weight: 600;
	border-right: 3px solid var(--mz-primary);
	padding-right: 14px;
}
.mz-about-text {
	position: relative;
	color: var(--mz-muted);
	font-size: 1rem;
	line-height: 1.85;
}
.mz-about-text p {
	margin: 0 0 1em;
}
.mz-about-text p:last-child {
	margin-bottom: 0;
}
.mz-about-highlights {
	list-style: none;
	margin: 24px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--mz-border);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.mz-about-highlights li {
	text-align: center;
	padding: 12px 8px;
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--mz-border);
}
.mz-about-highlights strong {
	display: block;
	font-size: 1.15rem;
	color: var(--mz-accent);
	margin-bottom: 4px;
}
.mz-about-highlights span {
	font-size: 0.8rem;
	color: var(--mz-muted);
}
.mz-about-side {
	display: grid;
	gap: 14px;
	align-content: start;
}

/* Cards grid */
.mz-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.mz-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.mz-card {
	background: var(--mz-surface);
	border: 1px solid var(--mz-border);
	border-radius: var(--mz-radius);
	padding: 22px;
	transition: border-color .2s, transform .15s;
}
.mz-card:hover {
	border-color: rgba(59,130,246,.45);
	transform: translateY(-2px);
}
.mz-card .mz-icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--mz-primary-soft);
	color: #93c5fd;
	font-size: 1.25rem;
	margin-bottom: 14px;
}
.mz-card h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: #fff;
}
.mz-card p {
	margin: 0;
	color: var(--mz-muted);
	font-size: 0.92rem;
}

.mz-stat {
	text-align: center;
	padding: 24px 12px;
	background: var(--mz-surface);
	border: 1px solid var(--mz-border);
	border-radius: var(--mz-radius);
}
.mz-stat strong {
	display: block;
	font-size: 1.8rem;
	color: var(--mz-accent);
	margin-bottom: 4px;
}
.mz-stat span {
	color: var(--mz-muted);
	font-size: 0.9rem;
}

/* Career path / experience */
.mz-kicker {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	color: #93c5fd;
	background: var(--mz-primary-soft);
	border: 1px solid rgba(59,130,246,0.25);
	border-radius: 999px;
	padding: 4px 12px;
	margin-bottom: 12px;
}
.mz-path {
	position: relative;
	display: grid;
	gap: 0;
	max-width: 860px;
	margin: 0 auto;
}
.mz-path::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	right: 18px;
	width: 2px;
	background: linear-gradient(180deg, rgba(59,130,246,0.7), rgba(34,211,238,0.15));
	border-radius: 2px;
}
.mz-path-item {
	position: relative;
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 16px;
	padding-bottom: 22px;
}
.mz-path-item:last-child { padding-bottom: 0; }
.mz-path-marker {
	position: relative;
	z-index: 1;
	width: 16px;
	height: 16px;
	margin: 18px 10px 0 auto;
	border-radius: 50%;
	background: var(--mz-bg);
	border: 2px solid #64748b;
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9);
}
.mz-path-item.is-current .mz-path-marker {
	border-color: #3b82f6;
	background: #3b82f6;
	box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.45);
}
.mz-path-card {
	background: linear-gradient(160deg, rgba(30,41,59,0.95), rgba(15,23,42,0.98));
	border: 1px solid var(--mz-border);
	border-radius: 18px;
	padding: 20px 22px 18px;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.mz-path-item.is-current .mz-path-card {
	border-color: rgba(59, 130, 246, 0.45);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(59, 130, 246, 0.12);
}
.mz-path-card:hover {
	transform: translateY(-3px);
	border-color: rgba(59, 130, 246, 0.5);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.mz-path-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.mz-path-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #dbeafe;
	background: rgba(59, 130, 246, 0.2);
	border: 1px solid rgba(59, 130, 246, 0.35);
}
.mz-path-badge.is-muted {
	color: var(--mz-muted);
	background: rgba(148, 163, 184, 0.08);
	border-color: var(--mz-border);
}
.mz-path-role {
	font-size: 0.85rem;
	color: var(--mz-muted);
	font-weight: 600;
}
.mz-path-card h3 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 1.15rem;
}
.mz-path-desc {
	margin: 0 0 14px;
	color: var(--mz-muted);
	font-size: 0.95rem;
	line-height: 1.75;
}
.mz-path-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mz-path-tags li {
	font-size: 0.78rem;
	color: #cbd5e1;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--mz-border);
	border-radius: 999px;
	padding: 5px 11px;
}

/* Contact */
.mz-contact-box {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 24px;
	padding: 28px;
	border-radius: 24px;
	background: linear-gradient(145deg, #111827, #0f172a);
	border: 1px solid var(--mz-border);
	box-shadow: var(--mz-shadow);
}
.mz-contact-box h2 {
	margin: 0 0 10px;
	color: #fff;
}
.mz-contact-box > div > p {
	margin: 0 0 18px;
	color: var(--mz-muted);
}
.mz-contact-links {
	display: grid;
	gap: 10px;
}
.mz-contact-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--mz-border);
	color: #fff;
}
.mz-contact-links a:hover {
	border-color: rgba(59,130,246,.5);
	background: var(--mz-primary-soft);
}
.mz-contact-links small { color: var(--mz-muted); }

/* Footer */
.mz-footer {
	padding: 28px 0 36px;
	border-top: 1px solid var(--mz-border);
	color: var(--mz-muted);
	font-size: 0.9rem;
	text-align: center;
}

/* Blog / default content */
.mz-content {
	padding: 48px 0 72px;
}
.mz-content article {
	max-width: 760px;
	margin: 0 auto;
}
.mz-content h1 {
	color: #fff;
	margin-bottom: 16px;
}
.mz-content .entry-content {
	color: var(--mz-muted);
}
.mz-content .entry-content a { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
	.mz-hero-grid,
	.mz-about-grid,
	.mz-contact-box {
		grid-template-columns: 1fr;
	}
	.mz-about-highlights {
		grid-template-columns: 1fr;
	}

	.mz-grid-3 { grid-template-columns: 1fr 1fr; }
	.mz-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.mz-path::before { right: 11px; }
	.mz-path-item { grid-template-columns: 28px 1fr; gap: 12px; }
	.mz-path-marker { margin: 18px 4px 0 auto; }
	.mz-nav-toggle { display: inline-flex; }
	.mz-header-inner {
		flex-wrap: nowrap;
		position: relative;
	}
	.mz-nav-panel {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(86vw, 320px);
		z-index: 120;
		background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
		border-left: 1px solid rgba(59,130,246,0.25);
		box-shadow: -16px 0 48px rgba(0,0,0,0.45);
		transform: translateX(105%);
		transition: transform .28s cubic-bezier(0.22, 1, 0.36, 1);
		display: flex;
		flex-direction: column;
		padding: 0;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}
	.mz-nav-panel.is-open {
		transform: translateX(0);
	}
	.mz-nav-panel-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 18px 12px;
		border-bottom: 1px solid var(--mz-border);
	}
	.mz-nav-panel-title {
		font-weight: 700;
		color: #fff;
		font-size: 0.95rem;
	}
	.mz-nav {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		padding: 14px 14px 28px;
		width: 100%;
		margin: 0;
	}
	.mz-nav li { width: 100%; list-style: none; }
	.mz-nav a {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		padding: 14px 16px;
		border-radius: 12px;
		font-size: 1.05rem;
		font-weight: 700;
		color: #ffffff !important;
		background: #1e293b;
		border: 1px solid rgba(148, 163, 184, 0.25);
		min-height: 52px;
	}
	.mz-nav a:hover,
	.mz-nav a:focus,
	.mz-nav a.is-active {
		background: #2563eb !important;
		border-color: #60a5fa;
		color: #ffffff !important;
		box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
	}
	.mz-nav-panel-title {
		color: #ffffff !important;
	}
	.mz-nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 110;
		background: rgba(2, 6, 23, 0.62);
		backdrop-filter: blur(3px);
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s ease;
	}
	.mz-nav-backdrop.is-open {
		opacity: 1;
		pointer-events: auto;
	}
	body.mz-nav-open {
		overflow: hidden;
	}
	.mz-grid-3,
	.mz-grid-4 { grid-template-columns: 1fr; }
	.mz-hero { padding: 64px 0 48px; }
}

/* ========== تأثيرات تقنية وحركية ========== */

/* شبكة تقنية في الخلفية */
body.mz-front {
	background-color: var(--mz-bg);
	background-image:
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.18), transparent),
		linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
	background-size: auto, 48px 48px, 48px 48px;
	background-attachment: fixed;
}

.mz-tech-bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}
.mz-tech-bg canvas {
	width: 100%;
	height: 100%;
	display: block;
	opacity: 0.45;
}

.mz-header,
main,
.mz-footer {
	position: relative;
	z-index: 1;
}

.mz-header.is-scrolled {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	border-bottom-color: rgba(59, 130, 246, 0.25);
}

/* توهج العنوان */
.mz-hero h1 {
	background: linear-gradient(120deg, #ffffff 0%, #93c5fd 45%, #22d3ee 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}


/* نبض الشارة */
.mz-badge {
	position: relative;
	overflow: hidden;
}
.mz-badge::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
	transform: translateX(120%);
	animation: mz-shimmer 3.5s ease-in-out infinite;
}
@keyframes mz-shimmer {
	0%, 60% { transform: translateX(120%); }
	100% { transform: translateX(-120%); }
}

/* أزرار بتوهج */
.mz-btn-primary {
	position: relative;
	box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
}
.mz-btn-primary:hover {
	box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45);
	animation: none;
}

.mz-btn-ghost {
	backdrop-filter: blur(6px);
	transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.mz-btn-ghost:hover {
	background: rgba(255,255,255,0.04);
	box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

/* بطاقة البطل */
.mz-hero-card {
	position: relative;
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease;
}
.mz-hero-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(59,130,246,.6), transparent 40%, rgba(34,211,238,.4));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	opacity: 0.85;
}
.mz-hero-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(59, 130, 246, 0.12);
}
.mz-meta-list li {
	transition: background .2s, border-color .2s, transform .2s;
}
.mz-meta-list li:hover {
	background: rgba(59, 130, 246, 0.08);
	border-color: rgba(59, 130, 246, 0.35);
	transform: translateX(-3px);
}

/* كروت الخدمات/الخبرات */
.mz-card {
	position: relative;
	overflow: hidden;
	transition: border-color .25s, transform .25s, box-shadow .25s, background .25s;
}
.mz-card::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 120px;
	height: 120px;
	background: radial-gradient(circle at top right, rgba(59,130,246,0.15), transparent 70%);
	opacity: 0;
	transition: opacity .3s;
	pointer-events: none;
}
.mz-card:hover {
	border-color: rgba(59, 130, 246, 0.5);
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.15);
	background: linear-gradient(165deg, #152033, #111827);
}
.mz-card:hover::after { opacity: 1; }
.mz-card .mz-icon {
	transition: transform .3s ease, box-shadow .3s;
}
.mz-card:hover .mz-icon {
	transform: scale(1.08) rotate(-4deg);
	box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
}

/* إحصائيات */
.mz-stat {
	position: relative;
	overflow: hidden;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.mz-stat:hover {
	transform: translateY(-4px);
	border-color: rgba(34, 211, 238, 0.4);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.mz-stat strong {
	background: linear-gradient(120deg, var(--mz-accent), #93c5fd);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	transition: letter-spacing .3s;
}
.mz-stat:hover strong { letter-spacing: 0.04em; }

/* خط زمني */

/* صندوق التواصل */
.mz-contact-box {
	position: relative;
	overflow: hidden;
}
.mz-contact-box::before {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
	top: -80px;
	left: -60px;
	pointer-events: none;
	animation: mz-float 9s ease-in-out infinite;
}
@keyframes mz-float {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(20px, 16px); }
}
.mz-contact-links a {
	transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.mz-contact-links a:hover {
	transform: translateX(-4px);
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* ظهور عند التمرير */
.mz-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
.mz-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.mz-reveal-delay-1 { transition-delay: 0.08s; }
.mz-reveal-delay-2 { transition-delay: 0.16s; }
.mz-reveal-delay-3 { transition-delay: 0.24s; }
.mz-reveal-delay-4 { transition-delay: 0.32s; }

/* شريط تقدم التمرير */
.mz-scroll-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	z-index: 200;
	background: transparent;
	pointer-events: none;
}
.mz-scroll-progress > span {
	display: block;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #3b82f6, #22d3ee);
	box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
	transition: width 0.05s linear;
}

/* تقليل الحركة لمن يفضّل ذلك */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mz-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.mz-badge::before,
	.mz-btn-primary,
	.mz-hero h1,
	.mz-contact-box::before {
		animation: none !important;
	}
}

/* ========== تحسينات تجربة المستخدم (1.2.0) ========== */

/* قارئات الشاشة + رابط التخطي */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.mz-skip-link {
	position: fixed;
	top: 8px;
	right: 8px;
	z-index: 300;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--mz-primary);
	color: #fff;
	font-weight: 700;
	transform: translateY(-200%);
	transition: transform .2s;
}
.mz-skip-link:focus { transform: translateY(0); color: #fff; }

/* تركيز واضح للوحة المفاتيح */
:focus-visible {
	outline: 2px solid var(--mz-accent);
	outline-offset: 3px;
	border-radius: 6px;
}
.mz-btn:focus-visible,
.mz-nav a:focus-visible { outline-offset: 2px; }

/* الروابط المرجعية لا تختفي تحت الهيدر الثابت */
[id] { scroll-margin-top: 84px; }

/* أهداف لمس مريحة (44px) */
.mz-btn { min-height: 44px; }
.mz-nav a { display: inline-flex; align-items: center; min-height: 40px; }
.mz-nav-toggle { min-height: 44px; min-width: 44px; }
.mz-contact-links a { min-height: 52px; }

/* تمييز القسم الحالي بوضوح لا يعتمد على اللون وحده */
.mz-nav a.is-active { box-shadow: inset 0 -2px 0 var(--mz-accent); }

/* زر العودة للأعلى */
.mz-to-top {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 150;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--mz-border);
	background: rgba(17, 24, 39, 0.92);
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s, transform .25s, visibility .25s, border-color .2s;
	backdrop-filter: blur(8px);
}
.mz-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.mz-to-top:hover { border-color: var(--mz-primary); }

/* صفحات المحتوى: نصوص مقروءة */
.mz-content .entry-content { font-size: 1.05rem; line-height: 1.95; }
.mz-content .entry-content h2,
.mz-content .entry-content h3,
.mz-content .entry-content h4 { color: #fff; margin: 1.6em 0 .6em; line-height: 1.4; }
.mz-content .entry-content p { margin: 0 0 1.2em; }
.mz-content .entry-content ul,
.mz-content .entry-content ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.mz-content .entry-content blockquote {
	margin: 1.4em 0;
	padding: 14px 18px;
	border-inline-start: 3px solid var(--mz-primary);
	background: rgba(255, 255, 255, .03);
	border-radius: 0 12px 12px 0;
	color: #cbd5e1;
}
.mz-content .entry-content pre,
.mz-content .entry-content code {
	direction: ltr;
	text-align: left;
	background: var(--mz-surface);
	border-radius: 8px;
}
.mz-content .entry-content code { padding: 2px 6px; font-size: .9em; }
.mz-content .entry-content pre { padding: 16px; overflow-x: auto; border: 1px solid var(--mz-border); }
.mz-content .entry-content pre code { padding: 0; background: none; }
.mz-content .entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.mz-content .entry-content th,
.mz-content .entry-content td { padding: 10px 12px; border: 1px solid var(--mz-border); }
.mz-content .entry-content img { border-radius: 12px; }
.mz-entry-meta { margin: 0 0 18px; color: var(--mz-muted); font-size: .88rem; }
.mz-entry-thumb { margin: 0 0 24px; }
.mz-entry-thumb img { width: 100%; border-radius: 16px; }
.mz-content article { max-width: 760px; }

/* قائمة المقالات */
.mz-archive-head { max-width: 760px; margin: 0 auto 28px; }
.mz-archive-head h1 span { color: var(--mz-accent); }
.mz-post-list { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.mz-post-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 18px;
	background: var(--mz-surface);
	border: 1px solid var(--mz-border);
	border-radius: var(--mz-radius);
	padding: 16px;
	transition: border-color .2s, transform .2s;
}
.mz-post-card:not(:has(.mz-post-card-thumb)) { grid-template-columns: 1fr; }
.mz-post-card:hover { border-color: rgba(59, 130, 246, .45); transform: translateY(-2px); }
.mz-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mz-post-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.mz-post-card h2 a { color: #fff; }
.mz-post-card h2 a:hover { color: var(--mz-accent); }
.mz-post-card p { margin: 0 0 10px; color: var(--mz-muted); font-size: .95rem; }
.mz-post-card .mz-entry-meta { margin-bottom: 6px; }
.mz-readmore { font-weight: 600; font-size: .92rem; }

.mz-post-nav { max-width: 760px; margin: 32px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mz-post-nav a { display: inline-block; padding: 10px 16px; border: 1px solid var(--mz-border); border-radius: 12px; color: #fff; }
.mz-post-nav a:hover { border-color: var(--mz-primary); }

.pagination { max-width: 760px; margin: 32px auto 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 14px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--mz-border); border-radius: 12px; color: #fff;
}
.pagination .page-numbers.current { background: var(--mz-primary); border-color: var(--mz-primary); }
.pagination a.page-numbers:hover { border-color: var(--mz-primary); }

/* بحث + 404 */
.mz-empty { text-align: center; }
.mz-404-code {
	margin: 0; font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1;
	background: linear-gradient(120deg, #3b82f6, #22d3ee);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 18px auto 0; }
.search-form label { flex: 1; }
.search-field,
.search-form input[type="search"] {
	width: 100%; min-height: 44px; padding: 10px 14px;
	background: var(--mz-surface); color: #fff;
	border: 1px solid var(--mz-border); border-radius: 12px; font: inherit;
}
.search-field:focus { border-color: var(--mz-primary); outline: none; box-shadow: 0 0 0 3px var(--mz-primary-soft); }
.search-submit {
	min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer;
	background: var(--mz-primary); color: #fff; font: inherit; font-weight: 600;
}
.search-submit:hover { background: #2563eb; }

/* الجوال */
@media (max-width: 720px) {
	.mz-actions .mz-btn { flex: 1 1 100%; }
	.mz-section { padding: 52px 0; }
	.mz-hero-card { padding: 20px; }
	.mz-contact-box { padding: 20px; }
	.mz-post-card { grid-template-columns: 1fr; }
	/* mobile nav links styled above */
	.mz-to-top { left: 12px; bottom: 12px; }
}

/* وضع التباين العالي: العنوان المتدرّج يبقى مقروءاً */
@media (forced-colors: active) {
	.mz-hero h1,
	.mz-stat strong,
	.mz-404-code { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
}

/* الأجهزة التي لا تدعم التمرير بالماوس: لا ارتفاع عالق بعد اللمس */
@media (hover: none) {
	.mz-card:hover,
	.mz-stat:hover,
	.mz-path-card:hover,
	.mz-hero-card:hover,
	.mz-post-card:hover { transform: none; }
}



/* ===== قائمة الموبايل (خارج الهيدر) ===== */
@media (max-width: 720px) {
	.mz-nav-desktop { display: none !important; }

	.mz-nav-toggle {
		display: inline-flex !important;
		background: #1e3a8a !important;
		border: 2px solid #60a5fa !important;
		z-index: 10060 !important;
		position: relative;
	}
	.mz-burger span { background: #ffffff !important; }

	.mz-nav-backdrop {
		display: block !important;
		position: fixed !important;
		inset: 0 !important;
		z-index: 10040 !important;
		background: rgba(0, 0, 0, 0.75) !important;
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s ease;
	}
	.mz-nav-backdrop.is-open {
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	.mz-nav-panel {
		display: flex !important;
		flex-direction: column !important;
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: auto !important;
		width: min(86vw, 320px) !important;
		z-index: 10050 !important;
		background: #0b1220 !important;
		border-left: 2px solid #3b82f6 !important;
		box-shadow: -16px 0 48px rgba(0,0,0,.6) !important;
		transform: translate3d(105%, 0, 0) !important;
		transition: transform .28s ease !important;
		padding: 0 !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
	}
	.mz-nav-panel.is-open {
		transform: translate3d(0, 0, 0) !important;
	}

	.mz-nav-panel-head {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		padding: 16px 14px !important;
		border-bottom: 1px solid #334155 !important;
		background: #111827 !important;
	}
	.mz-nav-panel-title {
		color: #fff !important;
		font-weight: 800 !important;
		font-size: 1.05rem !important;
	}

	.mz-nav-panel .mz-nav,
	.mz-nav-panel ul.mz-nav-mobile {
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
		padding: 16px !important;
		margin: 0 !important;
		list-style: none !important;
	}
	.mz-nav-panel .mz-nav li { list-style: none !important; margin: 0 !important; }

	.mz-nav-panel .mz-nav a {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		min-height: 52px !important;
		padding: 14px 16px !important;
		border-radius: 12px !important;
		font-size: 1.1rem !important;
		font-weight: 700 !important;
		color: #ffffff !important;
		background: #1e293b !important;
		border: 1px solid #475569 !important;
		text-decoration: none !important;
	}
	.mz-nav-panel .mz-nav a:hover,
	.mz-nav-panel .mz-nav a:focus,
	.mz-nav-panel .mz-nav a.is-active {
		background: #2563eb !important;
		border-color: #93c5fd !important;
		color: #fff !important;
	}

	body.mz-nav-open { overflow: hidden !important; }
}

@media (min-width: 721px) {
	.mz-nav-panel,
	.mz-nav-backdrop,
	.mz-nav-toggle { display: none !important; }
	.mz-nav-desktop { display: flex !important; }
}
