:root{
  --bg:#0b0b0f;
  --panel:#0f1016;
  --text:#e9e9f2;
  --muted:#a7a7b6;
  --line:rgba(255,255,255,.10);
  --soft:rgba(255,255,255,.06);
  --radius:18px;
  --gap:18px;
  --sidebar:300px;
  --max:1100px;
  --shadow: 0 14px 40px rgba(0,0,0,.55);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:radial-gradient(1200px 700px at 20% -10%, rgba(160,110,255,.10), transparent 60%),
             radial-gradient(900px 500px at 80% 0%, rgba(0,190,255,.08), transparent 55%),
             var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.layout{
  display:flex;
  min-height:100vh;
}

/* SIDEBAR */
.sidebar{
  width:var(--sidebar);
  border-right:1px solid var(--line);
  background:linear-gradient(to bottom, rgba(255,255,255,.03), transparent 30%);
  padding:24px 18px;
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
}

.sidebar__top{display:flex; flex-direction:column; gap:18px; min-height:0}
.sidebar__footer{margin-top:auto; padding-top:14px; border-top:1px solid var(--line); color:var(--muted)}
.sidebar__footer small{opacity:.9}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  background:rgba(255,255,255,.02);
  border:1px solid var(--soft);
}
.brand__logo{width:34px; height:34px; object-fit:contain; display:block}

.nav__label{
  margin:0 0 8px 10px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}

.nav__list, .social__list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.nav__list a, .social__list a{
  display:block;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--text);
}

.nav__list a:hover, .social__list a:hover{
  background:rgba(255,255,255,.03);
  border-color:var(--soft);
}

.social{margin-top:4px}
.sidebar__spacer{height:12px}
.nav__list--secondary{gap:8px}
.nav__list--secondary a{color:var(--muted)}
.nav__list--secondary a:hover{color:var(--text)}

/* CONTENT */
.content{
  flex:1;
  padding:34px 28px;
}

.page-head{
  max-width:var(--max);
  margin:0 auto 18px auto;
}
.page-head h1{
  margin:0 0 8px 0;
  font-size:38px;
  letter-spacing:-.02em;
}
.page-head p{
  margin:0;
  color:var(--muted);
  max-width:62ch;
}

/* GRID 2-COL */
.grid{
  max-width:var(--max);
  margin:20px auto 0 auto;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:var(--gap);
}

.card{
  background:rgba(255,255,255,.02);
  border:1px solid var(--soft);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  transition:transform .18s ease, border-color .18s ease;
}

.card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.18);
}

.card__media{
  aspect-ratio: 16 / 10;
  background:rgba(255,255,255,.03);
  border-bottom:1px solid var(--soft);
}

.card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(.92) contrast(1.03);
}

.card__meta{
  padding:14px 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.card__title{
  font-weight:600;
  letter-spacing:.01em;
}

.card__tags{
  color:var(--muted);
  font-size:13px;
}

/* PROJECT PAGE */
.proj-wrap{
  max-width:var(--max);
  margin:0 auto;
}

.proj-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.breadcrumb{
  color:var(--muted);
  font-size:14px;
}

.proj-hero{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--soft);
  background:rgba(255,255,255,.02);
  box-shadow:var(--shadow);
}

.proj-hero img{
  width:100%;
  height:auto;
  display:block;
}

.proj-body{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}

.proj-card{
  padding:18px;
  border-radius:var(--radius);
  border:1px solid var(--soft);
  background:rgba(255,255,255,.02);
}

.proj-card h2{margin:0 0 10px 0}
.proj-card p{margin:0; color:var(--muted); line-height:1.6}

/* RESPONSIVE */
@media (max-width: 980px){
  :root{ --sidebar: 260px; }
  .page-head h1{font-size:34px}
}

@media (max-width: 820px){
  .layout{flex-direction:column}
  .sidebar{
    position:relative;
    width:auto;
    height:auto;
    border-right:none;
    border-bottom:1px solid var(--line);
  }
  .content{padding:20px 16px}
  .grid{grid-template-columns:1fr}
}

/* Active link state (sidebar) */
.nav__list a.active,
.nav__list a[aria-current="page"]{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}

/* Slight underline indicator */
.nav__list a.active::after{
  content:"";
  display:block;
  height:2px;
  margin-top:8px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
}

/* Card hover: a bit more premium */
.card:hover .card__media img{
  transform: scale(1.02);
  transition: transform .35s ease;
}
.card__media img{
  transition: transform .35s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  padding: 14px 18px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background .25s ease, border-color .25s ease;
}

.brand:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.brand__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* Contact form */
.cform{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:10px;
}

.cform__row{display:flex; flex-direction:column; gap:8px}

.cform__label{
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.cform__input,
.cform__textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline: none;
}

.cform__textarea{resize:vertical; min-height:140px}

.cform__input:focus,
.cform__textarea:focus{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.05);
}

.cform__actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:4px;
}

.cform__btn{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:700;
  letter-spacing:-.02em;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cform__btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.cform__note{
  color: var(--muted);
  font-size: 14px;
}

.pill-link{
  display:inline-block;
  margin-left:8px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.pill-link:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}



