/* Ali0x simple portfolio — Cloudflare Pages ready */
:root{
  --bg:#0b1020;
  --card:#121a33;
  --card2:#0f1730;
  --text:#eaf0ff;
  --muted:#b7c2e3;
  --line:rgba(255,255,255,.08);
  --glow:#7dd3fc;
  --accent:#a78bfa;
  --accent2:#34d399;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 500px at 70% -10%, rgba(167,139,250,.25), transparent 55%),
              radial-gradient(800px 400px at 10% 10%, rgba(125,211,252,.18), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:inherit}
.wrap{max-width:1100px; margin:0 auto; padding:0 18px}
.top{
  position:sticky; top:0; z-index:50;
  background: rgba(11,16,32,.7);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.top .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  font-weight:800;
  background: linear-gradient(135deg, rgba(125,211,252,.35), rgba(167,139,250,.35));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.brandtext .name{font-size:18px; font-weight:800; letter-spacing:.2px}
.brandtext .tag{font-size:13px; color:var(--muted)}

.nav{display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-start}
.nav a{
  text-decoration:none;
  font-size:14px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.hero{padding:56px 0 28px}
.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
  .top .wrap{flex-direction:column; align-items:flex-start}
}

h1{margin:0 0 10px; font-size:42px; line-height:1.2}
.glow{
  background: linear-gradient(90deg, var(--glow), var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:18px;
  line-height:1.9;
}

.cta{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(125,211,252,.18), rgba(167,139,250,.18));
  box-shadow: var(--shadow);
  font-weight:700;
}
.btn:hover{transform: translateY(-1px)}
.btn.ghost{
  background: rgba(255,255,255,.03);
}

.chips{display:flex; gap:10px; flex-wrap:wrap}
.chips span{
  font-size:13px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.heroCard .card, .note, .pcard, .labbox{
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(18,26,51,.7);
  box-shadow: var(--shadow);
}
.heroCard{display:flex; flex-direction:column; gap:12px}
.card{padding:12px 14px}
.card .k{font-size:13px; color:var(--muted); margin-bottom:4px}
.card .v{font-size:16px; font-weight:700}
.note{
  padding:12px 14px;
  color: var(--muted);
  font-size:14px;
  line-height:1.7;
  background: rgba(15,23,48,.7);
}

.section{padding:38px 0}
.section.alt{background: rgba(255,255,255,.02); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
h2{margin:0 0 10px; font-size:28px}
.sub{margin:0 0 18px; color:var(--muted); line-height:1.8}

.bullets{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 760px){
  .bullets{grid-template-columns:1fr}
}
.bullet{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 960px){
  .cards{grid-template-columns:1fr}
}
.pcard{
  padding:14px 14px 12px;
  background: rgba(18,26,51,.65);
}
.pcard h3{margin:2px 0 8px; font-size:18px}
.pcard p{margin:0 0 10px; color:var(--muted); line-height:1.8}
.meta{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px}
.meta span{
  font-size:12px;
  color:var(--muted);
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.03);
}
.plink{
  display:inline-flex;
  text-decoration:none;
  font-weight:800;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.plink:hover{background: rgba(255,255,255,.06)}

.labbox{padding:12px}
.labrow{
  display:flex; justify-content:space-between; gap:10px;
  padding:12px 10px;
  border-bottom: 1px solid var(--line);
}
.labrow:last-child{border-bottom:0}
.labk{color:var(--muted); font-weight:700}
.labv a{color:var(--text); text-decoration:none; border-bottom:1px dashed rgba(255,255,255,.35)}
.labv a:hover{border-bottom-color: rgba(125,211,252,.8)}

.warn{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(125,211,252,.25);
  background: rgba(125,211,252,.08);
  color: var(--muted);
  line-height:1.8;
}

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){
  .contact{grid-template-columns:1fr}
}
.citem{
  padding:12px 14px;
  text-decoration:none;
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(18,26,51,.65);
  box-shadow: var(--shadow);
}
.ct{display:block; font-weight:900; margin-bottom:4px}
.cs{display:block; color:var(--muted); font-size:14px}

.foot{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
}
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .95em;
}
