:root {
  --bg-color: #f5f5f5;
  --text-color: #333;
  --text-color-subtle: rgba(0, 0, 0, 0.6);
  --navbar-bg: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.1);
  --link-color: #0077b5;
}

/* Color values for the dark theme */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --text-color-subtle: rgba(255, 255, 255, 0.6);
  --navbar-bg: rgba(36, 36, 36, 0.5);
  --border-color: rgba(255, 255, 255, 0.08);
  --link-color: #66c0ff;
}

/* Style for the footer at the bottom of each page */
.footer {
  /* position: fixed; */
  /* bottom: 0; */
  /* left: 0; */
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 0.5rem;
  z-index: 1000;
  pointer-events: none;
}

/* Style for the container of the footer */
.footer-container {
  color: var(--text-color-subtle); /* subtle contrast */
  /* align-items: center;
  backdrop-filter: blur(10px);
  background: var(--navbar-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 4px 4px;
  padding: 0.6rem 1.5rem;
  pointer-events: auto; */
}

/* General body stylings */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  z-index: 1000;
  pointer-events: none;
}

/* Navbar container (loaded from navbar.html) */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  width: 100%;
  backdrop-filter: blur(10px);
  background: var(--navbar-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  pointer-events: auto;
}

/* Left part of the navbar (icon and title) */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit; /* inherit theme text color */
}

/* Makes title and icon change opacity on hover */
.nav-left:hover {
  opacity: 0.85;
}

/* Logo in the navbar */
.logo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Title div in the navbar */
.title-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Main title */
.site-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Subtitle */
.site-subtitle {
  font-size: 0.8em;
  color: var(--text-color-subtle); /* subtle contrast */
}

/* Right part of the navbar (links) */
.nav-right a, .mobile-nav-right a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

/* Active page link in navbar links*/
.nav-right a.active, .mobile-nav-right a.active {
  color: var(--link-color);
  font-weight: 600;
  border-bottom: 2px solid var(--link-color);
  padding-bottom: 2px;
}

/* Hovering a navbar link */
.nav-right a:hover {
  color: var(--link-color);
}

/* Theme toggle button */
.theme-toggle button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  transition: transform 0.2s;
}

/* Hovering the theme toggle button */
.theme-toggle button:hover {
  transform: scale(1.2);
}

/* Page container for all main content*/
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1rem 2rem;
}

.publications-container {
  overflow: auto;
}

/* Container for flex items (for example, half width) */
.flex-row {
  display: flex;
  gap: 10px;
  flex-direction: row;
}

/* Half width container */
.flex-column-50 {
  flex: 50%;
}

/* Intro section on the main page*/
.intro {
  text-align: center;
}

/* Big profile picture on the main page */
.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

/* Social links on the main page */
.social-links {
  display: flex;
  justify-content: center; /* Center horizontally */
  gap: 1rem;               /* Space between icons */
  margin-top: 1rem;
}

/* Link customizations for the social links */
.social-links a {
  font-size: 1.8rem; /* icon size */
  color: rgba(0, 0, 0, 0.8); /* default color */
  text-decoration: none;
  transition: transform 0.2s ease, color 0.3s ease;
}

/* Hovering the social links */
.social-links a:hover {
  transform: scale(1.2);
}

/* Custom behavior vor Google Scholar social link */
.social-links a[aria-label="Google Scholar"] {
  color: rgba(234, 68, 52, 1);
}

/* Custom behavior vor Github social link */
.social-links a[aria-label="GitHub"] {
  color: #333;
}

/* Custom behavior vor Twitter social link */
.social-links a[aria-label="Twitter"] {
  color: #1da1f2;
}

/* Custom behavior vor LinkedIn social link */
.social-links a[aria-label="LinkedIn"] {
  color: #0077b5;
}

/* Paragraphs */
p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Links */
a {
  text-decoration: none;
  color: var(--link-color);
}

/* List elements */
li {
  line-height: 1.6;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Navbar mobile menu (hidden on desktop) */
.mobile-nav-right {
    display: none;
  }

/* Style for the mobile version */
@media (max-width: 750px) {

  /* Show hamburger menu in mobile view */
  .hamburger {
    display: block;
    color: var(--text-color);
  }

  /* Hide big navbar links in mobile view */
  .nav-right {
    display: none;
  }

  /* Show mobile navbar panel */
  .mobile-nav-right {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; /* below navbar */
    right: 0;
    background: var(--navbar-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    color: var(--text-color);

    /* Start hidden with animation prep */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  /* Links in the mobile navbar menu */
  .mobile-nav-right a {
    margin: 0.5rem 0;
    display: block;
  }

  /* When mobile menu is active, show with fade+slide */
  .mobile-nav-right.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Display flex items beneath each other instead of next to each other */
  .flex-row {
    flex-direction: column;
  }
}