/* SBMI Lab — Zadegan Lab, JSU NN & NC A&T — 2026 redesign */

:root {
  --navy: #0a1a33;
  --navy-2: #0f2547;
  --ink: #12263f;
  --cyan: #03c4eb;
  --cyan-dark: #0291af;
  --gold: #f2b705;
  --bg: #f5f8fc;
  --card: #ffffff;
  --muted: #5a6b82;
  --line: #e3eaf3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 26, 51, .08);
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 26, 51, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 3px; }
.brand-text { line-height: 1.2; }
.brand-text b { font-size: 15px; letter-spacing: .3px; display: block; color: #fff; }
.brand-text span { font-size: 11.5px; color: #9db4d0; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: #cdd9e8; font-size: 14px; font-weight: 500;
  padding: 8px 13px; border-radius: 8px; transition: .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.09); text-decoration: none; }
.nav-links a.active { color: var(--cyan); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(3,196,235,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(242,183,5,.10), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #123058 100%);
  color: #fff;
  overflow: hidden;
}
/* hero slideshow backgrounds (from the main nanodetails.com site) */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero-bg .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  animation: heroSlide 16s infinite;
}
.hero-bg .slide:nth-child(2) { animation-delay: 8s; }
@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.06); }
  6%   { opacity: 1; }
  50%  { opacity: 1; transform: scale(1); }
  56%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,26,51,.88) 0%, rgba(15,37,71,.78) 55%, rgba(18,48,88,.85) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg .slide { animation: none; opacity: 1; transform: none; }
  .hero-bg .slide:nth-child(2) { display: none; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 96px 0 88px;
  max-width: 860px;
}
.hero .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(3,196,235,.4); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 22px; background: rgba(3,196,235,.08);
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.15; font-weight: 800; letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--cyan); }
.hero p.sub {
  margin-top: 20px; font-size: clamp(16px, 2vw, 19px); color: #b9c9de; max-width: 720px;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15px; transition: .18s; border: 1px solid transparent;
}
.btn-primary { background: var(--cyan); color: #04222b; }
.btn-primary:hover { background: #2ed3f2; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.hero-note {
  margin-top: 26px; display: inline-flex; gap: 10px; align-items: center;
  font-size: 13.5px; color: #9db4d0;
}
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc7f; box-shadow: 0 0 0 4px rgba(61,220,127,.15); }

/* ---------- stats ---------- */
.stats { margin-top: -44px; position: relative; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px; text-align: center; border: 1px solid var(--line);
}
.stat b { font-size: 34px; font-weight: 800; color: var(--navy); display: block; line-height: 1.1; }
.stat b small { font-size: 20px; font-weight: 700; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--navy); font-weight: 800; letter-spacing: -.3px; }
.sec-head .rule { width: 64px; height: 4px; background: var(--cyan); border-radius: 2px; margin: 16px auto; }
.sec-head p { color: var(--muted); font-size: 16.5px; }

/* cards grid (research areas) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(10,26,51,.13); }
.card .icon {
  width: 62px; height: 62px; border-radius: 14px; object-fit: contain;
  background: #eef7fb; padding: 8px; margin-bottom: 18px; border: 1px solid #d8ecf3;
}
.card h3 { font-size: 18.5px; color: var(--navy); margin-bottom: 10px; font-weight: 700; }
.card p { font-size: 14.8px; color: var(--muted); flex: 1; }

/* research focus rows */
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.focus + .focus { margin-top: 64px; }
.focus img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.focus h3 { font-size: 24px; color: var(--navy); margin-bottom: 14px; font-weight: 800; }
.focus p { color: #3d4f68; font-size: 15.8px; margin-bottom: 12px; }
.focus .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cyan-dark); background: #e5f7fb;
  border: 1px solid #c8ecf5; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.focus.flip .f-img { order: 2; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.person {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px 24px; text-align: center; box-shadow: var(--shadow); transition: .2s;
  position: relative;
}
.person:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(10,26,51,.13); }
.person img {
  width: 118px; height: 118px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 4px solid #e6f4f9; box-shadow: 0 4px 14px rgba(10,26,51,.12);
}
.person h4 { font-size: 17px; color: var(--navy); font-weight: 700; }
.person .role { font-size: 12.5px; color: var(--cyan-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin: 4px 0 6px; }
.person .affil { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.person .links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.person .links a {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: #eef3fa; color: #33547c; border: 1px solid #dfe8f3; transition: .15s;
}
.person .links a:hover { background: var(--navy); color: #fff; text-decoration: none; }
.person .email { display: block; font-size: 12.5px; color: var(--muted); word-break: break-all; }

.badge-alum {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  color: #8a6100; background: #fdf3d7; border: 1px solid #f3dfa2;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}

/* alumni lists */
.alum-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 40px; }
.alum-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.alum-box h3 { color: var(--navy); font-size: 17px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.alum-box h3 .count {
  font-size: 12px; background: #e5f7fb; color: var(--cyan-dark);
  border-radius: 999px; padding: 2px 10px; border: 1px solid #c8ecf5;
}
.alum-box ul { list-style: none; }
.alum-box li {
  padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: #33465f;
  display: flex; justify-content: space-between; gap: 10px;
}
.alum-box li:last-child { border-bottom: 0; }
.alum-box li .where { color: var(--muted); font-size: 13px; text-align: right; }
.alum-box li b { color: var(--ink); font-weight: 600; }
.mentor-note {
  margin-top: 26px; background: #eef6ff; border: 1px solid #d5e6fa; border-left: 4px solid #2f7fd1;
  border-radius: 10px; padding: 20px 24px; font-size: 14.8px; color: #2c3e57;
}

/* publications */
.pub-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pub-filter {
  font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: #43597a; transition: .15s;
}
.pub-filter.active, .pub-filter:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pub-year { font-size: 20px; font-weight: 800; color: var(--navy); margin: 34px 0 14px; display: flex; align-items: center; gap: 14px; }
.pub-year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pub {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cyan);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 14px; font-size: 14.8px; color: #33465f;
  transition: .15s;
}
.pub:hover { box-shadow: var(--shadow); }
.pub b { color: var(--ink); }
.pub .venue { color: var(--cyan-dark); font-weight: 600; }
.pub .note { font-size: 12.5px; color: var(--muted); font-style: italic; }
.scholar-cta { text-align: center; margin-top: 36px; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(10,26,51,.13); }
.news-card .thumb { height: 170px; background: #dfe9f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb .ph { font-size: 40px; opacity: .5; }
.news-card .body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card .meta { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 8px; }
.news-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.news-card p { font-size: 14px; color: var(--muted); flex: 1; }
.news-card .more { margin-top: 14px; font-size: 13.5px; font-weight: 700; }

/* join / cta band */
.cta-band {
  background: linear-gradient(140deg, var(--navy) 0%, #123a66 100%);
  border-radius: 18px; color: #fff; padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h3 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; }
.cta-band p { color: #b9c9de; margin-top: 8px; font-size: 15.5px; max-width: 620px; }
.cta-band .btn { background: var(--gold); color: #3d2d00; border: 0; }
.cta-band .btn:hover { background: #ffc61a; }

/* materials & journal club tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tbl th { background: var(--navy); color: #fff; text-align: left; font-size: 13.5px; letter-spacing: .5px; padding: 14px 18px; }
.tbl td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: #33465f; vertical-align: top; }
.tbl tr:hover td { background: #f4f9ff; }
.tbl td b { color: var(--navy); }
.note-box { background: #fffbeb; border: 1px solid #f5e3a8; border-radius: 10px; padding: 16px 20px; font-size: 14px; color: #6b5510; margin-bottom: 24px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 16px; }
.contact-card p { font-size: 14.5px; color: var(--muted); }

/* footer */
.site-footer { background: #071120; color: #8fa3bd; padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h5 { color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer a { color: #8fa3bd; }
.site-footer a:hover { color: var(--cyan); }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 4px; }
.foot-brand p { font-size: 13.5px; max-width: 380px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .focus, .focus.flip { grid-template-columns: 1fr; }
  .focus.flip .f-img { order: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 12px 18px 18px; gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
}