/* ==========================================
   FAIXA DE LINGUAGENS - MARQUEE INFINITO
   ========================================== */

.tech-languages-marquee {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 3rem 0;
}

.tech-languages-marquee::before,
.tech-languages-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-languages-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.tech-languages-marquee::after {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
}

.tech-languages-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: max-content;
  animation: techLanguagesScroll 40s linear infinite;
  will-change: transform;
}

@keyframes techLanguagesScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--scroll-distance, -50%));
  }
}

.tech-language-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.tech-language-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.2), rgba(0, 188, 212, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.tech-language-item:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(10, 186, 181, 0.5);
  box-shadow: 0 10px 30px rgba(10, 186, 181, 0.3);
}

.tech-language-item:hover::before {
  opacity: 1;
}

.tech-language-item i {
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Cores originais dos ícones */
.tech-language-item .fa-python {
  color: #3776ab;
}

.tech-language-item .fa-node-js {
  color: #339933;
}

.tech-language-item .fa-html5 {
  color: #E34F26;
}

.tech-language-item .fa-php {
  color: #777BB4;
}

.tech-language-item .fa-css3-alt {
  color: #1572B6;
}

.tech-language-item .fa-js {
  color: #F7DF1E;
}

.tech-language-item .fa-js-square {
  color: #3178C6;
}

.tech-language-item .fa-database {
  color: #336791;
}

.tech-language-item:hover i {
  transform: translateY(-8px) rotateX(-15deg);
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.tech-language-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.tech-language-item:hover span {
  color: #ffffff;
}

/* Tooltip */
.tech-language-tooltip {
  position: fixed;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 186, 181, 0.3);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  max-width: 250px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tech-language-tooltip.tooltip-visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-language-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(15, 23, 42, 0.95);
}

/* Responsive */
@media (max-width: 768px) {
  .tech-languages-marquee {
    padding: 1.5rem 0;
    margin: 2rem 0;
  }
  
  .tech-language-item {
    min-width: 100px;
    padding: 1rem 1.25rem;
  }
  
  .tech-language-item i {
    font-size: 2rem;
  }
  
  .tech-language-item span {
    font-size: 0.85rem;
  }
}

