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

:root {
  /* Colors - Derived from DESIGN.md */
  --surface: #101415;
  --surface-dim: #101415;
  --surface-bright: #363a3b;
  --surface-container-lowest: #0b0f10;
  --surface-container-low: #191c1e;
  --surface-container: #1d2022;
  --surface-container-high: #272a2c;
  --surface-container-highest: #323537;
  --on-surface: #e0e3e5;
  --on-surface-variant: #c6c6ca;
  --outline: #8f9094;
  --outline-variant: #45474a;
  
  --primary: #c6c6ca;
  --on-primary: #2f3034;
  --primary-container: #121417;
  --on-primary-container: #7d7e82;
  
  --secondary: #b9c7e0;
  --on-secondary: #233144;
  --secondary-container: #3c4a5e;
  --on-secondary-container: #abb9d2;
  
  --tertiary: #3cddc7;
  --on-tertiary: #003731;
  --tertiary-container: #001814;
  --on-tertiary-container: #008e7f;

  --background: #101415;
  --on-background: #e0e3e5;

  /* Accent - Forest Teal from Brand & Style */
  --accent: #2dd4bf;

  /* Typography */
  --font-family: 'Manrope', sans-serif;

  /* Spacing */
  --unit: 8px;
  --container-max: 1200px;
  --gutter: 24px;
  --stack-sm: 8px;
  --stack-md: 24px;
  --stack-lg: 48px;
  --stack-xl: 80px;

  /* Shapes */
  --rounded-sm: 0.125rem;
  --rounded: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--on-background);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header {
  padding: 12px 0;
  border-bottom: 1px solid var(--outline-variant);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--stack-md);
}

.nav-links a {
  text-decoration: none;
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.cta-button.small {
  padding: 8px 16px;
  font-size: 12px;
}

/* Timeline Styles */
.timeline-section {
  position: relative;
  padding: var(--stack-xl) 0;
}

.timeline-header {
  text-align: center;
  margin-bottom: var(--stack-xl);
}

.timeline-header h1 {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--stack-sm);
}

.timeline-header h2 {
  font-size: 32px;
  margin-bottom: var(--stack-md);
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 4px,
    var(--outline-variant) 4px,
    var(--outline-variant) 8px
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--stack-xl);
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Card on left by default */
  align-items: center;
}

.timeline-item.overlap {
  margin-bottom: var(--stack-md); /* Smaller gap for overlapping events */
}

.timeline-item:nth-child(even) {
  justify-content: flex-end; /* Card on right for even items */
}

.timeline-card {
  width: 44%; /* Slightly less than 50% to ensure a gap for the icon */
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--stack-md);
  position: relative;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-card {
  /* No specific styles needed, flex-end handles it */
}

.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--background);
  border: 2px solid var(--accent);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--accent);
  font-size: 18px;
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--stack-sm);
}

.timeline-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
}

.timeline-card .company {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--stack-sm);
  display: block;
}

.timeline-card .role {
  font-weight: 500;
  margin-bottom: var(--stack-sm);
  display: block;
}

.timeline-card ul {
  list-style: none;
  padding: 0;
}

.timeline-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
  color: var(--on-surface-variant);
  font-size: 14px;
}

.timeline-card ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Footer CTA */
.footer-cta {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--stack-lg);
  text-align: center;
  margin: var(--stack-xl) 0;
}

.footer-cta h3 {
  font-size: 24px;
  margin-bottom: var(--stack-sm);
}

.footer-cta p {
  color: var(--on-surface-variant);
  margin-bottom: var(--stack-lg);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: var(--stack-md);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--outline);
  color: var(--on-surface);
  padding: 12px 24px;
  border-radius: var(--rounded);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--surface-bright);
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item, .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }
  
  .timeline-card {
    width: 100%;
  }
  
  .timeline-icon {
    left: 20px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }
  
  main {
    padding: var(--stack-lg) 0;
  }
}
