:root{
  --bg:#07090d;
  --panel:#0c111b;
  --text:#e9eef7;
  --muted:#9aa6ba;
  --yellow:#ffd400;
  --yellow2:#ffbf00;
  --border:rgba(255,255,255,.08);
  --radius:18px;
  --shadow:0 12px 40px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial;
  background: radial-gradient(900px 500px at 50% 25%, rgba(255,212,0,.12), transparent 60%), var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.container{width:min(1100px,92%);margin:auto}

.site-header{
  position:sticky; top:0; z-index:999;
  background: rgba(7,9,13,.8);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0; position:relative;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:900}
.brand-badge{
  width:36px;height:36px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--yellow),var(--yellow2));
  color:#111; box-shadow:0 10px 20px rgba(255,212,0,.2);
}
.nav-center{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex; gap:10px;
}
.nav-link{
  padding:10px 14px;border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  border-radius:999px;font-weight:700;
}
.nav-link:hover{border-color:rgba(255,212,0,.6); box-shadow:0 0 0 4px rgba(255,212,0,.10)}
.btn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:12px 16px;border-radius:14px;
  font-weight:900; cursor:pointer;
}
.btn-primary{
  background:linear-gradient(135deg,var(--yellow),var(--yellow2));
  color:#111; border-color:rgba(255,212,0,.65);
  box-shadow:0 14px 30px rgba(255,212,0,.20);
}
.btn-ghost {
    border: 2px solid #ffd000;
    color: #ffd000;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    
   
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 208, 0, 0.5);
}

.hero{padding:28px 0 10px}
.tag{
  display:inline-block; padding:8px 12px; border-radius:999px;
  border:1px dashed rgba(255,212,0,.55);
  background:rgba(255,212,0,.08);
  color:var(--yellow); font-weight:900;
}
h1{margin:12px 0 10px; font-size:clamp(28px,4vw,44px)}
.lead{margin:0;color:var(--muted);line-height:1.9}
.hero-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}

.section{padding:30px 0}
.section-title{margin:0 0 12px}

.grid{display:grid;gap:12px}
.cards{grid-template-columns:repeat(4,1fr)}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border); border-radius:var(--radius);
  padding:16px; box-shadow: var(--shadow);
}
.card h3{margin:0 0 8px}
.card p{margin:0;color:var(--muted);line-height:1.8}

.projects{grid-template-columns:repeat(3,1fr)}
.project{
  border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; background:rgba(255,255,255,.03);
}
.thumb{
  height:120px;
  background:linear-gradient(135deg, rgba(255,212,0,.20), rgba(255,255,255,.05)), #0a0f18;
  border-bottom:1px solid var(--border);
}
.meta{padding:14px;display:flex;justify-content:space-between;gap:10px}
.meta span{color:var(--yellow);font-weight:900;font-size:12px}

.contact-form{
  display:grid; gap:10px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border); border-radius:var(--radius);
  padding:16px;
}
input, textarea{
  width:100%; padding:12px;
  border-radius:14px; border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{
  border-color:rgba(255,212,0,.65);
  box-shadow:0 0 0 4px rgba(255,212,0,.10);
}

.footer{
  padding:16px 0; border-top:1px solid var(--border);
  color:var(--muted);
}

/* Responsive */
@media (max-width:900px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .projects{grid-template-columns:1fr}
  .nav-center{gap:6px}
}
@media (max-width:520px){
  .nav-center{display:none} /* إذا تريد نظهرها بالموبايل قلّي */
}


.btn-primary {
    background: #ffd000;
    color: #000;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 208, 0, 0.5);
}

.contact-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.contact-modal.open{ display:block; }

.contact-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.contact-sheet{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(520px, calc(100% - 24px));
  background: rgba(15, 20, 35, .92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.5);
}

.contact-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.contact-head h3{
  margin:0;
  font-size: 18px;
}

.contact-x{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.c-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.c-item:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.c-ico{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(255, 204, 0, .12);
  border: 1px solid rgba(255, 204, 0, .18);
  font-size: 20px;
}

.c-txt b{ display:block; font-size: 15px; }
.c-txt small{ opacity:.75; }

.contact-foot{
  margin-top: 12px;
  opacity: .7;
  font-size: 12px;
}

@media (max-width: 520px){
  .contact-grid{ grid-template-columns: 1fr; }
}