/* Secao Gerenciamento dos Dispositivos */
.projeto {
  position: relative;
  overflow: hidden;
  width: min(100% - 2rem, 134rem);
  max-width: 134rem;
  /* Mesmo ajuste de scroll usado nas secoes Home, Dispositivos e Portfolio. */
  scroll-margin-top: 5rem;
  margin: 0 auto 12rem;
  padding: 7rem 5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 12%, rgba(210, 224, 121, 0.14), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(207, 79, 139, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(243, 246, 251, 0.98), rgba(255, 255, 255, 0.92) 48%, rgba(232, 237, 255, 0.9));
  box-shadow: 0 24px 60px rgba(2, 7, 62, 0.08);
}

/* Cabecalho da secao */
.projeto .projeto__content {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin: 0 auto 6rem;
  text-align: center;
}

.projeto .projeto__content h2 {
  position: relative;
  display: table;
  padding-top: 2.3rem;
  margin: 0 auto 2rem;
  color: var(--primary-color);
  font-family: 'Poppins', var(--font-family), sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 4rem;
}


.projeto .projeto__content h2::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 13rem;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-btn1-color), var(--red-btn2-color), #d2e079);
  box-shadow: 0 8px 18px rgba(95, 113, 216, 0.22);
}
.projeto .projeto__content h2 span {
  color: #263fd4;
  font-size: inherit;
  font-weight: 700;
}

.projeto .projeto__content p {
  max-width: 76rem;
  margin: 0 auto;
  color: var(--text-color);
  font-size: 1.75rem;
  line-height: 3.2rem;
}

/* Lista dos sistemas gerenciados */
.projeto ul {
  position: relative;
  z-index: 1;
}

.projeto ul li {
  display: grid;
  grid-template-columns: minmax(34rem, 0.95fr) minmax(32rem, 1.05fr);
  align-items: center;
  gap: 5rem;
  padding: 3rem;
  border: 1px solid rgba(95, 113, 216, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(2, 7, 62, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.projeto ul li:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 113, 216, 0.34);
  box-shadow: 0 26px 52px rgba(2, 7, 62, 0.12);
}

.projeto ul li.projeto__reversed-list {
  direction: rtl;
}

.projeto ul li.projeto__reversed-list > * {
  direction: ltr;
}

.projeto ul li:not(:last-of-type) {
  margin-bottom: 5rem;
}

/* Imagens com transicao */
.projeto ul li .image {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 34px rgba(2, 7, 62, 0.12);
}

.projeto ul li .image img {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 30rem;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.projeto ul li:hover .image img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.04);
}

/* Textos de cada sistema */
.projeto ul li .projeto__info {
  max-width: 52rem;
}

.projeto ul li .projeto__info h3 {
  color: var(--primary-color);
  font-family: 'Poppins', var(--font-family), sans-serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 4rem;
}

.projeto ul li .projeto__info h3 span {
  color: #263fd4;
  font-size: inherit;
  font-weight: 700;
}

.projeto ul li .projeto__info p {
  margin: 1.8rem 0 3rem;
  color: var(--text-color);
  font-size: 1.7rem;
  line-height: 3.1rem;
}

.projeto ul li .projeto__info a btn {
  font-weight: 500;
  text-decoration: underline;
  color: blueviolet;
}

/* Botao principal dos sistemas */
.projeto__info .btn1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 4.8rem;
  padding: 1rem 3rem;
  border: none;
  outline: none;
  border-radius: 10px;
  text-decoration: none;
}

.projeto__info .btn1.btn-primary i {
  font-size: 16px;
  color: #d1cb8a;
  margin: 0 8px 0 0;
}

.projeto__info .btn1.btn-primary {
  background-color: var(--blue-btn1-color);
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(2, 7, 62, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.projeto__info .btn1.btn-primary:hover {
  transform: translateY(-3px);
  background-color: rgb(84, 99, 184);
  color: rgb(224, 218, 230);
  box-shadow: 0 18px 32px rgba(2, 7, 62, 0.16);
}

/* Botao voltar ao topo */
.projeto__info .btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  border: none;
  outline: none;
  border-radius: 10px;
  text-decoration: none;
}

.projeto__info .btn2.btn-primary i {
  font-size: 16px;
  color: #ffffff;
  margin: 0;
}

.projeto__info .btn2.btn-primary {
  background-color: var(--red-btn2-color);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(2, 7, 62, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.projeto__info .btn2.btn-primary:hover {
  transform: translateY(-3px);
  background-color: rgb(216, 71, 119);
  color: rgb(224, 218, 230);
  box-shadow: 0 18px 32px rgba(2, 7, 62, 0.16);
}

/* Ajustes responsivos da secao */
@media screen and (max-width: 768px) {
  .projeto {
    width: min(100% - 1.2rem, 134rem);
    padding: 5rem 0.8rem;
  }

  .projeto ul {
    width: calc(100% - 0.8rem);
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .projeto ul li,
  .projeto ul li.projeto__reversed-list {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.4rem 1.2rem 2.2rem;
    direction: ltr;
    box-sizing: border-box;
  }

  .projeto ul li .projeto__info {
    max-width: 100%;
    text-align: center;
  }

  .projeto ul li .image {
    width: 100%;
  }

  .projeto ul li .image img {
    height: 24rem;
  }

  .projeto__info .btn1.btn-primary,
  .projeto__info .btn2.btn-primary {
    width: 100%;
  }
}
