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

:root {
  font-size: 62.5%;
  --ff-primary: "Poppins", sans-serif;
  --bg-color: #2f3e2f;
  --bg2-color: #3b4d3b;
  --text-color: #e8edc1;
}

body {
  font-size: 1.6rem;
  background-color: var(--bg2-color);
  color: var(--text-color);
}

body * {
  font-family: var(--ff-primary);
}

#app {
  height: 100vh;
  margin: 3px;
}

/*---Hero-Header---*/

#hero-first {
  background-color: var(--bg-color);
  height: fit-content;
  padding: 2rem;
  border-radius: 0 0 8rem 8rem;
}

#header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#header a img {
  width: 4rem;
  height: 4rem;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

#header a img:hover {
  transform: scale(1.1);
}

#emailCopy {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg2-color);
  padding: 5px;
  border-radius: 5rem;
}

#emailCopy button {
  background-color: var(--text-color);
  padding: 5px;
  border: none;
  border-radius: 5rem;
  width: 7rem;
  cursor: pointer;
  color: black;
  transition: background-color 0.3s ease;
}

#emailCopy button:hover {
  background-color: #cfde73;
}

#emailCopy p {
  font-size: 1rem;
  margin-right: 1rem;
  padding-left: 1rem;
}

/*---Hero-About---*/

.imgMe {
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  border: var(--text-color) 5px solid;
}

.profile-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.profile-container .name {
  position: absolute;
  bottom: 0;
  background-color: var(--bg2-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 700;
  transform: translateY(50%);
  width: 18rem;
  text-align: center;
}

/*About-text*/

#header-about {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#header-about-text {
  display: flex;
  flex-direction: column;
  margin-top: 5rem;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

#header-about-text h1,
#header-about-text p {
  width: 100%;
  padding: 0 1rem;
}

.repos-github {
  background-color: var(--text-color);
  padding: 2rem;
  border: none;
  border-radius: 5rem;
  width: 21rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 5rem 0 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none; /* Remover sublinhado */
  color: black; /* Cor do texto */
  font-size: 1.4rem; /* Tamanho do texto */
}

.repos-github:hover {
  background-color: #d3dc96;
  transform: scale(1.05);
}

.repos-github img {
  width: 2rem;
  height: 2rem;
  margin-left: 1rem;
}

.repos-github a {
  display: flex;
  align-items: center;
  text-decoration: none; /* Certifique-se de que isso esteja presente */
  color: inherit; /* Herdar a cor do link pai */
  font-size: inherit; /* Herdar o tamanho da fonte do link pai */
}

/*Technologies*/

#hero-technologies {
  background-color: var(--bg2-color);
  margin-top: 3rem;
  padding-bottom: 3rem;
  border-radius: 0 0 8rem 8rem;
}

#hero-technologies h1 {
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}

.technologies {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.technologies img {
  width: 100%;
  max-width: 15rem;
  transition: transform 0.3s ease;
}

.technologies img:hover {
  transform: scale(1.1);
}

/*---Hero-Services---*/

#hero-services {
  background-color: var(--bg-color);
  padding: 7rem 1rem;
  text-align: center;
  border-radius: 8rem 8rem 8rem 8rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 3rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bg2-color);
}

.divider-label {
  background: var(--bg2-color);
  padding: 1rem;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transform: rotate(-10deg);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/*Services*/

#services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services-div {
  margin-top: 5rem;
  width: 30rem;
}

#services img {
  width: 8rem;
  height: 8rem;
  transition: transform 0.3s ease;
}

#services img:hover {
  transform: scale(1.1);
}

/*---Hero-Projects---*/
#hero-projects {
  background-color: var(--bg2-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  margin-bottom: 3rem;
}

.projects {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.project {
  align-items: center;
  text-align: center;
}

.project img {
  width: 40rem;
  margin-top: 3rem;
}

/*Hero-Contact*/

#hero-contact {
  background-color: var(--bg-color);
  border-radius: 8rem 8rem 0 0;
  padding: 2rem;
}

.divider-footer {
  width: 100%;
  height: 1px;
  background-color: var(--bg2-color);
  margin: 20px auto;
}

/*Contact*/

.contact-text {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-wrapper {
  position: relative;
  width: 15rem;
  height: 15rem;
  padding: 1.5rem;
  border-radius: 50%;
  background: var(--bg2-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fading-image {
  width: 100%;
  height: 100%;
  z-index: 2;
}

.image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    var(--bg2-color) 0%,
    var(--bg-color) 100%
  );
  z-index: 1;
}

.contact-text h1 {
  margin-top: 3rem;
}

.contact-buttons {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.contact-buttons a {
  background-color: var(--text-color);
  padding: 2rem;
  border: none;
  border-radius: 5rem;
  width: 15rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 5rem 0 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none; /* Adicione isso */
  color: black; /* Certifique-se de definir a cor do texto */
}

.contact-buttons a:hover {
  background-color: #d3dc96;
  transform: scale(1.05);
}

.contact-buttons button img {
  width: 2rem;
  height: 2rem;
  margin-left: 1rem;
}

.contact-buttons button {
  display: flex;
  align-items: center;
  text-decoration: none;
  background-color: transparent;
  border: transparent;
  color: black;
}

/*Copyright*/
.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright a img {
  width: 4rem;
  height: 4rem;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

.copyright a img:hover {
  transform: scale(1.1);
}

/* Hide navigation buttons on screens smaller than 1024px */
.carousel-control {
  display: none;
}

/*--- Media Queries ---*/
/* Tablets and medium devices */
@media (min-width: 768px) {
  :root {
    font-size: 56.25%;
  }

  #header {
    flex-direction: row;
    justify-content: space-between;
  }

  #header-about-text {
    display: flex;
    flex-direction: row;
    margin-top: 5rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }

  #emailCopy {
    flex-direction: row;
  }

  #emailCopy p {
    margin-right: 1rem;
    margin-bottom: 0;
  }

  .repos-github {
    width: auto;
  }

  .repos-github img {
    width: 2rem;
    height: 2rem;
  }

  #hero-technologies {
    margin: 3rem 0;
  }

  .technologies {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
  }

  .technologies img {
    width: 8rem;
    height: 8rem;
  }

  #services {
    padding: 0 5rem;
    display: flex;
    flex-direction: row;
    gap: 5rem;
  }

  .profile-container .name {
    width: 18rem;
  }

  .services-div {
    display: flex;
    flex-direction: column;
    height: 40rem;
    width: 40rem;
  }

  .div-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50%;
    flex: 1;
  }

  .div-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 50%;
    flex: 1;
  }

  .services-div h2 {
    margin-top: 3rem;
  }

  .services-div img {
    width: 8rem;
    height: 8rem;
  }

  .carousel-container {
    position: relative;
    width: 70%;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
  }

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

  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
  }

  .carousel-item {
    min-width: 100%;
    transition: opacity 1s;
  }

  .carousel-item.active {
    opacity: 1;
  }

  .carousel-item {
    opacity: 0;
  }

  .carousel-control {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 3.5rem;
    height: 3.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-control.prev {
    left: 1.5rem;
  }

  .carousel-control.next {
    right: 1.5rem;
  }

  .project img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 3rem;
    border: var(--bg-color) 10px solid;
  }

  .project {
    align-items: center;
    text-align: center;
  }
}

/* Desktops and large devices */
@media (min-width: 1024px) {
  :root {
    font-size: 62.5%;
  }

  .carousel-container {
    position: relative;
    width: 70%;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
  }

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

  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
  }

  .carousel-item {
    min-width: 100%;
    transition: opacity 1s;
  }

  .carousel-item.active {
    opacity: 1;
  }

  .carousel-item {
    opacity: 0;
  }

  .carousel-control {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 3.5rem;
    height: 3.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-control.prev {
    left: 1.5rem;
  }

  .carousel-control.next {
    right: 1.5rem;
  }

  .project img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 3rem;
    border: var(--bg-color) 10px solid;
  }

  .project {
    align-items: center;
    text-align: center;
  }
}
