:root {
  --bg: #f4f8fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #132033;
  --muted: #5c6d82;
  --accent: #119f5d;
  --accent-2: #0f766e;
  --stroke: rgba(19, 32, 51, 0.12);
  --shadow: 0 14px 30px rgba(15, 40, 75, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(17, 159, 93, 0.09), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(15, 118, 110, 0.08), transparent 38%),
    linear-gradient(160deg, #f8fbff 0%, #f4f8fc 46%, #ecf3fb 100%);
  line-height: 1.65;
}

.cyber-grid-overlay,
.cyber-scan-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cyber-grid-overlay {
  z-index: 0;
  opacity: 0.48;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at center, rgba(19, 32, 51, 0.045) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgba(19, 32, 51, 0.03) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(19, 32, 51, 0.03) 1px, transparent 1px) 0 0 / 44px 100%;
}

.cyber-scan-overlay {
  z-index: 1;
  opacity: 0.82;
  background: linear-gradient(
    112deg,
    transparent 18%,
    rgba(37, 99, 235, 0.06) 48%,
    rgba(17, 159, 93, 0.05) 54%,
    transparent 72%
  );
  background-size: 210% 210%;
  animation: cyber-scan-sweep 14s ease-in-out infinite alternate;
}

@keyframes cyber-scan-sweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 8px 20px rgba(15, 40, 75, 0.08);
}

.header-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #f8fbff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #1c2d42;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand {
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: #0d1b2c;
  background: linear-gradient(120deg, rgba(17, 159, 93, 0.14), rgba(15, 118, 110, 0.14));
  border: 1px solid var(--stroke);
  padding: 0.38rem 0.72rem;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 9px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0e1726;
  background-color: rgba(17, 159, 93, 0.2);
}

.nav-download {
  text-decoration: none;
  padding: 0.42rem 0.78rem;
  border-radius: 10px;
  background: linear-gradient(120deg, #0f8a55, #0f766e);
  color: #f4fffb;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: 0 8px 18px rgba(15, 138, 85, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 138, 85, 0.32);
}

.mobile-download {
  display: none;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--stroke);
  color: #223348;
  background: #f8fbff;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.nav-socials a:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.5);
  background-color: #f1f8ff;
}

.nav-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

main {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 6.4rem auto 3rem;
}

.section {
  margin-bottom: 1.3rem;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border-radius: 18px;
}

section[id] {
  scroll-margin-top: 7.2rem;
}

.hero {
  padding-top: clamp(2.4rem, 5vw, 4.2rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 330px);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.56;
  background:
    radial-gradient(circle at 14% 26%, rgba(15, 118, 110, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 33% 45%, rgba(17, 159, 93, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 57% 30%, rgba(37, 99, 235, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 48%, rgba(15, 118, 110, 0.17) 0 2px, transparent 3px),
    linear-gradient(24deg, transparent 33%, rgba(19, 32, 51, 0.06) 34%, rgba(19, 32, 51, 0.06) 36%, transparent 37%),
    linear-gradient(-18deg, transparent 46%, rgba(19, 32, 51, 0.055) 47%, rgba(19, 32, 51, 0.055) 49%, transparent 50%);
}

.hero-network::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 30%, rgba(17, 159, 93, 0.08), transparent 40%);
}

.kicker {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.hero-text {
  max-width: 66ch;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  color: #314056;
}

.hero-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.hero-tags span {
  background: rgba(19, 32, 51, 0.05);
  border: 1px solid var(--stroke);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #263549;
}

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

.hero-photo-wrap {
  margin: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 255, 0.82));
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 0.55rem;
  box-shadow: 0 12px 28px rgba(15, 40, 75, 0.12);
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

.btn {
  text-decoration: none;
  font-weight: 600;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, #0f8a55, #0f766e);
  color: #f4fffb;
  box-shadow: 0 8px 20px rgba(15, 138, 85, 0.26);
}

.btn-ghost {
  border: 1px solid var(--stroke);
  color: #243346;
  background: rgba(255, 255, 255, 0.76);
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
}

.section-panel {
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border-radius: 18px;
}

article.card {
  padding: 1.1rem 1.2rem;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mini-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem;
}

.publication-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.03rem;
}

.publication-card .year {
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.publication-card a {
  text-decoration: none;
  color: #0f7a56;
  font-weight: 600;
}

.publication-card a:hover {
  text-decoration: underline;
}

#publications .cards {
  gap: 1rem;
}

.publication-card {
  border-radius: 20px;
  border: 1px solid rgba(19, 32, 51, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.86));
  box-shadow: 0 10px 24px rgba(15, 40, 75, 0.08);
  position: relative;
  overflow: hidden;
}

.publication-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

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

.teaching-card {
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 250, 0.88));
  box-shadow: 0 12px 24px rgba(15, 40, 75, 0.08);
}

.teaching-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.teaching-top h3 {
  margin: 0;
  font-size: 1.02rem;
}

.term-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0d5f5a;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
}

.teaching-role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0.45rem 0 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0e4f54;
  background: rgba(17, 159, 93, 0.12);
  border: 1px solid rgba(17, 159, 93, 0.22);
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
}

.timeline {
  display: grid;
  gap: 0.85rem;
  border-left: 2px solid rgba(15, 118, 110, 0.35);
  padding-left: 1rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.2rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.18);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.contact-grid a,
.contact-grid span {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--stroke);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: #213145;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.contact-grid a:hover {
  border-color: rgba(17, 159, 93, 0.45);
}

.contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.email-icon {
  background: #dff8eb;
  color: #0f7a56;
}

.phone-icon {
  background: #d8f9f2;
  color: #047a6c;
}

.linkedin-icon {
  background: #dbeaff;
  color: #0a66c2;
  font-family: "Space Grotesk", sans-serif;
}

.location-icon {
  background: #e0f5f3;
  color: #0b7e78;
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem 2.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(38px);
}

.shape-1 {
  width: 360px;
  height: 360px;
  left: -90px;
  top: -130px;
  background: rgba(17, 159, 93, 0.13);
}

.shape-2 {
  width: 330px;
  height: 330px;
  right: -90px;
  bottom: -130px;
  background: rgba(15, 118, 110, 0.13);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .site-header {
    top: 0;
    border-radius: 0;
    padding: 0.7rem 0.8rem;
  }

  .header-inner {
    position: relative;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header-inner.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header-inner.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 20;
    gap: 0.65rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(15, 40, 75, 0.14);
    padding: 0.75rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .header-inner.menu-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.28rem 0.45rem;
  }

  .nav-download {
    font-size: 0.78rem;
    padding: 0.45rem 0.7rem;
    align-self: flex-start;
  }

  .mobile-download {
    display: inline-flex;
    margin-left: 0.55rem;
    font-size: 0.78rem;
    padding: 0 0.62rem;
    height: 34px;
    line-height: 1.15;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
  }

  .nav .nav-download {
    display: none;
  }

  .nav-socials {
    justify-content: flex-start;
  }

  .nav-socials a {
    width: 30px;
    height: 30px;
  }

  main {
    margin-top: 6.3rem;
  }

  .cyber-grid-overlay {
    opacity: 0.28;
  }

  .cyber-scan-overlay {
    opacity: 0.66;
  }

  .hero-network {
    opacity: 0.34;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    max-width: 280px;
    justify-self: center;
  }

  .teaching-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline {
    padding-left: 0.8rem;
  }

  .timeline-item::before {
    left: -1.36rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cyber-scan-overlay {
    animation: none;
  }
}
