/* =========================================
   TIMELINE STYLES - Experience Section
   ========================================= */

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 40px 0;
  width: 45%;
}

.timeline-item:nth-child(even) {
  margin-left: 55%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border: 4px solid #000000;
  border-radius: 50%;
  top: 20px;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(odd)::before {
  right: -60px;
}

.timeline-item:nth-child(even)::before {
  left: -60px;
}

.timeline-content {
  background: transparent;
  color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-content::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 30px;
  border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -30px;
  border-left-color: transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -30px;
  border-right-color: transparent;
}

.timeline-content:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.timeline-date {
  background: #FFFFFF;
  color: #000000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.timeline-title {
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-company {
  color: #CCCCCC;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.timeline-description {
  color: #CCCCCC;
  line-height: 1.6;
  margin-bottom: 20px;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-skill {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile adaptations */
@media (max-width: 768px) {
  .timeline {
    padding: 10px 0;
  }

  .timeline::before {
    left: 20px;
    background: rgba(255, 255, 255, 0.5);
  }

  .timeline-item {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin: 20px 0 20px 60px !important;
  }

  .timeline-item::before {
    left: -50px !important;
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .timeline-content {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .timeline-content::before {
    display: none;
  }

  .timeline-date {
    padding: 5px 10px;
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .timeline-title {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .timeline-company {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .timeline-description {
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 10px;
    display: block;
  }

  .timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
  }

  .timeline-skill {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .timeline-content:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }
}
