/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #4a4a4a;
  background-color: #fff;
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

a {
  color: #6a6a6a;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #2563eb;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 4.5rem;
  color: #1a1a1a;
  line-height: 1.05;
}

h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
}

h3 {
  font-size: 1.2rem;
  color: #2a2a2a;
  font-weight: 500;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 60px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: #2563eb;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #888;
  position: relative;
  padding-bottom: 2px;
  letter-spacing: -0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a1a1a;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #888;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Section Line ===== */
.section-line {
  width: 40px;
  height: 3px;
  margin: 12px 0 40px;
  background: #2563eb;
  border-radius: 2px;
}

/* ===== Section Title ===== */
.section-title {
  margin-bottom: 4px;
  position: relative;
  display: inline-block;
}

/* ===== Hero ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 30px;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  padding: 20px 0;
}

.hero-image {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f0f0f0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.hero-image:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-statement {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: #666;
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.hero-statement .rotating-text {
  color: #2563eb;
  font-weight: 500;
  display: inline-block;
  min-width: 200px;
  border-bottom: 2px solid rgba(37, 99, 235, 0.2);
  transition: opacity 0.3s ease;
}

.hero-links {
  display: flex;
  gap: 16px;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid #e5e5e5;
  border-radius: 50%;
  color: #888;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-link:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

/* ===== Sections ===== */
.section {
  padding: 90px 0;
}

.section--alt {
  background: #fafafa;
}

/* ===== Bio Timeline ===== */
.bio-timeline {
  margin-top: 8px;
}

.bio-entry {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.25s ease;
}

.bio-entry:first-child {
  padding-top: 0;
}

.bio-entry:last-child {
  border-bottom: none;
}

.bio-years {
  flex-shrink: 0;
  width: 130px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #2563eb;
  padding-top: 2px;
  letter-spacing: -0.01em;
}

.bio-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.bio-body h3 a {
  color: #2a2a2a;
  text-decoration: none;
  background-image: linear-gradient(#2563eb, #2563eb);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

.bio-body h3 a:hover {
  color: #2563eb;
  background-size: 100% 1.5px;
}

.bio-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #999;
}

.bio-body p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

.bio-body p a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease;
}

.bio-body p a:hover {
  text-decoration-color: #2563eb;
}

/* ===== Publications ===== */
.pub-list {
  list-style: none;
}

.pub-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.7;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-authors {
  font-size: 0.85rem;
  color: #aaa;
}

.pub-title {
  display: block;
  font-size: 0.98rem;
  color: #2a2a2a;
  font-weight: 500;
  margin: 4px 0;
  transition: color 0.25s ease;
}

.pub-title:hover {
  color: #2563eb;
}

.pub-venue {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2563eb;
  letter-spacing: -0.01em;
}

.pub-note {
  margin-top: 28px;
  font-size: 0.88rem;
  color: #999;
}

.pub-note a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 2px;
}

/* ===== Patents ===== */
.patent-list {
  list-style: none;
}

.patent-item {
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}

.patent-item:last-child {
  border-bottom: none;
}

.patent-title {
  display: block;
  font-size: 0.98rem;
  color: #2a2a2a;
  font-weight: 500;
  transition: color 0.25s ease;
}

.patent-title:hover {
  color: #2563eb;
}

.patent-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: #bbb;
  margin-top: 2px;
  display: block;
  letter-spacing: 0.02em;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.footer-copy {
  font-size: 0.82rem;
  color: #ccc;
  letter-spacing: 0.02em;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-grid {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .hero-image {
    width: 180px;
    height: 180px;
  }

  .section {
    padding: 60px 0;
  }

  .nav-container {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

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

  .nav-links a {
    font-size: 1.05rem;
  }

  .bio-entry {
    flex-direction: column;
    gap: 4px;
  }

  .bio-years {
    width: auto;
    font-size: 0.95rem;
  }

  .hero-statement {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.4rem;
  }

  .container {
    padding: 0 20px;
  }
}
