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

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'JetBrains Mono', monospace;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.timeline-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-entry:hover {
  transform: translateX(5px);
}

.timeline-marker {
  position: absolute;
  left: 82px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: #1e90ff;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #e0e0e0;
  z-index: 1;
}

.timeline-date {
  min-width: 80px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.date-start {
  display: block;
}

.date-end {
  display: block;
}

.date-end::before {
  content: '↓ ';
  color: #999;
}

.timeline-content {
  flex: 1;
  margin-left: 40px;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.timeline-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
  padding: 4px;
  flex-shrink: 0;
}

.timeline-header-text {
  flex: 1;
}

.timeline-title {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

.timeline-company {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.timeline-description {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.timeline-category {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  margin-right: 8px;
  background: #f0f0f0;
  color: #666;
}

.timeline-category:first-letter {
  text-transform: uppercase;
}

.timeline-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #1e90ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.timeline-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

.timeline-empty {
  text-align: center;
  color: #999;
  font-size: 16px;
  padding: 40px 0;
}

/* Tablet Responsive */
@media (max-width: 768px) and (min-width: 481px) {
  .timeline-container {
    padding: 0 15px;
  }

  .timeline-container::before {
    left: 75px;
  }

  .timeline-marker {
    left: 67px;
  }

  .timeline-date {
    min-width: 65px;
    font-size: 11px;
  }

  .timeline-content {
    margin-left: 30px;
  }

  .timeline-logo {
    width: 40px;
    height: 40px;
  }

  .timeline-title {
    font-size: 18px;
  }

  .timeline-company {
    font-size: 13px;
  }

  .timeline-description {
    font-size: 13px;
  }

  .timeline-entry {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .timeline-container::before {
    left: 15px;
  }

  .timeline-marker {
    left: 7px;
    width: 16px;
    height: 16px;
  }

  .timeline-entry {
    flex-direction: column;
    padding-left: 35px;
  }

  .timeline-date {
    min-width: auto;
    margin-bottom: 8px;
    font-size: 11px;
    flex-direction: row;
    gap: 5px;
  }

  .date-end::before {
    content: '- ';
    color: #666;
  }

  .timeline-content {
    margin-left: 0;
  }

  .timeline-header {
    gap: 10px;
  }

  .timeline-logo {
    width: 36px;
    height: 36px;
  }
}
