:root {
  --bg: #08111d;
  --bg-soft: #0f1c2d;
  --card: #122239;
  --text: #e8eef8;
  --muted: #b8c4d8;
  --accent: #36c3ff;
  --accent-dark: #1498cf;
  --highlight: #7ee0ff;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 29, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 17, 29, 0.92) 0%, rgba(8, 17, 29, 0.55) 55%, rgba(8, 17, 29, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2rem 0;
}

.badge {
  display: inline-block;
  background: rgba(54, 195, 255, 0.2);
  color: #98e5ff;
  border: 1px solid rgba(54, 195, 255, 0.4);
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0b1a2b;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.65);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 17, 29, 0.65);
  color: white;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(8, 17, 29, 0.9);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active {
  background: var(--accent);
  width: 28px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(54, 195, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  background: var(--bg-soft);
  padding: 1.2rem 1.4rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--highlight);
  margin-bottom: 0.25rem;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.section-header p,
.subsection-lead,
.lead {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 820px;
}

.subsection {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.subsection h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

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

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.person-card--flip {
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  perspective: 1000px;
}

.person-card--flip:focus-visible .person-card-face {
  border-color: rgba(54, 195, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(54, 195, 255, 0.25);
}

.person-card-inner {
  position: relative;
  width: 100%;
  min-height: 320px;
  transition: transform 0.55s ease;
  transform-style: preserve-3d;
}

.person-card--flip.is-flipped .person-card-inner {
  transform: rotateY(180deg);
}

.person-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.person-card--flip:hover .person-card-face {
  border-color: rgba(54, 195, 255, 0.35);
}

.person-card--flip:hover .person-card-inner {
  transform: translateY(-2px);
}

.person-card--flip.is-flipped:hover .person-card-inner {
  transform: rotateY(180deg) translateY(-2px);
}

.person-card-front img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.person-card-back {
  transform: rotateY(180deg);
  justify-content: center;
}

.person-card-back h3 {
  margin-bottom: 0.75rem;
}

.person-bio {
  flex: 1;
  overflow-y: auto;
}

.person-flip-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}

.interest-card,
.area-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.interest-card:hover,
.area-card:hover {
  transform: translateY(-2px);
  border-color: rgba(54, 195, 255, 0.35);
}

.person-card h3,
.interest-card h3,
.area-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.person-role,
.person-bio,
.interest-card p,
.area-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.interest-card--highlight {
  border-color: rgba(54, 195, 255, 0.55);
  background: linear-gradient(145deg, rgba(54, 195, 255, 0.12), var(--card));
}

.interest-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0b1a2b;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.publications-list {
  display: grid;
  gap: 1rem;
}

.publication-item {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.pub-authors {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pub-title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.45;
}

.pub-meta {
  margin: 0;
  color: #9fdfff;
  font-size: 0.92rem;
}

.pub-links {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
}

.pub-links a {
  color: var(--accent);
}

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

.pub-status {
  color: var(--muted);
  font-style: italic;
}

.pub-status--error {
  color: #ffb4b4;
}

.pub-cta {
  margin-top: 1.5rem;
}

.collaboration-card {
  background: linear-gradient(135deg, rgba(126, 224, 255, 0.14), rgba(54, 195, 255, 0.06));
  border: 1px solid rgba(126, 224, 255, 0.45);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  max-width: 820px;
}

.collaboration-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #0b1a2b;
  background: var(--highlight);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.8rem;
}

.collaboration-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.75rem;
}

.collaboration-lead {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.collaboration-body {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.collaboration-list {
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.collaboration-list li {
  margin-bottom: 0.35rem;
}

.collaboration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.collaboration-email-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.collaboration-email-hint a {
  color: #9fdfff;
}

.collaboration-email-hint a:hover {
  text-decoration: underline;
}

.tools-card {
  background: linear-gradient(135deg, rgba(54, 195, 255, 0.12), rgba(54, 195, 255, 0.04));
  border: 1px solid rgba(54, 195, 255, 0.35);
  border-radius: 16px;
  padding: 1.6rem;
}

.tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.tool-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  color: #d2ecff;
  background: rgba(8, 17, 29, 0.45);
}

.tool-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0 1rem;
  background: #060e18;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.footer-block h3 {
  margin-top: 0;
}

.footer-block p,
.contact-address {
  color: var(--muted);
  line-height: 1.65;
}

.contact-address {
  font-style: normal;
  margin: 0.8rem 0;
}

#contactEmail {
  color: #9fdfff;
}

#contactEmail:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: #9fdfff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
  }

  #siteNav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(8, 17, 29, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    padding: 0.5rem 1rem 1rem;
  }

  #siteNav.open {
    display: block;
  }

  #siteNav ul {
    flex-direction: column;
    gap: 0.6rem;
  }

  .site-header .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 62vh;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
