/*
 * ══════════════════════════════════════════════════════════════
 *  VisiON Studio Digital — Custom Effects v1.0
 *  Animated Gradient + Hover Gradient (paleta oficial Vision)
 *
 *  Paleta base:
 *    --cyan:        #00d4ff
 *    --cyan-dim:    #00a8cc
 *    --cyan-glow:   rgba(0,212,255,.18)
 *    --bg-deep:     #080c14
 *    --bg-card:     #0d1528
 *    --bg-dark:     #0a1020
 * ══════════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────────────────────
   HERO NICHO CHIPS
   Chips clicáveis de nicho logo abaixo dos botões do hero.
   Scroll para a aba correta de pacotes ao clicar.
   ───────────────────────────────────────────────────────────── */

.hero-nicho-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  margin-bottom: 4px;
}

.hero-nicho-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.05);
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
}

/* Força tamanho fixo dos ícones SVG dentro dos chips */
.hero-nicho-chip svg {
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  stroke: var(--cyan-dim);
  transition: stroke .25s ease;
  flex-shrink: 0;
}

.hero-nicho-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.10);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.12);
}

.hero-nicho-chip:hover svg {
  stroke: var(--cyan);
}

@media (max-width: 480px) {
  .hero-nicho-chips {
    gap: 8px;
    margin-top: 22px;
  }
  .hero-nicho-chip {
    font-size: .68rem;
    padding: 5px 11px;
  }
  .hero-nicho-chip svg {
    width: 12px;
    height: 12px;
    min-width: 12px;
  }
}



/* ─────────────────────────────────────────────────────────────
   1. ANIMATED GRADIENT — Fundo animado em cyan ↔ azul profundo
      Utilizado em: hero-badge, seção de CTA, section-divider
      Não usa cores externas — apenas deriva da paleta atual
   ───────────────────────────────────────────────────────────── */

@keyframes visionGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Badge hero — substitui o borda estática por fundo animado sutil */
.hero-badge {
  background: linear-gradient(
    270deg,
    rgba(0, 212, 255, 0.12) 0%,
    rgba(0, 168, 204, 0.20) 40%,
    rgba(0,  90, 180, 0.12) 70%,
    rgba(0, 212, 255, 0.08) 100%
  );
  background-size: 300% 300%;
  animation: visionGradientShift 5s ease infinite, fadeIn 0.8s 0.5s both;
  border-color: rgba(0, 212, 255, 0.35);
}

/* Linha divisória das seções — pulsa suavemente em vez de estática */
.section-divider {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan) 35%,
    var(--cyan-dim) 65%,
    transparent 100%
  );
  background-size: 200% auto;
  animation: visionGradientShift 4s linear infinite, lineGrow 0.6s ease both;
  width: 52px;
}

/* Seção de contato — fundo animado na faixa de destaque */
#contato .cta-container::before {
  content: '';
  position: absolute;
  inset: -60px -40px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05) 0%,
    rgba(0, 90,  180, 0.08) 40%,
    rgba(0, 168, 204, 0.05) 70%,
    rgba(0, 212, 255, 0.03) 100%
  );
  background-size: 400% 400%;
  animation: visionGradientShift 8s ease infinite;
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;
}
#contato .cta-container {
  position: relative;
  z-index: 1;
}
#contato .cta-container > * {
  position: relative;
  z-index: 1;
}

/* Featured card de pacote — fundo animado no card "Mais Escolhido" */
.v1-package-card.featured {
  background: linear-gradient(
    145deg,
    rgba(0, 212, 255, 0.07) 0%,
    rgba(8,  12,  40, 0.96) 40%,
    rgba(0, 168, 204, 0.05) 80%,
    rgba(8,  12,  40, 0.98) 100%
  );
  background-size: 300% 300%;
  animation: visionGradientShift 7s ease infinite;
}

/* Stat numbers no hero — shimmer de cyan em loop */
.hero-stat-number {
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    #4dd0e1    40%,
    var(--cyan-dim) 60%,
    var(--cyan) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: visionGradientShift 4s linear infinite;
}


/* ─────────────────────────────────────────────────────────────
   2. HOVER GRADIENT — Revela gradiente cyan no hover dos elementos
      Técnica: pseudo-elemento ::after com opacity transition
      Elementos: botões de pacote, CTAs, cards de serviço, extras
   ───────────────────────────────────────────────────────────── */

/* ── Botão principal de pacote (.v1-btn-pkg) ── */
.v1-btn-pkg {
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
}
.v1-btn-pkg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--cyan)     0%,
    var(--cyan-dim) 60%,
    #007fa3         100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.v1-btn-pkg:hover::after,
.v1-package-card.featured .v1-btn-pkg::after {
  opacity: 1;
}
/* Garante que o texto fique visível sobre o gradiente */
.v1-btn-pkg:hover,
.v1-package-card.featured .v1-btn-pkg {
  color: #080c14;
  border-color: transparent;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.5),
              0 6px 24px rgba(0, 0, 0, 0.4);
}

/* ── Botão CTA principal da seção (.section-cta-button) ── */
.section-cta-button {
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
}
.section-cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.55) 0%,
    rgba(0, 168, 204, 0.45) 50%,
    rgba(0, 90,  180, 0.35) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.section-cta-button:hover::after {
  opacity: 1;
}
.section-cta-button:hover {
  border-color: rgba(0, 212, 255, 0.55);
  color: #ffffff;
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.3),
              0 8px 28px rgba(0, 0, 0, 0.35);
}

/* ── Context CTA nos cards de serviço (.context-cta) ── */
.context-cta {
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
}
.context-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.42) 0%,
    rgba(0, 168, 204, 0.30) 55%,
    rgba(0,  80, 160, 0.22) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.context-cta:hover::after {
  opacity: 1;
}
.context-cta:hover {
  border-color: rgba(0, 212, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.22),
              0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ── Cards de serviço — destaque de fundo no hover ── */
.service-card {
  background: linear-gradient(
    180deg,
    var(--bg-deep) 0%,
    var(--bg-deep) 100%
  );
  background-size: 100% 200%;
  transition: all 0.45s ease, background-position 0.6s ease;
}
.service-card:hover {
  background-image: linear-gradient(
    180deg,
    rgba(0, 212, 255, 0.04) 0%,
    var(--bg-deep)          50%,
    var(--bg-deep)          100%
  );
  background-position: 0 top;
}

/* ── Extra cards — hover gradient na borda superior ── */
.extra-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent             0%,
    var(--cyan)            40%,
    var(--cyan-dim)        70%,
    transparent            100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 16px 16px 0 0;
}
.extra-card:hover::after {
  opacity: 1;
}

/* ── Nav CTA — gradiente no hover ── */
.nav-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--cyan)     0%,
    var(--cyan-dim) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}
.nav-cta:hover::after {
  opacity: 1;
}
.nav-cta:hover {
  color: #080c14;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* ── Botão primário hero — glow mais forte no hover ── */
.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #4dd0e1         0%,
    var(--cyan)     40%,
    var(--cyan-dim) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.btn-primary:hover::after {
  opacity: 1;
}
.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.55),
              0 2px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* ── Diag trigger — hover gradient ── */
.diag-trigger {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.diag-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.20) 0%,
    rgba(0, 168, 204, 0.12) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.diag-trigger:hover::after {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   3. REFINAMENTOS INTEGRADOS
      Pequenos ajustes que integram os efeitos ao sistema visual
   ───────────────────────────────────────────────────────────── */

/* Step icon hover — micro glow animado */
.process-step:hover .step-icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.12) 0%,
    rgba(0, 168, 204, 0.06) 100%
  );
}

/* Scroll indicator — pulso suave no gradiente */
.scroll-line {
  background: linear-gradient(
    to bottom,
    var(--cyan),
    var(--cyan-dim),
    transparent
  );
  background-size: 100% 200%;
  animation: visionGradientShift 2s ease-in-out infinite, float 2s ease-in-out infinite;
}

/* Portfolio tabs — hover gradient */
.portfolio-tab:hover,
.portfolio-tab.active {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.12) 0%,
    rgba(0, 168, 204, 0.06) 100%
  );
}

/* pkg-tab no filtro de pacotes */
.pkg-tab:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.10) 0%,
    rgba(0, 168, 204, 0.05) 100%
  );
}
.pkg-tab.active {
  background: linear-gradient(
    135deg,
    var(--cyan)     0%,
    var(--cyan-dim) 100%
  );
}

/* Respeita preferência de redução de movimento */
@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .section-divider,
  .hero-stat-number,
  .v1-package-card.featured,
  #contato .cta-container::before,
  .scroll-line {
    animation: none;
    background-size: 100% auto;
  }
}
