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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #111111;
  color: #f0f0f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #f0f0f0;
}

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: #111111;
  border-bottom: 1px solid #1F1F1F;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand:hover {
  color: #f0f0f0;
}

.navbar-brand .brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

/* ── Main Container ───────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 60px 0 40px;
}

.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #f0f0f0;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #ffffff;
  margin-top: 8px;
  font-weight: 400;
}

/* ── Two-Column Layout ────────────────────────────────── */
.two-col {
  display: flex;
  gap: 80px;
  padding-bottom: 100px;
}

/* ── Sidebar Nav ──────────────────────────────────────── */
.sidebar {
  min-width: 120px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.sidebar a {
  font-size: 0.85rem;
  color: #888;
  padding: 4px 0;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar a:hover,
.sidebar a.active {
  color: #f0f0f0;
}

/* ── Content Sections ─────────────────────────────────── */
.content {
  flex: 1;
  min-width: 0;
}

.section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2a2a;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* ── Location ─────────────────────────────────────────── */
.location-row {
  margin-bottom: 8px;
  font-size: 1rem;
}

.location-row .label {
  font-weight: 600;
  color: #f0f0f0;
  margin-right: 4px;
}

.location-row .value {
  color: #ffffff;
}

/* ── Work Rows ────────────────────────────────────────── */
.work-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.work-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.work-icon-emoji {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.work-name {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

.work-role {
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
}

.work-badge {
  border: 1px solid #444;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.85rem;
  color: #ffffff;
  white-space: nowrap;
}

.work-link {
  font-size: 0.8rem;
  color: #ffffff;
  margin-left: auto;
}

.work-link:hover {
  color: #f0f0f0;
}

/* ── Collapsible ──────────────────────────────────────── */
.collapsible-toggle {
  cursor: pointer;
  user-select: none;
}

.collapsible-toggle .toggle-arrow {
  font-size: 0.7rem;
  color: #666;
  transition: transform 0.2s;
  display: inline-block;
  margin-left: 6px;
}

.collapsible-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 40px;
}

.collapsible-content.open {
  max-height: 500px;
}

.collapsible-content .work-row {
  padding: 6px 0;
}

/* ── News Dates ───────────────────────────────────────── */
.news-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 6px;
  margin-top: 8px;
}

.news-date:first-of-type {
  margin-top: 0;
}

/* ── News Cards ───────────────────────────────────────── */
.news-card {
  background: #1A1A1A;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-card:hover {
  background: #212121;
  color: inherit;
}

.news-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-desc {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-source {
  font-size: 0.85rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-source img {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

.news-thumb {
  width: 120px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #2a2a2a;
}

/* ── Accomplishments ──────────────────────────────────── */
.accomplishments-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.9;
}

.accomplishments-list li {
  margin-bottom: 4px;
}

/* ── Contact ──────────────────────────────────────────── */
.contact-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-link {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #ffffff;
}

.contact-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Slideshow ────────────────────────────────────────── */
.slideshow {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1A1A1A;
}

.slideshow-img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #111111;
  display: block;
}

.slideshow-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.slideshow-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slideshow-prev {
  left: 12px;
}

.slideshow-next {
  right: 12px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
}

.slideshow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.slideshow-dot.active {
  background: #f0f0f0;
}

/* ── Coming Soon ──────────────────────────────────────── */
.coming-soon {
  font-size: 1rem;
  color: #ffffff;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero-photo {
    width: 90px;
    height: 90px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .two-col {
    flex-direction: column;
    gap: 24px;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1F1F1F;
  }

  .work-row {
    gap: 8px;
  }

  .work-link {
    margin-left: 0;
  }

  .news-card {
    flex-direction: column;
  }

  .news-thumb {
    width: 100%;
    height: 160px;
    order: -1;
  }

  .slideshow-img {
    max-height: 350px;
  }

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