/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 115px 15px 0;
  margin-top: 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.7)),
    url("../assets/banner-hero.webp");
  background-size: cover;
  background-position: center;
  z-index: -1;
  animation: heroBackground 15s ease-in-out infinite alternate;
  transition: background 0.3s ease;
}

/* Adiciona um overlay com gradiente animado */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(55, 107, 255, 0.15),
    rgba(255, 211, 1, 0.15)
  );
  opacity: 0;
  z-index: 1;
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes heroBackground {
  0% {
    background-position: center;
  }
  50% {
    background-position: 48% 52%;
  }
  100% {
    background-position: 52% 48%;
  }
}

@keyframes gradientShift {
  0% {
    opacity: 0;
    background: linear-gradient(
      135deg,
      rgba(55, 107, 255, 0.1),
      rgba(255, 211, 1, 0.1)
    );
  }
  50% {
    opacity: 0.3;
    background: linear-gradient(
      135deg,
      rgba(255, 211, 1, 0.1),
      rgba(55, 107, 255, 0.1)
    );
  }
  100% {
    opacity: 0.2;
    background: linear-gradient(
      135deg,
      rgba(55, 107, 255, 0.1),
      rgba(255, 211, 1, 0.1)
    );
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.loja-online-link {
  margin: 20px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.loja-online-link a {
  display: inline-block;
  background-color: rgba(255, 221, 0, 0.9);
  color: #222;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 221, 0, 0.9);
  animation: pulsar 2s infinite ease-in-out;
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}

.loja-online-link a::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  animation: brilho 4s infinite;
  z-index: 1;
}

.loja-online-link a span {
  position: relative;
  z-index: 2;
}

@keyframes brilho {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(30deg);
  }
  20%,
  100% {
    transform: translateX(100%) translateY(100%) rotate(30deg);
  }
}

@keyframes pulsar {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 211, 1, 0.3),
      0 0 0 4px rgba(255, 211, 1, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

.loja-online-link a:hover {
  background-color: #fff;
  color: #222;
  border-color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(55, 107, 255, 0.2),
    0 0 0 5px rgba(255, 255, 255, 0.15);
  animation-play-state: paused;
}

.loja-online-link i {
  margin-right: 8px;
}

.contato-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contato-btn {
  margin: 15px 0 0;
  text-align: center;
}

.contato-btn a {
  display: inline-block;
  background-color: rgba(55, 107, 255, 0.9);
  color: #fff;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(55, 107, 255, 0.9);
}

.contato-btn a:hover {
  background-color: #fff;
  color: #376bff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(55, 107, 255, 0.25);
}

.contato-btn i {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    padding: 110px 15px 0;
    margin-top: 0;
  }

  .hero::before {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.75)),
      url("../assets/banner-hero.webp");
    background-size: cover;
    background-position: center;
    animation: mobileHeroBackground 15s ease-in-out infinite alternate;
  }

  .hero::after {
    background: linear-gradient(
      135deg,
      rgba(55, 107, 255, 0.12),
      rgba(255, 211, 1, 0.12)
    );
    animation: mobileGradientShift 12s ease-in-out infinite alternate;
  }

  @keyframes mobileHeroBackground {
    0% {
      background-position: center;
    }
    50% {
      background-position: center 45%;
    }
    100% {
      background-position: center 55%;
    }
  }

  @keyframes mobileGradientShift {
    0% {
      opacity: 0.1;
      background: linear-gradient(
        135deg,
        rgba(55, 107, 255, 0.08),
        rgba(255, 211, 1, 0.08)
      );
    }
    50% {
      opacity: 0.25;
      background: linear-gradient(
        135deg,
        rgba(255, 211, 1, 0.08),
        rgba(55, 107, 255, 0.08)
      );
    }
    100% {
      opacity: 0.15;
      background: linear-gradient(
        135deg,
        rgba(55, 107, 255, 0.08),
        rgba(255, 211, 1, 0.08)
      );
    }
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero::before {
    background-position: center; /* Centraliza a imagem em dispositivos pequenos */
  }

  .hero-content h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
}
