@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400");

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ================= VARIABLE ================ */
:root {
  --primary-color: hsl(253, 94%, 61%);
  --primary-color-alt: hsl(28, 72%, 83%);
  --second-color: #3e537c;
  --second-color-alt: hsla(220, 33%, 36%, 65%);
  --third-color: hsl(220, 36%, 28%);
  --white-color: #fbfbfb;
  --white-color-alt: hsl(12, 14%, 93%);
  --dark-color: hsl(300, 100%, 0%);
}

/* ================= BASE ==================== */
li {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

.bx {
  font-size: 2.5rem;
}

.container {
  padding: 0 2rem;
}

/* -- BODY -- */
body {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  background-color: var(--white-color);
}

/* ================= HEADER ================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(29, 37, 43);
  padding: 1rem 2rem;
}

.logo {
  font-size: 2.5rem;
  background: -webkit-linear-gradient(120deg,
      var(--primary-color-alt),
      var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-items {
  display: flex;
}

.nav-item {
  margin: 0 2rem;
}

.nav-link {
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
  position: relative;
  background: -webkit-linear-gradient(var(--primary-color-alt),
      var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link::before {
  content: "";
  background: linear-gradient(var(--primary-color), var(--primary-color-alt));
  width: 100%;
  height: 0.05rem;
  position: absolute;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 150ms;
}

.nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}


/* ================= MAIN ================ */

/* -------- HOME SECTION -------------- */
.section-1 {
  background-image: url(img/planodefundo.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 85%;
}

/* .home-computer-container {} */



.slogan .titulo {
  background: -webkit-linear-gradient(120deg,
      var(--primary-color-alt),
      var(--white-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 2rem;
  font-size: 3rem;
  font-weight: 500;
}

.slogan .titulo2 {
  background: -webkit-linear-gradient(120deg,
      var(--primary-color-alt),
      var(--white-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8rem;
}

.slogan .titulo3 {
  background: -webkit-linear-gradient(120deg,
      var(--primary-color-alt),
      var(--white-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 1rem;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.8rem;
}


/* -------- OFFER SECTION ------------- */



.section-2 {
  margin: 5rem 0;
}

.offer {
  background-color: white;
  margin: 1rem 0;
  display: grid;
}

.offer img {
  background-color: white;
  padding: 2rem 0;

}

.offer-img {
  width: 45%;
  left: 500px;
}

.offer-1 img {
  background-color: white;
  padding: 3rem 0;
}

.offer-description {
  background-color: #fbfbfb;
  padding: 0 1rem;
}

.offer-description .offer-title {
  color: var(--second-color);
  font-size: 1.8rem;
  font-weight: 400;
  padding: 1.5rem 0 0.5rem 0;
}

.offer-description .offer-hook {
  color: var(--second-color-alt);
  font-size: 1.2rem;
}

.offer-description .cart-btn {
  cursor: pointer;
  color: var(--second-color-alt);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin: 2rem 0 1rem 0;
  width: 10rem;
  height: 3rem;
  background-image: linear-gradient(to top,
      var(--primary-color-alt),
      var(--primary-color));
}

.offer-description .cart-btn:hover {
  background-image: linear-gradient(to bottom,
      var(--primary-color-alt),
      var(--primary-color));
}


/* -------- SPONSOR SECTION ----------- */
.section-4 {
  margin: 4rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
}

.sponsor img {
  cursor: pointer;
  width: 40px;
  height: 40px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity 300ms;
}

.sponsor img:hover {
  /* filter: grayscale(0); */
  opacity: 1;
}

/* ========= SUBSCRIBE SECTION ========== */
.section-5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.subscribe-input-label {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05rem;
  color: var(--second-color);
}

input[type="text"] {
  padding: 0 0.5rem;
  font-size: 1.1rem;
  width: 100%;
  height: 3rem;
  border: none;
  background-color: hsl(220, 33%, 90%);
  color: var(--second-color-alt);
  transition: background-color 300ms;
}

input[type="text"]:focus {
  outline: none;
  background-color: hsl(220, 33%, 95%);
}

input[type="text"]::placeholder {
  color: var(--second-color-alt);
}

input[type="submit"] {
  cursor: pointer;
  background-image: linear-gradient(to top,
      var(--primary-color-alt),
      var(--primary-color));
  color: var(--white-color-alt);
  margin: 1rem 0;
  border: none;
  width: 100%;
  height: 3rem;
  font-size: 1.2rem;
  transition: color 300ms;
}

input[type="submit"]:hover {
  background-image: linear-gradient(to bottom,
      var(--primary-color-alt),
      var(--primary-color));
  color: var(--white-color);
}


/* =============== MEDIA QUERIES ======= */

@media screen and (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* ================= HEADER ================ */
  header {
    padding: 0.5rem 1rem;
  }

  .navbar {
    background-color: var(--dark-color);
    position: absolute;
    top: 3.5rem;
    right: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 500ms;
  }

  .show-navbar {
    display: flex;
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 300ms;
  }

  .nav-items {
    display: flex;
    flex-direction: column;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .bx-menu {
    display: block !important;
  }

  .show-bx {
    display: block !important;
  }

  .hide-bx {
    display: none !important;
  }
}

@media (min-width: 769px) {
  header {
    padding: 1rem 5rem;
  }

  /* ================= MAIN ================ */

  /* -------- HOME SECTION -------------- */
  .section-1 {
    justify-content: space-between;
    grid-template-columns: 1fr 1fr;
    padding: 10rem 5rem 0 5rem;
  }

  .slogan .company-title {
    max-width: 30rem;
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
  }

  .slogan .company-slogan {
    max-width: 20rem;
    font-size: 1.3rem;
  }

  /* -------- OFFER SECTION ------------- */
  .section-2 {
    margin: 2rem 5rem;
  }

  .offer {
    margin: 5rem 0;
    align-items: center;
    justify-content: space-between;
    grid-template-rows: auto auto;
  }

  .offer-1 {
    grid-template-areas: "offer-1-img offer-desc-1";
  }

  .offer-1 img {
    background-color: var(--dark-color);
    padding: 2rem 0;
  }

  .offer-2 {
    grid-template-areas: "offer-desc-2 offer-2-img";
  }

  .offer-1-img {
    grid-area: offer-1-img;
  }

  .offer-2-img {
    grid-area: offer-2-img;
  }

  .offer-desc-1 {
    grid-area: offer-desc-1;
  }

  .offer-desc-2 {
    grid-area: offer-desc-2;
  }

  .offer-description .offer-title {
    font-size: 1.9rem;
    padding: 1.5rem 0 0.5rem 0;
  }

  .offer-description .offer-hook {
    max-width: 30rem;
  }

  .offer-description {
    background-color: var(--white-color-alt);
    padding: 2rem 1rem;
  }

  .offer-description .offer-title {
    padding: 0.5rem 0 1rem 0;
  }

  .offer-description .cart-btn {
    margin: 2rem 0 0.5rem 0;
  }

  /* -------- PRODUCT SECTION ----------- */
  .section-3 {
    gap: 5rem;
  }

  .product::before {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 300ms;
  }

  .product:hover::before {
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 300ms;
  }

  .product_add_cart {
    flex: auto;
    align-self: flex-end;

  }


  .product_add_cart {
    transform: scaleY(0);
    transform-origin: bottom;

  }

  .product:hover .product_add_cart {
    transform: translate(-50%, -50%) scaleY(1);
    transform-origin: top;

  }

  /* -------- SPONSOR SECTION ----------- */
  .section-4 {
    margin: 5rem 0;
  }

  /* ========= SUBSCRIBE SECTION ========== */
  .section-5 {
    padding: 1rem 0;
  }

  .section-5 .subscribe-container {
    display: flex;
    align-items: center;
  }

  input[type="text"] {
    padding: 0 1rem;
    width: 15rem;
  }

  input[type="submit"] {
    width: 10rem;
  }

  /* =============== FOOTER =============== */



  .rodape {
    background-color: #14002d;
    color: #d0cece;
    padding: 1rem;
    text-align: center;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
  }

  .footer-section {
    flex: 1;
    margin-right: 2rem;
  }

  .footer-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .footer-bottom {
    margin-top: 1rem;
    text-align: center;
  }

  /* Estilo da imagem no rodapé */
  .footer-image {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    /* Ajuste o espaço acima da imagem conforme necessário */
  }

  .end-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(142, 92, 200, 0.157)
  }

  .designer {
    color: hsla(0, 0%, 98%, 0.322);
    font-size: 0.8rem;
  }
}

/* Mídia para telas menores (por exemplo, smartphones) */
@media screen and (max-width: 768px) {
  .rodape {
    flex: 100%;
    /* Torna a seção ocupando toda a largura em telas menores */
    margin-right: 0;
    /* Remove a margem direita em telas menores */
    background-color: #14002d;
    color: #dbdbdb;
  }

  .end-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--third-color);
  }

  .footer-section {
    flex: 1;
    margin-right: 2rem;
    margin-left: 2rem;
    margin-top: 1.2rem;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .end-footer {
    background-color: rgba(142, 92, 200, 0.157)
  }

}



/*intro portfolio*/
/* Estilos da seção de introdução do portfólio */
.intro-portfolio {
  background-color: #9e9e9e95;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  /* Distribui os elementos horizontalmente */
  align-items: center;
  flex-wrap: wrap;
  /* Permite que os elementos se quebrem para baixo em telas menores */
}

.intro-portfolio-text {
  flex: 1;
  /* Ocupa a maior parte do espaço disponível */
  margin-right: 2rem;
  /* Espaço entre o texto e a imagem */
}

.intro-portfolio-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.intro-portfolio-text p {
  font-size: 1rem;
  color: #666;
}

.intro-portfolio-image {
  flex: 1;
  /* Ocupa a maior parte do espaço disponível */
  text-align: right;
  /* Alinha a imagem à direita */
}

.intro-portfolio-image img {
  max-width: 100%;
  height: auto;
}

/* Estilos responsivos */
@media screen and (max-width: 768px) {
  .intro-portfolio {
    flex-direction: column;
    /* Coloca os elementos em coluna */
    text-align: center;
    /* Centraliza o texto e a imagem */
  }

  .intro-portfolio-text,
  .intro-portfolio-image {
    width: 100%;
    /* Ocupa a largura completa da coluna */
    margin: 1rem 0;
    /* Adiciona espaço entre os elementos */
  }

  .intro-portfolio-text {
    order: 2;
    /* Coloca o texto acima da imagem em telas menores */
  }
}



/* Estilos do portfólio */


.portfolio {
  padding: 0rem;
  background-color: #14002dec;
  text-align: center;
  border-radius: 5.1%;
}

.portfolio h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.portfolio p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.portfolio-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.5rem;
  /* Reduzindo o espaço interno */
  margin: 0.2rem;
  /* Reduzindo as margens */
  text-align: center;
  width: calc(20% - 1rem);
  /* Cinco cards por linha em telas grandes */
  transition: transform 0.3s ease-in-out;
}

.portfolio-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  /* Reduzindo o espaço abaixo da imagem */
}

.portfolio-item h3 {
  font-size: 1rem;
  /* Reduzindo o tamanho do título */
  margin-bottom: 0.25rem;
  /* Reduzindo o espaço abaixo do título */
}

.add-to-cart {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.25rem 0.5rem;
  /* Reduzindo o tamanho do botão */
  cursor: pointer;
}

.add-to-cart:hover {
  background-color: #555;
}

/* Efeito de crescimento no hover */
.portfolio-item:hover {
  transform: scale(1.05);
}

/* Estilos responsivos */
@media screen and (max-width: 1024px) {
  .portfolio-item {
    width: calc(33.33% - 1rem);
    /* Quatro cards por linha em telas médias */
  }

  .portfolio-item h3 {
    font-size: 0.9rem;
    /* Reduzindo ainda mais o tamanho do título */
  }
}

@media screen and (max-width: 768px) {
  .portfolio-item {
    width: calc(45% - 0.5rem);
    /* Dois cards por linha em telas menores */
  }
}


/* Adicionando efeito de crescimento no hover */
.portfolio-item:hover {
  transform: scale(1.05);
  /* Aumenta em 5% o tamanho */
}

/* Estilos da seção de parceria */
.partnership {
  padding: 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.partnership h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.partnership p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.partnership ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.partnership ul li::before {
  content: "–";
  margin-right: 0.5rem;
}

.p2 {
  opacity: 0;
}


/* Estilos para a janela pop-up */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

.popup-image {
  position: absolute;
  bottom: -110px;
  left: 25%;
  max-width: 150px;
  /* Defina o tamanho conforme necessário */
  max-height: 200px;
  /* Defina o tamanho conforme necessário */
}

.img {
  position: absolute;
  bottom: 55px;
  right: 590px;
  max-width:100px;
  /* Defina o tamanho conforme necessário */
  max-height: 100px;
  /* Defina o tamanho conforme necessário */
}

@media screen and (max-width: 768px) {
  .img {
    position: absolute;
    bottom: 115px;
    right: 260px;
    max-width: 100px;
    /* Defina o tamanho conforme necessário */
    max-height: 100px;
    /* Defina o tamanho conforme necessário */
  }

}

.img2 {
  position: absolute;
  bottom: 55px;
  right: 180px;
  max-width: 100px;
  /* Defina o tamanho conforme necessário */
  max-height: 100px;
  /* Defina o tamanho conforme necessário */
}