/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d1d1f;
  background-color: #fbfbfd;
  overflow-x: hidden;
}

/* Fixed Top Ribbon */
.top-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background-color: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ribbon-content {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 24px;
}

.site-name {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

/* Fixed Left Navigation */
.left-nav {
  position: fixed;
  top: 44px;
  left: 0;
  width: 220px;
  height: calc(100vh - 44px);
  background-color: #ffffff;
  z-index: 999;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  overflow-y: auto;
}

.left-nav ul {
  list-style: none;
  padding: 24px 0;
}

.left-nav li {
  margin-bottom: 4px;
}

.left-nav a {
  display: block;
  padding: 8px 24px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.left-nav a:hover {
  color: #0071e3;
}

.left-nav a.active {
  color: #0071e3;
  font-weight: 500;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
.nav-social {
    margin-top: 32px; /* creates the visual separation */
    display: flex;
    gap: 3px;
    align-items: center;
  }
  
  .nav-social a {
    color: #1d1d1f;
    opacity: 0.6;
    transition: opacity 0.2s ease;
  }
  
  .nav-social a:hover {
    color: #0071e3;
    opacity: 1;
  }
  
  .nav-social svg {
    display: block;
    fill: currentColor;
  }

/* Main Content */
.main-content {
  margin-left: 220px;
  margin-top: 44px;
  padding: 60px 40px;
  min-height: calc(100vh - 44px);
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 0;
  scroll-margin-top: 60px;
}

.content-section:first-child {
  padding-top: 0;
}

.content-section h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: #1d1d1f;
}

.content-section p {
  font-size: 17px;
  line-height: 1.47059;
  color: #86868b;
  margin-bottom: 20px;
}

/* Home section layout */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  
  .home-text {
    max-width: 520px;
  }
  
  .home-lede {
    font-size: 1.1rem;
    color: #555;
    margin-top: 16px;
    margin-bottom: 24px;
  }
  
  .home-image img {
    width: 100%;
    max-width: 360px;
    border-radius: 8px; /* subtle, optional */
    display: block;
  }

  @media (max-width: 900px) {
    .home-grid {
      grid-template-columns: 1fr;
    }
  
    .home-image {
      margin-top: 10px;
    }
  }
  
  
/* Timeline Styling */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #1d1d1f;
  border: 2px solid #fbfbfd;
}

.timeline-header {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.timeline-header:hover {
  color: #0071e3;
}

.timeline-content {
  display: none;
  padding-top: 8px;
}

.timeline-content.open {
  display: block;
}

.timeline-item.expanded .timeline-content {
  display: block;
}

.timeline-title {
  font-size: 17px;
  font-weight: 400;
  color: #86868b;
  margin-bottom: 16px;
}

.timeline-content ul,
.bullet-list {
  list-style: none;
  padding-left: 0;
}

.timeline-content li,
.bullet-list li {
  font-size: 17px;
  line-height: 1.47059;
  color: #1d1d1f;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.timeline-content li::before,
.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #86868b;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
  align-items: stretch;
}

.projects-grid > a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.project-item {
  padding: 32px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;

  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-image {
  margin: -32px -32px 28px -32px;
  width: calc(100% + 64px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-item h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.project-item p {
  font-size: 15px;
  color: #86868b;
  margin-bottom: 0;
  line-height: 1.47059;
}


/* Media list variant */
.bullet-list.media-list a {
    color: rgba(0, 0, 0, 0.55);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
  }
  
  .bullet-list.media-list a:hover,
  .bullet-list.media-list a:focus-visible {
    color: #007aff; /* Apple-style blue */
    outline: none;
  }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 44px;
    }
  .left-nav {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .left-nav ul {
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .left-nav li {
    margin-bottom: 0;
  }

  .left-nav a {
    padding: 8px 16px;
  }

  .nav-social {
    margin-top: 16px;
    padding: 0 16px 16px;
  }

  .main-content {
    margin-left: 0;
    padding: 24px 20px;
  }

  .content-section {
    padding: 32px 0;
  }

  .content-section h2 {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-item {
    padding: 24px;
  }

  .project-image {
    margin: -24px -24px 20px -24px;
    width: calc(100% + 48px);
  }
}

  
