/* ======================================================
   SAMIR KAHWAJI — ENGLISH PORTFOLIO
   Creative backend-system visual language
====================================================== */

:root{
  --bg:#05070b;
  --acid:#a3ff12;
  --cyan:#5ee8ff;
  --vio:#9b8cff;
  --line:rgba(255,255,255,.08);
}

*{box-sizing:border-box}
html{scroll-padding-top:96px}
body{
  font-family:"Inter",system-ui,sans-serif;
  background:var(--bg);
  min-height:100vh;
}

button,a{-webkit-tap-highlight-color:transparent}

.noise{
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.mesh-bg{
  background:
    radial-gradient(circle at 18% 8%,rgba(163,255,18,.06),transparent 26%),
    radial-gradient(circle at 88% 20%,rgba(94,232,255,.05),transparent 30%),
    radial-gradient(circle at 50% 85%,rgba(155,140,255,.05),transparent 28%),
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:auto,auto,auto,44px 44px,44px 44px;
}

.spotlight{
  background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(163,255,18,.055),transparent 70%);
}

.logo-mark{
  position:relative;
  display:grid;
  width:44px;height:44px;
  place-items:center;
  border:1px solid rgba(163,255,18,.3);
  border-radius:14px 4px 14px 4px;
  background:rgba(163,255,18,.07);
  overflow:hidden;
}
.logo-mark:after{
  content:"";
  position:absolute;
  inset:auto -25% -55% auto;
  width:70%;height:70%;
  border-radius:999px;
  background:var(--acid);
  filter:blur(20px);
  opacity:.18;
}
.logo-mark span{
  font-family:"JetBrains Mono",monospace;
  font-size:12px;
  font-weight:700;
  color:var(--acid);
}

.nav-link{
  position:relative;
  font-size:13px;
  color:rgba(255,255,255,.45);
  transition:.25s ease;
}
.nav-link:hover,.nav-link.active{color:#fff}
.nav-link:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-10px;
  margin:auto;
  width:0;height:1px;
  background:var(--acid);
  transition:width .25s ease;
}
.nav-link:hover:after,.nav-link.active:after{width:100%}

.mobile-menu{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height .35s ease,opacity .25s ease;
}
.mobile-menu.open{max-height:420px;opacity:1}
.mobile-link{
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:rgba(255,255,255,.7);
  font-size:14px;
}

.hero-title{
  max-width:780px;
  font-size:clamp(2.7rem,5.5vw,5.4rem);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:800;
}
.outline-word{
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.6);
  text-stroke:1px rgba(255,255,255,.6);
  transition:.4s ease;
}
.outline-word:hover{
  color:var(--acid);
  -webkit-text-stroke-color:var(--acid);
  text-stroke-color:var(--acid);
}

.status-pill,.location-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  background:rgba(255,255,255,.025);
  font-size:11px;
  color:rgba(255,255,255,.5);
}
.status-pill{border-color:rgba(163,255,18,.18);color:rgba(255,255,255,.7)}
.status-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--acid);
  box-shadow:0 0 0 5px rgba(163,255,18,.08);
  animation:pulseDot 1.8s infinite;
}
@keyframes pulseDot{50%{box-shadow:0 0 0 10px rgba(163,255,18,0)}}

.primary-btn,.secondary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:50px;
  padding:0 19px;
  border-radius:14px;
  font-size:13px;
  font-weight:800;
  transition:transform .25s ease,border-color .25s ease,background .25s ease;
}
.primary-btn{background:var(--acid);color:#05070b}
.secondary-btn{border:1px solid var(--line);background:rgba(255,255,255,.03);color:#fff}
.primary-btn:hover,.secondary-btn:hover{transform:translateY(-3px)}
.secondary-btn:hover{border-color:rgba(163,255,18,.25)}

.stat-block{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:6px;
  border-left:1px solid rgba(255,255,255,.1);
  padding-left:14px;
}
.stat-value{font-family:"JetBrains Mono",monospace;font-size:24px;color:#fff}
.stat-label{font-size:10px;line-height:1.5;color:rgba(255,255,255,.28)}

.system-orbit{
  position:relative;
  width:min(100%,650px);
  aspect-ratio:1/1;
  margin-inline:auto;
  transform:scale(1.3);
}
.orbit-ring{
  position:absolute;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  inset:8%;
}
.orbit-ring-2{
  inset:22%;
  border-style:dashed;
  animation:spin 24s linear infinite reverse;
}
.orbit-ring-1{animation:spin 34s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.orbit-core{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  display:grid;
  width:168px;height:168px;
  place-items:center;
  align-content:center;
  border:1px solid rgba(163,255,18,.28);
  border-radius:42% 58% 55% 45%/46% 40% 60% 54%;
  background:radial-gradient(circle at 35% 25%,rgba(163,255,18,.16),rgba(255,255,255,.02) 60%);
  box-shadow:0 0 90px rgba(163,255,18,.09);
  animation:morph 8s ease-in-out infinite alternate;
}
@keyframes morph{
  to{border-radius:58% 42% 41% 59%/58% 57% 43% 42%}
}
.core-badge{
  font-family:"JetBrains Mono",monospace;
  font-size:9px;
  letter-spacing:.25em;
  color:var(--acid);
}
.orbit-core strong{margin-top:7px;font-size:28px;letter-spacing:-.05em}
.orbit-core span{margin-top:2px;font-size:10px;color:rgba(255,255,255,.3)}

.orbit-node{
  position:absolute;
  display:flex;
  align-items:center;
  gap:7px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(5,7,11,.75);
  backdrop-filter:blur(12px);
  font-family:"JetBrains Mono",monospace;
  font-size:9px;
  color:rgba(255,255,255,.65);
}
.orbit-node svg{width:14px;height:14px;color:var(--acid)}
.node-a{top:8%;left:42%}
.node-b{right:3%;top:45%}
.node-c{bottom:9%;left:45%}
.node-d{left:2%;top:48%}

.live-terminal{
  position:absolute;
  right:-2%;
  bottom:3%;
  width:min(310px,78%);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(7,10,15,.86);
  padding:14px;
  box-shadow:0 20px 80px rgba(0,0,0,.35);
  backdrop-filter:blur(18px);
}
.terminal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
  padding-bottom:9px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.terminal-top span{display:block;width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.14)}
.terminal-top span:first-child{background:#ff6b6b}
.terminal-top span:nth-child(2){background:#ffd166}
.terminal-top span:nth-child(3){background:#8cff66}

.ticker-track{
  display:flex;
  width:max-content;
  gap:42px;
  animation:ticker 30s linear infinite;
}
@keyframes ticker{to{transform:translateX(-50%)}}

.section-space{padding-block:7rem}
.section-kicker{
  font-family:"JetBrains Mono",monospace;
  font-size:11px;
  letter-spacing:.24em;
  color:var(--acid);
}
.section-title{
  font-size:clamp(2.2rem,5vw,4.8rem);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:800;
}
.lead-copy{
  font-size:clamp(1.2rem,2vw,1.6rem);
  line-height:1.75;
  color:rgba(255,255,255,.78);
}
.body-copy{
  margin-top:18px;
  font-size:15px;
  line-height:1.9;
  color:rgba(255,255,255,.42);
}
.micro-card{
  display:flex;
  gap:14px;
  padding:17px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.02);
}
.micro-index{
  flex:0 0 auto;
  font-family:"JetBrains Mono",monospace;
  color:var(--acid);
  font-size:11px;
}
.micro-card strong{display:block;font-size:13px}
.micro-card p{margin-top:5px;font-size:11px;line-height:1.6;color:rgba(255,255,255,.32)}

.experience-card{
  display:grid;
  grid-template-columns:110px 1fr;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}
.experience-year{
  display:grid;
  place-items:center;
  border-right:1px solid var(--line);
  font-family:"JetBrains Mono",monospace;
  font-size:11px;
  color:rgba(255,255,255,.22);
  writing-mode:vertical-rl;
  letter-spacing:.28em;
}
.experience-main{padding:28px}
.experience-main h3{
  margin-top:8px;
  font-size:28px;
  letter-spacing:-.035em;
  font-weight:800;
}
.role{margin-top:4px;color:rgba(255,255,255,.58);font-size:13px}
.company-chip,.tag{
  display:inline-flex;
  width:max-content;
  align-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.02);
  color:rgba(255,255,255,.4);
}
.company-chip{padding:7px 10px;font-size:10px}
.tag{padding:6px 9px;font-size:10px}

.filter-btn{
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.02);
  color:rgba(255,255,255,.38);
  font-size:11px;
  transition:.25s ease;
}
.filter-btn:hover,.filter-btn.active{
  border-color:rgba(163,255,18,.28);
  color:var(--acid);
  background:rgba(163,255,18,.05);
}

.project-card{
  position:relative;
  min-height:330px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  transition:transform .3s ease,border-color .3s ease;
}
.project-card:hover{
  transform:translateY(-6px);
  border-color:rgba(163,255,18,.22);
}
.project-card.hidden-project{display:none}
.project-featured{min-height:440px}
.project-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family:"JetBrains Mono",monospace;
  font-size:10px;
  letter-spacing:.14em;
  color:rgba(255,255,255,.26);
}
.project-card h3{
  margin-top:34px;
  max-width:700px;
  font-size:clamp(1.7rem,3vw,3.2rem);
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:800;
}
.project-card p{
  position:relative;
  z-index:2;
  margin-top:15px;
  max-width:700px;
  font-size:14px;
  line-height:1.9;
  color:rgba(255,255,255,.45);
}
.project-orb{
  position:absolute;
  width:240px;height:240px;
  border-radius:999px;
  filter:blur(70px);
  opacity:.11;
  right:-70px;bottom:-80px;
}
.orb-green{background:#a3ff12}
.orb-purple{background:#9b8cff}
.orb-blue{background:#5ee8ff}
.orb-yellow{background:#ffd166}
.orb-pink{background:#ff6ad5}
.system-chip{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px;
  background:rgba(255,255,255,.02);
  font-size:11px;
  color:rgba(255,255,255,.44);
}
.system-chip span{
  font-family:"JetBrains Mono",monospace;
  color:var(--acid);
}
.project-action{
  position:absolute;
  left:26px;bottom:24px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--acid);
  font-size:12px;
  font-weight:700;
}
.project-action svg{width:14px;height:14px}
.data-panel{
  position:relative;
  z-index:2;
  border:1px solid var(--line);
  border-radius:15px;
  overflow:hidden;
}
.data-panel>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-family:"JetBrains Mono",monospace;
  font-size:10px;
}
.data-panel>div:last-child{border-bottom:none}
.data-panel span{color:rgba(255,255,255,.28)}
.data-panel strong{color:var(--acid)}

.stack-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.stack-card{
  min-height:150px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.02);
  transition:.25s ease;
}
.stack-card:hover{
  transform:translateY(-4px);
  background:rgba(163,255,18,.035);
  border-color:rgba(163,255,18,.18);
}
.stack-card svg{width:20px;height:20px;color:var(--acid)}
.stack-card strong{display:block;margin-top:28px;font-size:13px}
.stack-card span{display:block;margin-top:5px;font-size:10px;color:rgba(255,255,255,.28)}

.education-strip{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:30px 0;
}
.education-number{
  font-family:"JetBrains Mono",monospace;
  font-size:clamp(2.4rem,6vw,6rem);
  font-weight:700;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.18);
}
.education-strip h3{margin-top:8px;font-size:18px;font-weight:800}
.education-strip p:last-child{margin-top:5px;font-size:12px;color:rgba(255,255,255,.35)}
.education-symbol{font-size:38px;color:var(--acid)}

.contact-shell{
  overflow:hidden;
  border:1px solid rgba(163,255,18,.18);
  border-radius:26px;
  background:
    radial-gradient(circle at 12% 5%,rgba(163,255,18,.1),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.015));
}
.contact-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:50px;
  padding:40px;
}
.contact-actions{
  display:grid;
  align-content:end;
  gap:8px;
}
.contact-line{
  display:grid;
  grid-template-columns:70px 1fr auto;
  align-items:center;
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,.07);
  padding:14px 0;
}
.contact-line span{
  font-family:"JetBrains Mono",monospace;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:rgba(255,255,255,.28);
}
.contact-line strong{
  overflow-wrap:anywhere;
  font-size:12px;
  color:rgba(255,255,255,.72);
}
.contact-line svg{width:15px;height:15px;color:var(--acid)}
.contact-footer-line{
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid rgba(255,255,255,.07);
  padding:16px 40px;
  font-family:"JetBrains Mono",monospace;
  font-size:9px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.2);
}

.command-shell{
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:start center;
  padding-top:14vh;
}
.command-shell.hidden{display:none}
.command-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(8px);
}
.command-box{
  position:relative;
  width:min(92vw,520px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  background:#0a0d13;
  box-shadow:0 30px 100px rgba(0,0,0,.5);
}
.command-item{
  display:flex;
  width:100%;
  align-items:center;
  gap:13px;
  padding:12px 13px;
  border-radius:10px;
  text-align:left;
  font-size:13px;
  color:rgba(255,255,255,.6);
  transition:.2s ease;
}
.command-item:hover{background:rgba(255,255,255,.04);color:#fff}
.command-item span{
  font-family:"JetBrains Mono",monospace;
  font-size:9px;
  color:var(--acid);
}

.top-btn{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:45;
  display:grid;
  width:44px;height:44px;
  place-items:center;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(5,7,11,.8);
  backdrop-filter:blur(12px);
  color:#fff;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:.25s ease;
}
.top-btn.show{opacity:1;visibility:visible;transform:none}
.top-btn svg{width:17px;height:17px}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible{opacity:1;transform:none}

@media (max-width:1024px){
  .contact-grid{grid-template-columns:1fr}
  .system-orbit{max-width:480px}
}

@media (max-width:760px){
  .section-space{padding-block:5rem}
  .experience-card{grid-template-columns:1fr}
  .experience-year{
    writing-mode:horizontal-tb;
    justify-content:start;
    border-right:none;
    border-bottom:1px solid var(--line);
    padding:12px 20px;
  }
  .contact-grid{padding:26px}
  .contact-footer-line{padding:14px 26px;flex-direction:column}
  .stack-grid{grid-template-columns:1fr}
  .education-strip{grid-template-columns:1fr}
  .education-symbol{display:none}
  .project-featured{min-height:500px}
}

@media (max-width:560px){
  .hero-title{font-size:clamp(2.8rem,14vw,4.4rem)}
  .system-orbit{transform:scale(.92)}
  .live-terminal{right:0;bottom:-2%}
  .node-b{right:0}
  .node-d{left:0}
  .contact-line{grid-template-columns:1fr auto}
  .contact-line span{grid-column:1/-1}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
  .reveal{opacity:1;transform:none}
}
