:root{
  --maxw: 980px;
  --pad: 18px;

  /* Always-light palette */
  --bg: #fff6f1;          /* subtle peach */
  --panel: rgba(255,255,255,0.78);
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe7ff;      /* light blue-ish border */

  --accent: #2563eb;
  --accent-2: #60a5fa;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body{
  margin: 0;
  padding: 28px var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);

  /* subtle peach + very light blue tint */
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(900px 420px at 85% 0%, rgba(96,165,250,0.10), transparent 55%),
    var(--bg);
}


a{
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover{ text-decoration: underline; }

::selection{
  background: rgba(37,99,235,0.18);
}

/* Header */
.header{
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;

  /* remove the white box */
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.avatar{
  width: 250px;
  height: 250px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.12);
  flex: 0 0 160px;
}

h1{
  margin: 0 0 6px;
  font-size: 2.05rem;
  letter-spacing: -0.02em;
}

.subtitle{ margin: 0 0 6px; color: var(--muted); }
.meta{ margin: 0; color: var(--muted); }

/* Nav */
.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  margin: 14px 0 18px;
}

/* Top section headings list (nav) — faint blue pills */
.nav a{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);     /* faint blue */
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #0f172a;
  text-decoration: none;
}

.nav a:hover{
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.22);
}

/* If you're using the JS that adds .active to the current section */
.nav a.active{
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.30);
}


/* Dividers (prettier than plain hr) */
hr{
  border: none;
  height: 2px; /* slightly bolder */
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.45),
    rgba(96, 165, 250, 0.45),
    transparent
  );
  margin: 22px 0;
}


/* Section headings */
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

h2{
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 6px;
}

h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

h3{
  margin: 14px 0 6px;
  font-size: 1.06rem;
}

.muted{ color: var(--muted); }

.to-top{
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.to-top:hover{
  background: rgba(15,23,42,0.04);
  border-color: var(--border);
}

/* Lists */
ul{ padding-left: 18px; }
.tight{ margin-top: 8px; }
.tight li{ margin: 4px 0; }

/* “item” blocks look nicer with spacing */
.item{
  padding: 12px 12px;
  border-radius: 14px;
}
.item:hover{
  background: rgba(255,255,255,0.55);
}

/* Publication list */
.pubs{ padding-left: 18px; }
.pubs li{
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
}
.pub-title{ font-weight: 650; }
.pub-links{ margin-top: 4px; }

/* Skills cards */
.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.card{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 8px 22px rgba(2,6,23,0.05);
}

/* Columns (Courses) */
.columns{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}


.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  border: 1px solid rgba(37, 99, 235, 0.14);
}

/* Lightbox overlay */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.lightbox.open{ display: flex; }

.lightbox-img{
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  cursor: zoom-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: #fff;
}

.lightbox-close{
  position: fixed;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}


/* Footer */
.footer{
  padding: 10px 0 20px;
  color: var(--muted);
}



/* Responsive */
@media (max-width: 720px){
  .avatar{ width: 120px; height: 120px; flex-basis: 120px; }
  .grid{ grid-template-columns: 1fr; }
  .columns{ grid-template-columns: 1fr; }
}

