/* Animações para elementos da interface */

/* Pulsação para elementos de destaque */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.pulse {
  animation: pulse 2s infinite ease-in-out;
}

/* Efeito de flutuação para elementos visuais */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float {
  animation: float 4s infinite ease-in-out;
}

/* Efeito de brilho para bordas */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(0, 201, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 201, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 201, 255, 0.5);
  }
}

.glow-effect {
  animation: glow 3s infinite ease-in-out;
}

/* Efeito de digitação para textos */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--secondary);
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--secondary);
  }
}

/* Efeito de ondas para fundos */
.wave-bg {
  position: relative;
  overflow: hidden;
}

.wave-bg::before,
.wave-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: repeat-x;
  background-size: 100% 100px;
  height: 100px;
  transform-origin: center bottom;
}

.wave-bg::before {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%230070f3" opacity=".25"/></svg>');
  animation: wave 8s linear infinite;
}

.wave-bg::after {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2300c9ff" opacity=".15"/></svg>');
  animation: wave 10s linear -3s infinite;
}

@keyframes wave {
  0% {
    transform: translateX(0) translateZ(0) scaleY(1);
  }
  50% {
    transform: translateX(-25%) translateZ(0) scaleY(0.8);
  }
  100% {
    transform: translateX(-50%) translateZ(0) scaleY(1);
  }
}

/* Efeito de circuitos para fundos tecnológicos */
.circuit-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 201, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 201, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.circuit-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 201, 255, 0.2) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.2;
}

/* Animações para cards e elementos interativos */
.solution-card,
.case-card,
.tech-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.solution-card:hover,
.case-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow);
}

.solution-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.1) 0%, rgba(0, 201, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.solution-icon {
  transition: transform 0.3s ease;
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 201, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover .icon-glow {
  opacity: 1;
}

/* Animação para timeline */
.timeline-marker {
  position: relative;
  width: 20px;
  height: 20px;
  background-color: var(--secondary);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 201, 255, 0.8);
}

.timeline-item:hover .timeline-marker::before {
  transform: translate(-50%, -50%) scale(1.3);
}

/* Animação para botão de voltar ao topo */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  overflow: hidden;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.back-to-top-inner::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-inner::before {
  transform: rotate(45deg) translateX(100%);
}

/* Animações responsivas */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-visual {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .hero-content {
    margin-bottom: 4rem;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav ul li {
    margin: 1rem 0;
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .glitch-text {
    font-size: 3.6rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
  }
  
  .stat-item {
    flex: 0 0 100%;
    margin-bottom: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn-secondary {
    margin-left: 0;
    margin-top: 1.6rem;
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
  
  .contact-info,
  .contact-form-container {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .contact-info {
    margin-bottom: 4rem;
  }
}

