/* =========================================
   Home Page - Single Page Design
   Inspired by matthewclifford.com
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body.home-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #ffffff;
}

/* === Navigation === */
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e8e8e8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand:hover {
  color: #2563eb;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links li a:hover {
  color: #1a1a1a;
  text-decoration: none;
}

.nav-links li a.nav-highlight {
  color: #2563eb;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* === Sections === */
.home-section {
  padding: 96px 32px;
}

.home-section.alt {
  background: #f8f9fa;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #555;
  max-width: 640px;
  margin: 0 0 48px 0;
  line-height: 1.7;
}

/* === About Section === */
#about {
  padding-top: 140px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
}

.about-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.about-role {
  font-size: 1.1rem;
  font-weight: 400;
  color: #2563eb;
  margin: 0 0 32px 0;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin: 0 0 24px 0;
}

.about-bio-secondary {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin: 0 0 40px 0;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: #1a1a1a;
  background: #f0f0f0;
  color: #1a1a1a;
  text-decoration: none;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3/4;
}

.about-image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e8ecf4 0%, #d0d8e8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8899aa;
  font-size: 0.9rem;
  font-weight: 500;
}

/* === Research Interests === */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.interest-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.interest-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.interest-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.interest-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.interest-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* === Scrollable Sections === */
.scroll-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.scroll-section-header .section-title {
  margin-bottom: 0;
}

.view-all-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 4px;
}

.view-all-link:hover {
  text-decoration: underline;
}

.scroll-track-wrap {
  position: relative;
}

.scroll-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}

.scroll-track::-webkit-scrollbar {
  height: 4px;
}

.scroll-track::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-track::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}

/* === Podcast Cards === */
.podcast-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.podcast-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.podcast-ep-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 10px;
}

.podcast-ep-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.podcast-ep-date {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 16px 0;
}

.podcast-ep-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-ep-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  margin-top: auto;
}

.podcast-ep-link:hover {
  text-decoration: underline;
}

.podcast-intro {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
}

.podcast-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.podcast-logo i {
  font-size: 2rem;
  color: #ffffff;
}

.podcast-intro-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px 0;
}

.podcast-intro-text p {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 12px 0;
}

.podcast-platform-links {
  display: flex;
  gap: 12px;
}

.platform-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.platform-link:hover {
  color: #1a1a1a;
  text-decoration: none;
}

/* === Paper Cards === */
.paper-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.paper-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.paper-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.paper-card-image-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #e8ecf4 0%, #d0d8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8899aa;
  font-size: 0.8rem;
}

.paper-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.paper-venue {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
}

.paper-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.paper-authors {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.paper-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.paper-link:hover {
  text-decoration: underline;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin: 0 0 32px 0;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-text {
  font-size: 0.95rem;
  color: #1a1a1a;
}

.contact-item-text a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

.contact-item-text a:hover {
  color: #2563eb;
  text-decoration: none;
}

.contact-item-label {
  font-size: 0.75rem;
  color: #888;
  display: block;
  margin-bottom: 2px;
}

.contact-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: 64px;
}

.contact-social-label {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-link:hover {
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
}

/* === Footer === */
.home-footer {
  background: #1a1a1a;
  color: #888;
  padding: 40px 32px;
  text-align: center;
}

.home-footer a {
  color: #aaa;
  text-decoration: none;
}

.home-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
}

/* === Responsive === */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
  .about-image-placeholder {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 1/1;
  }
  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-name {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 640px) {
  .home-section {
    padding: 72px 20px;
  }
  #about {
    padding-top: 120px;
  }
  .nav-container {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .nav-toggle {
    display: flex;
  }
  .interests-grid {
    grid-template-columns: 1fr;
  }
  .about-name {
    font-size: 1.9rem;
  }
  .scroll-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .podcast-intro {
    flex-direction: column;
    text-align: center;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
