:root{
    --bg-dark: #083c34;
    --text-light: #e5f4f1;
    --muted: #b7dad4;
    --accent: #9ee7da;
}

*{ box-sizing: border-box; }

html, body{
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: #0a2f2a;
    color: var(--text-light);
}

.topbar{
    background: #1f2328;
    padding: 14px 0;
}

.nav{
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 36px;
}

.nav a{
    color: #eee;
    text-decoration: none;
    opacity: 0.85;
}

.nav a.active{
    opacity: 1;
    text-decoration: underline;
}

.hero{
    background:
	linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
	url("images/bg.svg") center/cover no-repeat;
    padding: 60px 20px 50px;
}

.hero-inner{
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

.profile-card{
    text-align: center;
}

.avatar{
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25);
    margin-bottom: 14px;
    
    /* tweak this to center your face */
    object-position: 50% 0%;
}

.title{
    color: var(--accent);
    font-weight: 600;
}

.affil{
    color: var(--muted);
    margin-bottom: 10px;
}

.icons{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.icon-btn{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.9;
    text-decoration: none;
    transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.icon-btn svg{
    width: 18px;
    height: 18px;
}

.icon-btn:hover{
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.06);
    opacity: 1;
    transform: translateY(-1px);
}

.content p{
    max-width: 700px;
    line-height: 1.6;
}

.btn{
    display: inline-block;
    margin: 12px 0 24px;
    padding: 10px 18px;
    background: #1f7a6f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.two-col{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 10px;
}

.edu{
    list-style: none;
    padding-left: 0;
}

.footer{
    background: #062a25;
    text-align: center;
    padding: 18px;
    color: #9fcfc7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px){
    .hero-inner{
	grid-template-columns: 1fr;
    }
    
    .two-col{
	grid-template-columns: 1fr;
	gap: 30px;
    }
    
    .profile-card{
	text-align: left;
    }
}

/* ---------- Lab page cards ---------- */
.lab-inner{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.lab-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px);  /* fixed card width */
  justify-content: center;                         /* center the row */
  gap: 28px;
  margin: 22px auto 0;
}


.lab-card{
  background: #ffffff;
  color: #1f2328;
  border-radius: 14px;
  padding: 18px 16px 22px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    width: 260px;            /* matches grid column */
}

.lab-card h3{
  margin: 6px 0 10px;
}

.lab-avatar{
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 45%;
  display: block;
  margin: 10px auto 12px;
  border: 2px solid rgba(0,0,0,0.08);
  background: #f2f2f2;
}

.lab-role{
  font-style: italic;
  margin-bottom: 6px;
}

.lab-card a{
  color: #1f7a6f;
  text-decoration: none;
  font-weight: 600;
}

.lab-card a:hover{
  text-decoration: underline;
}

/* ---------- Books page ---------- */
.books-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.book{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  margin: 28px auto 36px;
}

/* Books: uniform cover sizing */
.book-cover{
  width: 220px;
  height: 320px;          /* good fit for both covers you shared */
  border-radius: 10px;
  object-fit: contain;   /* shows full cover (no cropping) */
  background: #0f3a34;   /* subtle frame behind shorter cover */
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.book-meta h2{
  margin: 0 0 6px;
}

.book-authors{
  color: var(--muted);
  margin-bottom: 10px;
}

.book-desc{
  max-width: 720px;
  line-height: 1.65;
}

.book-links{
  margin-top: 12px;
}

.book-links a{
  color: #9ee7da;
  text-decoration: none;
  font-weight: 600;
}

.book-links a:hover{
  text-decoration: underline;
}

/* Subtle hover lift for clickable covers (desktop) */
.book-cover{
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.book a:hover .book-cover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.45);
}

/* Responsive */
@media (max-width: 900px){
  .book{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .book-cover{
    width: 180px;
    height: 260px;   /* optional, keeps proportions nice on mobile */
  }

  .book-meta{
    text-align: left;
  }
}

/* ---------- Books page ---------- */
.books-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.book{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  margin: 28px auto 36px;
}

/* Books: uniform cover sizing + hover */
.book-cover{
  width: 220px;
  height: 320px;          /* good fit for both covers you shared */
  border-radius: 10px;
  object-fit: contain;   /* shows full cover (no cropping) */
  background: #0f3a34;   /* subtle frame behind shorter cover */
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.book-meta h2{
  margin: 0 0 6px;
}

.book-authors{
  color: var(--muted);
  margin-bottom: 10px;
}

.book-desc{
  max-width: 720px;
  line-height: 1.65;
}

/* Links under description */
.book-links{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;              /* space between links */
}

.book-links a{
  color: #9ee7da;
  text-decoration: none;
  font-weight: 600;
}

.book-links a:hover{
  text-decoration: underline;
}

/* Hover lift for clickable covers */
.book a:hover .book-cover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.45);
}

/* Responsive */
@media (max-width: 900px){
  .book{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .book-cover{
    width: 180px;
    height: 260px;   /* keeps proportions nice on mobile */
  }

  .book-meta{
    text-align: left;
  }
}

/* Education list with icon bullets */
ul.edu{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ul.edu li{
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

ul.edu li::before{
  content: "\f19d";              /* graduation-cap icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;              /* required for solid icons */
  position: absolute;
  left: 0;
  top: 0.2em;
  color: #9ee7da;                /* match your accent color */
  opacity: 0.9;
}
