/* ===========================================================================
   Naresh Goud Boddu — academic homepage
   Clean academic minimal. No external dependencies; loads instantly.
   =========================================================================== */

:root {
  --ink:        #1a1a1a;   /* primary text          */
  --ink-soft:   #4a4a4a;   /* secondary text        */
  --ink-faint:  #767676;   /* meta / captions       */
  --accent:     #1f4e79;   /* deep scholarly blue   */
  --accent-2:   #2d6da3;   /* lighter hover blue    */
  --line:       #e6e6e6;   /* hairline borders      */
  --bg:         #ffffff;
  --bg-soft:    #f7f8fa;   /* subtle section tint   */
  --badge:      #8a5a00;   /* award gold            */
  --badge-bg:   #fbf3e0;
  --maxw:       760px;
  --radius:     8px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 52px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

h2 {
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 26px;
  font-weight: 700;
}

/* ---------- sticky nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
nav.top .brand { font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
nav.top .brand:hover { text-decoration: none; color: var(--accent); }
nav.top ul { list-style: none; display: flex; gap: 17px; margin: 0 0 0 24px; padding: 0; }
nav.top a.navlink {
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
nav.top a.navlink:hover { color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
header.hero { padding: 54px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: start;
}
.avatar {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; background: var(--bg-soft);
  border: 1px solid var(--line);
}
.hero h1 {
  font-size: 32px; line-height: 1.15; margin: 2px 0 6px;
  letter-spacing: -0.02em; font-weight: 700;
}
.hero .role { font-size: 18px; color: var(--ink); margin: 0 0 2px; font-weight: 600; }
.hero .affil { color: var(--ink-soft); margin: 0 0 16px; }
.hero .affil a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* link row */
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); background: var(--bg);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.links a:hover {
  color: var(--accent); border-color: var(--accent); background: var(--bg-soft);
  text-decoration: none;
}

/* ---------- prose ---------- */
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- news ---------- */
.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid; grid-template-columns: 86px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.news li:last-child { border-bottom: none; }
.news .when { color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: 15px; }
.news .what { font-size: 16px; }

/* ---------- publications ---------- */
.pub-group-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin: 30px 0 14px;
}
.pub-group-title:first-of-type { margin-top: 0; }

.pub { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: none; }
.pub .num {
  color: var(--ink-faint); font-size: 14px; min-width: 22px;
  font-variant-numeric: tabular-nums; padding-top: 2px;
}
.pub .body { flex: 1; }
.pub .ptitle { font-weight: 600; color: var(--ink); line-height: 1.4; }
.pub .authors { color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.pub .authors .me { color: var(--ink); font-weight: 600; }
.pub .venue { color: var(--ink-faint); font-size: 15px; font-style: italic; margin-top: 1px; }

.pub .meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.plink {
  font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 5px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--accent);
}
.plink:hover { background: #eef3f8; text-decoration: none; border-color: var(--accent-2); }

.award {
  font-size: 12.5px; font-weight: 700; color: var(--badge);
  background: var(--badge-bg); border: 1px solid #f0e2c0;
  padding: 2px 9px; border-radius: 5px; letter-spacing: 0.01em;
}

/* ---------- sub-heading within a section ---------- */
.subhead {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin: 26px 0 13px;
}

/* ---------- two-column compact lists (teaching/service) ---------- */
.stack { display: grid; gap: 18px; }
.stack .item .it-title { font-weight: 600; color: var(--ink); }
.stack .item .it-desc { color: var(--ink-soft); font-size: 15.5px; margin-top: 2px; }

/* ---------- highlighted tag pills (program committees) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 2px 0 6px; }
.tag {
  display: inline-block; font-size: 14.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  color: var(--accent); background: var(--bg-soft);
  border: 1px solid #cdddec;
}

/* ---------- contact ---------- */
.contact-rows { display: grid; gap: 10px; }
.contact-rows .row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.contact-rows .k { color: var(--ink-faint); font-size: 15px; }
.contact-rows .v { color: var(--ink-soft); }

/* ---------- personal / photo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.gallery a {
  display: block; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--bg-soft);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery a:hover img { transform: scale(1.05); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 28px 0 48px;
  color: var(--ink-faint); font-size: 14px; text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 620px) {
  body { font-size: 16px; }
  nav.top ul { gap: 15px; }
  nav.top a.navlink { font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .avatar { width: 116px; height: 116px; }
  .hero h1 { font-size: 27px; }
  .news li { grid-template-columns: 64px 1fr; gap: 10px; }
  .contact-rows .row { grid-template-columns: 88px 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 560px) {
  /* name lives in the hero anyway — drop it from the bar so links never collide */
  nav.top .brand { display: none; }
  nav.top .wrap {
    justify-content: center; height: auto;
    padding-top: 9px; padding-bottom: 9px;
  }
  nav.top ul { flex-wrap: wrap; justify-content: center; gap: 9px 16px; }
}
