/* --- Local Fonts --- */
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Telma";
  src: url("../fonts/Telma-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0b71ff;
  --glass: rgba(255, 255, 255, 0.7);
  --max-width: 1150px;
}
/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Montserrat", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue";
  line-height: 1.5;
  color: #111;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Header / Nav */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  backdrop-filter: blur(6px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.6)
  );
  border-bottom: 1px solid rgba(16, 24, 40, 0.04);
  z-index: 1200;
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.logo {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}
nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
nav a {
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  position: relative;
  color: #111;
  font-weight: 600;
  font-size: 0.95rem;
}
nav a::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.28s ease;
}
nav a.active::after {
  width: 80%;
  left: 10%;
}
nav a:focus {
  outline: 2px solid rgba(11, 113, 255, 0.15);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}
.hamburger div {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open div:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.open div:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.hamburger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 68px;
  background: var(--card);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
  padding: 1rem;
  z-index: 1100;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  padding: 5rem 0;
}
.eyebrow {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
h1 {
  font-size: 2.1rem;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
p.lead {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.2rem;
}

.cta {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* Sections */
main {
  padding-top: 88px;
}
section {
  padding: 4.25rem 0;
  border-bottom: 1px solid rgba(2, 6, 23, 0.03);
}
section .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
section h2 {
  font-size: 1.2rem;
  color: #0f172a;
}
section p.intro {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  padding: 1.15rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.04);
}
.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #0b1220;
}
.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Research list */
.paper {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 10px;
  background: #fbfcff;
}
.paper .meta {
  flex: 1;
}
.paper .meta h4 {
  font-size: 0.98rem;
}
.paper .meta p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Portfolio tiles */
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  background: rgba(11, 113, 255, 0.08);
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
}

/* Team */
.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.person {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e6f0ff, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
}

/* FAQ */
details {
  background: var(--card);
  padding: 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}
summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
details[open] summary {
  color: var(--accent);
}

/* Contact */
form {
  display: grid;
  gap: 0.6rem;
  max-width: 720px;
}
input[type="text"],
input[type="email"],
textarea {
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  font-size: 0.95rem;
}
button.btn {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

/* Back to top */
#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem;
  border-radius: 999px;
  border: 0;
  display: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 113, 255, 0.18);
}

footer {
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-inner {
    padding: 3rem 0;
  }
  h1 {
    font-size: 1.6rem;
  }
}

/* Global Map Styling */
.map-container {
  width: 100%;
  height: 400px;
  position: relative;
  margin-top: 40px;
}
.map {
  background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/World_map_-_low_resolution.svg/1280px-World_map_-_low_resolution.svg.png")
    center/contain no-repeat;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.location {
  position: absolute;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.location:hover {
  transform: scale(1.5);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Modals with Blur and Fade Animation === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  max-width: 650px;
  width: 90%;
  position: relative;
  backdrop-filter: blur(4px);
  transform: translateY(20px);
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  transition: 0.3s;
}
.modal-close:hover {
  color: #0077cc;
}

.modal.show {
  display: flex;
  animation: fadeInModal 0.3s ease forwards;
}
.modal.hide {
  animation: fadeOutModal 0.25s ease forwards;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutModal {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* NEW MAPMODAL WITHOUT MAP */

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

.global-card {
  background: var(--card);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(2, 6, 23, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.global-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.15);
}

.global-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}
.global-card h3 {
  margin: 0.4rem 0;
  font-size: 1.05rem;
  color: #0b1220;
}
.global-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* gdpr-banner.css */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    /* background: #111; */
    background-color: #f0f0f0;
    /* color: #fff; */
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .gdpr-message a {
    color: #4ea3ff;
    text-decoration: underline;
  }
  
  .gdpr-buttons {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
  }
  
  .gdpr-btn {
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    background-color: #4ea3ff;
    color: #fff;
    transition: background-color 0.2s ease;
  }
  
  .gdpr-btn:hover,
  .gdpr-btn:focus {
    background-color: #0078e8;
    outline: none;
  }
  
  .gdpr-btn.secondary {
    background: #555;
  }
  
  .gdpr-btn.secondary:hover {
    background: #333;
  }
  
  @media (min-width: 600px) {
    .gdpr-banner {
      flex-direction: row;
      justify-content: center;
      text-align: left;
    }
    .gdpr-message {
      max-width: 800px;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
  }

  #graphicLink {
    position: relative;
    display: inline-block;
    padding-bottom: 5px; /* Space for the underline */
    color: #1DA1F2; /* Text color */
    text-decoration: none; /* Remove default underline */
  }
  
  #graphicLink::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #1DA1F2, #00A1F1);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
  }
  
  #graphicLink:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  /* --- Cards --- */
.card,
.post-card {
  display: block;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5em;
  text-decoration: none;
  color: #1a1a1a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card h3,
.post-card h1 {
  margin: 0 0 0.5em 0;
  font-family: "Quicksand", sans-serif;
}

.card .excerpt,
.post-card .excerpt {
  font-size: 0.95em;
  color: #555;
  margin-top: 0.5em;
  line-height: 1.5;
}

.card .read-more a,
.post-card .read-more a {
  font-weight: 500;
  color: #0b3d91;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.card .read-more a:hover,
.post-card .read-more a:hover {
  color: #084298;
  text-decoration: underline;
}