/* ===== palette (yours) ===== */
:root{
  --bg-1:#0b1120; --bg-2:#08101b; --ink:#e7eaf7; --muted:#b4c2db;
  --primary:#6751dc; --primary-2:#5eb9cc; --glow:0 0 12px rgba(103,81,220,.55),0 0 34px rgba(94,185,204,.35);
  --stroke:rgba(103,81,220,.55); --radius:22px;

  /* new drawer vars */
  --drawer-bg: rgba(12,15,24,.6);
  --drawer-stroke: rgba(255,255,255,.12);
  --drawer-hover: rgba(255,255,255,.10);
  --bar-opacity: .45; 
  --drawer-w: min(78vw, 240px);
  --intro-top-space: clamp(12px, 7vh, 10vh);
    --intro-bottom-space: clamp(24px, 12vh, 24vh); 

}

*{box-sizing:border-box}
html,body{height:100%;margin:0;padding:0;width:100%;overflow-x:hidden}
body{
  font-family:"Tajawal",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1100px 700px at 85% 70%, #102145 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 20%, #0a1735 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  background-attachment:fixed; background-size:cover;
}


.container{width:min(1200px,92%);margin-inline:auto}
.site-header{
  background:linear-gradient(180deg, rgba(12,15,24,.8), rgba(12,15,24,.25) 70%, transparent);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.05);
  position: relative;      
  z-index: 6000;            
  isolation: isolate; 
}
nav{position:relative; z-index:1000}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:20px;
  flex-wrap:nowrap;
  direction:ltr;
  position:relative
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);order:1}
.brand-logo{height:60px;width:auto;object-fit:contain;filter:drop-shadow(0 0 10px rgba(103,81,220,.25))}
.brand-text{font-weight:500;letter-spacing:.2px;font-size:15px;opacity:.85}

/* desktop nav */
.main-nav{display:flex;gap:24px;align-items:center;flex-wrap:wrap;order:2;margin-left:auto;direction:rtl}
.nav-link{position:relative;text-decoration:none;color:var(--muted);font-weight:500;padding:6px 2px;transition:color .15s ease}
.nav-link:hover{color:#fff}
.nav-link.active{color:#fff;text-shadow:0 -2px 8px rgba(255,255,255,.6),0 -4px 12px rgba(255,255,255,.35)}
.nav-link.active::after{
  content:"";position:absolute;inset-inline:0;bottom:-14px;height:3px;
  background:linear-gradient(90deg,transparent,var(--primary) 20% 80%,transparent);
  border-radius:6px;box-shadow:var(--glow);
}

/* ===== Mobile drawer ===== */
.nav-toggle{display:none}

/* hamburger button */
.hamburger{
  display:none; position:relative; width:25px; height:26px; cursor:pointer;
  order:3; z-index:1300; 
 margin-top: 10px;
}
.hamburger .bar,
.hamburger::before,
.hamburger::after{
  content:""; position:absolute; left:0; right:0; height:2px; background:var(--ink);
  transition:transform .28s ease, opacity .2s ease, top .28s ease, bottom .28s ease;
}
.hamburger .bar{ top:50%; transform:translateY(-50%) }
.hamburger::before{ top:6px }
.hamburger::after{ bottom:6px }

/* screen-reader helper */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


@media (max-width:768px){
  .hamburger {
    display: block;
    position: fixed; 
    top: 15px;       
    right: 15px;    
    z-index: 1300;   
  }

  /* Drawer panel */
  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 240px);
    padding: calc(18px + env(safe-area-inset-top) + 48px) 24px 24px;
    background: var(--drawer-bg);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--drawer-stroke);
    box-shadow: -28px 0 60px rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    align-items: stretch;      
    flex-wrap: nowrap;         
    row-gap: 8px;

    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 1200;
    direction: rtl;
    pointer-events: auto;
  }
  
  /* Links: full-width blocks */
  .main-nav .nav-link{
    display: block;           
    width: 100%;            
    text-align: right;         
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    padding: 14px 12px;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
  }

  .main-nav .nav-link.active::after{ display:none; }

  .main-nav .nav-link:hover,
  .main-nav .nav-link:focus-visible{
    background: var(--drawer-hover);
    outline: 2px solid rgba(103,81,220,.5);
    outline-offset: 3px;
  }

  /* Backdrop */
  .nav-backdrop{
    display:block; position:fixed; inset:0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1100;
  }

  /* Open states */
  #nav-toggle:checked ~ .main-nav{ transform: translateX(0); }
  #nav-toggle:checked ~ .nav-backdrop{ opacity:1; pointer-events:auto; }

  /* Hamburger → X */
  #nav-toggle:checked ~ .hamburger .bar{ opacity:0; transform:translateY(-50%) scaleX(.7); }
  #nav-toggle:checked ~ .hamburger::before{ top:50%; transform:translateY(-50%) rotate(45deg); }
  #nav-toggle:checked ~ .hamburger::after{  top:50%; bottom:auto; transform:translateY(-50%) rotate(-45deg); }
}



@media (max-width: 768px){
  .hamburger{
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 7600;          
  }

  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: var(--drawer-w);
    z-index: 7500;         
    transform: translateX(100%);
    padding-top: calc(24px + env(safe-area-inset-top) + 56px);
  }

  .nav-backdrop{
    z-index: 7400;
  }

  #nav-toggle:checked ~ .main-nav{ transform: translateX(0); }
  #nav-toggle:checked ~ .nav-backdrop{ opacity: 1; pointer-events: auto; }

  #nav-toggle:checked ~ .hamburger{
    right: 18px;  
  }
}

html:has(#nav-toggle:checked) main,
html:has(#nav-toggle:checked) section,
html:has(#nav-toggle:checked) footer,
html:has(#nav-toggle:checked) .to-top{
  pointer-events: none;
}



/* ========= Hero Intro (نصي فقط) ========= */
.hero-intro{
  margin: var(--intro-top-space) auto var(--intro-bottom-space);
  max-width: min(900px, 92%);
  text-align: center;
}

.intro-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw + 8px, 52px);
  line-height: 1.2;
  font-weight: 600;
}

@property --logo-angle { syntax:"<angle>"; initial-value:110deg; inherits:false; }

.logo-gradient{
  --logo-angle:110deg;
  background-image: linear-gradient(var(--logo-angle), var(--primary-2) 0%, #4aa3ff 38%, var(--primary) 78%, #b38cff 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
  filter: drop-shadow(0 0 6px rgba(103,81,220,.28));
}
.logo-gradient.move{ animation: spinLogoGradient 4s linear infinite; }
@keyframes spinLogoGradient{ to{ --logo-angle:470deg; } }

@media (prefers-reduced-motion: reduce){ .logo-gradient.move{ animation:none; } }

@media (max-width: 768px){
  :root{
    --intro-top-space: clamp(10px, 5.5vh, 8vh);
    --intro-bottom-space: clamp(18px, 8vh, 14vh);
  }
    .intro-title{
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.15;
  }
}

/* === Hero-sub highlight cycle === */
.hero-intro .hero-sub{ color: var(--muted); transition: color .35s ease; }
.hero-intro .hero-sub.hi-on{ color:#fff; }
.hero-intro .hero-sub .hs-chunk{ color: inherit; transition: color .35s ease; }
.hero-intro .hero-sub .hs-chunk.on{ color:#fff; }

 /* tiny '(اطلاق تجريبي)' note */
.hero-intro .beta-note{
  margin: 6px auto 0;
  font-size: clamp(10px, 1.2vw, 12px); /* صغير جدًا */
  line-height: 1.2;
  color: #96a1b6; /* أفتح من var(--muted) */
  opacity: .9;
  text-align: center;
  letter-spacing: .2px;
}


/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 48px 0 80px;
}

.hero .container { position: relative; }

.hero-card {
  position: relative;
  padding: 46px min(6vw,48px) 58px;
  color: #eef0ff;
  background: linear-gradient(180deg, rgba(18,22,40,0.6), rgba(10,12,24,0.35));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(103,81,220,0.25);
  -webkit-clip-path: polygon(0 0, 88% 0, 90% 0%, 100% 20%, 100% 100%, 12% 100%, 5% 90%, 0 90%);
          clip-path: polygon(0 0, 88% 0, 90% 0%, 100% 20%, 100% 100%, 12% 100%, 0% 80%, 0 90%);
  outline: 1px solid rgba(103,81,220,0.15);
  outline-offset: 10px;
}

.hero-title {
  margin: 0 0 18px;
  line-height: 1.3;
  font-size: clamp(24px, 3.2vw + 8px, 44px);
  font-weight: 500;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw + 10px, 20px);
}

/* action buttons  */
.action-bar {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  justify-content: flex-end; 
}


/*  Stats  */

.stats {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  text-align: center;
}

.stat {
  flex: 1;
  padding: 46px 12px;
  position: relative;
}

.stat::before,
.stat::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.stat::before { right: 100%; }
.stat::after { left: 100%; }
/* .stat:first-child::before { display: none; }
.stat:last-child::after { display: none; } */

.stat-value {
  font-size: clamp(28px, 2.8vw + 10px, 44px);
  font-weight: 800;
}

.stat-label { font-size: 22px; }

.grid-hex,
.grid-hex--right {
  position: absolute;
  inset: auto 0 0 auto;
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.12;
  filter: drop-shadow(0 0 10px rgba(103,81,220,0.3));
  background-image:
    radial-gradient(circle at 50% 50%, rgba(103,81,220,0.25) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(94,185,204,0.15) 0 1px, transparent 1px);
  background-size: 44px 44px, 22px 22px;
  background-position: 0 0, 11px 11px;
  right: -60px;
  bottom: -120px;
}

.grid-hex--right {
  right: auto;
  left: -60px;
  bottom: 40px;
}

.spacer { height: 35vh; }

section[id] { scroll-margin-top: 90px; }

/* ===== About Section ===== */
.about-section {
  position: relative;
  padding: 100px 0 120px;
}

.about-container { position: relative; }

/* Vision card */
.vision-card {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  background: linear-gradient(180deg, rgba(18,22,40,0.6), rgba(10,12,24,0.35));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 0 16px rgba(103,81,220,0.25);
  padding: 40px 32px 48px;
  -webkit-clip-path: polygon(0 6%, 6% 0, 100% 0, 100% 92%, 94% 100%, 0 100%);
          clip-path: polygon(0 6%, 6% 0, 100% 0, 100% 92%, 94% 100%, 0 100%);
}

.vision-title {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.5vw + 8px, 32px);
  font-weight: 500;
  color: #f3f3ff;
}

.vision-title span { color: var(--primary); }

.vision-text {
  margin: 0;
  font-size: clamp(14px, 1vw + 8px, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.about-tagline {
  margin: 50px auto;
  max-width: 960px;
  font-size: clamp(18px, 2vw + 8px, 28px);
  font-weight: 500;
  text-align: center;
  color: var(--primary);
}

/* Mission card */
.mission-card {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  background: linear-gradient(180deg, rgba(21,25,46,0.55), rgba(10,12,24,0.35));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 0 16px rgba(103,81,220,0.25);
  padding: 36px 30px 44px;
  -webkit-clip-path: polygon(0 0, 94% 0, 100% 6%, 100% 100%, 6% 100%, 0 94%);
          clip-path: polygon(0 0, 94% 0, 100% 6%, 100% 100%, 6% 100%, 0 94%);
  margin-bottom: 80px;

}

.mission-text {
  margin: 0;
  font-size: clamp(14px, 1vw + 8px, 18px);
  line-height: 1.7;
  color: var(--muted);
}




/* goals row */
.goals {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  
}

/* rectangular goal card with notched corners */
.goal {
  --cut-size: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex: 1 1 0;
  direction: ltr;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--glow);
  overflow: hidden;
  clip-path: polygon(
    var(--cut-size) 0%,
    100% 0%,
    100% calc(100% - var(--cut-size)),
    calc(100% - var(--cut-size)) 100%,
    0% 100%,
    0% var(--cut-size)
  );
  align-content: center;
}
.goal:hover {
  transform: translateY(-6px) scale(1.02);

   box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.goal:hover .goal-purple {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
}

.goal-purple {
  flex: 0 0 25%;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
}
/* Icons */
.goal-purple svg {
  width: 32px;
  height: 32px;
  stroke: var(--ink);   
}

.goal-text, .goal-text2 {
  flex: 0 0 75%;
  background: linear-gradient(
    180deg,
    rgba(18,22,40,0.6),
    rgba(10,12,24,0.35)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  font-weight: 500;
  font-size: clamp(16px, 1vw + 12px, 20px);
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
}

/* reversed cut for middle card */
.goal-reverse {
  clip-path: polygon(
    0% 0%,
    calc(100% - var(--cut-size)) 0%,
    100% var(--cut-size),
    100% 100%,
    var(--cut-size) 100%,
    0% calc(100% - var(--cut-size))
  );
}

.goals-heading {
  text-align: center;
  font-size: clamp(18px, 2vw + 8px, 28px); 
  font-weight: 400;
  margin: 0 auto 24px;                     
  color: var(--ink);               
}
@media (max-width: 768px) {
  .goals {
    gap: 16px;            
    justify-content: center;
  }

  .goal {
    --cut-size: 16px;       
    flex: 1 1 calc(50% - 16px); 
    min-width: 120px;      
    max-width: 180px;       
  }

  .goal-purple {
    flex: 0 0 25%;      
  }

  .goal-purple svg {
    width: 24px;
    height: 24px;
  }

  .goal-text, .goal-text2 {
    font-size: clamp(12px, 2vw, 14px);
    padding: 12px 8px;
  }

  .goal-text2 {
    padding-inline-end: 12px;
  }

  .goals-heading {
    font-size: clamp(16px, 4vw, 22px);
    margin-bottom: 16px;
  }
}





/* ===== Capabilities (inside #about) ===== */
.capabilities-in-about{
  margin-top: 50px;           
  padding-top: 24px;
}

.caps-title{
  margin: 0 0 8px;
  text-align: right;
  font-size: clamp(20px, 2.6vw + 8px, 34px);
  font-weight: 500;
  color: var(--ink);
  text-shadow: 0 2px 6px rgba(103,81,220,0.35);
}

.caps-sub{
  margin: 0 0 26px 0;
  max-width: 880px;
  text-align: right;
  color: var(--muted);
  font-size: clamp(14px,1vw + 8px,18px);
  line-height: 1.8;
}

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

.cap-card{
  position: relative;
  background: linear-gradient(180deg, rgba(18,22,40,0.65), rgba(10,12,24,0.35));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 6px 26px rgba(0,0,0,0.35);
  padding: 22px 20px 24px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, outline-color .25s ease;
  outline: 1px solid rgba(103,81,220,0.15);
}
.cap-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(103,81,220,0.25), 0 10px 28px rgba(94,185,204,0.18);
  outline-color: rgba(103,81,220,0.35);
}

.cap-card.notch-tl{clip-path: polygon(16px 0,100% 0,100% 100%,0 100%,0 16px);}
.cap-card.notch-tr{clip-path: polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%);}
.cap-card.notch-bl{clip-path: polygon(0 0,100% 0,100% 100%,16px 100%,0 calc(100% - 16px));}
.cap-card.notch-br{clip-path: polygon(0 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%);}

.cap-icon{
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  margin-bottom:12px;
}
.cap-icon svg{
  width:22px;
  height:22px;
  color:#fff;
}

.cap-card h3{
  margin:8px 0 10px;
  font-weight:500;
  font-size:clamp(15px,1vw+11px,19px);
  color:#fff;
}
.cap-card ul{
  margin:0;
  padding:0;
  list-style:none;}
  
.cap-card li{
  color:var(--muted);
  line-height:1.7;
  font-size:14.5px;
  position:relative;
  padding-right:16px;
}
.cap-card li::before{
  content:"•";
  position:absolute;
  right:0;
  top:0;
  color:var(--primary-2);}

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



.services-section {
  padding: 100px 0;
  position: relative;
}
.services-title {
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw + 10px, 40px);
  font-weight: 500;
  color: #ffffff;
  text-align: right;
}
/* projects */
.projects-section {
  padding: 80px 0;
  text-align: right; 
}


.loading {
  display: flex;
   justify-content: center;
}

.loading .dot {
  position: relative;
  width: 2em;
  height: 2em;
  margin: 0.8em;
  border-radius: 50%;
}

.loading .dot::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: wave 2s ease-out infinite;
}

.loading .dot:nth-child(1) {
  background: #7ef9ff;
}
.loading .dot:nth-child(1)::before {
  animation-delay: 0.2s;
}

.loading .dot:nth-child(2) {
  background: #89cff0;
}
.loading .dot:nth-child(2)::before {
  animation-delay: 0.4s;
}

.loading .dot:nth-child(3) {
  background: #4682b4;
}
.loading .dot:nth-child(3)::before {
  animation-delay: 0.6s;
}

.loading .dot:nth-child(4) {
  background: #0f52ba;
}
.loading .dot:nth-child(4)::before {
  animation-delay: 0.8s;
}

.loading .dot:nth-child(5) {
  background: #4a1ff4;
}
.loading .dot:nth-child(5)::before {
  animation-delay: 1s;
}

@keyframes wave {
  50%, 75% {
    transform: scale(2.5);
  }
  80%, 100% {
    opacity: 0;
  }
}
.loading-text {
  margin-top: 0.5em;
  font-size: 0.75rem;        
  color: var(--muted);      
  text-align: center;
}


/* contact */
.contact-section {
  padding: 80px 0;
  text-align: right; 
}

.contact-title {
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw + 10px, 40px);
  font-weight: 500;
  color: #ffffff;
  text-align: right;
}

/* ==== Services ==== */
.services-section {
  padding: 100px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: linear-gradient(180deg, rgba(18,22,40,0.6), rgba(10,12,24,0.35));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 0 16px rgba(103,81,220,0.25);
  padding: 32px 26px 40px;
  text-align: right;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-clip-path: polygon(0 0, 94% 0, 100% 10%, 100% 100%, 6% 100%, 0 90%);
          clip-path: polygon(0 0, 94% 0, 100% 10%, 100% 100%, 6% 100%, 0 90%);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 24px rgba(103,81,220,0.35), 0 0 48px rgba(94,185,204,0.25);
}


.service-icon {
  font-size: 42px; 
  margin-bottom: 20px;
  display: inline-block;
  color: #6f4bff; 
  background: linear-gradient(135deg, #6f4bff, #5eb9cc); 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(111,75,255,0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(111,75,255,0.7));
}

.services-title {
  text-align: center;      
  font-size: 36px;      
  font-weight: 500;        
  color: var(--ink);       
  margin-bottom: 60px;     
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  padding-right: 20px;
}

.service-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary-2);
}

/* ==== Strengths ==== */

.strengths-section {
  padding: 100px 0;
  text-align: center;
}

.strengths-card {
  background: linear-gradient(180deg, rgba(18,22,40,0.7), rgba(10,12,24,0.4));
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: 0 0 24px rgba(103,81,220,0.25);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}
.strengths-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
}


.strengths-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
}

.strengths-card > * {
  position: relative;
  z-index: 1;
}

.strengths-title {
  margin-bottom: 50px;
  color: #fff;
  letter-spacing: 1px;
  text-align: center;
  font-size: clamp(20px, 2.5vw + 8px, 32px);
  font-weight: 500;
}

.strengths-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.strength-item {
  flex: 1 1 200px;
  max-width: 250px;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.strength-item:hover {
  transform: scale(1.08);
}

.strength-item:hover i {
  color: #a29bfe;
  text-shadow: 0 0 15px rgba(103,81,220,0.7);
  transform: rotate(-10deg) scale(1.1);
}

.strength-item:hover p {
  color: #fff;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.strength-item i {
  color: #6c63ff;
  margin-bottom: 12px;
  font-size: clamp(28px, 2vw + 10px, 40px); 
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.strength-item p {
  color: #eee;
  font-size: clamp(16px, 1.2vw + 6px, 18px); 
  font-weight: 400;
  line-height: 1.7;
}

.strengths-card:hover {
  box-shadow: 0 0 40px rgba(108,99,255,0.5), 0 0 80px rgba(162,155,254,0.3);
}


/* ==== Workflow (Timeline) ==== */
.workflow-section {
  padding: clamp(60px, 8vw, 120px) 0;
  color: var(--ink);
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

.workflow-section .section-title , .projects-title{
  font-size: clamp(22px, 3vw + 10px, 40px);
  font-weight: 500;
  margin-bottom: 60px;
  color: var(--ink);
  text-align: center;
  position: relative;
  text-shadow: 0 2px 6px rgba(103,81,220,0.3);
}

.workflow-timeline-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.workflow-timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(103,81,220,0.4), 0 0 24px rgba(94,185,204,0.25), inset 0 0 10px rgba(103,81,220,0.2);
  z-index: 1;
  transition: all 0.3s ease;
}

/* steps */
.step {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), color 0.3s ease, opacity 0.4s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: stepPop 0.6s forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

/* animation for steps */
@keyframes stepPop {
  to { opacity: 1; transform: translateY(0); }
}

.step:hover {
  transform: translateY(-12px) scale(1.05);
}

/* step circles */
.step-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--ink);
  font-weight: 700;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 12px rgba(103,81,220,0.4), 0 0 24px rgba(94,185,204,0.25);
  margin-bottom: 18px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.step-circle::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(94,185,204,0.3);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.step:hover .step-circle {
  transform: scale(1.2) rotate(-3deg);
  box-shadow: 0 0 20px rgba(103,81,220,0.6), 0 0 40px rgba(103,81,220,0.4);
  background: linear-gradient(135deg, #6e56f5, #9c7fff, #bba7ff);
}
.step:hover .step-circle::after {
  opacity: 1;
  transform: scale(1.2);
}

/* step text */
.step-text {
  max-width: 160px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.step-title {
  font-weight: 700;
  font-size: clamp(16px, 1vw + 12px, 18px);
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 4px rgba(103,81,220,0.3);
}

.step:hover .step-title {
  filter: brightness(1.2);
  background: linear-gradient(90deg, #6e56f5, #bba7ff);
  -webkit-background-clip: text;
}

.step-description {
  font-weight: 400;
  font-size: clamp(14px, 0.9vw + 10px, 16px);
  color: var(--muted);
  line-height: 1.7;
  transition: color 0.3s ease, transform 0.3s ease;
}

.step:hover .step-description {
  color: #9c7fff;
  transform: translateY(-2px);
}



/* Responsive */
@media (max-width: 900px) {
   .workflow-timeline-horizontal{
    --wf-line-x: 28px;   
    --wf-circle: 46px;   
    --wf-gap: 14px;      

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-right: 20px;
  }

 .workflow-timeline-horizontal::before{
      display: none;
  }
  .step {
    flex-direction: row;
    align-items: center;
    margin-bottom: 40px;
    text-align: right;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 0.5s forwards;
  }

  .step:nth-child(1) { animation-delay: 0.1s; }
  .step:nth-child(2) { animation-delay: 0.2s; }
  .step:nth-child(3) { animation-delay: 0.3s; }
  .step:nth-child(4) { animation-delay: 0.4s; }

  @keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
  }

  .step-circle {
    margin-right: 20px;
    margin-bottom: 0;
  }

  .step-text {
    max-width: none;
  }

  .workflow-timeline-horizontal .step{
    position: relative;
    display:flex;
    align-items:center;
    margin:0 0 28px;
    min-height: var(--wf-circle);
    text-align: right;
    padding-inline-start: calc(var(--wf-line-x) + (var(--wf-circle)/2) + var(--wf-gap));

  }
  @keyframes wfSlideIn { to { opacity:1; transform:none; } }

  .workflow-timeline-horizontal .step-circle{
    position:absolute;
    top:50%;
    inset-inline-start: var(--wf-line-x); 
    width: var(--wf-circle);
    height: var(--wf-circle);
    border-radius:50%;
    display:grid;
    place-items:center;
    margin:0;
    z-index:2; 
  }
  html[dir="ltr"] .workflow-timeline-horizontal .step-circle{ transform: translate(-50%, -50%); }
  html[dir="rtl"] .workflow-timeline-horizontal .step-circle{ transform: translate( 50%, -50%); }

  .workflow-timeline-horizontal .step-text{ max-width:none; }

  .workflow-timeline-horizontal .step-circle::after{ display:none; }
  .workflow-timeline-horizontal .step-circle,
  .workflow-timeline-horizontal .step
  { 
    margin-right:0; 
  }
}



/* ---- Strengths & Workflow when INSIDE #services ---- */
#services .strengths-in-services { 
  padding: 60px 0 0;          
}

#services .workflow-in-services { 
  padding: 60px 0 0;           
}

#services .strengths-in-services { margin-top: 60px; }
#services .workflow-in-services  { margin-top: 40px; }

#services .strengths-title,
#services .section-title {
  text-align: center;
}

#services .workflow-timeline-horizontal {
  max-width: 1000px; 
}




/* ==== Contact Section ==== */

.contact-box {
  padding-top: 36px;
  padding-bottom: 40px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 14px;
  margin-top: 10px;
}

.contact-link { 
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(18,22,40,0.35), rgba(10,12,24,0.25));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  min-width: 0;
}

.contact-link small{
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;     
}


.contact-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  border-color: rgba(103,81,220,0.6);
  background: linear-gradient(180deg, rgba(18,22,40,0.5), rgba(10,12,24,0.4));
}

.contact-link i {
  font-size: 22px;
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(103,81,220,0.35));
}

.contact-link.x-link i {
  font-size: 22px; 
  color: var(--primary); 
  filter: drop-shadow(0 0 6px rgba(103,81,220,0.35));
}


.contact-link span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.contact-link strong {
  font-weight: 600;
  font-size: 15px;
}
.contact-link small {
  color: var(--muted);
  font-size: 13px;
}
.ltr {
  direction: ltr;
  unicode-bidi: plaintext;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-links {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}


/* ==== FAQ Section ==== */
.faq-section {
  padding: 100px 20px;
  font-family: 'Tajawal', sans-serif;
  text-align: center; 
}

/* Section title */
.faq-section .section-title {
  display: inline-block; 
  text-align: center;
  font-size: 2.5rem;
  color: #e0e0ff;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
  animation: titleFadeIn 0.8s forwards 0.2s;
}

/* Centered interactive underline */
.faq-section .section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
  margin: 10px auto 0;
  border-radius: 2px;
  transform-origin: center; 
  transition: width 0.5s ease, transform 0.5s ease;
}

.faq-section .section-title:hover::after {
  width: 100%;
  transform: scaleX(1.05);
}

/* Fade in animation for the title */
@keyframes titleFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* FAQ Item */
.faq-item {
  background: rgba(24,28,50,0.9);
  border: 1px solid #6c5ce7;
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  border-color: #a29bfe;
}

/* Question */
.faq-question {
  padding: 25px 30px;
  font-weight: 500;
  font-size: 1.2rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #6c5ce7;
  transition: transform 0.3s ease;
}

/* Active question icon */
.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}


.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.45s ease;
  padding: 0 30px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: right;
  direction: rtl;
}

.faq-item.active .faq-answer{
  padding: 20px 40px;
  background: rgba(18,22,40,0.6);
  border-top: 1px solid #6c5ce7;
  border-radius: 0 0 16px 16px;
}


.faq-contact-link {
  color: #405aeb;
  text-decoration: underline;
  font-weight: 500;
}
.faq-contact-link:hover {
  color: #a29bfe;
}


/* ==== Conclusion Section ==== */
.conclusion-section {
  padding: 48px 0 80px; 
}

.conclusion-card {
  position: relative;
  padding: 46px min(6vw,48px) 58px;
  color: #eef0ff;
  background: linear-gradient(180deg, rgba(18,22,40,0.6), rgba(10,12,24,0.35));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(103,81,220,0.25);
  outline: 1px solid rgba(103,81,220,0.15);
  outline-offset: 10px;
}

.conclusion-card {
  -webkit-clip-path: polygon(0 0, 88% 0, 90% 0%, 100% 20%, 100% 100%, 12% 100%, 5% 90%, 0 90%);
          clip-path: polygon(0 0, 88% 0, 90% 0%, 100% 10%, 100% 100%, 12% 100%, 0% 80%, 0 90%);
}

.conclusion-title {
  margin: 0 0 18px;
  line-height: 1.3;
  font-size: clamp(24px, 3.2vw + 8px, 44px);
  font-weight: 500;
  text-align: center; 
}

.conclusion-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw + 10px, 20px);
  text-align: justify;
  line-height: 1.7;
}


.site-footer {
  background: #0b1120;
  color: #e0e0ff;
  padding: 10px 10px;
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  border-top: 1px solid #6c5ce7;
}

.site-footer .footer-links a {
  color: #6c5ce7;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s;
}

.site-footer .footer-links a:hover {
  color: #a29bfe;
}

/* ==== Back to Top Button ==== */
.to-top{
  position: fixed;
  right: 24px;   
  bottom: 100px;  
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: radial-gradient(60% 60% at 50% 30%, rgba(103,81,220,.22), rgba(18,22,40,.85));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, box-shadow .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
}

.to-top i{
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(103,81,220,.35));
}

.to-top:hover{
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  transform: translateY(0) scale(1.03);
}

.to-top:active{
  transform: translateY(2px) scale(.98);
}

.to-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top:focus-visible{
  outline: 2px solid rgba(103,81,220,.85);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .swiper-slide {
    width: 90% !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column; 
    align-items: flex-start;
    padding: 10px 16px;
  }

  .navbar a {
    width: 100%;
    text-align: left;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .to-top{ transition: none; }
}



