:root {
  --bg-img: url('images/banner.jpg');
  --ink: #eef3f6;
  --ink-muted: rgba(238,243,246,.78);
  --panel: rgba(24, 36, 24, .70);
  --panel-strong: rgba(15, 17, 16, .85);
  --band: rgba(0,0,0,.25);
  --border: rgba(255,255,255,.14);
  --accent: #b5ffb5;
}

html, body { height: 100%; margin: 0; font-family: Inter, sans-serif; color: var(--ink); background: var(--bg-img) center/cover fixed no-repeat #0c0f0e; scroll-behavior: smooth; }
html { scroll-padding-top: 0; }
.snap-y { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.section { min-height: 100vh; position: relative; display: grid; place-items: center; scroll-snap-align: start; scroll-snap-stop: always; }

.hero { background: linear-gradient(to bottom, rgba(10,18,10,.65), rgba(10,18,10,.65)), var(--bg-img); background-size: cover; background-position: center 40%; padding: 1rem 0; display: flex; align-items: center; justify-content: center; }
.hero-inner.two-col { display: grid; grid-template-columns: 300px minmax(600px, 1fr); gap: 1.6rem; align-items: center; justify-content: center; width: min(1200px, 95vw); }

.portrait-oval { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(181,255,181,.35); box-shadow: 0 10px 28px rgba(0,0,0,.45); }

.hero-panel { background: var(--panel-strong); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 2.2rem; max-width: 900px; box-shadow: 0 12px 40px rgba(0,0,0,.4); text-align: center; }

.hero-title { font-family: "Playfair Display", serif; font-size: clamp(2.5rem, 4.2vw, 3.9rem); line-height: 1.1; margin-bottom: 0.4rem; color: #fff; }
.hero-sub { margin-top: 0.2rem; margin-bottom: 0.5rem; font-size: 1.1rem; }
.hero-blurb { font-size: 1.1rem; line-height: 1.6; color: var(--ink-muted); }
.hero-blurb a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hero-blurb a:hover { color: #eaffea; }

.hero-actions.inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: .6rem; border: 1px solid var(--border); font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.22); }
.btn-outline { color: var(--ink); }
.btn-outline:hover { background: rgba(255,255,255,.12); }


.section:not(.hero)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,18,10,.65), rgba(10,18,10,.65)); }
.section > * { position: relative; z-index: 1; }

.section-title { font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 1.8vw, 2rem); font-weight: 900; color: #fff; margin: 0 0 .3rem; }
.section-sub { font-size: 1.1rem; color: var(--ink-muted); margin-bottom: 1rem; line-height: 1.6; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9rem; }
.card { grid-column: span 12; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.35); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
@media (min-width: 700px){ .card{ grid-column: span 6; } }
@media (min-width: 1100px){ .card{ grid-column: span 4; } }

/* Projects grid */
.projects-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1rem; 
  max-height: 60vh; 
  overflow-y: auto; 
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
@media (min-width: 700px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* Custom scrollbar for projects */
.projects-grid::-webkit-scrollbar {
  width: 8px;
}
.projects-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}
.projects-grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
.projects-grid::-webkit-scrollbar-thumb:hover {
  background: #eaffea;
}

.project-date { font-size: 0.9rem; color: var(--ink-muted); margin: 0.5rem 0 0; font-style: italic; }
.card-body h3 a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.card-body h3 a:hover { color: var(--accent); }

.cover { aspect-ratio: 16/9; background-image: var(--img); background-size: cover; }
.card-body { padding: .85rem .9rem 1rem; }
.card-body h3 { margin: .3rem 0 .4rem; font-size: 1.05rem; }
.card-body p { margin: 0 0 .5rem; font-size: .975rem; color: var(--ink-muted); }
.tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .65rem; }
.tags span { padding: .2rem .45rem; border-radius: .5rem; background: rgba(255,255,255,.12); border: 1px solid var(--border); font-size: .8rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.white { background: var(--panel); }

/* Publications grid */
.pub-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 700px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }

.pub-content { padding: 0.8rem 1rem; }
.pub-title { font-family: "Playfair Display", serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0.4rem 0 0.6rem; line-height: 1.6; }
.pub-title a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pub-title a:hover { color: var(--accent); }
.pub-authors { font-size: 1.1rem; color: var(--ink-muted); margin: 0 0 0.4rem; line-height: 1.6; }
.pub-venue { font-size: 1.1rem; color: var(--ink-muted); margin: 0; line-height: 1.6; }
.pub-venue a { color: var(--accent); text-decoration: underline; }
.pub-venue a:hover { color: #eaffea; }

/* Conferences grid */
.conf-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 700px) { .conf-grid { grid-template-columns: repeat(2, 1fr); } }

.conf-content { padding: 1.2rem; }
.conf-title { font-family: "Playfair Display", serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 0.6rem; line-height: 1.6; }
.conf-location { font-size: 1.1rem; color: var(--ink-muted); margin: 0 0 0.4rem; line-height: 1.6; }
.conf-date { font-size: 1.1rem; color: var(--ink-muted); margin: 0 0 0.6rem; line-height: 1.6; font-weight: 600; }
.conf-details { margin-top: 0.8rem; }
.conf-details p { font-size: 1.1rem; color: var(--ink-muted); margin: 0; line-height: 1.6; }
.conf-details a { color: var(--accent); text-decoration: underline; }
.conf-details a:hover { color: #eaffea; }

.footer { min-height: 20vh; display: grid; place-items: center; background: rgba(0,0,0,.55); border-top: 1px solid var(--border); }
.footer p { color: var(--ink-muted); margin: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-inner.two-col { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .hero-col-right { justify-items: center; }
  .hero-actions.inline { justify-content: center; }
  .portrait-oval { width: 200px; height: 200px; }
}

/* === HERO COMPACT OVERRIDE === */

/* Make the portrait bigger but keep it circular */
.portrait-oval {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(181,255,181,.35);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* Make the panel bigger */
.hero-panel {
  max-width: 800px;
  padding: 1.8rem 2rem;
  text-align: center;
}

/* Larger text sizes inside the panel */
.hero-title {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  margin-bottom: 0.3rem;
}

.hero-sub {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.hero-blurb {
  font-size: 1.05rem;
  line-height: 1.55;
}