:root {
  --primary-color:rgb(99, 255, 107);
  --primary-light:rgb(191, 255, 207);
  --bg-dark:rgb(2, 17, 2);
  --dot-glow: rgba(99, 255, 130, 0.6);
}

.experience-section {
  padding: 4rem 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.experience-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
  opacity: 0.3;
  z-index: 1;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 6rem auto 0;
  padding: 0 2rem;
}

.timeline-item {
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s ease-out;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Alternância Lado Esquerdo e Direito */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 6rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 6rem;
}

.timeline-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, #141526, #0a0b14);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  top: 2rem;
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow: 0 0 12px var(--dot-glow);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 18px var(--dot-glow), 0 0 40px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -14px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -14px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}

.timeline-item:hover .timeline-content {
  background: rgba(108, 99, 255, 0.07);
  transform: translateY(-8px);
  border-color: var(--primary-color);
}

.timeline-content h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content h3 span {
  font-size: 0.95rem;
  color: var(--primary-light);
  display: block;
  margin-top: 0.3rem;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-top: 0.8rem;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.timeline-skills li {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--primary-color);
  backdrop-filter: blur(6px);
}

/* Linha vertical */
.timeline::after {
  content: '';
  position: absolute;
  width: 5px;
  background: rgba(108, 99, 255, 0.2);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
  z-index: 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .timeline::before,
  .timeline::after {
    left: 30px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 2rem 2rem 2rem 4.5rem;
    text-align: left;
  }

  .timeline-item .timeline-dot {
    left: 10px !important;
  }
}
