/* ================= Estilos Gerais ================= */
body {
  font-family: 'Inter', sans-serif;
}
html {
  scroll-behavior: smooth;
}

/* ========= Hero Carousel ========= */
.hero-slide {
  flex: 0 0 100%;
  position: relative;
}
.hero-slide::before {
  content: '';
  display: block;
  padding-bottom: 56.25%; /* 16:9 */
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide .caption {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

/* ===== Controls ===== */
.control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: .5rem;
  border-radius: 9999px;
  transition: background .2s;
}
.control-btn:hover {
  background: rgba(255,255,255,0.4);
}

/* ===== Dots ===== */
#dots {
  display: flex;
}
#dots button {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor:pointer;
  transition: background .2s;
  margin: 0 .25rem;
}
#dots button.bg-opacity-100 {
  background: #3b82f6; /* azul ativo */
}

/* ===== Services Carousel ===== */
#serviceSlides {
  display: flex;
  transition: transform .7s ease-out;
}
.service-slide {
  flex: 0 0 100%;
  padding: 2rem;
  text-align: center;
  background: rgba(31,41,55,0.85);
  border-radius: .75rem;
  transition: transform .3s ease;
}
.service-slide.active {
  transform: scale(1.05);
}

/* ===== Circular Sound-Wave Animation ===== */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.animate-spin-slow {
  animation: spin-slow 6s linear infinite;
}

/* ===== Text Fade Sequence ===== */
.anim-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  color: #fff;
  font-size: 1.125rem; /* text-lg */
  text-shadow: 0 0 4px rgba(0,0,0,0.7);
  animation: fade 6s linear infinite;
}
.anim-text:nth-child(1) { animation-delay:   0s; }
.anim-text:nth-child(2) { animation-delay: 1.5s; }
.anim-text:nth-child(3) { animation-delay: 3.0s; }
.anim-text:nth-child(4) { animation-delay: 4.5s; }

@keyframes fade {
  0%, 20%   { opacity: 1; }
  25%,100% { opacity: 0; }
}

/* ======================================
   1) Container maior das ondas sonoras
   ====================================== */
#services-anim {
  position: relative;
  width: 300px;      /* Aumenta para 300×300 */
  height: 300px;
  margin: 0 auto;    /* Centraliza */
}

/* ======================================
   2) Anéis de ondas (3 traços grandes)
   ====================================== */
.wave {
  fill: none;
  stroke-width: 3;            /* Traço um pouco mais grosso */
  transform-origin: center; 
}
.ring1 {
  stroke: #ffffff;
  stroke-dasharray: 60 120;   /* traço 60px / espaço 120px */
  animation: rotate-wave 32s linear infinite;  /* 60% mais lento (antes 20s) */
}
.ring2 {
  stroke: #3b82f6;
  stroke-dasharray: 50 100;
  animation: rotate-wave 24s linear reverse infinite; /* 60% mais lento */
}
.ring3 {
  stroke: #60a5fa;
  stroke-dasharray: 40 80;
  animation: rotate-wave 40s linear infinite;  /* 60% mais lento */
}

@keyframes rotate-wave {
  to { transform: rotate(360deg); }
}

/* ======================================
   3) Pico de “interferência elétrica”
   ====================================== */
#services-anim::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 4px;  /* 4px de altura para ficar visível */
  animation: interference 8s steps(1) infinite;
}
@keyframes interference {
  0%, 80%, 100% { opacity: 0; }
  81%, 89% {
    opacity: 0.6;  /* Mais visível */
    background-image: linear-gradient(
      180deg,
      transparent 49%,
      rgba(59,130,246,0.7) 50%,
      transparent 51%
    );
  }
}

/* ======================================
   4) Texto central (fade 70% mais lento)
   ====================================== */
.anim-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  color: #fff;
  font-size: 1.125rem;
  text-shadow: 0 0 4px rgba(0,0,0,0.7);
  animation: fade 20s linear infinite;   /* Ciclo de 20s */
}
@keyframes fade {
  0%, 5%    { opacity: 1; }
  10%,100%  { opacity: 0; }
}
/* Delays escalonados (4 frases) */
.anim-text:nth-child(1) { animation-delay:  0s; }
.anim-text:nth-child(2) { animation-delay: 5s; }
.anim-text:nth-child(3) { animation-delay:10s; }
.anim-text:nth-child(4) { animation-delay:15s; }


/* === Container e overflow === */
#services-anim {
  /* já definido no html inline: w-[300px] h-[300px]; overflow-visible */
  position: relative;
}

/* === Anéis giratórios === */
.ring {
  fill: none;
  stroke-width: 4;
  transform-origin: center center;
}
.ring1 {
  stroke: #ffffff;
  stroke-dasharray: 60 140;
  animation: rotate-wave 32s linear infinite;
}
.ring2 {
  stroke: #3b82f6;
  stroke-dasharray: 50 120;
  animation: rotate-wave 26s linear reverse infinite;
}
.ring3 {
  stroke: #60a5fa;
  stroke-dasharray: 40 100;
  animation: rotate-wave 38s linear infinite;
}

@keyframes rotate-wave {
  to { transform: rotate(360deg); }
}

/* === Pico de interferência === */
.interference {
  background-repeat: repeat-x;
  background-image:
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 8%,
      rgba(59,130,246,0.5) 9%,
      transparent 10%
    );
  opacity: 0;
  animation: interference 8s step-start infinite;
}
@keyframes interference {
  0%, 70%, 100% { opacity: 0; }
  75%, 85%   { opacity: 1; }
}

/* === Textos centrais (loop 20s) === */
.anim-text {
  position: relative;
  color: #FFF;
  font-size: 1rem;
  opacity: 0;
  animation: fade 20s linear infinite;
}
@keyframes fade {
  0%, 5%   { opacity: 1; }
  10%,100% { opacity: 0; }
}
/* escalona cada frase */
.anim-text:nth-child(1) { animation-delay:  0s; }
.anim-text:nth-child(2) { animation-delay: 5s; }
.anim-text:nth-child(3) { animation-delay:10s; }
.anim-text:nth-child(4) { animation-delay:15s; }


/* --- Anéis finos giratórios --- */
#services-anim svg { overflow: visible; }
.ring {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2;
  transform-origin: 50% 50%;
}
.ring1 {
  stroke: #ffffff;
  stroke-dasharray: 10 60;
  animation: rotate-ring 32s linear infinite;
}
.ring2 {
  stroke: #3b82f6;
  stroke-dasharray: 8 50;
  animation: rotate-ring 28s linear reverse infinite;
}
.ring3 {
  stroke: #60a5fa;
  stroke-dasharray: 6 40;
  animation: rotate-ring 36s linear infinite;
}
@keyframes rotate-ring {
  to { transform: rotate(360deg); }
}

/* --- Pico de interferência “senoidal” --- */
.interference {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(59,130,246,0.4),
    transparent
  );
  mask: url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">\
      <path fill="none" stroke="white" stroke-width="4" \
        d="M0,100 q50,-40 100,0 t100,0" />\
    </svg>'
  ) center/cover no-repeat;
  opacity: 0;
  animation: interfere 8s ease-in-out infinite;
}
@keyframes interfere {
  0%,70%,100% { opacity: 0; transform: translateY(0); }
  75%,85%    { opacity: 1; transform: translateY(8px) }
}

/* --- Textos centrais em loop lento --- */
.anim-text {
  color: #ffffff;
  font-size: 1rem;
  opacity: 0;
  animation: fade-text 20s ease-in-out infinite;
}
@keyframes fade-text {
  0%,5%   { opacity: 1; }
  20%,100% { opacity: 0; }
}
/* Delay por linha (cada frase 5s) */
.anim-text:nth-child(1) { animation-delay:  0s; }
.anim-text:nth-child(2) { animation-delay:  5s; }
.anim-text:nth-child(3) { animation-delay: 10s; }
.anim-text:nth-child(4) { animation-delay: 15s; }

/* --- Pico de interferência em onda quadrada PWM --- */
.interference {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(59,130,246,0.4),
    transparent
  );
  /* máscara em PWM com linha mais fina (2px) e picos mais espaçados */
  mask: url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200">\
      <path fill="none" stroke="white" stroke-width="2" \
        d="M0,100 H100 V60 H200 V100 H300 V60 H400 V100" />\
    </svg>'
  ) center/cover no-repeat;
  opacity: 0;
  animation: interfere 8s ease-in-out infinite;
}

@keyframes interfere {
  0%,70%,100% { opacity: 0; transform: translateY(0); }
  75%,85%     { opacity: 1; transform: translateY(8px); }
}



