:root{
  --bg:#0b0c10;
  --panel:#11131a;
  --text:#f4f6fb;
  --muted:rgba(244,246,251,.70);
  --border:rgba(244,246,251,.10);
  --accent:#ff3b3b;
  --accent-soft:#ff6b6b;
  --shadow:0 20px 50px rgba(0,0,0,.55);
  --radius:18px;
}

/* ===== Reset ===== */
*{ box-sizing:border-box; margin:0; padding:0; }
body{
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(255,59,59,.15), transparent 60%),
    radial-gradient(700px 400px at 85% 20%, rgba(255,59,59,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  min-height:100vh;
}
a{ color:inherit; text-decoration:none; }

/* ===== Layout ===== */
.main{
  max-width:1100px;
  margin:0 auto;
  padding:40px 20px 60px;
}

/* ===== Navbar (JS injected) ===== */
.navWrap{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(10px);
  background:rgba(11,12,16,.75);
  border-bottom:1px solid var(--border);
}
.nav{
  max-width:1100px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand{ font-weight:800; letter-spacing:-.02em; font-size:18px; }
.dot{ color:var(--accent); }
.navLinks{ display:flex; gap:12px; }
.navLink{
  padding:8px 12px;
  border-radius:10px;
  color:var(--muted);
  border:1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.navLink:hover{
  background:rgba(255,255,255,.05);
  color:var(--text);
}
.navLink.is-active{
  background:rgba(255,59,59,.12);
  border-color:rgba(255,59,59,.30);
  color:var(--text);
}

/* ===== Card base ===== */
.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%),
    var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:30px;
}

/* ===== Hero ===== */
.hero-simple{
  text-align:center;
  margin-bottom:24px;
}
.title{
  font-size:clamp(32px,5vw,44px);
  letter-spacing:-.02em;
}
.subtitle{
  margin-top:12px;
  color:var(--muted);
  font-size:16px;
  line-height:1.45;
}

/* ===== Buttons ===== */
.btn{
  appearance:none;
  border:none;
  border-radius:12px;
  padding:10px 18px;
  font-weight:650;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
  user-select:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn-primary{
  background:linear-gradient(180deg, var(--accent-soft), var(--accent));
  color:#0b0c10;
}
.btn-primary:hover{ filter:brightness(1.10); }
.btn-primary:active{ transform:scale(.96); }

/* ===== Home cards grid (Pictures + Projects) ===== */
.cardsGrid{
  display:grid;
  gap:20px;
  grid-template-columns:repeat(2, 1fr);
}
@media (max-width: 900px){
  .cardsGrid{ grid-template-columns:1fr; }
}

/* Each tile looks like your Pictures box */
.tileCard{
  min-height:260px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:14px;
}
.tileCard h2{
  font-size:24px;
}
.tileCard p{
  color:var(--muted);
  max-width:40ch;
}

/* ===== Gallery page ===== */
.folderBar{ margin-top:20px; display:flex; flex-wrap:wrap; gap:10px; }
.imageGrid{
  margin-top:24px;
  display:grid;
  gap:14px;
  grid-template-columns:repeat(3,1fr);
}
@media (max-width: 700px){
  .imageGrid{ grid-template-columns:repeat(2,1fr); }
}
.imageGrid a{
  display:block;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.imageGrid a:hover{
  transform:translateY(-3px);
  filter:brightness(1.05);
  border-color:rgba(255,59,59,.25);
}
.imageGrid img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
}