:root{
  --bg0:#0b1020;
  --bg1:#0f1730;
  --bg2:#111a38;
  --card: rgba(255,255,255,.08);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);
  --muted2: rgba(234,240,255,.58);
  --accent:#66a6ff;
  --accent2:#89f7fe;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --shadow2: 0 10px 24px rgba(0,0,0,.28);
  --radius: 18px;
  --max: 980px;
}

*{ box-sizing:border-box; }

html{
  background: var(--bg0);
}

body{
  margin:0;
  min-height:100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height:1.6;
  color:var(--text);

  /* SINGLE, CONTINUOUS BACKGROUND */
  background: linear-gradient(
    180deg,
    var(--bg0) 0%,
    var(--bg1) 35%,
    var(--bg2) 60%,
    var(--bg1) 85%,
    var(--bg0) 100%
  );
}

/* -------- TYPOGRAPHY -------- */

a{
  color: var(--text);
  text-decoration:none;
}
a:hover{ color: var(--accent2); }

h1,h2,h3{
  margin:0 0 .6rem;
  line-height:1.2;
}
h1{
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.15rem);
}
h2{
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing:.14em;
}
h3{
  font-size:1.05rem;
}

p{ margin:.35rem 0; }
ul{ margin:.55rem 0 0 1.1rem; padding:0; }

/* -------- LAYOUT -------- */

.page{
  max-width: var(--max);
  margin: 1.25rem auto 2rem;
  padding: 0 1rem 2rem;
}

.topbar{
  position: sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.85rem 1rem;
  background: rgba(10,14,28,.85);
  border-bottom:1px solid rgba(255,255,255,.12);
}

.brand{
  font-weight:800;
  background: linear-gradient(90deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.nav{
  display:flex;
  gap:.55rem;
}

.btn{
  padding:.55rem .85rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-weight:600;
  font-size:.9rem;
  transition:.15s ease;
}
.btn:hover{
  background: rgba(255,255,255,.12);
}

/* -------- CARDS -------- */

.card{
  margin-top:1.1rem;
  padding:1.2rem 1.25rem;
  border-radius:var(--radius);
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow);
}

.card.empty{
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-style:dashed;
  color:var(--muted2);
}

.name{
  font-weight:900;
  margin-bottom:.5rem;
}

.contact{
  display:grid;
  gap:.35rem;
  color:var(--muted);
}

.entry{
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.12);
}
.entry:first-of-type{
  border-top:none;
  padding-top:0;
}

.meta{
  color:var(--muted);
  font-size:.95rem;
}

/* -------- SKILLS -------- */

.pill-list{
  list-style:none;
  padding:0;
  margin:.9rem 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}

.pill-list li{
  padding:.55rem .75rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-weight:600;
  font-size:.92rem;
  box-shadow:var(--shadow2);
}

/* -------- FOOTER -------- */

.footer{
  max-width:var(--max);
  margin:0 auto 1.5rem;
  padding:0 1rem;
  text-align:center;
  color:var(--muted2);
}

/* -------- DESKTOP -------- */

@media (min-width:780px){
  .contact{
    grid-template-columns: repeat(3, max-content);
    gap:.65rem 1.25rem;
  }
}

/* -------- PRINT -------- */

@media print{
  body{
    background:#fff !important;
    color:#111 !important;
  }
  .topbar,.footer{ display:none; }
  .card{
    box-shadow:none;
    background:#fff;
    border:1px solid #ddd;
    border-radius:0;
  }
}
/* --- Skills pills: buttons styled IDENTICALLY to list items --- */

.pill-grid{
  list-style:none;
  padding:0;
  margin:.9rem 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}

/* clone of .pill-list li */
.pill-btn{
  all: unset;              /* remove ALL button defaults */
  box-sizing: border-box;
  cursor: pointer;

  padding:.55rem .75rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);

  font-weight:600;
  font-size:.92rem;
  box-shadow: var(--shadow2);

  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* hover = same as pills (subtle only) */
.pill-btn:hover{
  background: rgba(255,255,255,.06);
}

/* active = gentle highlight, still pill-like */
.pill-btn.is-active{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow2);
}

/* focus for accessibility, invisible otherwise */
.pill-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.25);
  outline-offset: 2px;
}
