:root{
  --bg:#071017;
  --panel:#0b1720;
  --neon:#00ff8a;
  --muted:#9aa7b0;
  --accent:linear-gradient(90deg,#00ff8a, #00d4ff);
  --glass: rgba(255,255,255,0.03);
  --mono: "Fira Code", "Source Code Pro", ui-monospace, SFMono-Regular, monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:#e6f2f1;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  overflow-x:hidden;
}

/* Matrix canvas sits behind everything */
#matrix{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:0.25;
  mix-blend-mode:screen;
}

/* Layout */
.container{max-width:1100px;margin:0 auto;padding:1rem}
.header-inner, .footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}

/* Header */
.site-header{position:sticky;top:0;z-index:10;background:linear-gradient(180deg, rgba(7,16,23,0.6), rgba(7,16,23,0.3));backdrop-filter: blur(6px);border-bottom:1px solid rgba(255,255,255,0.03)}
.brand{display:flex;align-items:center;gap:0.6rem;padding:0.6rem 0;color:var(--neon);text-decoration:none;font-weight:700;font-family:var(--mono)}
.logo{filter:drop-shadow(0 0 6px rgba(0,255,138,0.12))}

/* Nav */
.nav{display:flex;align-items:center;gap:1rem}
.nav-list{list-style:none;margin:0;padding:0;display:flex;gap:0.5rem}
.nav-list a{color:var(--muted);text-decoration:none;padding:0.5rem 0.7rem;border-radius:6px;font-weight:600}
.nav-list a:hover,.nav-list a.active{color:#071017;background:var(--neon);background-clip:text;-webkit-background-clip:text; color:transparent; text-shadow:none}
.nav-toggle{display:none;background:none;border:0;padding:0;margin:0;cursor:pointer}
.burger{width:26px;height:2px;background:var(--neon);display:block;position:relative}
.burger::before,.burger::after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--neon)}
.burger::before{top:-8px}.burger::after{top:8px}

/* Hero */
.hero{position:relative;z-index:1;padding:3rem 0 2rem}
.hero-inner{padding:3rem; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:14px; border:1px solid rgba(0,255,138,0.06)}
.title{font-size:2.2rem;margin:0 0 0.5rem;font-weight:800;letter-spacing:-0.02em;font-family:var(--mono)}
.lead{color:var(--muted);margin:0 0 1rem}
.cta-row{display:flex;gap:0.6rem;margin-bottom:1.4rem}
.btn{padding:0.6rem 1rem;border-radius:8px;text-decoration:none;display:inline-block;font-weight:700}
.btn-primary{background:var(--neon);color:#071017}
.btn-ghost{border:1px solid rgba(255,255,255,0.04);color:var(--neon);background:transparent}

/* Features grid */
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.card{background:var(--glass);padding:1rem;border-radius:10px;border:1px solid rgba(255,255,255,0.02)}

/* Spotlight */
.spotlight{margin-top:1.5rem;padding:1rem}
.split{display:flex;gap:1rem;align-items:center;justify-content:space-between}
.tags{list-style:none;padding:0;display:flex;gap:0.4rem;margin:0}
.tags li{font-family:var(--mono);font-size:0.85rem;color:var(--muted)}

/* Page content */
.page{padding:2rem 0;z-index:1}
.muted{color:var(--muted)}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-top:1rem}
.lead-card{margin-top:1.2rem;padding:1rem;border-radius:10px;background:linear-gradient(90deg, rgba(0,255,138,0.04), rgba(0,212,255,0.02));border:1px solid rgba(0,255,138,0.06)}

/* Services */
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.service{padding:1rem;background:var(--panel);border-radius:8px;border:1px solid rgba(255,255,255,0.02)}

/* Projects */
.project-list{list-style:none;padding:0;margin:1rem 0;display:grid;gap:0.8rem}
.project{padding:1rem;border-radius:8px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.02)}
.project h3 a{color:var(--neon);text-decoration:none;font-family:var(--mono)}

/* Contact form */
.contact-form{display:grid;gap:0.8rem;max-width:680px}
.contact-form label{display:block;font-weight:600}
.contact-form input, .contact-form textarea{width:100%;padding:0.8rem;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:inherit;font-family:inherit}
.form-row{display:flex;gap:0.6rem;align-items:center}
.form-status{margin-top:0.6rem;color:var(--neon);font-weight:700}

/* Footer */
.site-footer{margin-top:2rem;padding:1rem 0;border-top:1px solid rgba(255,255,255,0.03);z-index:1}
.foot-nav a{color:var(--muted);text-decoration:none;margin-left:0.8rem}

/* Responsive */
@media (max-width:720px){
  .cols{grid-template-columns:1fr}
  .nav-list{position:fixed;top:64px;right:12px;background:rgba(11,23,32,0.95);padding:1rem;border-radius:10px;flex-direction:column;display:none;min-width:200px}
  .nav-toggle{display:block}
  .nav-list.open{display:flex}
  .hero-inner{padding:1.2rem}
}