:root {
  color-scheme: dark;
  --bg-primary: #15213b;
  --bg-secondary: #1d2b47;
  --accent-1: #60a5fa;
  --accent-2: #93c5fd;
  --accent-3: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #d1ddff;
  --glass-border: rgba(148, 163, 184, 0.22);
  --glass-bg: rgba(17, 26, 47, 0.78);
  --shadow-strong: 0 30px 80px rgba(9, 14, 38, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 25% -15%, rgba(148, 163, 255, 0.38), transparent 50%),
    radial-gradient(circle at 80% 5%, rgba(59, 130, 246, 0.28), transparent 45%),
    radial-gradient(circle at 50% 65%, rgba(56, 189, 248, 0.22), transparent 55%),
    var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(165, 180, 252, 0.08));
  z-index: -1;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-1);
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

.page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 4rem;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  padding: 1.75rem 0 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1.1rem;
  background: linear-gradient(140deg, rgba(96, 165, 250, 0.55), rgba(56, 189, 248, 0.5));
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 18px 45px rgba(8, 12, 32, 0.45);
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.45rem;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--text-primary);
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 15px 35px rgba(8, 12, 32, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-link:hover {
  background: rgba(99, 102, 241, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 25px 45px rgba(8, 12, 32, 0.5);
}

.hero {
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  border-radius: 32px;
  background: rgba(22, 31, 55, 0.78);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow-strong);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-2);
  margin: 0.75rem 0 0.5rem;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.35rem, 6vw, 3.8rem);
  line-height: 1.05;
  margin: 0.2rem 0 0.6rem;
}

.hero-person {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.hero-role {
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.hero-role hr {
  border: none;
  height: 1px;
  margin: 1rem 0;
  background: rgba(148, 163, 184, 0.25);
}

.hero-focus {
  font-size: 1.05rem;
  font-weight: 500;
  color: #e3e8ff;
  margin: 0;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
}

.hero-contact li {
  list-style: none;
}

.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 15px 35px rgba(7, 12, 28, 0.45);
}

.hero-contact a:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat-card {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  padding: 1rem 1.2rem;
  min-width: 200px;
  box-shadow: 0 25px 55px rgba(8, 12, 32, 0.55);
}

.stat-label {
  font-weight: 600;
  color: #bfdbfe;
}

.hero-photo {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 0.8rem;
  background: linear-gradient(150deg, rgba(45, 212, 191, 0.35), rgba(99, 102, 241, 0.35));
  box-shadow: 0 45px 90px rgba(8, 12, 32, 0.5);
}

.photo-frame::after {
  /*content: '';*/
  /*position: absolute;*/
  /*inset: 12%;*/
  /*border-radius: 22px;*/
  /*background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.18), transparent 55%);*/
  /*pointer-events: none;*/
}

.photo-frame img {
  position: relative;
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(1.05);
}

.tabs {
  margin-bottom: 5rem;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 999px;
  background: rgba(21, 33, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 25px 60px rgba(8, 12, 32, 0.5);
  margin-bottom: 2.2rem;
}

.tab-button {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.85);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.45rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(99, 102, 241, 0.32));
  color: var(--text-primary);
  box-shadow: 0 18px 35px rgba(15, 118, 110, 0.35);
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.5s ease;
}

.tab-panel.is-active {
  display: block;
}

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

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.card {
  background: rgba(24, 33, 58, 0.78);
  border-radius: 26px;
  border: 1px solid var(--glass-border);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-strong);
}

.card-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}

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

.card-body {
  color: rgba(226, 232, 240, 0.92);
  font-size: 1rem;
}

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

.card-text {
  margin-bottom: 1.5rem;
}

.card-text:last-child {
  margin-bottom: 0;
}

.list-group {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.list-group-item {
  background: rgba(28, 40, 70, 0.78);
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 24px 45px rgba(8, 12, 32, 0.5);
  line-height: 1.7;
}

.list-group-item strong {
  color: #fef3c7;
  font-weight: 700;
}

.list-group-item span.text-uppercase {
  display: inline-block;
  margin: 0.4rem 0;
  color: rgba(191, 219, 254, 0.95);
  letter-spacing: 0.14em;
  font-weight: 600;
}

.btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: transparent;
  color: var(--accent-2);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-sm {
  padding: 0.45rem 1.2rem;
  font-size: 0.88rem;
}

.btn-outline-primary:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

.collapse {
  display: none;
}

.collapse.is-open {
  display: block;
}

.lang-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  background: rgba(24, 33, 58, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 45px rgba(6, 11, 26, 0.55);
  z-index: 9999;
}

.lang-switcher label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bae6fd;
}

.lang-switcher select {
  background: rgba(12, 20, 42, 0.9);
  border: 1px solid rgba(147, 197, 253, 0.4);
  color: #f1f5f9;
  border-radius: 10px;
  padding: 0.3rem 0.6rem;
  font-size: 0.92rem;
}

.lang-switcher select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

hr {
  border: none;
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin: 1.25rem 0;
}

address {
  font-style: normal;
  color: rgba(226, 232, 240, 0.9);
}

.list-unstyled {
  list-style: none;
  margin: 0;
  padding: 0;
}

.d-flex {
  display: flex;
}

.flex-grow-1 {
  flex: 1 1 auto;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

.justify-content-sm-between {
  justify-content: space-between;
  gap: 1rem;
}

.align-items-sm-baseline {
  align-items: baseline;
}

.d-sm-flex {
  display: flex;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.35rem;
}

.mb-2 {
  margin-bottom: 0.75rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.4rem;
}

.me-2 {
  margin-right: 0.75rem;
}

.me-3 {
  margin-right: 1rem;
}

.ms-auto {
  margin-left: auto;
}

.lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e7ff;
}

.h4 {
  font-size: 1.35rem;
  font-weight: 600;
}

.h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

.text-muted {
  color: rgba(148, 163, 184, 0.75);
}

.text-primary {
  color: var(--accent-1);
}

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fw-bold {
  font-weight: 700;
}

.link {
  color: var(--accent-2);
}

.link:hover {
  color: var(--accent-1);
}

.fa-layers {
  position: relative;
}

.fa-layers .fas.fa-circle {
  color: rgba(56, 189, 248, 0.4);
}

.tab-panel .card:last-child {
  margin-bottom: 0;
}

.panel-stack .card {
  margin-bottom: 0;
}

.contact-row {
  gap: 1rem;
}

.contact-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
}

.contact-icon .background {
  font-size: 40px;
  color: rgba(96, 165, 250, 0.32);
}

.contact-icon .foreground {
  position: absolute;
  font-size: 18px;
  color: #e2e8f0;
}

.contact-icon .foreground.orcid {
  font-size: 28px;
  color: #a6ce39;
}

@media (max-width: 1024px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: min(380px, 80%);
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    padding: 2rem;
  }

  .tablist {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
  }

  .tablist::-webkit-scrollbar {
    height: 6px;
  }

  .tablist::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 999px;
  }

  .d-sm-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .justify-content-sm-between {
    justify-content: flex-start;
  }

  .align-items-sm-baseline {
    align-items: flex-start;
  }

  .lang-switcher {
    right: 16px;
  }
}

@media (max-width: 600px) {
  .hero-card {
    padding: 1.6rem;
  }

  .card {
    padding: 1.7rem;
  }

  .hero-contact a {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
  }
}
