/* === ROOT VARIABLES === */
/* Light Backgroud */
:root{
  --fg:#111;             /* text color */
  --bg:#ffffff;          /* background */
  --muted:rgba(255,255,255,.7);
  --hover:rgba(255,255,255,.15); /* low-opacity white on hover */
  --navH:78px;
  --navH-shrink:54px;
}

/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* === GLOBAL FONT SETTINGS === */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6, .brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-top: 0;
}

/* === GENERAL LAYOUT === */
.container {
  max-width: 900px;
  margin: auto;
  padding: 24px;
}

header {
  padding-top: 40px;
}

h1 {
  margin: 0 0 6px 0;
  font-size: 34px;
}

.tagline {
  color: var(--muted);
  margin: 0 0 14px;
}

/* === NAVIGATION === */
nav a {
  margin-right: 14px;
  text-decoration: none;
  color: var(--fg);
  transition: color 0.25s ease;
}
nav a:hover {
  color: var(--accent);
}

/* === SECTION HEADINGS === */
h2 {
  margin-top: 32px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

/* === PUBLICATION CARDS === */
.pub {
  display: grid;
  grid-template-columns: 180px 1fr;  /* wider column for bigger image */
  gap: 16px;
  align-items: start;
  margin: 18px 0;
  margin-bottom: 0;
  padding-bottom: 8px; /* tighten only this section’s bottom */
}

.pub img {
  width: 180px;       /* increase width */
  height: 120px;      /* increase height */
  background: #eee;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.5s ease;  /* subtle hover zoom */
}

.pub img:hover {
  transform: scale(1.03);
}

/* === BUTTONS === */
.btn {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 3px 8px;
  margin-right: 8px;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.25s ease-in-out;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === SMALL TEXT === */
.small {
  color: var(--muted);
  font-size: 13px;
}

*{box-sizing:border-box}
html,body{height:100%}
/* === GLOBAL FONT SETTINGS === */
/* body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial} */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin:0;
  background:var(--bg);
  color: #111;
}

/* Optional – different font for headings */
h1, h2, h3, h4, h5, h6, .brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}


/* NAV */
/* --- NAV BAR --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 85px;
  background: transparent;
  transition: height .25s ease, background-color .25s ease, box-shadow .25s ease;
}

/* turns solid black once user scrolls past the hero */
.nav.solid {
  /* height: 75px; */
  background: rgba(0, 0, 0, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  transition: background-color .25s ease, box-shadow .25s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
}

.nav.solid .nav-inner {
  padding: 14px 20px; /* give breathing room inside the shrunken bar */
  align-items: center; /* ensure it stays vertically centered */
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 36px;
  line-height: 1;
  position: relative;
  top: -4px;              /* lift text up slightly */
  padding-bottom: 0;      /* remove downward push */
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav.solid .brand {
  top: -2px;               /* reset offset from transparent state */
  transform: scale(.92) translateY(-1px); /* keep centered after scaling */
  /* transform: translateY(0) scale(.92); */
  opacity: .9;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  letter-spacing: .3px;
}

.menu > ul > li {
  position: relative;
}

:root {
  --hover: rgba(255, 255, 255, .15);
}

.menu > ul > li > a:hover {
  background: var(--hover);
}

/* --- HERO TEXT (middle sentence) --- */
.hero-title {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

.has-sub .sub{
  position:absolute;top:100%;left:0;min-width:220px;
  background:rgba(0,0,0,.85);backdrop-filter:saturate(120%) blur(2px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:6px;padding:8px 6px;display:none;
}
.has-sub:hover .sub{display:block}
.sub li a{padding:10px 12px;border-radius:4px}
.sub li a:hover{background:var(--hover)}

/* mobile hamburger */
.burger{display:none;background:none;border:0;padding:6px;cursor:pointer}
.burger span{display:block;width:24px;height:2px;background:#fff;margin:5px 0;transition:.2s}
@media (max-width:900px){
  .menu{display:none;position:absolute;top:var(--navH);left:0;right:0;background:rgba(0,0,0,.96);padding:10px 12px}
  .nav.shrink .menu{top:var(--navH-shrink)}
  .menu.open{display:block}
  .menu ul{flex-direction:column}
  .has-sub .sub{position:static;border:none;background:transparent;padding:0;display:block}
  .burger{display:block}
}

/* HERO */
.hero{position:relative;height:100vh;min-height:500px;overflow:hidden}
.hero-video{
  position:absolute;top:50%;left:50%;min-width:100%;min-height:100%;
  transform:translate(-50%,-50%);object-fit:cover;filter:contrast(1.05) saturate(1.05);
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
/* make the hero sentence white */
.hero-title{
  color:#fff;                 /* was inheriting dark text */
  text-shadow:0 2px 16px rgba(0,0,0,.45); /* readability */
}
.hero-center{
  position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:0 20px;
}
.hero-title{font-weight:700;font-size: clamp(32px, 6vw, 88px);letter-spacing:.02em;margin:0}
.scroll-hint{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);text-decoration:none;color:var(--muted);font-size:28px}

/* CONTENT */
/* Dark Backgroud */
/* .section{max-width:1000px;margin:0 auto;padding:80px 24px}
.section h2{margin:0 0 8px 0;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:6px} */

/* Light Background */
.section{
  max-width:1000px;
  margin:0 auto;
  padding:80px 24px;
  background:var(--bg);
  color:var(--fg);
  font-family: 'Inter', sans-serif; 
}

.section h2{
  margin: 0 0 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* ensure in-page links (#about, #news) aren't hidden under the fixed nav */
.section { scroll-margin-top: var(--navH-shrink); }

/* just in case there was negative stacking: keep hero above, content below */
.hero { position: relative; z-index: 1; }
.section { position: relative; z-index: 0; }

/* ===== SELECTED PUBLICATIONS ===== */
.pub-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px; /* less space between each item */
  margin-bottom: 0;
  padding-bottom: 8px; /* tighten only this section’s bottom */
}

.pub {
  display: grid;
  grid-template-columns: 220px 1fr; /* larger thumbnail column */
  gap: 24px;
  align-items: start;
  line-height: 1.5;
  margin-left: -20px; /* shift layout slightly left */
}

/* === FULL-RATIO THUMBNAILS === */
.pub-thumb {
  width: 100%;
  max-width: 220px;
  height: auto;           /* keep original ratio */
  object-fit: contain;    /* show the full image */
  background: #eee;       /* remove gray crop box */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pub-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.pub-title {
  margin: 0 0 6px 0;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
}

.pub-authors {
  margin: 0 0 6px 0;
  color: #333;
}
.pub-authors a {
  color: #2b66c3;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.35);
}

.pub-venue {
  margin: 0 0 10px 0;
  color: #333;
  font-style: italic;
}
.pub-venue .tag {
  font-style: normal;
  font-weight: 700;
  color: #c43d00;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px; /* Adds spacing before abstract */
}

/* Mini Buttons */
.btn-mini {
  font-size: 0.86rem;
  padding: 6px 10px;
  border: 1px solid #111;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  background: #fff;
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}
.btn-mini:hover {
  border-color: #b30000;
  color: #b30000;
}

/* Make label-based buttons look identical */
label.btn-mini {
  display: inline-block;
  cursor: pointer;
}

/* === TOGGLE ABSTRACT EFFECT === */
.abs-checkbox {
  display: none;
}

.abstract-box {
  display: none;
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px dashed #999;
  border-radius: 6px;
  background-color: #fafafa;
  line-height: 1.5;
  color: #333;
  animation: fadeIn 0.25s ease-in-out;
}

/* Show when ABS clicked */
.abs-checkbox:checked + .abstract-box {
  display: block;
}

/* Smooth fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === PUBLICATIONS SECTION === */
.pubs-section {
  max-width: 1100px;
  /* margin: 1.5rem auto 0; */
  margin: 0 auto; 
  padding-top: 0;
  margin-bottom: 0;
  padding-bottom: 8px; /* tighten only this section’s bottom */
}

.pubs-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .pub {
    grid-template-columns: 100px 1fr;
  }
  .pub-thumb {
    width: 100px;
    height: 72px;
  }
}


/* === ABOUT SECTION LAYOUT === */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  line-height: 1.6;
}

/* === ABOUT TEXT === */
.about-text {
  flex: 1 1 0;
  min-width: 320px;
  font-family: 'Inter', sans-serif;
  color: #111;
}

.about-text h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  /* padding-bottom: 0.5rem; */
  font-family: 'Inter', sans-serif;
}

/* === ABOUT PHOTO === */
.about-photo {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column; /* stack image + icons vertically */
  align-items: center;    /* center horizontally */
  justify-content: flex-start;
  margin-left: -10px;
  font-family: 'Inter', sans-serif;
}

/* Force image size & style */
.about-photo img {
  width: auto !important;
  max-width: 300px !important;
  height: auto !important;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  aspect-ratio: 2 / 3;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.25s ease-in-out;
}

/* === RESPONSIVE LAYOUT === */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .about-photo {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    padding-top: 0;
    max-width: 1100px;
    margin-left: 0;
    margin-right: auto;
  }

  .about-photo img {
    max-width: 240px !important;
  }
}

/* === REDUCE SPACE BETWEEN ABOUT & PUBLICATIONS === */
.about-section {
  margin-bottom: 0;
  padding-bottom: 8px; /* tighten only this section’s bottom */
}

/* Tighten spacing below About photo & Publications */
.section + .pubs-section {
  margin-top: 0;
  padding-top: 8px; /* tighten the top padding of publications */
}

/* === CONTACT ICONS BELOW PHOTO === */
.contact-icons {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.contact-icons a {
  color: #7b1c1c; /* deep academic red */
  font-size: 40px;
  transition: all 0.3s ease;
  text-decoration: none !important; /* ensure NO underline for any link */
}

.contact-icons a:hover {
  color: #b30000;
  transform: scale(1.15) translateY(-3px);
}


/* --- CV text styling --- */
.cv-text {
  font-family: 'Inter', sans-serif;
  font-size: 42px !important;           /* increased to match icon height */
  font-weight: 800;          /* bold for equal visual weight */
  color: #7b1c1c;
  line-height: 1;
  text-decoration: none !important; /* double protection */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important; /* double protection */
  border: none !important;
  outline: none !important;
  background: none;
  transform: translateY(2px); /* visually aligns with circular icons */
}

.cv-text:hover {
  color: #b30000;
  transform: scale(1.15) translateY(-1px); /* slight lift */
}

/* === ABOUT INFO (TEXT BELOW PHOTO) === */
.about-info {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  color: #111;
}

.about-info .name {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.about-info .subtitle {
  font-size: 1rem;
  color: #777;
  margin: 2px 0;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

/* === SUPERSCRIPTS === */
sup {
  font-size: 0.7em;
  vertical-align: super;
  color: #555;
  margin-left: 1px;
}

/* Add this to your main style.css */
#news {
  margin-top: 2em;
}

#news h2 {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 1.2em;
}

.news-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 2em;
  margin-bottom: 1.8em;
  align-items: start;
}

.news-date {
  font-weight: 700;
  color: #222;
}

.news-content {
  color: #333;
  line-height: 1.6;
}

.news-content a {
  color: #a33;
  text-decoration: none;
}

.news-content a:hover {
  text-decoration: underline;
}

.tagline {
  margin-top: -6px;
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-style: italic;
  color: #555; /* light black */
}
