﻿:root{
  --bg:#0e0f12; --panel:#13151a; --text:#e7e9ee; --muted:#a9afbd;
  --brand:#37d0ff; --brand-2:#8b5cf6; --card:#171923; --border:#252a36;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  line-height:1.6
}

a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}

.container{width:min(1100px,92%);margin-inline:auto}
.mt-1{margin-top:1rem}
.mt-2{margin-top:2rem}

/* ================= Header + off-canvas ================= */

.site-header{
  position:sticky;
  top:0;
  background:rgba(14,15,18,.9);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  z-index:50
}

.header-inner{
  display:flex;
  align-items:center;
  gap:1rem;
  padding:12px 0
}

.logo{
  font-weight:800;
  color:var(--text);
  font-size:1.05rem;
  letter-spacing:.5px
}

.logo-mark{
  background:linear-gradient(45deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:900
}

.logo-sub{
  opacity:.75;
  margin-left:.25rem;
  font-weight:600
}

.hamburger{
  width:38px;
  height:34px;
  border:1px solid var(--border);
  border-radius:.6rem;
  background:var(--panel);
  display:inline-grid;
  place-content:center;
  gap:4px;
  cursor:pointer
}

.hamburger span{
  display:block;
  width:18px;
  height:2px;
  background:var(--text)
}

.offcanvas{
  position:fixed;
  inset:0 auto 0 0;
  width:280px;
  background:var(--panel);
  border-right:1px solid var(--border);
  transform:translateX(-100%);
  transition:transform .25s ease;
  z-index:60;
  padding:14px
}

.offcanvas.open{transform:none}

.offcanvas-nav{
  display:grid;
  gap:.3rem
}

.offcanvas-nav a{
  color:var(--text);
  padding:.45rem .5rem;
  border-radius:.5rem
}

.offcanvas-nav a:hover{background:#0b0c10}

.offcanvas-social{
  margin-top:1rem;
  display:flex;
  gap:1rem;
  flex-wrap:wrap
}

.offcanvas-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(2px);
  z-index:55
}

/* ================= Banner ================= */

.banner img{
  width:100%;
  height:auto;
  aspect-ratio:1920/400;
  object-fit:cover
}

/* ================= Sections / Cards ================= */

.intro h1{margin:.2rem 0 .5rem 0}

.cta-row .btn{margin-right:.6rem}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem
}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:1rem;
  padding:1rem
}

@media (max-width:860px){
  .grid-3{grid-template-columns:1fr}
}

/* ===== Uniform split-card (middle panel) ===== */

.card-split{
  display:flex;
  flex-direction:column
}

.card-split .card-section + .card-section{
  margin-top:1rem
}

.card-split .card-divider{
  height:1px;
  background:var(--border);
  opacity:.8;
  margin:1rem 0
}

.card-split h3{margin-top:0}
.card-split ul{margin-bottom:0}

/* ================= Buttons ================= */

.btn{
  display:inline-block;
  border:1px solid var(--border);
  border-radius:.8rem;
  padding:.6rem 1rem;
  color:var(--text);
  background:var(--panel)
}

.btn:hover{border-color:var(--brand)}

.btn-primary{
  background:linear-gradient(45deg,var(--brand),var(--brand-2));
  border:none
}

/* ================= Articles ================= */

.article-preview{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:1rem;
  padding:1rem;
  margin-bottom:1rem
}

.article-preview h3{
  margin-top:0
}

.article-meta{
  color:var(--muted);
  font-size:.9rem;
  margin:.25rem 0 .5rem 0
}

.read-more{
  display:inline-block;
  margin-top:.5rem
}

/* Individual article pages */

.article-content{
  max-width:760px;
}

.article-content h1{
  margin-top:0
}

.article-content p{
  margin:1rem 0
}

.article-content hr{
  border:none;
  border-top:1px solid var(--border);
  margin:2rem 0
}

/* ================= Footer ================= */

.site-footer{
  border-top:1px solid var(--border);
  padding:24px 0;
  margin-top:40px
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:1rem
}

.copyright{
  color:var(--muted);
  margin-top:1rem;
  font-size:.9rem
}

@media (max-width:820px){
  .footer-grid{grid-template-columns:1fr}
}

/* ================= Forms ================= */

.contact-form{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:1rem;
  padding:1rem
}

label{display:block;margin:.6rem 0}

input,textarea{
  width:100%;
  padding:.6rem;
  background:#0b0c10;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:.6rem
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem
}

@media (max-width:600px){
  .grid-2{grid-template-columns:1fr}
}

/* ================= Misc ================= */

.projects .project{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:1rem;
  padding:1rem;
  margin:.6rem 0
}

.sitemap{columns:2}
@media (max-width:680px){
  .sitemap{columns:1}
}
