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

:root {
  --title-color: #393939;
  --text-color: #707070;
  --body-color: #f7f7f7ec;
  --firts-color: #0274CB;
  --content-color: #ECF6FD;
  --icon-color: #0274CB;
}

:root {
  --body-font: 'Nunito Sans', sans-serif;
  --big-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
}

@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body.dark-theme {
  --title-color: #fff;
  --text-color: #fff;
  --body-color: #000000;
  --firts-color: #0D1D28;
  --content-color: #0D1D28;
  --icon-color: #8FFF00;
}

.change-theme {
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

body {
  margin: 3rem 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: #6A6A6A
}


h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

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

.container {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: 1rem;
  margin-right: 1rem;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--firts-color);
}

.nav {
  max-width: 1024px;
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--firts-color);
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    border-radius: 0 0 1rem 1rem;
    z-index: 100;
  }
}

.nav-item {
  margin-bottom: 1rem;
}

.nav-link {
  color: #fff;
  transition: .3s;
}


.nav-link, .nav-logo, .nav-toggle {
  font-weight: 500;
  color: #fff;

}

.nav-toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: 3rem;
}

canvas {
  display: block;
}

#particles-js {
  position: relative;
  height: 100vh;
  background-color: var(--firts-color);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

.home-data {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
}

.home-title {
  color: #fff;
  font-size: var(--big-font-size);
  margin-bottom: 2.5rem;
}

.name {
  color: #8FFF00;
}

.button {
  display: inline-block;
  background-color: #8FFF00;
  color: #000;
  padding: .75rem 2.9rem;
  border-radius: .5rem;
  font-size: var(--normal-font-size);
  transition: all 0.3s ease;
}

.button:hover {
  transform: scale(1.1);
}

.section-title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row-reverse;
  gap: 0.8rem;
}

.section-title::after {
  content: "";
  width: 0.5rem;
  height: 1.0rem;
  left: 0;
  right: 0;
  background-color: #8FFF00;
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.about-container {
  row-gap: 2rem;
}

.about-title {
  color: var(--title-color);
  margin-bottom: 1rem;
}

.about-text {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.about-img img {
  width: 100%;
  border-radius: .5rem;
  border: 1px solid #8FFF00;
}

.social-media {
  font-size: 1.5rem;
}

.social-link {
  color: var(--title-color);
}

.social-link:hover {
  color: var(--icon-color);
}

.skills-container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skills-content {
  height: 300px;
  text-align: center;
  background-color: var(--content-color);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
  border-radius: .5rem;
}

.skills-img {
  width: 52px;
  height: 52px;
  align-items: center;
  display: inline;
  margin-top: 2rem;
}

.skills-title {
  font-size: 1rem;
  color: var(--title-color);
  margin-bottom: .5rem;
}

.skills-description {
  padding: 0 1.5rem;
  color: var(--text-color);
}

.contact-input {
  width: 100%;
  font-size: var(--normal-font-size);
  padding: 1rem;
  border-radius: .5rem;
  border: 1.5px solid var(--text-color);
  outline: none;
  margin-bottom: 2rem;
  background-color: var(--body-color);
  color: var(--text-color);
  resize: none;
}

.contact-button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

.footer {
  background-color: var(--firts-color);
  padding: 1rem;
}

.footer-copy {
  color: #fff;
  text-align: center;
  font-size: .813rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

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

.slide {
  min-width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Defina a animação */
.slide-content {
  background: rgba(238, 240, 241, 0.808);
  color: rgb(14, 13, 13);
  padding: 20px;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border: 2px solid transparent; /* Inicialmente sem borda */
  transition: all 0.3s ease; /* Transição suave */
}

/* Adiciona o efeito no hover */
.slide-content:hover {
  border: 2px solid #0274CB; /* Cor da borda ao passar o mouse */
  box-shadow: 0 4px 10px rgba(2, 116, 203, 0.5); /* Adiciona uma sombra */
  transform: scale(1.05); /* Amplia ligeiramente o elemento */
}



.slide-content h3 {
  margin: 0;
  font-size: 24px;
}

.slide-content a {
  color: #2c2c2c;
  text-decoration: none;
  font-size: 18px;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  outline: none;
  background-color: #ECF6FD;
  border-radius: 0.25rem;
  color: #000;
  padding: .75rem;
  transition: all 0.3s ease;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

@media (max-width: 768px) {
  .slide-content {
    padding: 10px;
  }

  .slide-content h3 {
    font-size: 18px;
  }

  .slide-content a {
    font-size: 16px;
  }
}



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

  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .section-title::after {
    top: 1rem;
  }

  .nav {
    height: calc(3rem + 1rem);
  }

  .nav-list {
    display: flex;
  }

  .nav-item {
    margin-left: 5rem;
    margin-bottom: 0;
  }

  .nav-toggle {
    display: none;
  }

  .change-theme {
    position: initial;
    margin-left: 1rem;
  }

  .about-container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .about-img img {
    width: 300px;
  }

  .contact-form {
    width: 360px;
  }

  .contact-container {
    justify-items: center;
  }
}


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