/* Importar fonte Nunito */
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

/* Importar fonte Merriweather */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");

:root {
  --main-color-01: rebeccapurple;
  --main-color-02: maroon;
  --text-color-01: rosybrown;
  --text-color-02: thistle;
  --text-color-03: wheat;
  --bg-color-01: snow; 
  --bg-color-02: oldlace;
  --color-00: black;
  --color-11:rgba(253, 245, 230, 0.274);

  /* Extra */
  --color-01: whitesmoke;
  --color-02: lightpink;
  --color-03: linen;
  --color-04: cornsilk;
  --color-05: seashell;
}

/* Reset Css */
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  border: none;
  outline: none;
  scroll-behavior: smooth;
}

body {
  background-image: url(../assets/gray-floral.png);
  font-family: "Nunito", serif;
}

h1,
h2,
h3 {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-style: normal;
}

p,
a,
.btn-submit {
  font-family: "Nunito", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.1rem;
  background-color: var(--color-01);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 1.7rem;
  color: rgb(207, 90, 90);
  font-weight: 600;
  cursor: default;
}

.nav-responsive {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.3); /* Teste, verificar se quer essa cor */
  backdrop-filter: blur(6px);
}

.nav a, .nav-responsive a {
  font-size: 1.2rem;
  color: rgba(185, 83, 83, 0.6);
  padding: 0.5rem 1rem;
  transition: 0.4s;

  font-family: "Nunito", serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 100%;
}

.nav-responsive a {
  color: white; 
}

.nav a:hover, .nav-responsive a:hover {
  color: rgb(185, 0, 0);
}

section {
  min-height: 100vh;
  padding: 5.7rem 3rem 3rem;
}

span {
  color: var(--main-color-02);
}

.bxl-whatsapp-square {
  color: lightgreen;
}

.bxl-linkedin-square {
  color: mediumblue;
}

.home,
.about {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.home-img img,
.about-img img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
}

.experiences-box img {
  width: auto;
  height: auto; 
  max-width: 100%; 
  max-height: 25vh; 
}

.experiences-container:nth-child(2) .experiences-box img {
  width: 17vw;
  height: 40vh;
  margin-bottom: .5rem;
}

.experiences-container:nth-child(3) .experiences-box img {
  width: 15vw; 
}

.home-content,
.about-content {
  width: 45%;
}

.home-content h1,
.about-content h1 {
  font-weight: 700;
  line-height: 1.3;
}

.home-content h3,
.about-content h3 {
  font-weight: 700;
  font-size: 1.6rem;
}

.home-content p,
.about-content p {
  margin-top: 1.2rem;
  text-align: justify;
}

.experiences h2,
.portfolio h2,
.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.experiences-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
}

.experiences-box {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.experiences-container .experiences-box {
  flex: 1;

  padding: 1rem 1rem;
  border-radius: 1.2rem;
  text-align: center;
  border: outset 0.2rem rgba(119, 119, 119, 0.5);
  background-color: var(--color-01);
  transition: 0.5s ease;
}

.experiences-container .experiences-box:hover {
  border-color: rgb(94, 0, 0);
  transform: scale(1.03);
}

.experiences-box h3 {
  font-size: 1.5rem;
}

.experiences-box p {
  margin: 0.5rem;
  letter-spacing: 0.1rem;

  /* Para esconder e agrupar as linhas no Leia mais */
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; 
}

/* Botões */

.btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background-color: var(--main-color-02);
  border-radius: 2rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.1rem;
}

.btn:hover {
  box-shadow: 0 0 0.3rem var(--main-color-02);
  background-color: inherit;
  color: black;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 1.5rem;
  background-color: var(--main-color-02);
  border-radius: 2rem;
  color: white;
  font-weight: 600;
  font-size: 108%;
  letter-spacing: 0.1rem;
  cursor: pointer;
}

.btn-submit:hover {
  box-shadow: 0 0 0.3rem var(--main-color-02);
  background-color: inherit;
  color: black;
  font-weight: 700;
  cursor: pointer;
}

.portfolio-container {
  display: grid;
  gap: 1.2rem;
}

.portfolio-box{
  display: flex;
  position: relative;
  border-radius: 0.6rem;
  box-shadow: 0 0 0 0.6rem rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

.portfolio-box img {
  width: 100%;
  transition: 0.5 ease;
}

.portfolio-box img:hover {
  transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  transform: translateY(30rem);
  transition: 0.5s ease;

  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, var(--color-03));
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}

.portfolio-layer h4 {
  cursor: default;
  font-size: 1.8rem;
}

.portfolio-layer p {
  cursor: default;
  margin: 0.2rem 0 0.5rem;
}

.portfolio-layer a {
  display: inline-flex;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background: rgb(94, 0, 0);
  border-radius: 50%;
}

.portfolio-layer a i {
  font-size: 1.1rem;
  color: white;
}

form {
  max-width: 45rem;
  margin: 0.6rem auto;
  text-align: center;
  margin-bottom: 2rem;
}

form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

}

form .input-box input,
form textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  color: rgb(83, 0, 0);
  border-radius: 0.5rem;
  margin: 0.4rem 0;
  text-decoration: none;

  background-color: rgba(128, 45, 45, 0.2);
}

form input::placeholder,
form textarea::placeholder {
  font-family: "Nunito", serif;
  color: rgba(0, 0, 0, 0.5);
}

form textarea {
  font-family: "Nunito", serif;
  resize: none;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  background-color: var(--color-01);
}

.social-media img {
  width: 3.5rem;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 3rem;
  background: transparent;
  margin: 1.3rem 0.4rem;
  transition: 0.5 ease;
}

.social-media a:hover {
  background-color: white;
  color: white;
  box-shadow: 0 0 1rem gray;
}

/* Menu Responsivo */

.menu-responsive {
  display: none;
  cursor: pointer;
}

.bar1, .bar2, .bar3 {
  width: 2rem;
  height: 0.3rem;
  background-color: rgb(207, 90, 90);
  margin: 0.4rem 0;
  cursor: pointer;
}

.change .bar1 {
  transform: translate(0, 0.73rem) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -0.62rem) rotate(45deg);
}

/* Media Queries - 5 Screens */

/* Mobile First */
/* Extra Small Screen - Smartphones (Portrait) */
@media (min-width: 0px) and (max-width: 575px) {

  .menu-responsive {
    display: block;
  }

  .nav {
    display: none;
  }

  .nav-responsive a {
    display: block;
    font-size: 1.2rem;
    margin: 0.5rem 0;
  }

  section {
    padding: 6rem 2.5rem;
  }

  .home, .about {
    flex-direction: column;
    gap: 1.2rem;
  }

  .home-img, .about-img {
    width: 100%;
    max-width: 100%;
  }

  .about-img {
    display: none;
  }

  .home-content, .about-content {
    width: 100%;
  }

  .home-content div {
    text-align: center;
  }

  .home-content h1, .about-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .experiences-container {
    flex-direction: column;
    align-items: center;
  }

  .experiences-box {
    width: 110%;
    height: 80%;
  }

  .experiences-container:nth-child(2) .experiences-box img {
    width: auto;
  }

  footer p {
    font-size: 90%;
  }

  .experiences-box p {
    font-size: 95%;
  }
}

/* Small Screen - Smartphones (Landscape) */
@media (min-width: 576px) and (max-width: 767px) {
  .menu-responsive {
    display: block;
  }

  .nav {
    display: none;
  }
  
  .home-img {
    width: 50%;
    max-width: 50%;
    margin-left: 2rem;
  }
  
  .about-img {
    width: 50%;
    max-width: 50%;
    margin-right: 2rem;
  }

  .experiences-box {
    width: 100%;
  }

  .experiences-container {
    flex-direction: column;
    align-items: center;
  } 

  .experiences-container:nth-child(2) .experiences-box img {
    width: auto;
  }

}

/* Medium - Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .about-img {
    margin-right: 2rem;
   }
  
  .menu-responsive {
    display: none;
  }
  
  .nav {
    display: block;
  }

  .nav-responsive, .nav-responsive a {
    display: none;
  }

  .home, .about {
    flex-direction: row;
    justify-content: space-evenly;
  }

  .home-img, .about-img {
    max-width: 40%;
  }
  
  .home-content, .about-content {
    width: 50%;
  }
  
  .experiences-container {
    flex-direction: column;
    align-items: center;
  } 

  .experiences-container:nth-child(2) .experiences-box img {
    width: auto;
  }

  .experiences-box {
    width: 100%;
    margin-bottom: 2rem;
  }

  .portfolio-container {
    grid-template-columns: auto auto;
  }

  form .input-box input {
    width: 49%;
  }
}

/* Large - Notebook */
@media (min-width: 992px) and (max-width: 1199px) {

  .home-img {
    margin-left: 2rem;
  }

  .about-img {
    margin-right: 2rem;
  }

  .experiences-container {
    flex-direction: row;
    gap: 1.2rem;
  }

  .portfolio-container {
    grid-template-columns: auto auto;
  }

  .experiences-container:nth-child(2) .experiences-box img {
    width: auto;
  }
}

/* Extra Large - Desktop */
@media (min-width: 1200px) {

  .home-img, .about-img {
    max-width: 100%;
  }

  .home-content h1 {
    font-size: 2.7rem;
  }

  .home-content h3 {
    font-size: 2rem;
  }

  .portfolio-container {
    grid-template-columns: auto auto auto;
    margin-top: 6rem;
  }

  .experiences-container:nth-child(2) .experiences-box img {
    width: auto;
  }
}