/* ==========================================================================
   1. المتغيرات
   ========================================================================== */
:root{
  --blue:#1450d8;
  --blue-dark:#0f3ba8;
  --blue-100:#dbe5fb;
  --blue-50:#eff4ff;

  --ink:#0d1526;
  --ink-2:#243044;
  --body:#5a6579;
  --muted:#8b95a6;

  --white:#ffffff;
  --paper:#f6f8fb;
  --line:#e4e9f0;
  --line-2:#d3dae5;

  --r-sm:6px;
  --r-md:10px;
  --r-lg:16px;

  --container:1160px;
  --nav-h:76px;

  --ease:cubic-bezier(.25,.8,.35,1);
  --shadow-sm:0 1px 2px rgba(13,21,38,.05);
  --shadow-md:0 4px 16px rgba(13,21,38,.06);
  --shadow-lg:0 14px 40px rgba(13,21,38,.09);

  --f:'Tajawal',system-ui,'Segoe UI',sans-serif;
  --f-num:'Inter',system-ui,sans-serif;
}

/* ==========================================================================
   2. الأساسيات
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 20px);-webkit-text-size-adjust:100%}

body{
  font-family:var(--f);
  background:var(--white);
  color:var(--body);
  font-size:16.5px;
  line-height:1.85;
  font-weight:400;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{color:var(--ink);font-weight:800;line-height:1.3;letter-spacing:-.2px}
a{color:inherit;text-decoration:none}
ul{list-style:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit;color:inherit}

::selection{background:var(--blue-100);color:var(--ink)}

::-webkit-scrollbar{width:12px}
::-webkit-scrollbar-track{background:var(--paper)}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:99px;border:3px solid var(--paper)}
::-webkit-scrollbar-thumb:hover{background:var(--muted)}

.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:24px}
.section{padding:104px 0}
.section.alt{background:var(--paper);border-block:1px solid var(--line)}

.num{font-family:var(--f-num);font-weight:600;font-feature-settings:"tnum"}

/* عنوان القسم */
.kicker{
  display:flex;align-items:center;gap:12px;
  font-size:.8rem;font-weight:700;letter-spacing:.14em;
  color:var(--blue);
  text-transform:uppercase;
  margin-bottom:18px;
}
.kicker::before{
  content:"";width:26px;height:1px;background:var(--blue);flex-shrink:0;
}
.section-head{max-width:640px;margin-bottom:56px}
.section-head.center{margin-inline:auto;text-align:center}
.section-head.center .kicker{justify-content:center}
.section-head h2{font-size:clamp(1.75rem,3.6vw,2.5rem);margin-bottom:16px}
.section-head p{font-size:1.03rem;color:var(--body)}

/* ==========================================================================
   3. الأزرار
   ========================================================================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:13px 26px;
  border-radius:var(--r-md);
  border:1px solid transparent;
  font-family:var(--f);
  font-size:.95rem;font-weight:700;
  cursor:pointer;white-space:nowrap;
  transition:background .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease),box-shadow .2s var(--ease),transform .2s var(--ease);
}
.btn svg{width:17px;height:17px;flex-shrink:0;stroke-width:2}

.btn-primary{background:var(--blue);color:#fff;box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--blue-dark);box-shadow:var(--shadow-md)}

.btn-outline{background:var(--white);color:var(--ink);border-color:var(--line-2)}
.btn-outline:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-50)}

.btn-sm{padding:9px 18px;font-size:.88rem;border-radius:var(--r-sm)}
.btn:active{transform:translateY(1px)}

/* ==========================================================================
   4. الهيدر
   ========================================================================== */
.nav{
  position:fixed;top:0;inset-inline:0;z-index:900;
  height:var(--nav-h);
  display:flex;align-items:center;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s var(--ease),height .25s var(--ease),box-shadow .25s var(--ease);
}
.nav.scrolled{border-bottom-color:var(--line);height:66px;box-shadow:0 1px 12px rgba(13,21,38,.04)}
.nav .container{display:flex;align-items:center;justify-content:space-between;gap:20px}

.logo{display:flex;align-items:center;gap:11px;font-weight:800;font-size:1.1rem;color:var(--ink)}
.logo-mark{
  width:34px;height:34px;flex-shrink:0;
  border-radius:9px;
  background:var(--blue);
  color:#fff;
  display:grid;place-items:center;
  font-family:var(--f-num);font-weight:700;font-size:.95rem;
}
.logo span.role{
  font-size:.72rem;font-weight:500;color:var(--muted);
  display:block;line-height:1.2;letter-spacing:0;
}

.nav-links{display:flex;align-items:center;gap:2px}
.nav-links a{
  padding:8px 14px;
  border-radius:var(--r-sm);
  font-size:.94rem;font-weight:500;
  color:var(--body);
  transition:color .18s var(--ease),background .18s var(--ease);
}
.nav-links a:hover{color:var(--ink);background:var(--paper)}
.nav-links a.active{color:var(--blue);font-weight:700}

.nav-actions{display:flex;align-items:center;gap:10px}

.burger{
  display:none;
  width:42px;height:42px;
  border:1px solid var(--line-2);
  border-radius:var(--r-sm);
  background:var(--white);
  cursor:pointer;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.burger span{display:block;width:18px;height:1.6px;background:var(--ink);transition:transform .2s var(--ease),opacity .2s var(--ease)}
.burger.open span:nth-child(1){transform:translateY(6.6px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-6.6px) rotate(-45deg)}

.mobile-menu{
  position:fixed;top:var(--nav-h);inset-inline:0;z-index:899;
  background:var(--white);
  border-bottom:1px solid var(--line);
  padding:14px 24px 22px;
  display:flex;flex-direction:column;
  transform:translateY(-105%);
  opacity:0;visibility:hidden;
  transition:transform .3s var(--ease),opacity .3s var(--ease),visibility .3s var(--ease);
  box-shadow:var(--shadow-lg);
}
.mobile-menu.open{transform:translateY(0);opacity:1;visibility:visible}
.mobile-menu a{
  padding:14px 4px;
  font-weight:500;color:var(--ink-2);
  border-bottom:1px solid var(--line);
}
.mobile-menu a:last-of-type{border-bottom:0}
.mobile-menu .btn{margin-top:16px}

/* ==========================================================================
   5. الهيرو
   ========================================================================== */
.hero{
  padding-top:calc(var(--nav-h) + 72px);
  padding-bottom:88px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;top:0;inset-inline-end:0;
  width:52%;height:100%;
  background:var(--paper);
  border-inline-start:1px solid var(--line);
  z-index:-1;
}

.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}

.status{
  display:inline-flex;align-items:center;gap:9px;
  padding:6px 14px 6px 6px;
  border:1px solid var(--line-2);
  border-radius:99px;
  background:var(--white);
  font-size:.83rem;font-weight:500;color:var(--ink-2);
  margin-bottom:26px;
}
.status i{
  width:7px;height:7px;border-radius:50%;
  background:#16a34a;
  box-shadow:0 0 0 3px rgba(22,163,74,.16);
  margin-inline-start:8px;
}

.hero h1{
  font-size:clamp(2.2rem,5.4vw,3.7rem);
  line-height:1.22;
  font-weight:900;
  letter-spacing:-1px;
  margin-bottom:22px;
}
.hero h1 .u{
  color:var(--blue);
  position:relative;
  white-space:nowrap;
}
.hero h1 .u::after{
  content:"";
  position:absolute;inset-inline:0;bottom:2px;
  height:8px;
  background:var(--blue-100);
  z-index:-1;
  border-radius:2px;
}

.hero-lead{font-size:1.09rem;max-width:530px;margin-bottom:34px}
.hero-lead b{color:var(--ink);font-weight:700}

.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:44px}
.hero-cta .btn{white-space:normal;text-align:center;line-height:1.5}

.hero-clients{
  display:flex;align-items:center;gap:16px;
  padding-top:28px;
  border-top:1px solid var(--line);
}
.hero-clients .txt{font-size:.88rem;color:var(--muted);line-height:1.6}
.hero-clients .txt b{display:block;color:var(--ink);font-weight:700;font-size:.95rem}
.faces{display:flex}
.faces span{
  width:38px;height:38px;
  border-radius:50%;
  border:2px solid var(--white);
  background:var(--blue-50);
  color:var(--blue-dark);
  display:grid;place-items:center;
  font-size:.78rem;font-weight:700;
  margin-inline-start:-11px;
}
.faces span:first-child{margin-inline-start:0}
.faces span.more{background:var(--blue);color:#fff}

/* واجهة متجر توضيحية */
.hero-visual{position:relative}

.mock{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.mock-bar{
  display:flex;align-items:center;gap:7px;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  background:var(--paper);
}
.mock-bar i{width:9px;height:9px;border-radius:50%;background:var(--line-2)}
.mock-url{
  margin-inline-start:10px;
  flex:1;
  height:22px;
  border-radius:5px;
  background:var(--white);
  border:1px solid var(--line);
  display:flex;align-items:center;
  padding-inline:10px;
  font-family:var(--f-num);font-size:.68rem;color:var(--muted);
  direction:ltr;
}

.mock-body{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.mock-img{
  aspect-ratio:1/1;
  border-radius:var(--r-md);
  background:var(--blue-50);
  border:1px solid var(--blue-100);
  position:relative;
  display:grid;place-items:center;
}
.mock-img svg{width:38%;height:38%;color:var(--blue);opacity:.42}
.mock-img .tagd{
  position:absolute;top:10px;inset-inline-start:10px;
  background:var(--blue);color:#fff;
  font-size:.65rem;font-weight:700;
  padding:3px 9px;border-radius:4px;
}

.mock-info{display:flex;flex-direction:column;gap:11px;padding-top:4px}
.ln{height:9px;border-radius:4px;background:var(--line)}
.ln.w90{width:90%}
.ln.w70{width:70%}
.ln.w50{width:50%}
.mock-price{
  font-family:var(--f-num);
  font-size:1.4rem;font-weight:700;color:var(--ink);
  margin-top:4px;
}
.mock-price s{color:var(--muted);font-size:.85rem;font-weight:400;margin-inline-start:8px}
.mock-cta{
  margin-top:auto;
  background:var(--blue);color:#fff;
  border-radius:var(--r-sm);
  padding:11px;
  text-align:center;
  font-size:.85rem;font-weight:700;
}
.mock-foot{
  display:flex;gap:8px;
  padding:0 20px 20px;
}
.mock-foot span{
  flex:1;height:52px;
  border-radius:var(--r-sm);
  background:var(--paper);
  border:1px solid var(--line);
}

.badge-float{
  position:absolute;
  inset-inline-start:-18px;bottom:-18px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-lg);
  padding:13px 18px;
  display:flex;align-items:center;gap:12px;
}
.badge-float .val{
  font-family:var(--f-num);
  font-size:1.35rem;font-weight:700;color:var(--ink);
  line-height:1;
}
.badge-float small{display:block;font-size:.74rem;color:var(--muted);margin-top:3px}
.badge-float .ic{
  width:36px;height:36px;border-radius:8px;
  background:var(--blue-50);color:var(--blue);
  display:grid;place-items:center;
}
.badge-float .ic svg{width:18px;height:18px}

/* شريط المنصات */
.logos{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--white);
  padding:26px 0;
}
.logos-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.logos-inner .lbl{font-size:.83rem;color:var(--muted);font-weight:500}
.logos-list{display:flex;align-items:center;gap:34px;flex-wrap:wrap}
.logos-list span{
  font-family:var(--f-num);
  font-size:1.05rem;font-weight:600;
  color:var(--line-2);
  transition:color .2s var(--ease);
  cursor:default;
}
.logos-list span:hover{color:var(--ink-2)}

/* ==========================================================================
   6. نبذة عني
   ========================================================================== */
.about-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:70px;align-items:start}

.portrait{
  aspect-ratio:4/5;
  border-radius:var(--r-lg);
  background:var(--paper);
  border:1px solid var(--line);
  position:relative;
  overflow:hidden;
  display:grid;place-items:center;
}
.portrait .letter{
  font-family:var(--f-num);
  font-size:7rem;font-weight:700;
  color:var(--line-2);
}
.portrait::after{
  content:"";
  position:absolute;inset-inline-start:0;bottom:0;
  width:100%;height:4px;background:var(--blue);
}

.about-under{
  display:grid;grid-template-columns:1fr 1fr;gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-top:0;
  border-radius:0 0 var(--r-lg) var(--r-lg);
  overflow:hidden;
}
.about-under div{background:var(--white);padding:18px}
.about-under b{
  display:block;
  font-family:var(--f-num);
  font-size:1.5rem;font-weight:700;color:var(--ink);line-height:1.2;
}
.about-under small{font-size:.8rem;color:var(--muted)}

.about-text h2{font-size:clamp(1.7rem,3.4vw,2.4rem);margin-bottom:22px;line-height:1.35}
.about-text p{margin-bottom:18px}
.about-text p b{color:var(--ink);font-weight:700}

.principles{margin-top:34px;border-top:1px solid var(--line)}
.principle{
  display:grid;grid-template-columns:auto 1fr;gap:18px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
.principle .idx{
  font-family:var(--f-num);
  font-size:.82rem;font-weight:600;color:var(--blue);
  padding-top:4px;
}
.principle h4{font-size:1.02rem;margin-bottom:5px;font-weight:700}
.principle p{font-size:.94rem;margin:0}

/* ==========================================================================
   7. المهارات
   ========================================================================== */
.skills-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1px;background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
}
.skill-col{background:var(--white);padding:34px 30px;transition:background .25s var(--ease);position:relative}
.skill-col:hover{background:var(--blue-50)}

.idx-big{
  position:absolute;top:28px;inset-inline-end:28px;
  font-size:1.05rem;font-weight:700;
  color:var(--line-2);
  letter-spacing:.5px;
}

.skill-col .ic{
  width:44px;height:44px;
  border-radius:10px;
  border:1px solid var(--line-2);
  display:grid;place-items:center;
  color:var(--blue);
  margin-bottom:20px;
  background:var(--white);
}
.skill-col .ic svg{width:20px;height:20px;stroke-width:1.7}
.skill-col h3{font-size:1.14rem;margin-bottom:8px}
.skill-col > p{font-size:.93rem;margin-bottom:22px}

.skill-list li{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  padding:11px 0;
  border-top:1px dashed var(--line);
  font-size:.93rem;
}
.skill-list li span:first-child{color:var(--ink-2);font-weight:500}
.skill-list li span:last-child{
  font-family:var(--f-num);
  font-size:.78rem;font-weight:600;
  color:var(--muted);
  white-space:nowrap;
}
.skill-list li.inc-title{
  border-top:0;
  padding:14px 0 4px;
  font-size:.76rem;font-weight:700;
  letter-spacing:.1em;
  color:var(--blue);
}
.skill-list li:not(.inc-title) span:first-child{
  position:relative;
  padding-inline-start:16px;
  display:inline-block;
}
.skill-list li:not(.inc-title) span:first-child::before{
  content:"";
  position:absolute;inset-inline-start:0;top:.62em;
  width:5px;height:5px;border-radius:50%;
  background:var(--blue);
}

/* التقنيات */
.stack-groups{
  margin-top:38px;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
}
.stack-group{background:var(--white);padding:26px 28px}
.stack-group h4{
  font-size:.8rem;font-weight:700;
  color:var(--muted);
  letter-spacing:.08em;
  margin-bottom:14px;
}

.tools{
  display:flex;flex-wrap:wrap;gap:8px;
}
.tools span{
  padding:7px 15px;
  border:1px solid var(--line-2);
  border-radius:99px;
  background:var(--white);
  font-size:.84rem;font-weight:500;color:var(--body);
  transition:border-color .2s var(--ease),color .2s var(--ease);
  cursor:default;
}
.tools span:hover{border-color:var(--blue);color:var(--blue)}

/* ==========================================================================
   8. الأعمال
   ========================================================================== */
.projects-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:30px;
  flex-wrap:wrap;margin-bottom:34px;
}
.projects-head .section-head{margin-bottom:0}

.filters{
  display:flex;flex-wrap:wrap;gap:8px;
  padding-bottom:26px;
  border-bottom:1px solid var(--line);
  margin-bottom:34px;
}
.filter-btn{
  padding:9px 18px;
  border:1px solid var(--line-2);
  border-radius:99px;
  background:var(--white);
  color:var(--body);
  font-family:var(--f);
  font-size:.9rem;font-weight:500;
  cursor:pointer;
  transition:all .2s var(--ease);
}
.filter-btn:hover{border-color:var(--ink-2);color:var(--ink)}
.filter-btn.active{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.filter-btn .count{
  font-family:var(--f-num);
  font-size:.74rem;opacity:.65;margin-inline-start:5px;
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:24px;
}

.project-card{
  display:flex;flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  transition:transform .28s var(--ease),box-shadow .28s var(--ease),border-color .28s var(--ease),opacity .25s var(--ease);
}
.project-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--line-2)}
.project-card.hiding{opacity:0;transform:translateY(8px)}
.project-card.hidden{display:none}

/* صورة توضيحية مبنية بالـ CSS */
.thumb{
  aspect-ratio:16/10;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.thumb-inner{
  height:100%;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px 8px 0 0;
  border-bottom:0;
  padding:10px;
  display:flex;flex-direction:column;gap:8px;
  transition:transform .35s var(--ease);
}
.project-card:hover .thumb-inner{transform:translateY(-6px)}
.tb-bar{display:flex;align-items:center;gap:5px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.tb-bar i{width:16px;height:5px;border-radius:3px;background:var(--line-2)}
.tb-bar i:first-child{width:22px;background:var(--blue);height:6px;border-radius:2px}
.tb-bar i.grow{flex:1;background:transparent}
.tb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;flex:1}
.tb-grid span{border-radius:5px;background:var(--blue-50);border:1px solid var(--blue-100)}
.tb-grid span:nth-child(2){background:var(--paper);border-color:var(--line)}
.tb-grid span:nth-child(3){background:var(--paper);border-color:var(--line)}

/* المشاريع التي لها صورة مرفوعة من لوحة التحكم */
.thumb.has-img{padding:0}
.thumb.has-img img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .45s var(--ease);
}
.project-card:hover .thumb.has-img img{transform:scale(1.045)}

.thumb .tag{
  position:absolute;top:14px;inset-inline-end:14px;z-index:2;
  background:var(--white);
  border:1px solid var(--line-2);
  border-radius:5px;
  padding:4px 10px;
  font-size:.72rem;font-weight:700;color:var(--blue);
}

.project-body{padding:22px;display:flex;flex-direction:column;flex:1}
.project-body h3{font-size:1.08rem;margin-bottom:8px;line-height:1.5}
.project-body p{font-size:.92rem;flex:1;margin-bottom:18px}

.project-foot{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.stack{display:flex;flex-wrap:wrap;gap:6px}
.stack span{
  font-family:var(--f-num);
  font-size:.7rem;font-weight:500;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:4px;
  padding:3px 8px;
}
.visit{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.87rem;font-weight:700;color:var(--blue);
  white-space:nowrap;
  transition:gap .2s var(--ease);
}
.visit:hover{gap:10px}
.visit svg{width:14px;height:14px;stroke-width:2}

.empty-state{
  grid-column:1/-1;
  text-align:center;
  padding:60px 20px;
  border:1px dashed var(--line-2);
  border-radius:var(--r-lg);
  color:var(--muted);
  font-size:.95rem;
}

/* ==========================================================================
   9. التقييمات
   ========================================================================== */
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}

.testi{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:30px 28px;
  display:flex;flex-direction:column;
  transition:box-shadow .25s var(--ease),border-color .25s var(--ease);
}
.testi:hover{box-shadow:var(--shadow-md);border-color:var(--line-2)}
.testi .stars{display:flex;gap:3px;margin-bottom:16px;color:var(--blue)}
.testi .stars svg{width:15px;height:15px;fill:currentColor}
.testi p{font-size:.96rem;color:var(--ink-2);flex:1;margin-bottom:22px}

.testi-who{display:flex;align-items:center;gap:13px;padding-top:18px;border-top:1px solid var(--line)}
.testi-who .av{
  width:42px;height:42px;flex-shrink:0;
  border-radius:50%;
  background:var(--blue-50);
  border:1px solid var(--blue-100);
  color:var(--blue-dark);
  display:grid;place-items:center;
  font-size:.82rem;font-weight:700;
}
.testi-who b{display:block;font-size:.93rem;color:var(--ink);font-weight:700;line-height:1.4}
.testi-who small{font-size:.81rem;color:var(--muted)}

/* ==========================================================================
   10. التواصل
   ========================================================================== */
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:0;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--white)}

.contact-side{
  background:var(--blue);
  color:#fff;
  padding:44px 38px;
  display:flex;flex-direction:column;
}
.contact-side h3{color:#fff;font-size:1.45rem;margin-bottom:14px;line-height:1.45}
.contact-side > p{color:rgba(255,255,255,.78);font-size:.95rem;margin-bottom:32px}

.c-item{
  display:flex;align-items:center;gap:14px;
  padding:16px 0;
  border-top:1px solid rgba(255,255,255,.16);
  transition:padding-inline-start .2s var(--ease);
}
.c-item:hover{padding-inline-start:6px}
.c-item .ic{
  width:38px;height:38px;flex-shrink:0;
  border-radius:9px;
  background:rgba(255,255,255,.13);
  display:grid;place-items:center;
}
.c-item .ic svg{width:17px;height:17px;stroke-width:1.8}
.c-item small{display:block;font-size:.76rem;color:rgba(255,255,255,.65)}
.c-item b{font-size:.93rem;font-weight:700;direction:ltr;display:inline-block}

.socials{display:flex;gap:9px;margin-top:auto;padding-top:34px}
.socials a{
  width:40px;height:40px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.24);
  display:grid;place-items:center;
  color:#fff;
  transition:background .2s var(--ease),border-color .2s var(--ease);
}
.socials a svg{width:17px;height:17px}
.socials a:hover{background:#fff;color:var(--blue);border-color:#fff}

.contact-form{padding:44px 38px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:flex;flex-direction:column;gap:7px}
.field.full{grid-column:1/-1}
.field label{font-size:.87rem;font-weight:700;color:var(--ink-2)}
.field input,.field textarea,.field select{
  width:100%;
  padding:12px 15px;
  border:1px solid var(--line-2);
  border-radius:var(--r-sm);
  background:var(--white);
  font-size:.94rem;
  outline:none;
  transition:border-color .18s var(--ease),box-shadow .18s var(--ease);
}
.field select{cursor:pointer}
.field textarea{resize:vertical;min-height:126px;line-height:1.75}
.field input::placeholder,.field textarea::placeholder{color:var(--muted)}
.field input:focus,.field textarea:focus,.field select:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px var(--blue-50);
}
.field.error input,.field.error textarea{border-color:#dc2626;box-shadow:0 0 0 3px #fee2e2}
.err-msg{font-size:.78rem;color:#dc2626;font-weight:500;display:none}
.field.error .err-msg{display:block}

.form-note{
  margin-top:16px;
  padding:13px 16px;
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#15803d;
  border-radius:var(--r-sm);
  font-size:.9rem;font-weight:500;
  display:none;
}
.form-note.show{display:block}
.form-hint{font-size:.83rem;color:var(--muted);margin-top:14px}

/* ==========================================================================
   11. الفوتر
   ========================================================================== */
.footer{background:var(--ink);color:rgba(255,255,255,.62);padding:62px 0 26px}
.footer .logo{color:#fff}
.footer .logo span.role{color:rgba(255,255,255,.5)}
.footer-grid{
  display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:40px;
  padding-bottom:42px;border-bottom:1px solid rgba(255,255,255,.11);
}
.footer-brand p{font-size:.92rem;margin-top:18px;max-width:330px;color:rgba(255,255,255,.55)}
.footer h4{color:#fff;font-size:.93rem;font-weight:700;margin-bottom:18px}
.f-links{display:flex;flex-direction:column;gap:11px}
.f-links a{font-size:.9rem;color:rgba(255,255,255,.58);transition:color .18s var(--ease);width:fit-content}
.f-links a:hover{color:#fff}

.footer-bottom{
  padding-top:24px;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
  font-size:.85rem;color:rgba(255,255,255,.45);
}

.to-top{
  position:fixed;bottom:26px;inset-inline-start:26px;z-index:800;
  width:44px;height:44px;
  border-radius:var(--r-md);
  border:1px solid var(--line-2);
  background:var(--white);
  color:var(--ink);
  display:grid;place-items:center;
  cursor:pointer;
  box-shadow:var(--shadow-md);
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:all .25s var(--ease);
}
.to-top.show{opacity:1;visibility:visible;transform:translateY(0)}
.to-top:hover{background:var(--blue);color:#fff;border-color:var(--blue)}
.to-top svg{width:18px;height:18px;stroke-width:2}

/* ==========================================================================
   12. ظهور بسيط عند السكرول
   ========================================================================== */
.rv{opacity:0;transform:translateY(16px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.rv.in{opacity:1;transform:none}
.rv.d1{transition-delay:.07s}
.rv.d2{transition-delay:.14s}
.rv.d3{transition-delay:.21s}

/* ==========================================================================
   13. الاستجابة
   ========================================================================== */
@media (max-width:1024px){
  .hero::before{display:none}
  .hero-grid{grid-template-columns:1fr;gap:56px}
  .hero-visual{max-width:520px}
  .about-grid{grid-template-columns:1fr;gap:44px}
  .about-visual{max-width:400px}
  .skills-grid{grid-template-columns:1fr}
  .stack-groups{grid-template-columns:1fr}
  .testi-grid{grid-template-columns:1fr 1fr}
  .contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
  .footer-brand{grid-column:1/-1}
}

@media (max-width:880px){
  .nav-links{display:none}
  .nav-actions .btn{display:none}
  .burger{display:flex}
  :root{--nav-h:66px}
  .section{padding:74px 0}
}

@media (max-width:640px){
  body{font-size:15.5px}
  .container{padding-inline:20px}
  .section{padding:62px 0}
  .hero{padding-top:calc(var(--nav-h) + 44px);padding-bottom:64px}
  .hero-cta{flex-direction:column;align-items:stretch}
  .hero-cta .btn{width:100%}
  .testi-grid{grid-template-columns:1fr}
  .projects-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .contact-side,.contact-form{padding:30px 24px}
  .skill-col{padding:28px 24px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
  .mock-body{grid-template-columns:1fr}
  .badge-float{inset-inline-start:auto;inset-inline-end:14px;bottom:-14px;padding:11px 15px}
  .logos-inner{justify-content:center;text-align:center}
  .logos-list{gap:22px;justify-content:center}
  .to-top{bottom:18px;inset-inline-start:18px}
}

@media (prefers-reduced-motion:reduce){
  *{transition-duration:.01ms !important;animation-duration:.01ms !important;scroll-behavior:auto !important}
  .rv{opacity:1;transform:none}
}