.section-title {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.section-title h2 {
  font-size: 2.8rem;
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, #4a90e2, #5ba7f7);
  border-radius: 2px;
  animation: expandLine 1s ease 0.5s forwards;
  transform-origin: center;
  transform: translateX(-50%) scaleX(0);
}

.section-title p {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 400;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, #4a90e2, #e3f2fd);
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}

.timeline-item {
  position: relative;
  margin: 50px 0;
  opacity: 0;
  transform: translateY(50px);
}

.timeline-item:nth-child(odd) {
  animation: slideInLeft 0.8s ease forwards;
}

.timeline-item:nth-child(even) {
  animation: slideInRight 0.8s ease forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.3s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.5s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.7s;
}
.timeline-item:nth-child(4) {
  animation-delay: 0.9s;
}

.timeline-content {
  position: relative;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 45%;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
}

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

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

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

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #4a90e2;
  border: 4px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.timeline-item:hover .timeline-marker {
  background: #2c3e50;
  transform: translateX(-50%) scale(1.3);
  animation: none;
}

.job-header {
  margin-bottom: 20px;
  border-bottom: 2px solid #f8f9fa;
}

.job-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.company-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #4a90e2;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-name img {
  width: 30px;
}

.job-duration {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
  background: #e3f2fd;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
}

.job-description {
  color: #5a6c7d;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

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

.skill-tag {
  background: linear-gradient(45deg, #4a90e2, #5ba7f7);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

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

  .timeline-content::before {
    left: -30px !important;
    right: auto !important;
    border-right-color: white !important;
    border-left-color: transparent !important;
  }

  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .timeline-item:nth-child(even) {
    animation: slideInLeft 0.8s ease forwards;
  }
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes expandLine {
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
  }
}

/* Scroll Animation Trigger */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
