/* ---------- BASE THEME VARIABLES ---------- */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #0077ff;
  --card-bg: #f5f7fa;
  --radius: 14px;
  --max-width: 1100px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg-imag: url('images/overview.png');
}

/* Dark mode */
/*  @media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1724;
    --text: #e6eef6;
    --muted: #9aa6b2;
    --accent: #6ee7b7;
    --card-bg: rgba(255,255,255,0.03);
  }
}
*/
/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
   font-size: 100%;
}

/* ---------- LINKS ---------- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  opacity: 0.8;
}

/* ---------- IMAGES ---------- */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.name {
  font-weight: 700;
  font-size: 1.25rem;
}
.subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}
nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
}
nav a:hover {
  background: rgba(0,0,0,0.05);
}

/* ---------- MAIN ---------- */
main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1.5rem;
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: start;
}

.portrait {
  width: clamp(250px, 25vw, 400px);
  border-radius: 12px;
}

.intro h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.intro p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  background: rgba(0,0,0,0.05);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

.introduction {
  margin-top:1em;
  margin-bottom: 1em;
  font-size: 1rem;
  color: var(--muted);
  padding-right:15%;
  padding-left: 15%;
  text-align: left;
  background-image: -moz-element(bg-imag);
}

/* ---------- NEWS ---------- */
.news {
  margin-top: 2rem;
}
.news h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.news ul {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  list-style: none;
}
.news li {
  background: var(--card-bg);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

/* ---------- RESEARCH SECTION (UPDATED WITH IMAGE + TEXT) ---------- */
.research-section {
  margin-top: 3rem;
}
.research-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.research-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.research-block {
  display: flex;
  gap: 1.25rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem;
  align-items: center;
  transition: 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}
.research-block:hover {
  transform: translateY(-3px);
}

.research-block img {
  width: 200px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.research-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.research-text p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Stack on mobile */
@media (max-width: 700px) {
  .research-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .research-block img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 700px) {
  .portrait {
    width: 160px;
  }
}


/* ---------- CARDS (PUBLICATIONS + PRESENTATIONS) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  transition: 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.card iframe {
  width: 100%;
  height: 280px; /* adjust height as you like */
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: rgba(0,0,0,0.05);
  border-radius: 999px;
  font-weight: 600;
  /*var(--accent, #0055ff);*/
  color:  var(--muted);
  border: none;
  /*border-radius: 8px;*/
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Create a pseudo-element for the hover text */
.btn.hover-text::after {
  content: attr(data-hover);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background-color: rgba(0,0,0,0.05);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-radius: 8px;
}

/* Hide the original text when hovering */
.btn.hover-text:hover::after {
  transform: translateY(0);
}

.btn.hover-text:hover {
  color: transparent; /* hide original text */
}


.pill-email {
  background: rgba(0,0,0,0.05);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

.pill-email:after {
  content: attr(data-hover);
  background-color: #eef1f5;
  transform: translateY(-2px);
}

/* Responsive menu scaling for mobile */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  nav a {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .name {
    font-size: 1.1rem;
  }

  .subtitle {
    font-size: 0.75rem;
  }
}