/* =========================================
   Nova Digital Agency: Sections Styles
   ========================================= */

.nv-alt {
  background: var(--nv-surface);
}

/* العناوين المشتركة */
.nv-title {
  color: var(--nv-text);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin: 0 0 12px;
  text-align: center;
}

/* النص التعريفي أسفل العنوان */
.nv-sub {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--nv-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}

/* شبكة البطاقات العامة */
.nv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* البطاقة الزجاجية العامة */
.nv-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  width: 100%;
}

.nv-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.2);
}

/* أيقونة بطاقات الخدمات */
.nv-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--nv-cyan);
  font-size: 1.25rem;
}

/* عناوين ووصف البطاقات */
.nv-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.4;
  font-family: "Tajawal Nova", "Tajawal", sans-serif;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: break-word;
}

.nv-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.75;
  font-size: 0.95rem;
  word-break: normal;
  overflow-wrap: break-word;
}

/* روابط بطاقات المشاريع */
.nv-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--nv-cyan);
  text-decoration: none;
  font-weight: 600;
}

/* =========================================
   خطوات العمل (01, 02, 03, 04)
   ========================================= */

.nv-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nv-steps > .nv-card {
  min-height: 180px;
  padding: 26px;
}

/* إلغاء أي طبقات أو عدادات وهمية لتفادي تكرار الأرقام */
.nv-steps > .nv-card::before,
.nv-steps > .nv-card::after {
  display: none !important;
}

/* =========================================
   الإحصائيات والأسعار ونماذج التواصل
   ========================================= */

.nv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.nv-stat strong {
  display: block;
  font-size: 2.4rem;
  background: var(--nv-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nv-price {
  text-align: center;
}

.nv-price--hot {
  border-color: var(--nv-primary);
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.3);
}

.nv-price .nv-amount {
  font-size: 2.4rem;
  color: var(--nv-text);
  font-weight: 800;
}

.nv-price ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: start;
}

.nv-price li {
  padding: 6px 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-faq details {
  background: var(--nv-glass);
  border: 1px solid var(--nv-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.nv-faq summary {
  cursor: pointer;
  color: var(--nv-text);
  font-weight: 600;
}

.nv-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin: auto;
}

.nv-form input,
.nv-form textarea,
.nv-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--nv-glass);
  border: 1px solid var(--nv-border);
  color: var(--nv-text);
}

.nv-form input:focus,
.nv-form textarea:focus {
  outline: 0;
  border-color: var(--nv-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.nv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* الدعوة الختامية */
.nv-cta-band {
  padding: clamp(42px, 6vw, 72px) 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 0, rgba(37, 99, 235, 0.25), transparent 65%), rgba(255, 255, 255, 0.02);
}

.nv-cta-band .nv-sub {
  margin-bottom: 28px;
}

.nv-portfolio-action {
  margin-top: 34px;
  text-align: center;
}

/* =========================================
   التجاوب مع الشاشات والجوال (إصلاح تكسر الأعمدة)
   ========================================= */

@media (max-width: 992px) {
  .nv-grid,
  .nv-steps {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
}

@media (max-width: 640px) {
  .nv-grid,
  .nv-steps {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .nv-card {
    padding: 22px !important;
  }

  .nv-split {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================
   صفحة أعمالنا - Portfolio Page Styles
   ========================================= */

.nv-portfolio-page {
	background-color: #030712;
	min-height: 100vh;
}

.nv-page-header {
	position: relative;
	padding: 130px 24px 60px;
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}

.nv-page-title {
	font-family: "Tajawal Nova", "Tajawal", sans-serif;
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 16px;
	line-height: 1.25;
}

.nv-text-gradient {
	background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #818cf8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nv-page-desc {
	max-width: 680px;
	margin: 0 auto;
	color: #94a3b8;
	font-size: 1.1rem;
	line-height: 1.8;
}

/* شبكة المشاريع */
.nv-portfolio-section {
	padding: 40px 24px 80px;
}

.nv-portfolio-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.nv-project-card {
	position: relative;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	padding: 36px 30px;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nv-project-card:hover {
	transform: translateY(-6px);
	border-color: rgba(56, 189, 248, 0.4);
	box-shadow: 0 24px 50px rgba(37, 99, 235, 0.25);
}

.nv-project-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 6px 14px;
	background: rgba(56, 189, 248, 0.1);
	border: 1px solid rgba(56, 189, 248, 0.25);
	border-radius: 999px;
	color: #38bdf8;
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 24px;
}

.nv-project-metric {
	margin-bottom: 16px;
}

.nv-project-metric strong {
	display: block;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 2.8rem;
	font-weight: 800;
	background: linear-gradient(135deg, #38bdf8, #3b82f6);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1.1;
}

.nv-project-metric span {
	font-size: 0.88rem;
	color: #94a3b8;
}

.nv-project-content h3 {
	font-family: "Tajawal Nova", "Tajawal", sans-serif;
	font-size: 1.45rem;
	font-weight: 700;
	color: #ffffff;
	margin: 12px 0 10px;
	line-height: 1.4;
}

.nv-project-content p {
	color: #94a3b8;
	font-size: 0.98rem;
	line-height: 1.8;
	margin: 0 0 24px;
}

/* شارات التقنيات */
.nv-project-tags {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nv-project-tags li {
	padding: 4px 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: #cbd5e1;
	font-size: 0.78rem;
	font-family: system-ui, sans-serif;
}

/* التجاوب مع الجوال */
@media (max-width: 860px) {
	.nv-portfolio-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nv-project-card {
		padding: 26px 20px;
	}
}
/* =========================================
   صفحة المدونة - Blog & Insights
   ========================================= */

.nv-blog-page {
	background-color: #030712;
	min-height: 100vh;
}

.nv-blog-section {
	padding: 40px 24px 80px;
}

.nv-blog-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.nv-blog-card {
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 30px 24px;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.nv-blog-card:hover {
	transform: translateY(-5px);
	border-color: rgba(56, 189, 248, 0.4);
}

.nv-blog-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.82rem;
	margin-bottom: 16px;
}

.nv-blog-date {
	color: #64748b;
}

.nv-blog-cat {
	padding: 3px 10px;
	background: rgba(56, 189, 248, 0.1);
	border: 1px solid rgba(56, 189, 248, 0.25);
	border-radius: 999px;
	color: #38bdf8;
	font-weight: 600;
}

.nv-blog-card__title {
	margin: 0 0 12px;
	font-size: 1.3rem;
	line-height: 1.4;
	font-weight: 700;
	font-family: "Tajawal Nova", "Tajawal", sans-serif;
}

.nv-blog-card__title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nv-blog-card__title a:hover {
	color: #38bdf8;
}

.nv-blog-card__excerpt p {
	color: #94a3b8;
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0 0 20px;
}

.nv-blog-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #38bdf8;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
}

.nv-blog-link:hover .nv-arrow {
	transform: translateX(-4px);
}

.nv-arrow {
	transition: transform 0.2s ease;
}

/* حالة عدم وجود مقالات */
.nv-no-posts {
	max-width: 600px;
	margin: 40px auto;
	text-align: center;
}

/* التجاوب مع الشاشات */
@media (max-width: 992px) {
	.nv-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.nv-blog-grid {
		grid-template-columns: 1fr;
	}
}
/* =========================================
   قالب المقال الفردي - Single Post Styles
   ========================================= */

.nv-single-post {
	background-color: #030712;
	min-height: 100vh;
}

.nv-article-container-inner {
	max-width: 860px;
	margin: 0 auto;
}

.nv-article-header {
	position: relative;
	padding: 130px 24px 40px;
	text-align: right;
	overflow: hidden;
	isolation: isolate;
}

.nv-article-meta-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.nv-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #94a3b8;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

.nv-back-btn:hover {
	color: #38bdf8;
}

.nv-article-title {
	font-family: "Tajawal Nova", "Tajawal", sans-serif;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.3;
	margin: 0 0 20px;
}

.nv-article-info {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #64748b;
	font-size: 0.92rem;
}

.nv-article-info strong {
	color: #cbd5e1;
}

.nv-separator {
	color: #475569;
}

/* الصورة البارزة */
.nv-article-featured {
	padding: 0 24px 30px;
}

.nv-featured-img-wrap {
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nv-featured-img {
	width: 100%;
	height: auto;
	display: block;
}

/* محتوى المقال */
.nv-article-body {
	padding: 0 24px 80px;
}

.nv-content-card {
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	padding: 40px 36px;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nv-entry-content {
	color: #cbd5e1;
	font-size: 1.1rem;
	line-height: 2;
}

.nv-entry-content h2,
.nv-entry-content h3,
.nv-entry-content h4 {
	font-family: "Tajawal Nova", "Tajawal", sans-serif;
	color: #ffffff;
	margin: 36px 0 16px;
	line-height: 1.35;
}

.nv-entry-content p {
	margin-bottom: 24px;
}

.nv-entry-content ul,
.nv-entry-content ol {
	margin-bottom: 24px;
	padding-right: 24px;
}

.nv-entry-content li {
	margin-bottom: 8px;
}

.nv-entry-content a {
	color: #38bdf8;
	text-decoration: underline;
}

/* الوسوم */
.nv-article-tags {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.9rem;
	color: #94a3b8;
}

.nv-tag-pill {
	padding: 4px 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: #38bdf8;
	text-decoration: none;
	transition: background 0.2s ease;
}

.nv-tag-pill:hover {
	background: rgba(56, 189, 248, 0.15);
}

/* بطاقة CTA أسفل المقال */
.nv-post-cta {
	margin-top: 40px;
	text-align: center;
	padding: 40px 24px;
}

.nv-post-cta h3 {
	font-family: "Tajawal Nova", "Tajawal", sans-serif;
	font-size: 1.45rem;
	color: #ffffff;
	margin: 0 0 12px;
}

.nv-post-cta p {
	color: #94a3b8;
	max-width: 500px;
	margin: 0 auto 24px;
	font-size: 1rem;
	line-height: 1.7;
}

@media (max-width: 640px) {
	.nv-content-card {
		padding: 26px 20px;
	}

	.nv-article-title {
		font-size: 1.8rem;
	}
}

/* ==========================================================
   NOVA DIGITAL - NEURAL INTERACTIVE CONTACT PAGE STYLES
   ========================================================== */

.nv-contact-page {
	position: relative;
	background: radial-gradient(circle at 50% 20%, #0d1b38 0%, #030712 70%) !important;
	min-height: 100vh;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 130px 24px 80px;
}

/* كانفاس الشبكة العصبية في الخلفية */
#nv-neural-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: auto; /* لاستقبال النقر والماوس */
}

.nv-contact-container {
	position: relative;
	z-index: 2;
	max-width: 840px;
	margin: 0 auto;
	width: 100%;
	text-align: center;
}

.nv-contact-title {
	font-family: 'Tajawal', sans-serif;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 800;
	color: #ffffff;
	margin: 16px 0;
	line-height: 1.25;
}

.nv-contact-desc {
	color: #94a3b8;
	font-size: 1.05rem;
	line-height: 1.8;
	max-width: 620px;
	margin: 0 auto 36px;
}

/* بطاقة النموذج الزجاجية الفاخرة */
.nv-contact-card {
	background: rgba(10, 16, 31, 0.7);
	border: 1px solid rgba(56, 189, 248, 0.25);
	border-radius: 24px;
	padding: 40px 36px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	text-align: right;
}

.nv-contact-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.nv-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nv-form-group label {
	color: #e2e8f0;
	font-size: 0.9rem;
	font-weight: 600;
}

.nv-form-group input,
.nv-form-group select,
.nv-form-group textarea {
	width: 100%;
	padding: 13px 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: #ffffff;
	font-family: 'Tajawal', sans-serif;
	font-size: 0.95rem;
	transition: all 0.25s ease;
	outline: none;
}

.nv-form-group input:focus,
.nv-form-group select:focus,
.nv-form-group textarea:focus {
	border-color: #38bdf8;
	background: rgba(56, 189, 248, 0.05);
	box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.nv-form-group select option {
	background: #0b1120;
	color: #ffffff;
}

.nv-form-full {
	grid-column: span 2;
}

.nv-form-submit {
	grid-column: span 2;
	margin-top: 10px;
	padding: 14px 28px;
	font-size: 1.05rem;
	cursor: pointer;
	border: none;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

@media (max-width: 680px) {
	.nv-contact-card {
		padding: 28px 20px;
	}
	.nv-contact-form {
		grid-template-columns: 1fr;
	}
	.nv-form-full {
		grid-column: span 1;
	}
	.nv-form-submit {
		grid-column: span 1;
	}
}