/* ===========================
   Base + tokens
=========================== */
:root{
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #0f172a;

  --brand: #0ea5e9;
  --brand-600:#0284c7;

  --hero-bg:#151f28;     /* dark header */
  --hero-ink:#e6eef6;

  --chip:#e6f0fa;
  --chip-ink:#0b2a46;

  --border:#e5e7eb;
  --shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
  --shadow-hover: 0 20px 40px rgba(2, 6, 23, 0.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}

/* Headings with stronger visual hierarchy */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 18px;
  line-height: 1.3;
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  margin: 0 0 12px;
  line-height: 1.4;
}

.container{
  width:min(1100px, 92vw);
  margin-inline:auto;
}

/* ===========================
   Top Navigation (4 sections)
=========================== */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
}

.brand{
  font-weight:800;
  letter-spacing:.5px;
  color:var(--ink);
  text-decoration:none;
  padding:6px 10px;
  border-radius:6px;
  background:#eef3f8;
}

.nav-toggle{
  display:none;
  margin-left:auto;
  font-size:20px;
  background:none;
  border:none;
  cursor:pointer;
}

.nav-links{
  list-style:none;
  display:flex;
  gap:10px;
  margin:0;
  padding:0;
  margin-inline:auto;        /* centers the group */
}

.nav-links a{
  display:block;
  text-decoration:none;
  color:var(--ink);
  font-weight:600;
  padding:10px 14px;
  border-radius:8px;
  transition: background .15s ease, transform .06s ease;
}
.nav-links a:hover{ background:#e4f0fb; }
.nav-links a:active{ transform:translateY(1px); }
.nav-links a.active{
  background:#cfe1f0;
  box-shadow: inset 0 0 0 1px #b9cfde;
}

/* Mobile: turn links into a dropdown opened by JS with .open on header */
@media (max-width:720px){
  .nav-toggle{ display:block; }
  .nav-links{
    display:none;
    flex-direction:column;
    width:100%;
    margin:8px 0 0;
  }
  .site-header.open .nav-links{ display:flex; }
  .brand{ order:-1; }
}

/* ===========================
   Hero
=========================== */

.hero{
  background:var(--hero-bg);
  color:var(--hero-ink);
  text-align:center;
  padding:56px 0 28px;
}

.hero-inner{ max-width:900px; margin-inline:auto; }

.avatar{
  width:150px;
  height:150px;
  border-radius:50%;
  object-fit:cover;
  object-position: 50% 22%; /* show full head, minimal chest */
  background:#fff;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.25),
    0 0 0 8px rgba(163,184,204,.35),
    0 16px 32px rgba(0,0,0,.35);
  outline:3px solid rgba(91,122,149,.35);
  margin-bottom:14px;
}

.hero h1{
  margin:6px 0 12px;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height:1.2;
  letter-spacing:.2px;
  color: var(--hero-ink);
}

.subtitle{
  margin:0 0 14px;
  font-size: clamp(16px, 2.2vw, 20px);
  opacity:.95;
}

.meta-row{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  font-weight:600;
}

.visit-chip{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:var(--hero-ink);
}

.meta-row a{
  color:var(--hero-ink);
  text-decoration:none;
  opacity:.95;
}
.meta-row a:hover{ text-decoration:underline; }
.divider,.dot{ opacity:.6; }

/* ===========================
   Filters + Cards
=========================== */

main.container{ padding:26px 0 60px; }

.filter-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin: 6px 0 18px;
}
.filter-bar strong{ font-weight:800; margin-right:2px; }

.chip-row{ display:flex; flex-wrap:wrap; gap:10px; }

.chip{
  appearance:none;
  border:0;
  background:var(--chip);
  color:var(--chip-ink);
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}
.chip:hover{ background:#d9e9fb; }
.chip.active{ background:#bdd7f3; }

.card{
  background:var(--card);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:18px 18px 14px;
  margin:0 0 16px;
  transition: box-shadow 0.2s ease;
}
.card:hover{
  box-shadow:var(--shadow-hover);
}
.card h3{ margin:0 0 12px; }
.card ul{ margin:10px 0 4px 18px; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* links in content */
a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ===========================
   Focus states (keyboard nav)
=========================== */
a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===========================
   Footer
=========================== */

.footer{
  padding:28px 0 60px;
}
.footer h4{ margin:0 0 8px; }
.footer .certs{ margin:6px 0 0 18px; }
.mt-2{ margin-top:22px; }
.copy{ margin-top:26px; color:#475569; font-size:.95rem; }

/* ===========================
   Noscript
=========================== */
.noscript{
  background:#fff3cd;
  color:#5d5100;
  padding:10px 12px;
  text-align:center;
  border-top:1px solid #f0e0a0;
  border-bottom:1px solid #f0e0a0;
}

/* ===========================
   Animations
=========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* Skills list styling */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-list li {
  background: var(--chip);
  color: var(--chip-ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

