/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3rem;
  
  /*========== Colors ==========*/
  --first-color: #2563eb;
  --first-color-light: #3b82f6;
  --first-color-lighten: #eff6ff;
  --first-color-alt: #1d4ed8;
  --title-color: #1e3a8a;
  --text-color: #334155;
  --text-color-light: #64748b;
  --white-color: #FFF;
  --body-color: #FFF;
  --container-color: #FFF;
  --border-color: #e2e8f0;
  --scroll-thumb-color: #cbd5e1;
  --scroll-thumb-color-alt: #94a3b8;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.5rem;
  --bigger-font-size: 2rem;
  --big-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --text-line-height: 2rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes Bottom ==========*/
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4rem;
    --bigger-font-size: 3rem;
    --big-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3 {
  color: var(--title-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button,
input {
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 4rem 0 2rem;
}
/* Team Carousel Styles */
.team__wrapper {
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch; /* Suave rolagem em iOS */
}

.team__container {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.team__member {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
}

/* Esconde a barra de rolagem no Chrome, Safari e Opera */
.team__wrapper::-webkit-scrollbar {
  display: none;
}

/* Esconde a barra de rolagem no IE, Edge e Firefox */
.team__wrapper {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Media query para dispositivos maiores */
@media screen and (min-width: 767px) {
  .team__wrapper {
      overflow-x: visible;
  }
  
  .team__container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      flex-wrap: wrap;
  }
  
  .team__member {
      width: auto;
  }
}
.section__title {
  font-size: var(--bigger-font-size);
  text-align: center;
  margin-bottom: var(--mb-2-5);
}

.section__title-gradient {
  background: linear-gradient(90deg, var(--first-color) 0%, #1e40af 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/*=============== LAYOUT ===============*/
.main {
  overflow: hidden;
}

.container {
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}

/*=============== HEADER ===============*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--white-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav__logo img {
  width: 1.5rem;
}

.nav__toggle {
  font-size: 1.2rem;
  color: var(--title-color);
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--white-color);
    top: -100%;
    left: 0;
    width: 100%;
    padding: 4rem 0 3rem;
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
  }
}
/* Correções para mobile */
@media screen and (max-width: 767px) {
  /* Ajuste geral de containers */
  .container {
      margin-left: var(--mb-1);
      margin-right: var(--mb-1);
  }
  
  /* Ajuste dos cards de projetos */
  .projects__container {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .projects__card {
      width: 100%;
      margin-bottom: 1rem;
  }
  
  .projects__img {
      height: auto;
      max-height: 200px;
      object-fit: contain;
  }
  
  /* Ajuste da seção de serviços */
  .specs__container {
      grid-template-columns: 1fr;
  }
  
  .specs__img {
      position: relative;
      top: 0;
      right: 0;
      margin: 2rem auto;
  }

  /* Ajuste dos produtos */
  .products__container {
      grid-template-columns: 1fr;
  }
  
  /* Ajuste do discount section */
  .discount__container {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .discount__img {
      position: relative;
      top: 0;
      right: 0;
      width: 200px;
      margin: 1rem auto 0;
      padding-right: 0 !important;
  }
  
  /* Ajuste do contato */
  .contact__container {
      grid-template-columns: 1fr;
  }
  
  /* Ajuste do footer */
  .footer__container {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .footer__form {
      flex-direction: column;
      gap: 0.5rem;
  }
  
  .footer__social {
      justify-content: center;
  }
}

/* Garantir que as imagens não ultrapassem os containers */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Melhorar a legibilidade do texto */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Prevenir problemas com zoom indesejado */
* {
  touch-action: manipulation;
}

/* Team section mobile improvements */
@media screen and (max-width: 767px) {
  .team__member {
      width: 85%;
      min-width: 85%;
      margin: 0 auto;
      scroll-snap-align: center;
  }
  
  .team__container {
      padding: 0 1rem;
  }
  
  .team__img {
      width: 120px;
      height: 120px;
  }
}
@media screen and (max-width: 767px) {
  .products__card {
      padding: 1rem;
  }
  
  .products__img {
      width: 80px;
  }
  
  .products__features li {
      font-size: var(--smaller-font-size);
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
}

.nav__link {
  color: var(--text-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  transition: .3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  font-size: 1.5rem;
  top: 1rem;
  right: 1rem;
  color: var(--title-color);
  cursor: pointer;
}

/* show menu */
.show-menu {
  top: 0;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/*=============== HOME ===============*/
.home__img {
  width: 250px;
  position: absolute;
  top: -16rem;
  right: 1.5rem;
}

.home__data {
  padding-top: 5rem;
}

.home__header {
  position: relative;
}

.home__title {
  font-size: var(--biggest-font-size);
  background: linear-gradient(90deg, var(--first-color) 0%, #1e40af 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  position: absolute;
  top: -4rem;
  left: 1rem;
  line-height: 6rem;
}

.home__subtitle {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-2-5);
  color: var(--title-color);
}

.home__title-description {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

.home__description {
  margin-bottom: var(--mb-2-5);
  line-height: var(--text-line-height);
}

.home__price {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-left: var(--mb-0-75);
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  transition: .3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button__icon {
  font-size: 1.2rem;
}

.button--flex {
  display: inline-flex;
  align-items: center;
  column-gap: .75rem;
}

/*=============== SPONSOR ===============*/
.sponsor__img {
  width: 90px;
  opacity: 0.7;
  transition: .3s;
}

.sponsor__img:hover {
  opacity: 1;
}

.sponsor__container {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  row-gap: 5rem;
  justify-items: center;
  align-items: center;
}

/*=============== SPECS ===============*/
.specs__container {
  position: relative;
}

.specs__content {
  row-gap: 1.5rem;
}

.specs__data {
  display: grid;
  row-gap: .25rem;
}

.specs__icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.specs__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.specs__subtitle {
  font-size: var(--smaller-font-size);
}

.specs__data:nth-child(1), .specs__data:nth-child(4) {
  margin-left: 1.5rem;
}

.specs__img {
  width: 250px;
  position: absolute;
  top: 2rem;
  right: -4rem;
}

/*=============== PROJECTS ===============*/
.projects__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.projects__card {
  background-color: var(--white-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.projects__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.projects__content {
  padding: 1.5rem;
}

.projects__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.projects__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
  color: var(--title-color);
}

.projects__description {
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.projects__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--mb-1);
}

.projects__tech span {
  background-color: var(--first-color-lighten);
  color: var(--first-color);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

/*=============== TEAM ===============*/
.team__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team__member {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.team__member:hover {
  transform: translateY(-10px);
}

.team__img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--mb-1);
  border: 5px solid var(--first-color-lighten);
}

.team__name {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-0-5);
}

.team__position {
  font-size: var(--normal-font-size);
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

.team__bio {
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1-5);
}

.team__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team__social-link {
  display: inline-flex;
  background-color: var(--first-color-lighten);
  color: var(--first-color);
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: background 0.3s, color 0.3s;
}

.team__social-link:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

/*=============== DISCOUNT ===============*/
.discount__container {
  position: relative;
  background-color: var(--first-color-lighten);
  padding: 3rem 2rem;
  border-radius: 1rem;
  overflow: hidden;
}

.discount__animate {
  position: relative;
  z-index: 2;
}

.discount__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

.discount__description {
  margin-bottom: var(--mb-2);
}

.discount__img {
  width: 300px;
  position: absolute;
  top: 50%;
  right: -5rem;
  transform: translateY(-50%);
}

/*=============== PRODUCTS ===============*/
.products__line {
  line-height: 4rem;
}

.products__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-top: 3rem;
}

.products__card {
  position: relative;
  height: auto;
  background-color: var(--white-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.products__card:hover {
  transform: translateY(-10px);
}

.products__img {
  width: 120px;
  margin: 0 auto;
  margin-bottom: var(--mb-1);
}

.products__content {
  text-align: center;
}

.products__title, .products__price {
  font-size: var(--h3-font-size);
  color: var(--title-color);
}

.products__price {
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
}

.products__features {
  margin: var(--mb-1) 0;
  padding-left: 0;
  text-align: left;
  list-style: none;
}

.products__features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--mb-0-5);
  font-size:var(--small-font-size);
}

.products__features li::before {
content: "";
position: absolute;
left: 0;
top: 0.5rem;
width: 0.5rem;
height: 0.5rem;
background-color: var(--first-color);
border-radius: 50%;
}

.products__button {
width: 100%;
margin-top: var(--mb-1);
}

.contact__container {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 3rem;
}

.contact__info {
display: grid;
gap: 2rem;
}

.contact__card {
background-color: var(--white-color);
padding: 2rem;
border-radius: 1rem;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}

.contact__card:hover {
transform: translateY(-10px);
}

.contact__icon {
font-size: 2.5rem;
color: var(--first-color);
margin-bottom: var(--mb-1);
}

.contact__title {
font-size: var(--h3-font-size);
margin-bottom: var(--mb-0-5);
color: var(--title-color);
}

.contact__data {
font-size: var(--normal-font-size);
}

.contact__form {
background-color: var(--white-color);
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact__form-group {
margin-bottom: var(--mb-1-5);
}

.contact__input,
.contact__textarea {
width: 100%;
padding: 1rem;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
font-family: var(--body-font);
font-size: var(--normal-font-size);
transition: border 0.3s;
}

.contact__input:focus,
.contact__textarea:focus {
border-color: var(--first-color);
outline: none;
}

.contact__textarea {
resize: none;
height: 150px;
}

.contact__button {
width: 100%;
}

.footer__container {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
padding-top: 3rem;
padding-bottom: 3rem;
border-top: 1px solid var(--border-color);
}

.footer__logo {
display: flex;
align-items: center;
column-gap: 0.5rem;
font-weight: var(--font-semi-bold);
color: var(--title-color);
margin-bottom: var(--mb-1);
}

.footer__logo img {
width: 1.5rem;
}

.footer__title {
font-size: var(--h3-font-size);
margin-bottom: var(--mb-1);
color: var(--title-color);
}

.footer__links {
display: flex;
flex-direction: column;
row-gap: 0.5rem;
}

.footer__link {
color: var(--text-color);
transition: color 0.3s;
}

.footer__link:hover {
color: var(--first-color);
}

.footer__form {
display: flex;
column-gap: 0.5rem;
}

.footer__input {
flex: 1;
padding: 0.75rem;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
font-family: var(--body-font);
}

.footer__social {
display: flex;
column-gap: 1rem;
margin-top: var(--mb-1-5);
}

.footer__social-link {
display: inline-flex;
color: var(--white-color);
background-color: var(--first-color);
padding: 0.5rem;
border-radius: 50%;
font-size: 1rem;
transition: background 0.3s;
}

.footer__social-link:hover {
background-color: var(--first-color-alt);
}

.footer__copy {
text-align: center;
padding-top: 3rem;
border-top: 1px solid var(--border-color);
color: var(--text-color-light);
}

.scrollup {
position: fixed;
right: 1rem;
bottom: -20%;
display: flex;
background-color: var(--first-color);
color: var(--white-color);
padding: 0.5rem;
border-radius: 0.25rem;
z-index: var(--z-tooltip);
opacity: 0.9;
transition: bottom 0.4s, opacity 0.3s;
}

.scrollup:hover {
opacity: 1;
}

.scrollup__icon {
font-size: 1.25rem;
}

/* Show Scroll Up*/
.show-scroll {
bottom: 5rem;
}

::-webkit-scrollbar {
width: 0.6rem;
background-color: var(--border-color);
}

::-webkit-scrollbar-thumb {
background-color: var(--scroll-thumb-color);
border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
background-color: var(--scroll-thumb-color-alt);
}

/* For small devices */
@media screen and (max-width: 340px) {
.container {
margin-left: var(--mb-1);
margin-right: var(--mb-1);
}

.section__title {
font-size: var(--big-font-size);
}

.home__img {
width: 200px;
top: -13rem;
}

.home__title {
top: -4rem;
font-size: var(--bigger-font-size);
}

.home__data {
padding-top: 1rem;
}

.specs__img {
width: 200px;
}

.products__container {
grid-template-columns: 1fr;
}
}

/* For medium devices */
@media screen and (min-width: 576px) {
.home__container {
grid-template-columns: 0.8fr 1fr;
}

.home__data {
padding-top: 2rem;
}

.home__img {
top: -7rem;
left: 0;
}

.specs__container {
grid-template-columns: repeat(2, 1fr);
justify-items: center;
align-items: center;
}

.specs__img {
position: initial;
}

.products__container {
grid-template-columns: repeat(2, 1fr);
}
}

@media screen and (min-width: 767px) {
body {
margin: 0;
}

.section {
padding: 6rem 0 2rem;
}

.nav {
height: calc(var(--header-height) + 1.5rem);
}

.nav__list {
flex-direction: row;
column-gap: 3.5rem;
}

.nav__link {
font-size: var(--normal-font-size);
text-transform: initial;
}

.nav__toggle, .nav__close {
display: none;
}

.home__container {
position: relative;
grid-template-columns: repeat(2, 1fr);
}

.home__img {
top: -9rem;
left: 4rem;
}

.home__data {
padding-top: 8rem;
}

.specs__img {
width: 300px;
}

.products__container {
grid-template-columns: repeat(3, 1fr);
}
}

/* For large devices */
@media screen and (min-width: 1024px) {
.container {
margin-left: auto;
margin-right: auto;
}

.home__img {
width: 300px;
top: -15rem;
}

.home__title {
top: -5rem;
left: 3.5rem;
}

.sponsor__img {
width: 100px;
}

.footer__container {
padding-top: 3rem;
}

.footer__copy {
margin-top: 9rem;
}
}