:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f8f9fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-dark: #1e3a8a;
  --border: #e2e8f0;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.nav-links a {
  margin-left: 1.5rem;
  color: var(--muted);
  font-weight: 500;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero {
  padding: 0 0 5rem;
  background: linear-gradient(135deg, #0f172a, #1d3557);
  color: #e2e8f0;
}

.hero-inner,
.main-inner,
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.hero .nav a {
  color: #cbd5f5;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-photo-block {
  grid-column: -1;
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: clamp(220px, 30vw, 320px);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.4);
}

.hero-photo-block img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #94a3b8;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hero-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #93c5fd;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-link-item:hover {
  color: #ffffff;
}

.link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-links .separator {
  color: #64748b;
}

.btn {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: #ffffff;
  color: var(--text);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

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

main {
  padding: 4rem 6vw;
}

section {
  margin-bottom: 4rem;
}

.section-header h2 {
  margin: 0.4rem 0 1rem;
}

.about p {
  max-width: 100%;
  color: var(--muted);
}

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

.highlights div {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 1rem;
}

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

.research article {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.25rem;
  min-height: 210px;
}

.research-topics {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.research-topic {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.topic-image {
  flex-shrink: 0;
  width: 40%;
}

.topic-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

.topic-content {
  flex: 1;
}

.topic-content h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.topic-content p {
  margin: 0;
  color: var(--muted);
}

.research span {
  color: var(--accent);
  font-weight: 600;
}

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

.publications li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.pub-link:hover {
  color: #991b1b;
  text-decoration: underline;
}

.pub-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.pub-download:hover {
  color: #1e40af;
  text-decoration: underline;
}

.pub-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.inline-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
}

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

.project-list article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 230px;
}

.project-meta {
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: -0.4rem;
}

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

.skill-grid > div,
.reference-cards article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.skills h3,
.references h3 {
  margin-top: 0;
}

.skill-note {
  color: var(--muted);
  font-style: italic;
}

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

footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 3rem 6vw 2rem;
}

.contact-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-details a {
  color: #93c5fd;
  font-weight: 600;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 720px) {
  .hero {
    padding: 0 1.5rem 4rem;
  }

  main {
    padding: 3rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .research-topic {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-image {
    width: 100%;
  }

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

  .hero-photo-block {
    order: -1;
    justify-self: center;
    align-self: center;
    max-width: 260px;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-links .separator {
    display: none;
  }

  .btn {
    text-align: center;
  }

  .contact-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}
