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

/* Apply Inter font to body */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1;
}

/* Timeline specific styles */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mobile-first timeline */
.timeline-item {
  position: relative;
  padding-left: 1rem;
  padding-bottom: 1rem; /* Reduced */
  border-left: 2px solid #e5e7eb;
}

.timeline-item:last-child {
  border-left: none;
}

.timeline-content {
  background: white;
  padding: 1rem; /* Reduced */
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-left: 1rem;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease-out; /* Faster */
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 500;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.timeline-description {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

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

.timeline-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

.timeline-list li:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: 600;
}

/* For medium screens and up, use a centered timeline */
@media (min-width: 768px) {
  .timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    border-radius: 1.5px;
  }
  
  .timeline-item {
    margin: 0;
    width: 50%;
    position: relative;
    padding-left: 0;
    padding-bottom: 2rem;
    border-left: none;
  }
  
  .timeline-item:nth-child(odd) {
    padding-right: 3rem;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
  }
  
  .timeline-content {
    margin-left: 0;
    margin-right: 0;
    position: relative;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
  }
  
  .timeline-item:nth-child(odd) .timeline-list li {
    text-align: left;
  }
  
  .timeline-item:nth-child(even) .timeline-list li {
    text-align: left;
  }

  /* Fast Animation */
  .timeline-item {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    opacity: 0;
  }
  
  .timeline-item.is-visible {
    opacity: 1;
    transform: none !important;
  }
  
  .timeline-item:nth-child(odd) {
    transform: translateX(-30px);
  }
  
  .timeline-item:nth-child(even) {
    transform: translateX(30px);
  }
}

/* Hover effects */
.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-out; /* Faster */
}

/* Unified Skills Section */
.skills-container {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skills-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.skills-category {
    /* No special styling needed, just a container */
}

.category-title-new {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.skills-grid-new {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.skill-badge i {
    margin-right: 0.5rem;
    color: inherit;
    opacity: 0.8;
}

/* Competence Tiers Styling */
.skill-badge.virtuoso {
    background-color: #E0F2F1;
    color: #00796B;
    border-color: #B2DFDB;
}
.legend-box.virtuoso { background-color: #E0F2F1; border: 1px solid #B2DFDB; }

.skill-badge.journeyman {
    background-color: #E3F2FD;
    color: #1E88E5;
    border-color: #BBDEFB;
}
.legend-box.journeyman { background-color: #E3F2FD; border: 1px solid #BBDEFB; }

.skill-badge.explorer {
    background-color: #FFF8E1;
    color: #F9A825;
    border-color: #FFECB3;
}
.legend-box.explorer { background-color: #FFF8E1; border: 1px solid #FFECB3; }

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}
    
/* Course List Styles */
.course-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

.course-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.4;
}

.course-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: 600;
}


.tech-constellation::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.5" fill="rgba(255,255,255,0.3)"/><circle cx="7" cy="7" r="0.3" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
  opacity: 0.3;
}

.tech-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* Philosophy Section */
.philosophy-card {
  background: #f8fafc;
  color: #374151;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.philosophy-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  opacity: 0.3;
  font-family: serif;
}

.philosophy-quote {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.philosophy-attribution {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Social Data Science Card */
.social-ds-card {
  background: #f8fafc;
  color: #374151;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.interest-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.interest-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.interest-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.interest-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.interest-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Horizontal Progress Bar Journey Styles */
.journey-progress-container {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden; /* Fix container overflow */
  width: 100%;
  max-width: 100%;
}

.progress-track {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
}

.progress-line {
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 1px;
  margin: 2rem 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.progress-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.progress-fill {
  position: absolute;
  top: 2rem;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
  border-radius: 1px;
  width: 0%;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -2px;
  width: 4px;
  height: 4px;
  background: #fff;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  flex: 1;
  max-width: 33.333%;
}

.progress-step.active {
  opacity: 1;
}

.progress-step:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.step-circle {
  position: relative;
  margin-bottom: 1rem;
}

.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 3;
}

.progress-step.active .step-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.step-label {
  text-align: center;
  width: 100%;
  word-wrap: break-word;
}

.step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  display: block;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-years {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.progress-step.active .step-title {
  color: #1f2937;
}

.progress-step.active .step-years {
  color: #4b5563;
}

/* Details Panel - Fixed height and overflow */
.details-panel {
  position: relative;
  min-height: 250px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.step-details {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
}

.step-details.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.details-header {
  margin-bottom: 1.5rem;
}

.details-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.details-institution {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.4;
}

.details-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.details-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 100%;
}

.highlight-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.highlight-tag:hover {
  background: #e5e7eb;
}

/* Career Progression */
.career-progression {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.progression-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #10b981;
  width: 100%;
  box-sizing: border-box;
}

.progression-role {
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.progression-period {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 1rem;
}

/* Color coding for different steps */
.step-dot.bg-blue-500 {
  background-color: #3b82f6;
}

.step-dot.bg-purple-500 {
  background-color: #8b5cf6;
}

.step-dot.bg-green-500 {
  background-color: #10b981;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .journey-progress-container {
    padding: 1.5rem;
    margin: 0 auto;
  }
  
  .progress-steps {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .progress-line,
  .progress-fill {
    display: none;
  }
  
  .progress-step {
    flex-direction: row;
    text-align: left;
    max-width: 100%;
    opacity: 0.8;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
  }
  
  .progress-step.active {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
  }
  
  .step-circle {
    margin-bottom: 0;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .step-label {
    text-align: left;
    min-width: auto;
    flex: 1;
  }
  
  .step-title {
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
    font-size: 1rem;
    margin-bottom: 0.125rem;
  }
  
  .details-panel {
    margin-top: 2rem;
    min-height: auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
  }
  
  .details-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  
  .details-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .details-highlights {
    gap: 0.375rem;
  }
  
  .highlight-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .progression-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
  }
  
  .progression-role {
    font-size: 0.9rem;
  }
  
  .progression-period {
    margin-left: 0;
    margin-top: 0.25rem;
    white-space: normal;
    font-size: 0.8rem;
  }
}

/* Animations */
.journey-progress-container {
  animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
