/* ===== theme ===== */
:root{
  --bg:#000; --fg:#eaeaea; --muted:#a1a1aa;
  --glass:rgba(255,255,255,.04);
  --glass-hover:rgba(255,255,255,.08);
  --line:rgba(255,255,255,.12);
  --accent:#22d3ee;
  --accent-dim:rgba(34,211,238,.25);
  --max:1120px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background:var(--bg); color:var(--fg)}
#bgCanvas{position:fixed; inset:0; z-index:-1; background:#000}
.wrap{width:min(92%, var(--max)); margin:0 auto}
.section{padding:68px 0}

/* ===== header spacing + divider ===== */
.site-header{
  position:sticky; top:0; z-index:30;
  background:rgba(0,0,0,.6);
  -webkit-backdrop-filter:saturate(160%) blur(10px);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; /* adds the breathing room under nav */
}
.header-sep{height:8px; background:transparent} /* extra space “below nav and above the line” feel */

.brand{color:#fff; text-decoration:none; font-weight:800; display:flex; align-items:center; gap:10px}
.logo-dot{width:10px; height:10px; border-radius:50%;
  background:radial-gradient(circle at 40% 40%, var(--accent), var(--accent-dim));
  box-shadow:0 0 0 2px var(--accent-dim), 0 0 12px var(--accent)
}
.nav{display:flex; gap:14px; align-items:center}
.nav a{color:#fff; text-decoration:none; opacity:.9}
.btn{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; font-weight:600}
.btn-ghost{border:1px solid rgba(255,255,255,.16); color:#fff}

/* hamburger (mobile) */
.hamburger{display:none; background:transparent; border:0; cursor:pointer}
.hamburger span{display:block; width:22px; height:2px; background:#fff; margin:5px 0; transition:all .3s}
@media (max-width: 860px){
  .hamburger{display:block}
  .nav{
    position:fixed; right:16px; top:58px; background:rgba(10,10,10,.95);
    border:1px solid rgba(255,255,255,.12); padding:10px; border-radius:12px;
    display:none; flex-direction:column; z-index:40
  }
  .nav.open{display:flex}
}

/* page head */
.section-head{margin-bottom:12px}
.section-head h1{
  margin:0; font-size:clamp(28px,4vw,36px);
  padding-left:12px; border-left:4px solid transparent;
  border-image:linear-gradient(180deg, var(--accent-dim), var(--accent)) 1;
}
.muted{color:var(--muted)}
.page-head{padding-top:32px}

/* chips */
.chips{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.chip{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  color:#e8e8ea; padding:8px 12px; border-radius:999px; cursor:pointer; font-weight:600;
  transition:transform .15s, box-shadow .2s, border-color .2s
}
.chip:hover{transform:translateY(-1px)}
.chip.is-active{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-dim)}

/* ===== projects grid — compact width, slightly taller cards ===== */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); /* width like before */
  gap:18px;
  align-items:stretch;
}

/* card */
.project-card{
  display:flex; flex-direction:column;
  background:var(--glass); /* more transparent */
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  min-height:260px;              /* slight height increase */
  transition:transform .2s, box-shadow .25s, background .25s, border-color .25s;
}
.project-card:hover{
  transform:translateY(-3px);
  background:var(--glass-hover);
  border-color:var(--accent-dim);
  box-shadow:0 14px 28px rgba(0,0,0,.35);
}

/* image */
.thumb{position:relative; aspect-ratio:16/9; background:rgba(255,255,255,.03)}
.thumb img{width:100%; height:100%; object-fit:cover; display:block}
.tag{
  position:absolute; left:10px; top:10px;
  font-size:12px; padding:4px 10px; border-radius:999px;
  background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.16); color:#e7edf9
}

/* content */
.content{padding:14px}
.content h3{margin:0 0 10px 0; font-size:18px}
.content p{margin:0 0 10px 0; color:#d7d8de; font-size:14.5px; line-height:1.5}
.tech{list-style:none; display:flex; gap:8px; flex-wrap:wrap; padding:0; margin:0 0 12px 0}
.tech li{
  border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05);
  padding:6px 10px; font-size:12px; border-radius:999px;
}

/* actions */
.actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    margin-top:15px; /* push to bottom */
    margin-bottom:10px; /* push to bottom */
    
    }
.btn-accent{
  background:linear-gradient(135deg, var(--accent-dim), var(--accent));
  color:#031015; 
  text-decoration:none;
  border:0; 
  box-shadow:0 8px 22px rgba(37,99,235,.28);
}
.btn-accent:hover{filter:saturate(112%)}
.link{color:#cfe7ff; text-decoration:none}
.link:hover{color:#fff}
.gh{display:inline-flex; align-items:center; gap:8px}
.gh-mark{width:18px; height:18px; filter:invert(1) opacity(.9)}

/* footer */
.site-footer{
  border-top:1px solid rgba(255,255,255,.1);
  padding:28px 0; color:#b4b5c0;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap
}

/* responsive tweaks */
@media (max-width: 520px){
  .projects-grid{grid-template-columns:1fr}
}
