/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Smooth scrolling */
}
/* Body */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  margin-top: 200px;
  padding: 0;
}

.background{
  z-index: -1;
  background: url(../img/background2.webp);
  height: 100vh;
  width: 100vw;
  position: fixed;
  background-size: cover;
  background-position: center;
  top: 0;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 10;
}
nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 10em;
  padding: 0 15px;
}
nav h1 {
  font-size: 2.5em;
  font-family: "Dancing Script", serif;
  margin: 0;
  background-image: url("https://img.freepik.com/free-photo/empty-save-texture-room-light_1258-175.jpg");
  background-size: cover;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* Makes the text transparent */
  -webkit-filter: drop-shadow(2px 2px #000);
  filter: drop-shadow(2px 2px #000);
  font-weight: bold;
  text-decoration: none;


}
nav a {
  text-decoration: none;
}
nav ul {
    list-style-type: none;
  display: flex;
  gap: 20px;
}
nav ul li {
    list-style-type: none;
  background: url(../img/istockphoto-1404182363-612x612-removebg-preview.png) center no-repeat ;
  background-size: 160% 220%;
  padding: 0.2em 0.7em;
  box-shadow: black 0.3em 0.3em 0.3em;
  border-radius: 5em;
}
nav ul li:hover {
  box-shadow: black 0 0 0.3em;
  border-radius: 3em;
}
nav ul a {
  text-decoration: none;
  color: #fff;
  text-shadow: black 1px 1px;
}

/* Sections */
section{
  font-family: "Merriweather", serif;
  background-color: rgb(249, 249, 249, 0.8);
  width: 90%;
  max-width: 1600px;
  margin: 3em auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 5px 5px 2px black;

}
section .container {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items at the top */
  gap: 2em; /* Space between the paragraph and the image */
}
section .container p {
  font-family: "Merriweather", serif;
  width: 30%;
  flex: 3; /* 70% width */
  margin: auto 3em; /* Remove default margins */

}
section .container img {
  flex: 3; /* 30% width */
  max-width: 30%; /* Ensure it scales correctly */
  height: 550px; /* Maintain aspect ratio */
  object-fit: cover;
  object-position: top;
  margin:3em; /* Remove extra margins */
  box-shadow: 5px 5px 8px black;
}
section h2 {
  font-family: "Dancing Script", serif;
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}
section p {
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
}
section ul {
  list-style-type: none;
  display: grid;
  gap: 20px;
  padding: 0 20px;
}
section ul li {
  list-style-type: none;
  background-color: rgb(249, 249, 249, 0.8);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
section ul li h3 {
  color: #6A0DAD; /* Roxo */
  font-size: 1.5rem;
  margin-bottom: 10px;
}


/* Hero Section */
#hero {

  width: 50%;
  text-align: center;
  padding: 50px 0;
  margin: 8em auto;

}
#hero .container {
  flex-direction: column;
  align-items: center;
}
#hero h2 {
    font-family: "Dancing Script", serif;
    background-image: url("https://textuts.com/images/tutorials/glossyfuturistic/Background.jpg");
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Makes the text transparent */

  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
}
#hero p, #formacao p span {
  font-family: "Dancing Script", serif;
  font-size: 2rem;
  font-weight: bold;
  margin: 3em 0;
  width: 100%;
}

#sobre {
  padding: 4em;
}

#formacao {
  margin-bottom: 5em;
}
#formacao p {
  width: fit-content;
  text-align: justify;
  margin: auto;
}


#servicos{
  padding:  3em 0;
}
#servicos li{
  box-shadow: 3px 3px 2px black;
  padding: 3em 5em;
  margin: 4em auto 0;
  width: 80%;
}
#servicos li h3{
  margin-bottom: 2em;
}
#servicos li div{
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  margin-bottom: 3em;

}
#servicos li div p{
  width: 50%;
  margin: auto 0;
}
#servicos li div img{
  max-height: 350px;
  object-fit: cover;
  object-position: left top;
  margin:auto 2em; /* Remove extra margins */
  box-shadow: 5px 5px 8px black;
}
#servicos h2 {
  width: 20%;
  margin: 1em auto 0;
}
#servicos h3 {
  font-family: "Dancing Script", serif;
  margin-bottom: 1em;
}
#servicos p {
  text-align: left;
}

#relatos{
  margin: 5em 10px;
}
#relatos h2{
  margin: 0 auto 2em;
}

#conclusao div{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#conclusao img {
  width: 10%;
  aspect-ratio: 1/1;
  margin: 3em auto;
  border-radius: 60em;
  object-fit: cover;
  box-shadow: 5px 5px 3px black;
}

#contato .container{
  flex-direction: column;
  align-items: center;
}
#contato .container p{
  width: 100%;
}

/* Footer */
footer {
  background-color: #4B0082;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  width: 100%;
}



.bubble{
  width: 50%;
  height: auto;
  display: block;
  background: white;
  border-radius: 8px;
  box-shadow: 20px 18px 30px #000;
  position: relative;
  margin: 3em;
  &.alt{
    background: palegreen;
    margin: 0 60px 60px auto;
  }
  .txt{

    padding: 8px 55px 8px 14px;
    .name{
      font-weight: 600;
      font-size: 12px;
      margin: 0 0 4px;
      color: #3498db;
      span{
        font-weight: normal;
        color: #b3b3b3;
      }
      &.alt{
        color: #000;
      }
    }
    .message{
      text-align: left;
      font-size: 12px;
      margin: 0;
      color: #2b2b2b;
    }
    .timestamp{
      font-size: 11px;
      position: absolute;
      bottom: 8px;
      right: 10px;
      text-transform: uppercase; color: #999
    }
  }
  .bubble-arrow {
    position: absolute;
    width: 0;
    bottom:42px;
    left: -16px;
    height: 0;
    &.alt{
      right: -2px;
      bottom: 40px;
      left: auto;
    }
  }
  .bubble-arrow:after {
    content: "";
    position: absolute;
    border: 0 solid transparent;
    border-top: 9px solid white;
    border-radius: 0 20px 0;
    width: 15px;
    height: 30px;
    transform: rotate(145deg);
  }
  .bubble-arrow.alt:after {
    border-top: 9px solid palegreen;
    transform: rotate(45deg) scaleY(-1);
  }
}


/* Responsividade */
@media (max-width: 1300px){
  #servicos li div img {
    width: 40%;
    max-height: 100%;
  }

}

@media (max-width: 980px) {

  body {
    background-size: cover; /* Ensures the entire image fits */
    background-position: top center; /* Adjust as needed */
  }

  nav {
    background-image: url('../img/background2.webp');
    background-position: center top;
  }

  /* Make nav items vertical on smaller screens */
  nav .nav-container {
    flex-direction: column;
    align-items: center; /* Align the items to the start of the container */
    text-align: left;
    width: 100%;
    margin: 0;
  }

  nav ul {
    width: 100%; /* Make the list take up the full width */
    padding: 0; /* Remove padding */
    margin-top: 10px; /* Add some space between the h1 and the ul */
    justify-content: center;
  }

  nav ul li {
    background-size: 160% 220%; /* Adjust background size to fit */
    font-size: 0.8em;
  }

  section {
    opacity: 1 !important;
  }

  section, #hero {
    width: auto;
    margin: 5em 10px;
    padding: 2em 10px;
  }

  section .container img {
    max-width: 80%;
  }

  section h2 {
    font-size: 1.8rem;
  }

  section ul {
    grid-template-columns: 1fr;
  }

  section ul li h3 {
    font-size: 1.4rem;
  }

  #hero h2 {
    font-size: 2.5rem;
  }

  #hero p {
    margin: 0 2em;
  }

  #sobre {
    padding: 2em 0;
  }

  #sobre p {
    padding: 0 1em;
    margin: 0;
    width: 100%;
  }

  #sobre .container {
    flex-direction: column;
  }

  #servicos {
    justify-content: center;
    padding: 0;
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
  }

  #servicos h2 {
    margin: 1em auto;
  }

  #servicos ul {
    width: 100%;
    padding: 0;
    margin: 0;
    justify-content: center;
  }

  #servicos li {
    justify-content: center;
    text-align: center;
    width: 100%;
    box-shadow: none;
    padding: 1em 0;
    margin: 0;
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
  }

  #servicos li div {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  #servicos li div p {
    width: 100%;
    text-align: justify;
    padding: 0 5px;
    margin: 2em 0;
  }

  #servicos li div img {
    width: 70%;
    max-height: 100%;
  }

  .bubble {
    width: 70%;
  }

  #conclusao img {
    width: 40%;
  }

}

@media (max-width: 480px) {

  body {
    background-size: cover; /* Ensures the entire image fits */
    background-position: top center; /* Adjust as needed */
  }

  nav {
    background-image: url('../img/background2.webp');
    background-position: center top;
  }

  /* Make nav items vertical on smaller screens */
  nav .nav-container {
    flex-direction: column;
    align-items: center; /* Align the items to the start of the container */
    text-align: left;
    width: 100%;
    margin: 0;
  }

  nav ul {
    width: 100%; /* Make the list take up the full width */
    padding: 0; /* Remove padding */
    margin-top: 10px; /* Add some space between the h1 and the ul */
    justify-content: center;
  }

  nav ul li {
    background-size: 160% 220%; /* Adjust background size to fit */
    font-size: 0.9em;
  }

  section {
    opacity: 1 !important;
  }

  section, #hero {
    width: auto;
    margin: 1em 10px;
    padding: 2em 10px;
  }

  section .container img {
    max-width: 80%;
    max-height: 400px;
  }


  section ul {
    grid-template-columns: 1fr;
  }

  #hero h2 {
    font-size: 2em;
  }

  #hero p {
    margin: 0 1em;
    font-size: 1.5em;
  }

  #formacao p span {
    font-size: 1.4rem;
  }

  section p {
    font-size: 1em;
  }

  #sobre {
    padding: 2em 0;
  }

  #sobre p {
    padding: 0 1em;
    margin: 0;
    width: 100%;
  }

  #sobre .container {
    flex-direction: column;
  }


  #servicos {
    justify-content: center;
    padding: 0;
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
  }

  #servicos h2 {
    margin: 1em auto;
  }

  #servicos ul {
    width: 100%;
    padding: 0;
    margin: 0;
    justify-content: center;
  }

  #servicos li {
    justify-content: center;
    text-align: center;
    width: 100%;
    box-shadow: none;
    padding: 1em 0;
    margin: 0;
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
  }

  #servicos li div {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  #servicos li div p {
    width: 100%;
    text-align: justify;
    padding: 0 5px;
    margin: 2em 0;
  }

  #servicos li div img {
    width: 70%;
    max-height: 100%;
  }

  .bubble {
    width: 70%;
  }

}
