@charset "UTF-8";
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-heading: #000000;
  --color-link: #0033cc;
  --color-border: #dddddd;
  --color-muted: #666666;
  /* Subtle filigree overlay (light theme) */
  --filigree-opacity: 0.08;
  --filigree-filter: none;
  --filigree-blend: multiply;
  --filigree-img-1: url("../images/bg/filigree-topo-1.png");
  --filigree-img-2: url("../images/bg/filigree-ridges-1.png");
  --filigree-size: 900px 900px, 1100px 1100px;
  --filigree-repeat: repeat, repeat;
  --filigree-position: 0 0, 0 0;
}

[data-theme=dark] {
  --color-bg: #111111;
  --color-text: #f0f0f0;
  --color-heading: #ffffff;
  --color-link: #66aaff;
  --color-border: #444444;
  --color-muted: #999999;
  /* Subtle filigree overlay (dark theme) */
  --filigree-opacity: 0.06;
  --filigree-filter: invert(1);
  --filigree-blend: screen;
  --filigree-img-1: url("../images/bg/filigree-topo-1.png");
  --filigree-img-2: url("../images/bg/filigree-ridges-1.png");
  --filigree-size: 900px 900px, 1100px 1100px;
  --filigree-repeat: repeat, repeat;
  --filigree-position: 0 0, 0 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
}

/* Reset + Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: transparent;
  color: var(--color-text);
  line-height: 1.6;
  padding: 2rem 1rem;
  transition: background-color 0.3s, color 0.3s;
  max-width: 960px;
  margin: auto;
  font-size: 1.1rem;
}

html {
  background-color: var(--color-bg);
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: var(--filigree-img-1), var(--filigree-img-2);
  background-repeat: var(--filigree-repeat);
  background-position: max(0px, 50vw - 481px) 0, 0 0;
  background-size: var(--filigree-size);
  opacity: 0.1;
  /* ← back here */
  filter: var(--filigree-filter);
  mix-blend-mode: var(--filigree-blend);
}

header,
footer {
  position: fixed;
}

header::before,
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--color-bg);
}

header::after,
footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--filigree-img-1), var(--filigree-img-2);
  background-repeat: var(--filigree-repeat);
  background-position: var(--filigree-position);
  background-size: var(--filigree-size);
  opacity: 0.1;
  /* ← safe now */
  filter: var(--filigree-filter);
  mix-blend-mode: var(--filigree-blend);
}

footer::after {
  background-position-y: calc(-100vh + 3rem - 1px);
}

p {
  text-align: justify;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
header,
footer {
  padding: 1rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

footer {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

nav a {
  margin: 0 0.75rem;
  color: var(--color-text);
  font-weight: 500;
}

main {
  margin-top: 2rem;
}

hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

h1,
h2,
h3 {
  color: var(--color-heading);
  margin-top: 1rem;
}

ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

button#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  z-index: 101;
}

body {
  padding-top: 4rem;
  padding-bottom: 3rem;
  min-height: 100vh;
  position: relative;
}

/* Fixed header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background-color: transparent;
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background-color: transparent;
  border-top: 1px solid var(--color-border);
  z-index: 99;
  text-align: center;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Adjust nav inside fixed header */
nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.barba-container {
  min-height: calc(100vh - 7rem);
}

.publication-year {
  margin-left: -15px;
}

.publication-list {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
}

.publication-item {
  margin-bottom: 1.5rem;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-align: justify;
}

.pub-authors {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  text-align: justify;
  line-height: 1.3;
}

.pub-journal {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.pub-doi {
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* Publication title styling */
.pub-title a {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--color-heading);
  text-decoration: none;
}

.pub-title a:hover {
  text-decoration: underline;
}

/* Author link styling */
.pub-authors a {
  text-decoration: underline;
  color: inherit;
  /* inherit text color (dark/light mode compatible) */
}

.email-obf {
  display: none;
}

.email-obf.is-decoded {
  display: inline;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.team-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  margin-bottom: 1rem;
}

.team-card p {
  margin: 0.25rem 0;
}

.team-card .role {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-bg);
}

.tags {
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  background: var(--color-border);
  color: var(--color-text);
  border-radius: 0.25rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  margin: 0 0.25rem 0.25rem 0;
}

#project-filter {
  margin-bottom: 2rem;
}

.project-card {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

/* Navigation style */
#site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive burger behavior */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    z-index: 101;
  }
  #site-nav {
    display: none;
    flex-direction: column;
  }
  #site-nav.open {
    display: flex;
  }
  #site-nav.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  #site-nav.menu-overlay.open {
    display: flex;
  }
  #site-nav .menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  #site-nav .menu-inner a {
    font-size: 1.75rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
  }
  #site-nav .menu-inner a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  #site-nav.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #site-nav.menu-overlay.open {
    transform: translateX(0%);
  }
  #site-nav .menu-inner button#theme-toggle {
    font-size: 2rem;
    margin-top: 2rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
  }
}
/* Contact Page */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  flex: 1;
}

.contact-logos {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 150px;
  height: 360px;
}

.contact-logos a {
  display: block;
  width: 100%;
}

.contact-logos img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .contact-info {
    width: 100%;
  }
  .contact-logos {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
  .contact-logos a {
    width: 140px;
    /* Uniform width on mobile */
  }
  .contact-logos img {
    max-width: 140px;
  }
}

/*# sourceMappingURL=main.css.map */