@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
  --bg-color: #00f5c4d3;
  --bg-color-sc: #00f5c4;
  --second-bg-color: rgb(39, 38, 38);
  --main-color: #1b1b1b;
  --white-color: #ffffff;
  --disable-color: #464747;
  --disable-color-dk: #2c2c2c;
  --sc-disable-color: #303131;
  --gradient-color: #0e0e0e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;


}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  ;
  background-color: var(--main-color);
  background-size: 100%;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
  outline: none;
  border: none;
  text-decoration: none;
  color: #ffffff;
  overflow: auto;


}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: top 0.3s ease, background 0.3s ease;
  background: transparent; /* Inicialmente transparente */
  padding: 1rem 10%;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header::before {
  content: '';
  position: absolute;
  width: 100%;

  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--sc-bg-color);
  ;
  z-index: -1;
}

.header::after {
  content: '';
  position: absolute;
  width: 100%;

  top: 0;
  left: -100%;
  height: 100%;
 
  transition: .5s;
}

.header:hover::after {
  left: 100%;

}

.header .navbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.scrollup {
  position: fixed;
  right: 5rem;
  bottom: -20%;
  background-color: var(--bg-color);
  color: var(--main-color);
  padding: 1rem;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 100;
  cursor: pointer;
}

.scrollup.show-scroll {
  bottom: 2rem;
}

.scrollup-icon {
  font-size: 1.5rem;
}

img.img-logo {
  width: 55px;
  height: 60px;
  display: block;
  margin-top: 0;
  margin-right: 1rem;
  
}

.logo {
  font-size: 2rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  margin-left: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar a {
  font-size: 1.15rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 2.5rem;
  transition: .5s;
}

.navbar a:hover,
a.active {
  color: var(--bg-color);
  font-size: 20px;
}

#check {
  display: none;

}

.icons {
  position: absolute;
  font-size: 2.8rem;
  color: #ffffff;
  cursor: pointer;
  display: none;
  right: 5%;
}

/* home  */
section {
  position: relative;
  /* alteração de absolute para relative */
  width: 100%;
  padding: 10rem 9% 2rem;
  background: var(--main-color);

  margin-top: 10rem;

  opacity: 1;
  /* garante visibilidade */
  visibility: visible;
  height: 100vh;
}

/* Remova ou comente as regras de .active se não forem mais necessárias */
/* ...existing code... */

::-webkit-scrollbar {
  width: 0px;
}

section.home {
  height: 100vh;

  background: linear-gradient(to bottom, var(--disable-color-dk), 50%, var(--gradient-color)100%);
  margin-top: 0;

}

.home-img .img-box {
  position: relative;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  padding: .5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-right: 30px;

}

.img-box::after,
.img-box::before {
  content: '';
  position: absolute;
  width: 50rem;
  height: 50rem;
  background: conic-gradient(transparent, transparent, transparent, var(--bg-color));
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.img-box::after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(370deg);

  }


}

.home-img .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #00f5c4, 10%, black);
  border-radius: 50%;
  border: .01rem solid var(--main-color);
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;


}

.home-img .img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: .5s;
  transform: scale(1);
  z-index: 1;
}

.home {
  display: flex;
  align-items: center;
  gap: 7rem;
  justify-content: center;

}

.detalhes h1 {
  font-size: clamp(3.5rem, 10vw, 4rem);
}

.detalhes h2 {
  color: white;
  display: inline-block;
  font-size: 2rem;
  margin-top: -0.3rem;


}

.detalhes p {
  font-size: 1.3rem;
  max-width: 500px;
  margin-top: 10px;
}

.detalhes h3 {
  color: var(--bg-color);
  display: inline-block;
  font-size: 1.4rem;

}

.calculate-images {

  border-radius: 0 0 100vw 100vw;
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.calculate-images::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: var(--bg-color);
}

.calculate-img {
  z-index: 10;
  width: clamp(13rem, 6.6934rem + 17.5182vw, 19rem);
  position: relative;
}

/* sci  */



.bnt-sci {
  display: flex;
  align-items: center;
}

.sci {
  margin-left: 0;
}

.sci a {
  display: inline-flex;
  padding: .8rem;
  border: .2rem solid var(--bg-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--bg-color);
  margin: 0 .8rem;
  transition: .5s;
  font-weight: 600;
}

.sci a:hover {
  background: var(--bg-color);
  columns: var(--main-color);
  box-shadow: 0 0 1rem var(--bg-color);
}

button.sci {
  display: inline-flex;
  padding: 1.3rem;
  border: .2rem solid var(--bg-color);
  border-radius: 1rem;
  font-size: 1rem;
  color: rgb(36, 36, 36);
  background-color: var(--bg-color);
  margin: 0 .8rem;
  transition: .5s;
  font-weight: 600;
left: 0;
  box-shadow: 0 0 1rem var(--bg-color);
  margin-top: 2rem;
}

button.sci:hover {
  background: var(--disable-color);
  color: var(--bg-color);

}

a.sci {
  display: inline-flex;
  padding: 1.2rem;
  border: .2rem solid var(--bg-color);
  border-radius: 1rem;
  font-size: 1.2rem;
  color: rgb(36, 36, 36);
  background-color: var(--bg-color);
  margin: 0 .8rem;
  transition: .5s;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 1rem var(--bg-color);
  margin-top: 2rem;
  margin-bottom: 2rem;
}
a.sci i {
  margin-left: 1rem;
}
a.sci:hover {
  background: var(--disable-color);
  color: var(--bg-color);

}

.detalhes span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 0.3px var(--bg-color);
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {

  25%,
  100% {
    display: none;
  }
}

.detalhes span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: .2rem solid var(--bg-color);
  color: var(--bg-color);
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text {

  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 100%;
  }

}

h1,
h2,
h3,
h4,
h5,
h6,
p {

  color: rgb(255, 255, 255);
}

/* Serviços */
.services {
  height: 100%;
  background: linear-gradient(to bottom, var(--gradient-color), var(--disable-color-dk)70%, var(--main-color));
  margin-top: 0;
  padding-top: 10rem;
}

.heading {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.heading span {
  color: var(--bg-color);
}
.copyright
{
  text-align: center;
  background-color: var(--gradient-color);
  color: var(--bg-color);
  padding: 3rem;
  margin-top: 100px;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}

.services-box {
  padding: 3rem 2.5rem;
  background: var(--disable-color);
  border: .2rem solid var(--disable-color);
  border-radius: 1rem;
  transition: .5s;
}

.services-box:hover {
  border-color: var(--bg-color);
  transform: scale(1.02);
}

.services-box.simulated-hover {
    border-color: var(--bg-color);
    transform: scale(1.7);
    transition: .5s;
}

.services-box h3 {
  font-size: 2.6rem;
  margin: .5rem 0 2rem;
  transition: .6s;
}

.services-box:hover h3 {
  color: var(--bg-color)
}

/* Aplica o efeito hover no h3 dos serviços quando a classe simulated-hover estiver ativa */
.services-box.simulated-hover h3 {
    color: var(--bg-color); /* ajuste a cor conforme desejado */
    transform: scale(1.05);
    transition: 0.5s;
}

/* Efeito hover para o <i> interno da .icon da services-box */
.services-box.simulated-hover .icon i {
    color: var(--bg-color); /* ajuste conforme desejado */
    transform: scale(1.1);
    transition: 0.5s;
}

.services-box .icon {
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.services-box p {
  font-size: 1.3rem;
}

.services-box .icon i {
  font-size: 4.5rem;
}

.services-box:hover .icon :not(a i) {
  color: var(--bg-color);
  transition: .6s;
}


.services-box .icon a {
  display: inline-flex;
  background: var(--white-color);
  border-radius: 50%;
  padding: 1rem;
  text-decoration: none;
  transition: .6s;
}

.services-box:hover .icon a {
  background: var(--bg-color);
}

.services-box .icon a i {
  font-size: 3rem;
  color: var(--disable-color);
  transform: rotate(225deg);


}

.services-box .icon a:hover i {
  transform: rotate(180deg);
  transition: .5s;
}

/* Portifolio */
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-left: 3rem;
}

.portfolio {
  height: 100%;

}

.portfolio-detalhes {
  display: none;
  padding: 3rem;
  background-color: var(--disable-color-dk);
  border-radius: 1rem;
  overflow-y: auto;
  /* Garante que a scrollbar apareça quando necessário */
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: var(--bg-color) transparent;
  /* Firefox */
}

.portfolio-detalhes.active {
  display: block;
  max-height: 100vh;
  overflow-y: auto;
}

.portfolio-detalhes::-webkit-scrollbar {
  width: 8px;
}

.portfolio-detalhes::-webkit-scrollbar-track {
  background: transparent;
}

.portfolio-detalhes::-webkit-scrollbar-thumb {

  border-radius: 4px;
}

.portfolio-box .numb {
  font-size: 7.3rem;
  -webkit-text-stroke: .07rem var(--white-color);
  color: transparent;
  line-height: 1;
}

.portfolio-box h3 {
  font-size: 2rem;
  margin: .8rem 0 2rem;
}

.portfolio-box p {
  font-size: 1.2rem;

}

.portfolio-box .tech {
  margin: 2rem 0;
  color: var(--bg-color);
  border-bottom: .1rem solid var(--white-color);
  padding-bottom: 2rem;
}

.portfolio-box .tech p {
  color: var (--bg-color);
}

.portfolio-box .livre a {
  position: relative;
  display: inline-flex;
  padding: 1.3rem;
  font-size: 3rem;
  color: var(--white-color);
  
  background: var(--second-bg-color);
  transition: .4s;
}

.portfolio-box .livre a:hover {
  color: var(--bg-color);
}

.portfolio-box .livre a:first-child {
background-color: var(--bg-color);
  margin-right: 1.5rem;

  font-size: 1.2rem;
  color: var(--disable-color);
}



.portfolio-box .livre a span {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%) scale(.9);
  font-size: 1.6rem;
  white-space: nowrap;
  padding: .5rem 1rem;
  border-radius: .6rem;
  pointer-events: none;
  background: var(--white-color);
  color: var(--second-bg-color);
  opacity: 0;
  transition: .2s;
}

.portfolio-box .livre a:hover span {
  top: -70%;
  opacity: 1;
  transform: translateX(-50%) scale(.9);
}

.portfolio-box .portfolio-carrousel {
  width: 100%;
  height: 70rem;
  border-radius: 1rem;
  overflow: hidden;
}

.portfolio-carrousel .img-slide {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 2rem;
  height: inherit;
  transition: .5s;
}

.portfolio-carrousel .img-item {
  width: 100%;
  height: 100%;
}

.portfolio-carrousel .img-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;

}

.portfolio-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* ajuste conforme necessário */
  margin: auto;
  overflow: hidden;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-image {
  width: 100%;
  flex-shrink: 0;
  border-radius: 10px;
}

.carousel-navigation {
  position: static;
  /* Remove o posicionamento absoluto */
  margin-top: 1rem;
  /* Espaço entre a imagem e os botões */
  display: flex;
  justify-content: right;
  gap: 1rem;
}

.arrow-button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
}

.arrow-button {
  display: inline-flex;
  padding: 0.4rem;
  background: var(--disable-color);
  border: 0.2rem solid var(--bg-color);
  border-radius: 0.6rem;
  font-size: 4rem;
  color: var(--bg-color);
  cursor: pointer;
}

.arrow-button.disabled {
  pointer-events: none;
  opacity: 0.5;
  border-color: var(--disable-color);
  color: var(--sc-disable-color);
}

#foto {
  height: 100%;
  border-radius: 1rem;

}

.portfolio-box .navigation {
  text-align: right;
  margin-top: 2rem;

}


.portfolio-box .navigation button {
  display: inline-flex;
  padding: .4rem;
  background: var(--disable-color);
  border: .2rem solid var(--bg-color);
  border-radius: .6rem;
  font-size: 4rem;
  color: var(--bg-color);
  cursor: pointer;
}

.portfolio-box .navigation button.disabled {
  border-color: var(--disable-color);
  color: var(--sc-disable-color);
}

.portfolio-box .navigation .arrow-right {
  margin-left: 1.5rem;
}

.rounded-border {
  border-radius: 15px;
}

.contact-container {
  display: grid;
  
  gap: 2rem;
  margin-left: 3rem;
}



.contact-box h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-box p {
  font-size: 1rem;

}

.desc {
  color: var(--disable-color-dk);
  margin: 1.5rem 0 2rem;
}

.contact-detail {

  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.contact-detail i {
  display: inline-flex;
  background: var(--disable-color);
  font-size: 2.5rem;
  color: var(--bg-color);
  margin-right: 1rem;
  border-radius: .6rem;
  padding: 1rem;

}

.contact-detail .detail p:first-child {
  color: var(--bg-color);
}

.contact-box form {
  background-color: var(--disable-color-dk);
  padding: 2rem 3rem 3rem;
  border-radius: 1rem;
 
}

.contact-box .heading {
  font-size: 2rem;
}

.contact-box .field-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;

}

.contact-box .field-box textarea,
input {
  padding: 1rem;
  background: var(--disable-color);
  border: .2rem solid var(--disable-color);
  border-radius: .6rem;
  color: white;
}

.contact-box .field-box textarea {
  grid-column: 1/-1;
  height: 26rem;
  resize: none;
}

.contact-box .field-box textarea:focus,
input:focus {
  border-color: var(--bg-color);
}

@media (max-width: 1440px) {

  html {
    font-size: 80%;
  }

  img.img-logo {
    width: 29px;
    height: 32px;
  }
}

@media (max-width:992px) {
  .header {
    padding: 2rem 4%;
  }

  section {
    padding: 10rem 4% 2rem;
  }
}

@media (max-width:810px) {
  .contact-box .field-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width:768px) {
  .contact-box form{
    text-align: right;
  }

  .detalhes{
    padding-top: 2rem;
  }
  .icons {
    display: block;
  }

  .scrollup {
    left: 5rem;
    margin-bottom: 2.5rem;
    right: inherit;
    background-color: var(--bg-color-sc)
  }

  #check:checked~.icons #menu-icon {
    display: none;
  }

  #close-icon {
    display: none;
  }

  #check:checked~.icons #close-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--main-color);
    transition: .3s ease;
    overflow: hidden;
  }
  .portfolio{
    max-width: 600px;
    margin: auto;
  }
  .contact-container{
    max-width: 600px;
    margin: auto;
  }
  #check:checked~.navbar {
    height: 21.6em;
  }

  .navbar a {
    display: block;
    font-size: 1.1rem;
    margin: 3rem;
    text-align: center;
    transform: translateY(-50px);
    transition: 0.46s ease;
    opacity: 0;
  }

  #check:checked~.navbar a {
    transform: translateY(0);
    opacity: 1;
    transition-delay: calc(.14s * var(--i));
  }

  .home {
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
  }

  .home-img .img-box {
    width: 45vw;
    height: 45vw;
    margin: auto;
  }

  .services-container,
  .portfolio-container,
  .contact-container {
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
    margin: auto;
  }

  .services-box {
    max-width: 490px;
    margin: auto;

  }

  .portfolio-box:first-child {
    order: 2;
  }

  .contact-box .field-box {
    grid-template-columns: repeat(2, 1fr);
  }
  h2.heading-dec {
    font-size: 3.2rem;
    line-height: 1.5;
    margin-top: 8rem;
    margin-bottom: 5rem;
  }
}

@media (max-width:600px) {
  .home .img-box {
    width: 50vw;
    height: 50vw;
  }

  .detalhes h2 {
    font-size: 2.5rem;
  }

  .detalhes p {
    max-width: 400px;
  }

  .contact-box .field-box {
    grid-template-columns: 1fr;
  }
 
  h2 .port-h2{
    text-align: left;
  }
}

@media (max-width:450px) {
  html {
    font-size: 75%;
  }

  .detalhes h1 {
    font-size: 4.5rem;
  }

  .detalhes h2 {
    font-size: 2.2rem;
  }

  .detalhes p {
    font-size: 1.3rem;
  }
  .services-box {
    max-width: 320px;
    margin: auto;
    min-height: 415px;
  }
  .portfolio{
    max-width: 390px;
    margin: auto;
  }
  .home .img-box {
    width: 60vw;
    height: 60vw;
  }
}

@media (max-width:400px) {
  .home,.detalhes {
    text-align: center;
    justify-content: center;
  }
  .bnt-sci{
    flex-direction: column-reverse;
  }
  .sci{
    margin-left: 0;
    margin-bottom: 2rem;
  }
  .home .img-box {
    width:70vw;
    height: 70vw;
    margin: auto;
  }

  .contact-box form{
    padding: 2.5rem 3rem 3.5rem;
  }
  .contact-box h2{
    font-size: 3.5rem;
  }
}

/* Desfoca todo o conteúdo quando a navbar é aberta */
#check:checked ~ .content {
    filter: blur(4px);
    transition: filter 0.3s;
}