/*
  Seção Outsourcing de TI:
  - vídeo de fundo aplicado direto na seção
  - grid textual + imagem institucional
  - visual premium com glow teal e responsividade completa
*/

.outsourcing-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: clamp(3.2rem, 4vw, 4.8rem) 0;
  background: transparent;
}

.outsourcing-section__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.3;
  pointer-events: none;
}

.outsourcing-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgb(6 18 26), rgb(6 18 26 / 89%), rgb(6 18 26 / 0%)), radial-gradient(95% 78% at 18% 34%, rgb(55 153 132 / 0%), rgb(55 153 132 / 0%) 58%);
}

.outsourcing-section::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: min(92vw, 1280px);
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(45, 194, 166, 0), rgba(45, 194, 166, 0.4), rgba(45, 194, 166, 0));
    box-shadow: 0 0 18px rgba(45, 194, 166, 0.16);
    filter: blur(0.2px);
    pointer-events: none;
    z-index: 1;
}

.outsourcing-container {
    width: 100%;
    position: relative;
    z-index: 1;
    padding: clamp(80px, 5vw, 120px) clamp(24px, 5vw, 72px);
}

.outsourcing-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 6vw, 90px);
  align-items: center;
}

.outsourcing-kicker {
  margin: 0 0 0.8rem;
  color: #379984;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.outsourcing-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 4.3vw, 4.6rem);
  line-height: 1.03;
  font-weight: 800;
  text-shadow: 0 8px 22px rgba(4, 20, 27, 0.46);
}

.outsourcing-title span {
    color: #2bd2b3;
}

.outsourcing-title-line {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 255, 218, 0.9), rgba(79, 255, 218, 0));
  box-shadow: 0 0 10px rgba(55, 153, 132, 0.46);
}

.outsourcing-content {
    position: relative;
    left: 15px;
}

.outsourcing-content > .outsourcing-points,
.outsourcing-content > .outsourcing-cta {
  max-width: min(900px, 100%);
}

.outsourcing-intro {
  margin: 1.08rem 0 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.2vw, 1.35rem);
  line-height: 1.52;
  max-width: 62ch;
}

.outsourcing-points {
  margin-top: 0;
  display: grid;
  gap: 1rem;
}

.outsourcing-point {
    display: grid;
    grid-template-columns: 126px 470px minmax(0, 1fr);
    gap: 3rem;
    padding: 1.2rem 1.3rem;
    border-radius: 28px;
    border: 1px solid rgba(55, 153, 132, 0.95);
    background: linear-gradient(155deg, rgb(255 255 255 / 12%), rgb(4 4 4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 18px rgb(0 0 0), inset 0 0 18px rgba(55, 153, 132, 0.08);
    transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
    position: relative;
}

.outsourcing-point:hover {
  transform: translateY(-6px);
  border-color: rgba(90, 236, 206, 0.88);
  box-shadow:
    0 0 32px rgba(55, 153, 132, 0.55),
    inset 0 0 24px rgba(55, 153, 132, 0.12);
}

.outsourcing-point::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 20px;
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, rgb(55 153 132 / 0%), rgba(79, 255, 218, 0.9));
    box-shadow: 0 0 12px rgb(55 153 132 / 63%);
}

.outsourcing-point::after {
    content: "";
    width: 2px;
    height: 86px;
    align-self: center;
    justify-self: center;
    background: linear-gradient(180deg, #2dc2a6, #2dc2a67a, #f8f8f8);
}

.outsourcing-point__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #37f0c0;
  font-size: 2rem;
  background: linear-gradient(145deg, rgba(55, 153, 132, 0.26), rgba(55, 153, 132, 0.08));
  border: 1px solid rgba(55, 153, 132, 0.7);
  box-shadow: 0 0 24px rgba(55, 153, 132, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  justify-self: center;
  align-self: center;
  overflow: hidden;
}

.outsourcing-point:hover .outsourcing-point__icon {
  transform: scale(1.08);
  color: #b3fff2;
  box-shadow: 0 0 34px rgba(55, 153, 132, 0.66);
}

.outsourcing-point__icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(55, 153, 132, 0.45));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.outsourcing-point:hover .outsourcing-point__icon img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(55, 240, 192, 0.88));
}

.outsourcing-point h3 {
  margin: 0;
  color: #eef9ff;
  font-size: clamp(1.28rem, 1.55vw, 1.65rem);
  line-height: 1.2;
  font-weight: 800;
}

.outsourcing-point p {
  margin: 0.45rem 0 0;
  color: rgba(225, 239, 247, 0.95);
  font-size: clamp(0.98rem, 1.02vw, 1.1rem);
  line-height: 1.56;
  max-width: 70ch;
}

.outsourcing-cta {
    margin-top: 5.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    min-height: 68px;
    padding: 15px 35px;
    border-radius: 999px;
    border: 1px solid rgba(159, 255, 233, 0.72);
    background: linear-gradient(135deg, #1fd6a5, #379984);
    color: rgb(0 0 0);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    box-shadow: 0 0 28px rgb(0 0 0), inset 0 0 18px #000000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.outsourcing-cta i {
  font-size: 1.4em;
}

.outsourcing-cta:hover {
  transform: translateY(-4px) scale(1.04);
  filter: brightness(1.04);
  box-shadow:
    0 0 42px rgba(55, 153, 132, 0.9),
    0 0 80px rgba(55, 153, 132, 0.45);
}

.outsourcing-cta:focus-visible {
  outline: 2px solid rgba(210, 255, 245, 0.95);
  outline-offset: 2px;
}

.outsourcing-media {
  justify-self: center;
  opacity: 0;
  transform: translateX(-60px) scale(0.96);
  filter: blur(2px);
}

.outsourcing-media__frame {
    margin: 0px;
    margin-top: 195px;
    width: clamp(320px, 40vw, 680px);
    border-radius: 30px;
    padding: 0px;
    background: rgba(2, 13, 18, 0.72);
    border: 2px solid rgba(55, 240, 192, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 38px rgb(0 0 0), inset 0 0 28px rgba(55, 153, 132, 0.18);
    transform: perspective(1200px) rotateY(-4deg);
}

.outsourcing-media__frame img {
  width: 100%;
  height: clamp(400px, 45vw, 760px);
  display: block;
  border-radius: 32px;
  object-fit: cover;
  transition: transform 0.34s ease, filter 0.34s ease, box-shadow 0.34s ease;
}

.outsourcing-media__frame:hover img {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 0 18px rgba(55, 153, 132, 0.36);
}

.outsourcing-section .outsourcing-media.is-visible {
  animation: fadeSlideLeft 1.5s ease forwards;
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-60px) scale(0.96);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(55, 153, 132, 0.45);
  }
  50% {
    box-shadow: 0 0 34px rgba(55, 153, 132, 0.85);
  }
}

@media (max-width: 1024px) {
  .outsourcing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .outsourcing-media {
    justify-self: center;
    margin-top: 0.6rem;
  }
}

@media (max-width: 760px) {
  .outsourcing-section {
    padding: 2.6rem 0;
  }

  .outsourcing-container {
    width: min(1200px, calc(100% - 1rem));
  }

  .outsourcing-title {
    font-size: clamp(1.88rem, 7.6vw, 2.7rem);
    text-align: center;
  }

  .outsourcing-kicker,
  .outsourcing-title-line {
    margin-inline: auto;
  }

  .outsourcing-intro {
    text-align: center;
    font-size: 1.02rem;
  }

  .outsourcing-point {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1rem 0.9rem;
  }

  .outsourcing-point__icon {
    width: 74px;
    height: 74px;
    font-size: 1.55rem;
  }

  .outsourcing-point::after {
    width: 86px;
    height: 1px;
    justify-self: center;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.65),
      transparent
    );
  }

  .outsourcing-cta {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .outsourcing-point,
  .outsourcing-point__icon,
  .outsourcing-cta,
  .outsourcing-media__frame img {
    transition: none !important;
  }

  .outsourcing-section .outsourcing-media.is-visible {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
