 :root {
      --bg: #0b1020;
      --card: rgba(17, 23, 52, .55);
      --stroke: rgba(255, 255, 255, .14);
      --txt: #e7edf3;
      --muted: #b7c3d9;
      --blue: #66a3ff;
      --violet: #7c49ff;
      --teal: #3fe0c2;
      --soft: 22px;
    }






/* =========================================
   FIXED: Scroll & Layout Reset (أضف هذا في بداية ملف CSS)
   ========================================= */

/* =========================================
   GLOBAL SCROLLBAR HIDE (Maintains Scroll Functionality)
   ========================================= */
/* Hide scrollbar for Chrome, Safari, Opera, and Edge */
*::-webkit-scrollbar {
  display: none;
  width: 0;
  background: transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  background: transparent;
}

/* Hide scrollbar for IE, Edge (legacy), and Firefox */
* {
  -ms-overflow-style: none;  /* IE and Edge (legacy) */
  scrollbar-width: none;  /* Firefox */
}

html {
  height: auto;
  overflow-x: clip; /* أفضل من hidden للأداء */
  overflow-y: auto; /* السماح بالسكرول العمودي الطبيعي */
  scroll-behavior: smooth; /* سكرول ناعم عند الضغط على الروابط */
  width: 100%;
  -ms-overflow-style: none;  /* IE and Edge (legacy) */
  scrollbar-width: none;  /* Firefox */
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  background: transparent;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto; /* بدلاً من height: 100% لتجنب حاويات السكرول المتداخلة */
  min-height: 100vh;
  overflow-x: clip; /* أفضل من hidden للأداء */
  overflow-y: auto; /* السماح بالسكرول العمودي الطبيعي - لا يوجد سكرول متداخل */
  background: var(--bg);
  color: var(--ink);
  font-family: "Cairo", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  /* تحسين أداء السكرول */
  overscroll-behavior-y: none;
  -ms-overflow-style: none;  /* IE and Edge (legacy) */
  scrollbar-width: none;  /* Firefox */
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  background: transparent;
}

/* Lock body scroll when drawer is open */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* إصلاح الحاويات التي تسبب تمدد الصفحة */
.container, 
section, 
header, 
footer {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip; /* أفضل من hidden للأداء في المتصفحات الحديثة */
}

/* Fix Services and Technologies sections - prevent overflow */
#services,
#tech {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.services-grid,
.tech-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* منع الصور من كسر العرض */
img, video, svg {
  max-width: 100%;
  height: auto;
}

/* =========================================
   FIXED: Horizontal Scroll Tracks (للأقسام الأفقية مثل الأعمال)
   ========================================= */
.ws-track, 
.blog-cards, 
.clients-track {
  display: flex;
  overflow-x: auto; /* يسمح بالسكرول الأفقي داخل هذا القسم فقط */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* نعومة السكرول في الآيفون */
  padding-bottom: 20px; /* مساحة لظل الكروت */
  /* إخفاء شريط التمرير */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.ws-track::-webkit-scrollbar,
.blog-cards::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}





/* =================== Hero Section (Premium Futuristic Design) =================== */

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: #020c1b;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Three.js Canvas Container */
.hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: #020c1b;
}

/* Overlay for text readability with cyberpunk glow */
.hero-3d-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: 
    radial-gradient(ellipse at center, rgba(2, 12, 27, 0.4) 0%, rgba(2, 12, 27, 0.9) 70%),
    linear-gradient(180deg, rgba(2, 12, 27, 0.6) 0%, rgba(2, 12, 27, 0.2) 100%);
}

.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

/* Ensure text content is above overlay */
.hero-copy {
  position: relative;
  z-index: 10;
}

/* Mega Background Text */
.mega {
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  color: rgba(155, 92, 243, 0.03);
  font-size: clamp(60px, 12vw, 160px);
  text-transform: uppercase;
  margin-left: -4px;
  user-select: none;
  position: relative;
  z-index: 0;
}

/* Main Headline with Cyberpunk Glow Effect */
.lead-title {
  margin: -0.5em 0 24px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(135deg, #00d9ff 0%, #8b5cf6 50%, #00d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  text-shadow: 
    0 0 10px rgba(0, 217, 255, 0.5),
    0 0 20px rgba(0, 217, 255, 0.3),
    0 0 30px rgba(0, 217, 255, 0.2);
  animation: cyberpunkGlow 3s ease-in-out infinite alternate;
}

@keyframes cyberpunkGlow {
  0% {
    filter: brightness(1) contrast(1);
    text-shadow: 
      0 0 10px rgba(0, 217, 255, 0.5),
      0 0 20px rgba(0, 217, 255, 0.3),
      0 0 30px rgba(0, 217, 255, 0.2);
  }
  100% {
    filter: brightness(1.2) contrast(1.1);
    text-shadow: 
      0 0 15px rgba(0, 217, 255, 0.7),
      0 0 25px rgba(0, 217, 255, 0.5),
      0 0 40px rgba(139, 92, 246, 0.4);
  }
}

.subline {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.8;
  max-width: 60ch;
  margin-bottom: 40px;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================
   2. Desktop Visual (Clean & Spacious)
   ========================================= */
.hero-visual {
  position: relative;
  isolation: isolate;
  perspective: 1000px;
}

.hero-visual .face {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: rgba(15, 22, 42, 0.3);
  border: none;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  transform: translateZ(0);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-visual .face::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1) 0%, 
    rgba(6, 182, 212, 0.1) 50%, 
    rgba(59, 130, 246, 0.1) 100%);
  border-radius: inherit;
  opacity: 0.6;
}

/* Enhanced Glow Effect */
.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(155, 92, 243, 0.2) 0%, rgba(106, 167, 255, 0.15) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

/* =========================================
   3. Mobile Mode (Premium Mobile Experience)
   ========================================= */
@media (max-width: 900px) {
  .hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    text-align: center;
  }

  .hero-3d-overlay {
    background: 
      radial-gradient(ellipse at center, rgba(2, 12, 27, 0.6) 0%, rgba(2, 12, 27, 0.95) 70%),
      linear-gradient(180deg, rgba(2, 12, 27, 0.8) 0%, rgba(2, 12, 27, 0.4) 100%);
  }

  .hero-visual {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    z-index: 2;
    width: 100%;
    gap: 40px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .lead-title {
    font-size: clamp(40px, 10vw, 56px);
    margin-bottom: 20px;
  }

  .subline {
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    margin-bottom: 32px;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    gap: 16px;
  }
  
  .btn, .btn-gradient {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
















.pro-services {
  display: grid;
  gap: 20px;
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width:1080px) {
  .pro-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {
  .pro-services {
    grid-template-columns: 1fr;
  }
}

.pro-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  transform-style: preserve-3d;
  perspective: 900px;
  background: linear-gradient(180deg, #0f162acc, #0f162ae6);
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 60px #000a, inset 0 0 50px #6aa7ff1a;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s, border-color .45s;
}

.pro-card:hover {
  border-color: #2a3a6a;
  box-shadow: 0 30px 80px #000c, inset 0 0 70px #6aa7ff26;
}

/* Animated gradient backdrop */
.pro-bg {
  position: absolute;
  inset: -20% -30%;
  z-index: 0;
  filter: blur(40px) saturate(120%);
  background:
    radial-gradient(60% 45% at 20% 20%, #6aa7ff33 0%, transparent 70%),
    radial-gradient(60% 45% at 80% 30%, #22d3ee33 0%, transparent 70%),
    radial-gradient(60% 45% at 50% 90%, #9b5cf333 0%, transparent 70%);
  animation: bgFloat 9s ease-in-out infinite alternate;
}

@keyframes bgFloat {
  0% {
    transform: translate3d(0px, 0px, 0) rotate(0.5deg)
  }

  100% {
    transform: translate3d(-16px, -10px, 0) rotate(-1deg)
  }
}

/* Subtle noise for premium texture */
.pro-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .08;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.35"/></svg>');
  mix-blend-mode: overlay;
}

/* Live gradient border */
.pro-border {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(from 180deg, #9b5cf3, #6a00f4, #22d3ee, #6aa7ff, #9b5cf3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: .25;
  filter: blur(8px);
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* Orb light */
.pro-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  inset-inline-end: -60px;
  inset-block-start: -60px;
  z-index: 0;
  background: radial-gradient(closest-side, #6aa7ff55 0%, transparent 65%);
  filter: blur(18px);
  transform: translateZ(20px);
}

/* Glossy sweep on hover */
.pro-shine {
  position: absolute;
  inset: -40% -40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(70deg, transparent 30%, #ffffff18 45%, transparent 60%);
  transform: translateX(-60%) rotate(12deg);
  transition: transform .9s cubic-bezier(.17, .67, .24, 1);
}

.pro-card:hover .pro-shine {
  transform: translateX(20%) rotate(12deg);
}

.pro-content {
  position: relative;
  z-index: 3;
  padding: 22px;
  transform: translateZ(35px);
}

.pro-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #dbe7ff;
  background: radial-gradient(120% 140% at 30% 10%, #9cc4ff55, #6aa7ff33);
  border: 1px solid #26406a;
  box-shadow: inset 0 0 30px #6aa7ff22;
}

.pro-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .3px;
  color: #eaf0ff;
}

.pro-desc {
  margin: 10px 0 10px;
  color: var(--muted);
  line-height: 1.9;
}

.pro-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pro-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .78rem;
  color: #dfe8ff;
  background: linear-gradient(90deg, #182544, #0e1830);
  border: 1px solid #24365e;
}

.pro-cta {
  margin-top: 12px;
}

.pro-btn {
  position: relative;
  overflow: hidden;
}

/* Controlled reveal area */
.pro-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  margin-top: 6px;
  border-top: 1px dashed #ffffff22;
  transition: max-height .55s cubic-bezier(.2, .7, .2, 1), opacity .35s;
}

.pro-details ul {
  margin: 10px 0 0;
  padding: 0 18px;
}

.pro-details li {
  color: #cfe0ff;
  line-height: 1.9;
  margin: 6px 0;
}

.pro-card.open .pro-details {
  max-height: 240px;
  opacity: 1;
  padding-top: 10px;
}

/* 3D tilt + ripple */
.pro-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  inset-inline-start: var(--rx, 50%);
  inset-block-start: var(--ry, 50%);
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #6aa7ff99 0%, #22d3ee55 40%, transparent 65%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}

.pro-card.ripple::after {
  animation: pro-rip .65s ease-out;
}

@keyframes pro-rip {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: .7;
  }

  60% {
    opacity: .35;
  }

  100% {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

/* motion preferences */
@media (prefers-reduced-motion: reduce) {

  .pro-card,
  .pro-shine,
  .pro-bg {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Services Cards (Technovizen Identity) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

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

@media (max-width:640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #0f162acc, #0f162ae6);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.2, .6, .2, 1), box-shadow .35s ease, border-color .3s ease;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 60px #000a, inset 0 0 60px #66a3ff26;
  border-color: #2a3a6a;
}

/* إطار متحرك (Gradient Border) */
.svc-border {
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: 22px;
  background:
    conic-gradient(from 180deg at 50% 50%, #9b5cf3, #6a00f4, #22d3ee, #6aa7ff, #9b5cf3);
  opacity: .18;
  filter: blur(8px);
  transition: opacity .35s ease;
}

.service-card:hover .svc-border {
  opacity: .32;
}

/* جسم الكارد */
.svc-body {
  position: relative;
  z-index: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-icon {
  color: var(--nx-soft);
  opacity: .95;
  transform: translateY(0);
  transition: transform .35s ease;
}

.service-card:hover .svc-icon {
  transform: translateY(-2px);
}

.svc-title {
  margin: 6px 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: #e9efff;
}

.svc-desc {
  margin: 6px 0 4px;
  color: var(--muted);
  line-height: 1.85;
}

.svc-cta {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* التفاصيل القابلة للفتح */
.svc-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
  opacity: 0;
  margin-top: 6px;
  border-top: 1px dashed #ffffff22;
  padding-top: 0;
}

.svc-details ul {
  margin: 10px 0 4px;
  padding: 0 18px;
}

.svc-details li {
  color: #cfe0ff;
  line-height: 1.9;
  margin: 6px 0;
}

.service-card.open .svc-details {
  max-height: 240px;
  /* يكفي لثلاث نقاط */
  opacity: 1;
  padding-top: 10px;
}

/* Ripple عند الضغط */
.service-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  inset-inline-start: var(--rx, 50%);
  inset-block-start: var(--ry, 50%);
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #6aa7ff88 0%, #22d3ee55 45%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.service-card.press::after {
  animation: svc-ripple .6s ease-out;
}

@keyframes svc-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: .65;
  }

  55% {
    opacity: .35;
  }

  100% {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

/* ضغطه لطيفة */
.service-card.press {
  animation: svc-press .18s cubic-bezier(.2, .6, .2, 1);
}

@keyframes svc-press {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(1px) scale(.985);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {

  .service-card,
  .svc-icon {
    transition: none !important;
    animation: none !important;
  }
}

/* =================== Tokens =================== */
:root {
  --bg: #0b1020;
  /* canvas */
  --ink: #eaf0ff;
  /* primary text */
  --muted: #9fb0d6;
  /* secondary */
  --panel: #0f162ad9;
  /* glass */
  --panel-soft: #121a32cc;
  --stroke: #213055;
  /* borders */
  --nx: #6aa7ff;
  /* blue */
  --nx-soft: #9cc4ff;
  /* soft blue */
  --nc: #22d3ee;
  /* cyan */
  --radius: 18px;
  --maxw: 1240px;
  --shadow: 0 10px 40px #0008, inset 0 0 60px #3b82f61a;
}



/* توحيد شكل زر "اطلب عرض سعر" */
.btn.primary,
.btn-gradient.cta-quote {
  background: linear-gradient(90deg, var(--nx), var(--nc));
  /* نفس التدرج الأزرق */
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  /* أصغر من السابق */
  font-size: 0.9rem;
  /* حجم خط أصغر */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* تأثير الهوفر */
.btn.primary:hover,
.btn-gradient.cta-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ===== Secondary Gradients (Violet / Red / Mix) ===== */
.gradient-violet {
  background: linear-gradient(90deg, #9b5cf3 0%, #6a00f4 100%)
}

.gradient-red {
  background: linear-gradient(90deg, #f72585 0%, #ff004d 100%)
}

.gradient-mix {
  background: linear-gradient(90deg, #f72585 0%, #9b5cf3 50%, #6a00f4 100%)
}

.text-gradient-violet {
  background: linear-gradient(90deg, #9b5cf3 0%, #6a00f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.text-gradient-mix {
  background: linear-gradient(90deg, #f72585 0%, #9b5cf3 50%, #6a00f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid #ffffff2d;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: .55rem
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--nx), var(--nc))
}

.btn-gradient {
  padding: 16px 32px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(155, 92, 243, 0.6), rgba(106, 167, 255, 0.6), rgba(245, 37, 133, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155, 92, 243, 0.4), 0 8px 24px rgba(106, 167, 255, 0.3);
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-gradient.gradient-mix {
  background: linear-gradient(135deg, #9b5cf3 0%, #f72585 50%, #66a3ff 100%);
  box-shadow: 0 4px 20px rgba(155, 92, 243, 0.3);
}

* {
  box-sizing: border-box
}

/* تم إزالة html, body { height: 100% } لأنها تسبب حاويات سكرول متداخلة */
/* القواعد الصحيحة موجودة في بداية الملف (lines 22-42) */

a {
  color: inherit;
  text-decoration: none
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px
}

/* =================== Premium Header =================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  background: rgba(11, 16, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 40px;
}

/* Logo (Left) */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.header-logo:hover {
  opacity: 0.9;
}

.header-logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: block;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

/* Desktop Navigation (Center) */
.header-navigation {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.header-navigation a {
  position: relative;
  padding: 12px 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.header-navigation a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.header-navigation a.active {
  color: var(--ink);
}

.header-navigation a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 18px;
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.header-navigation a:hover::after,
.header-navigation a.active::after {
  transform: scaleX(1);
}

/* Desktop CTA Button (Right) */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(102, 167, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(102, 167, 255, 0.4);
}

/* Mobile Hamburger (Hidden on Desktop) */
.mobile-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 0;
  position: relative;
  z-index: 10001;
}

.mobile-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Overlay Menu */
.mobile-overlay-menu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay-menu.is-active {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.mobile-overlay-backdrop {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000000 !important;
  z-index: 1 !important;
}

.mobile-overlay-panel {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 80px 24px 24px !important;
  overflow-y: auto;
  z-index: 2 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-overlay-menu.is-active .mobile-overlay-panel {
  display: flex !important;
}

.mobile-close-btn {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  width: 48px !important;
  height: 48px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px;
  color: #ffffff !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 20 !important;
}

.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.mobile-nav-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 500px !important;
  padding: 0 !important;
  gap: 16px !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10 !important;
}

.mobile-nav-list a {
  display: block !important;
  width: 100% !important;
  padding: 20px 32px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  border-radius: 12px;
  text-align: center !important;
  transition: color 0.2s ease, background 0.2s ease;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.mobile-cta-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 500px !important;
  margin: 32px auto 0 !important;
  padding: 18px 32px !important;
  background: linear-gradient(135deg, #66a3ff, #00d4aa) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(102, 167, 255, 0.4) !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10 !important;
}

.mobile-cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(102, 167, 255, 0.25);
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 968px) {
  .header-wrapper {
    padding: 0 24px;
    height: 72px;
  }

  /* Hide Desktop Navigation and CTA */
  .header-navigation,
  .header-cta-btn {
    display: none !important;
  }

  /* Show Mobile Hamburger */
  .mobile-hamburger {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .header-wrapper {
    padding: 0 20px;
    height: 68px;
    gap: 16px;
  }

  .header-logo img {
    width: 38px;
    height: 38px;
  }

  .logo-name {
    font-size: 1rem;
  }

  .logo-tagline {
    font-size: 0.65rem;
  }

  .mobile-hamburger {
    width: 44px;
    height: 44px;
  }

  .mobile-overlay-panel {
    width: 85vw;
  }
}


/* Mega heading like reference */
.mega {
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 0.9;
  color: #b7cdfd20;
  font-size: clamp(40px, 9vw, 120px);
  text-transform: uppercase
}

.lead-title {
  margin: 4px 0 10px;
  font-size: clamp(22px, 3.8vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--nx-soft)
}

.subline {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.8;
  max-width: 60ch
}


.glow {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  inline-size: 60%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #6aa7ff55, transparent 70%);
  filter: blur(20px);
  z-index: -1
}

/* ABOUT section styled like references (purple gradient lines) */
section {
  padding: 60px 0;
  border-top: 1px solid #0b102033
}

/* Consistent section spacing - reduce excessive gaps */
section:first-of-type {
  padding-top: 40px;
}

section:last-of-type {
  padding-bottom: 50px;
}


/* تنسيق الشبكة في الكمبيوتر */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

/* تنسيق الجوال (كارد فوق كارد بحجم كامل) */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr; /* عمود واحد فقط */
    width: 100%;
  }
}

.about-card {
  background: linear-gradient(180deg, #0f162acc, #0f162aee);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow)
  
}

.about-title {
  font-size: clamp(20px, 3.2vw, 30px);
  margin: 0 0 10px
}

.about-p {
  color: var(--muted);
  line-height: 1.9
}

.about-p strong {
  font-weight: 800
}

.decor {
  inline-size: 100%;
  aspect-ratio: 16/11;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 30% 20%, #0d1530, #0b1020);
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden
}

.decor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 20% 40%, #9b5cf344 0%, transparent 60%),
    radial-gradient(90% 60% at 80% 60%, #f7258533 0%, transparent 60%)
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}


@media (max-width:640px) {
  .container {
    padding-inline: 18px
  }

  .mega {
    font-size: clamp(36px, 12vw, 60px)
  }

  .lead-title {
    text-transform: none
  }
}




/* Fix mobile landscape jitter/scroll */
/* ===== Hard Lock: يمنع أي تمدد أفقي أو اهتزاز ===== */
/* تم إزالة القواعد المتضاربة - القواعد الصحيحة موجودة في بداية الملف */
/* max-width: 100dvw تم إزالته لأنه يسبب overflow في RTL */



/* عناصر شائعة تسبّب التمدد */
img,video,iframe{max-width:100%;height:auto;display:block}
.nav-links{flex-wrap:wrap}
a,button{word-break:break-word}

/* لا ترانزفورم على الموبايل (يهزّ) */
@media (hover:none){
  .pro-card, .pro-card *{transform:none!important}
}

/* الهيدر ثابت بدون رجفة */
.header-sticky{transform:translateZ(0);backface-visibility:hidden}

/* منع تمدد الحاويات عرضياً */
.container,.nav,.about-grid,.panel,.slider,.pro-row{
  max-width:100%;
  width:100%;
  box-sizing:border-box;
  overflow-x:hidden
}







