/* 
 * PROCESS SECTION - Agência Precisão
 * Estilos para a seção de processos/timeline
 */

.process {
  position: relative;
  background: var(--gradiente-fundo);
  min-height: 100vh;
  overflow: hidden;
  padding: 5vw 10vw 0vw 10vw;
}

.timeline-container {
  position: relative;
  margin-top: 6rem;
  min-height: 800px;
}

.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 20px;
  transform: translateX(-50%);
  height: 100%;
  z-index: 1;
}

.timeline-path {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Energy flow particles */
.energy-flow {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  height: 100%;
  overflow: hidden;
  z-index: -1;
  clip-path: inset(0);
}

.energy-particle {
  position: absolute;
  width: 6px;
  height: 20px;
  background: var(--cor-primaria);
  border-radius: 50px;
  left: 0;
  filter: blur(2px);
  animation: particle-flow 4s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
  opacity: 0;
  box-shadow: 0 0 15px rgba(0, 209, 255, 0.8);
  max-height: 10%;
  will-change: transform, opacity;
  contain: strict;
}

.energy-particle:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 4s;
}

.energy-particle:nth-child(2) {
  animation-delay: 0.8s;
  animation-duration: 4.2s;
}

.energy-particle:nth-child(3) {
  animation-delay: 1.6s;
  animation-duration: 3.8s;
}

.energy-particle:nth-child(4) {
  animation-delay: 2.4s;
  animation-duration: 4.5s;
}

.energy-particle:nth-child(5) {
  animation-delay: 3.2s;
  animation-duration: 3.6s;
}

/* Timeline Items */
.timeline {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 4rem;
  width: 100%;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: relative;
  width: 50%;
  display: flex;
  justify-content: flex-end;
  padding-right: 4rem;
  align-items: center;
}

.timeline-item.right .timeline-marker {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 4rem;
}

.marker-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f2e4a, var(--cor-fundo-escuro));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cor-primaria);
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.6);
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 209, 255, 0.3);
}

.marker-connector {
  position: absolute;
  right: 0;
  top: 50%;
  height: 3px;
  width: 4rem;
  background: linear-gradient(90deg, transparent, var(--cor-primaria));
  transform: translateY(-50%);
}

.timeline-item.right .marker-connector {
  right: auto;
  left: 0;
  background: linear-gradient(90deg, var(--cor-primaria), transparent);
}

.timeline-card {
  width: 50%;
  padding: 2.5rem;
  background: rgba(20, 45, 70, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-padrao);
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 2;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 209, 255, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.timeline-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.timeline-card:hover::before {
  opacity: 1;
}

.timeline-item:hover .marker-number {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 209, 255, 0.8);
}

.card-icon {
  margin-bottom: 1.5rem;
  position: relative;
}

.icon-svg {
  fill: honeydew;
  stroke: var(--cor-primaria);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 209, 255, 0.5));
  transition: all 0.4s ease;
}

.timeline-card:hover .icon-svg {
  stroke: var(--cor-secundaria);
  filter: drop-shadow(0 0 8px rgba(249, 178, 51, 0.5));
  transform: scale(1.1);
}

.timeline-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--cor-texto-principal);
  position: relative;
  display: inline-block;
}

.timeline-card h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--cor-secundaria);
  transition: width 0.3s ease;
}

.timeline-card:hover h3::after {
  width: 100%;
}

.timeline-card p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--cor-texto-secundario);
  line-height: 1.7;
}

.card-glow {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.5s ease;
  pointer-events: none;
  opacity: 0;
}

.timeline-card:hover .card-glow {
  transform: scale(1.5);
  opacity: 1;
}

/* Animations for icons */
.icon-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-icon 2s forwards;
}

/* Responsividade Process Section */
@media screen and (max-width: 1024px) {
  .timeline-marker {
    padding-right: 2rem;
  }

  .timeline-item.right .timeline-marker {
    padding-left: 2rem;
  }

  .marker-connector {
    width: 2rem;
  }

  .timeline-card {
    padding: 2rem;
  }
}

@media screen and (max-width: 768px) {
  /* Timeline mobile adjustments */
  .timeline-track {
    left: 30px;
  }

  .energy-flow {
    left: 30px;
    transform: none;
  }

  .timeline-item, 
  .timeline-item.right {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px;
    margin-bottom: 4rem;
  }

  .timeline-marker, 
  .timeline-item.right .timeline-marker {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    margin-bottom: 1.5rem;
  }

  .marker-number {
    margin-left: -30px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .marker-connector,
  .timeline-item.right .marker-connector {
    left: 25px;
    top: 25px;
    width: 30px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cor-primaria), transparent);
    transform: none;
  }

  .timeline-card {
    width: 100%;
    padding: 1.5rem;
	  margin: 0 -5vw;
  }

  .timeline-card h3 {
    font-size: 1.3rem;
  }

  .timeline-card p {
    font-size: 0.9rem;
  }
}

/* Acessibilidade Process Section */
@media (prefers-reduced-motion: reduce) {
  .energy-particle,
  .timeline-card:hover,
  .timeline-card::before,
  .timeline-item:hover .marker-number,
  .card-glow,
  .timeline-card:hover .card-glow,
  .icon-svg,
  .timeline-card:hover .icon-svg,
  .icon-path {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
