@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@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");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  --hue: 358;
  --first-color: hsl(var(--hue), 80%, 49%);
  --first-color-alt: hsl(var(--hue), 76%, 45%);
  --white-color: hsl(0, 0%, 98%);
  --black-color: hsl(0, 0%, 1%);
  --text-color: hsl(var(--hue), 2%, 66%);
  --body-color: hsl(var(--hue), 100%, 1%);
  --container-color: hsl(var(--hue), 2%, 10%);
  --gray-color: hsl(0, 0%, 50%); /* Exemplo de cor adicional */
  --conic-gradient: conic-gradient(
    from 150deg at 50% 45%,
    hsl(var(--hue), 80%, 20%) 0deg,
    hsl(var(--hue), 80%, 48%) 140deg,
    hsl(var(--hue), 80%, 20%) 360deg
  );

  /*========== Font and Typography ==========*/
  --body-font: "Poppins", sans-serif; /* Fonte principal do corpo do texto */
  --second-font: "Merriweather", serif; /* Fonte aplicada exclusivamente aos títulos de perfil */
  --title-font: "Roboto", sans-serif; /* Fonte para títulos gerais */
  --biggest-font-size: 2.5rem; /* Tamanho para títulos maiores */
  --h1-font-size: 1.5rem; /* Tamanho do H1 */
  --h2-font-size: 1.25rem; /* Tamanho do H2 */
  --h3-font-size: 0.8rem; /* Tamanho do H3 */
  --book-title-font-size: 2.5rem; /* Título no livro */
  --book-subtitle-font-size: 1.5rem; /* Subtítulo no livro */
  --book-text-font-size: clamp(0.8rem, 0.9vw, 1rem);
  --normal-font-size: 0.938rem; /* Tamanho padrão para textos */
  --small-font-size: 0.813rem; /* Tamanho para textos menores */
  --smaller-font-size: 0.75rem; /* Tamanho para textos pequenos */

  /*========== Font Weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Z-index Levels ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 105; /* Exemplo de nível adicional */
}

/*========== RESPONSIVE TYPOGRAPHY FOR LARGE SCREENS ==========*/

@media screen and (min-width: 1200px) {
  :root {
    /* Ajustes de tamanho de fonte para telas grandes */
    --biggest-font-size: 3.1rem; /* Títulos maiores */
    --h1-font-size: 1.4rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem; /* Tamanho padrão do texto */
    --small-font-size: 0.875rem; /* Ajuste para textos menores */
    --smaller-font-size: 0.813rem;
  }
}

/*========== GLOBAL STYLES ==========*/
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--body-color);
  color: var(--white-color);
  font-family: var(--body-font); /* Define a fonte global do body */
  font-size: var(--normal-font-size); /* Utiliza o tamanho de fonte padrão */
  line-height: 1.6; /* Adiciona um espaçamento entre linhas para melhor legibilidade */
  margin-top: 60px; /* Ajuste conforme necessário */
}

a {
  text-decoration: none;
  color: inherit; /* Inherit mantém a cor do texto definida no body */
}

ul {
  list-style: none; /* Remove bullets das listas por padrão */
}

img {
  display: block;
  max-width: 100%; /* Garante que as imagens respeitem o container */
  height: auto; /* Mantém a proporção das imagens */
}

/*=============== REUSABLE CSS CLASSES ===============*/

.container {
  max-width: 1168px;
  width: 100%; /* Garante que ocupe toda a largura até o limite de 1168px */
  margin-inline: auto; /* Centraliza o container horizontalmente */
  padding-inline: 1.5rem; /* Mantém o espaçamento interno nas laterais */
}

.grid {
  display: grid;
  gap: 1.5rem; /* Espaçamento entre os elementos do grid */
}

.section {
  padding-block: 2rem 3rem;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 2rem;
}

.main {
  width: 100%; /* Garante que a área principal ocupe toda a largura */
  padding: 0; /* Remove qualquer padding interno */
  overflow: hidden; /* Controla o overflow */
  margin: 0 auto; /* Centraliza o conteúdo da main */
}

/*========== HEADER SECTION ==========*/
header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Começa ocupando a tela inteira */
  background-color: rgb(0, 0, 0);
  z-index: 1000;
  transition: height 1s ease, background-color 1s ease;
}

header.animate_header {
  height: 80px; /* Reduz a altura após a animação */
  background-color: rgba(0, 0, 0, 0.9);
}

header .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 1s ease;
}

header.animate_header .logo {
  position: absolute;
  left: 35px; /* Posiciona à esquerda após animação */
  top: 0;
  transform: translateY(0) translateX(0); /* Remove a inclinação */
}

header img.law {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transition: opacity 1s ease;
}

header.animate_header img.law {
  opacity: 0;
}

header .logo img {
  width: 500px;
  transition: width 1s ease;
}

header.animate_header .logo img {
  width: 135px;
}

/* Posicionamento correto do nav à direita */
header nav {
  display: flex;
  justify-content: flex-end;
  position: absolute; /* Corrige a sobreposição */
  right: 0;
  margin-right: 40px; /* Espaçamento correto para o nav */
}

/* Estilo padrão para nav, escondido inicialmente */
header nav ul {
  display: flex;
  margin: 0;
  padding: 1.92rem 0;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: translateX(100px); /* Inicia à direita fora da tela */
}

/* Quando a animação do nav é ativada */
header nav ul.animate_nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
}

header nav ul li {
  list-style: none;
}

header nav ul li a {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover {
  background: #fff;
  color: #262626;
}

.hamburger {
  display: none;
}

/* Estilo do botão hambúrguer em telas menores */
@media (max-width: 784px) {
  /* Header - Mobile */
  header {
    height: 100vh; /* Começa ocupando a tela inteira, semelhante ao desktop */
    background-color: rgba(0, 0, 0, 0.9); /* Fundo com opacidade */
    transition: height 1s ease, background-color 1s ease; /* Transições suaves */
  }

  /* Header com animação ativada após o scroll */
  header.animate_header {
    height: 80px; /* Reduz a altura após a animação, como no desktop */
    background-color: rgba(0, 0, 0, 0.9); /* Cor de fundo após a animação */
  }

  /* Logo Centralizada - Mobile */
  header .logo {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Mantém centralizada no meio da tela */
    transition: all 1s ease;
  }

  /* Logo após a animação */
  header.animate_header .logo {
    left: 35px; /* Posiciona à esquerda após a animação */
    top: 0;
    transform: translateY(0) translateX(0); /* Remove a translação da centralização */
  }

  /* Tamanho da logo ajustado para telas menores */
  header .logo img {
    width: 300px;
    transition: width 1s ease;
  }

  /* Hambúrguer Menu - Estilo inicial */
  .hamburger {
    display: flex;
    position: absolute;
    flex-direction: column;
    width: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    top: 50%;
    right: -50px; /* Inicia fora da tela à direita */
    transform: translateY(-50%);
    opacity: 0; /* Inicia com opacidade 0 */
    visibility: hidden;
    transition: opacity 0.8s ease 1.8s, right 0.8s ease 1.8s; /* Atraso ajustado para 1 segundo */
    z-index: 10;
  }

  /* Mostra o hambúrguer quando a animação da header é ativada */
  header.animate_header .hamburger {
    opacity: 1; /* Faz o hambúrguer aparecer */
    visibility: visible;
    right: 35px; /* Move o hambúrguer para dentro da tela */
  }

  /* Estilo das barras do menu hambúrguer */
  .hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 1px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
  }

  /* Remove a margem inferior na última barra */
  .hamburger span:last-child {
    margin-bottom: 0;
  }

  /* Animação do ícone hambúrguer (ativado) */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Menu Mobile - Nav */
  header nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; /* Inicia fora da tela */
    height: 100vh;
    width: 50%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 50px 60px;
    opacity: 0; /* Inicia com opacidade 0 */
    transition: right 0.3s ease, opacity 0.5s ease; /* Transições suaves */
  }

  /* Menu Nav quando ativo */
  header nav ul.active {
    right: 0; /* Move o menu para dentro da tela */
    opacity: 1; /* Faz o menu aparecer com opacidade */
  }

  /* Estilo dos itens de menu no mobile */
  header nav ul li {
    padding: 25px 0;
    white-space: nowrap; /* Evita quebra de linha */
  }
}

/*=============== BASE ===============*/

html {
  scroll-behavior: smooth;
}

body,
input,
textarea,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

input,
button,
textarea {
  border: none;
  outline: none;
}

h1,
h2,
h3,
h4 {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== NAV ===============*/
.nav {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  background-color: hsla(0, 0%, 98%, 0.1);
  width: 88%;
  margin-inline: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 2rem;
  border-radius: 4rem;
  z-index: var(--z-fixed);
}

.nav__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: var(--white-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.6s;
}

/* Active link */
.active-link {
  background-color: var(--first-color);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(0, 0%, 20%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 30%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 40%);
}

/*=============== HOME ===============*/
/*===== PERFIL =====*/

.perfil {
  position: relative;
  display: flex; /* Usa flexbox para facilitar o alinhamento */
  justify-content: center; /* Centraliza horizontalmente o conteúdo */
  align-items: flex-end; /* Alinha o conteúdo na parte inferior */
  background: var(--conic-gradient);
  height: 415px;
  border-radius: 2rem;
  padding: 2rem 1.5rem;
  overflow: hidden; /* Para manter a imagem dentro dos limites */
}

.perfil .perfil__img {
  position: absolute;
  width: 100%; /* A imagem agora ocupa toda a largura do contêiner */
  height: 100%; /* A imagem agora ocupa toda a altura do contêiner */
  top: 0; /* Posiciona a imagem no topo do contêiner */
  left: 0; /* Posiciona a imagem no lado esquerdo do contêiner */
  object-fit: cover; /* Garante que a imagem se ajuste ao contêiner sem distorção */
  border-radius: 2rem; /* Mantém as bordas arredondadas da imagem */
  object-position: 0;
}

.perfil .perfil__data {
  display: flex; /* Flexbox para organizar o layout interno */
  flex-direction: column; /* Organiza os elementos internamente em coluna */
  align-items: center; /* Centraliza o conteúdo internamente */
  justify-content: center; /* Centraliza verticalmente o conteúdo interno */
  background-color: hsla(0, 0%, 1%, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  padding: 1.5rem 1rem;
  border: 2px solid hsla(0, 0%, 100%, 0.5);
  max-width: 350px; /* Define um limite máximo para a largura */
  width: 100%; /* Faz o elemento acompanhar a largura do contêiner */
}

.perfil .perfil__data .perfil__first_name {
  font: var(--font-regular) var(--biggest-font-size) var(--second-font);
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  display: block; /* Garante que o texto ocupe sua própria linha */
}

.perfil__data .line {
  width: 90%; /* Define a largura da linha */
  height: 2px; /* Define a altura da linha */
  background-color: red; /* Cor da linha */
  margin: 0 auto; /* Centraliza a linha */
}

.perfil .perfil__data .perfil__second_name {
  font: var(--font-regular) var(--h1-font-size) var(--second-font);
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  display: block; /* Garante que o texto ocupe sua própria linha */
}

/*===== INFO =====*/
.info,
.about,
.skills {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 2rem;
}

.info__data {
  display: flex;
  flex-direction: inline-flex; /* Garante que os elementos fiquem em linha */
  justify-content: center; /* Centraliza verticalmente */
  align-items: center; /* Centraliza horizontalmente */
  text-align: center; /* Garante centralização do texto */
  width: 100%; /* Ocupa a largura total disponível */
  gap: 2px; /* Espaçamento entre o ícone e o texto */
}

.info__icon {
  font-size: 32px; /* Ajuste o tamanho do ícone conforme necessário */
  color: #ea4335; /* Cor do ícone (ajuste conforme o tema) */
  margin-left: -20px;
}

.info__name {
  font-weight: var(--font-semi-bold);
  font-size: var(--h2-font-size);
  text-align: center;
}

.info__image {
  position: relative;
  height: 210px;
  width: 100%;
  align-items: center;
  border-radius: 2rem;
  display: grid;
  margin-block: 1rem;
  overflow: hidden;
  background: var(--conic-gradient);
}

.info__img {
  position: absolute; /* Para ajustar o tamanho dentro do contêiner */
  top: 0;
  left: 0;
  width: 100%; /* Faz o iframe preencher toda a largura */
  height: 100%; /* Faz o iframe preencher toda a altura */
  border: 0; /* Remove bordas do iframe */
  justify-self: center;
  align-self: flex-end;
}

.info__fone {
  font-family: var(--body-font);
  font-weight: 450;
  text-align: center;
  margin-bottom: 0.5rem;
}

.info__description {
  font-size: 15px;
  text-align: justify;
}

.info .button {
  width: 100%;
}

/*===== ABOUT =====*/
.about__name {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem; /* Espaçamento entre as linhas */
  margin-bottom: 3rem;
  font-size: 24px; /* Ajuste para um tamanho menor */
  font-family: var(--second-font); /* Altere para Merriweather */
  font-weight: var(--font-regular); /* Remove o negrito */
}
.about__name p:last-child {
  font-size: 20px; /* Ajuste para um tamanho menor */
  font-weight: var(--font-regular); /* Remove o negrito */
}

.about__name .red-line {
  width: 60%; /* Tamanho da linha ( ajuste conforme necessário) */
  height: 2px; /* Espessura da linha */
  background-color: red; /* Cor da linha */
}

.about__description {
  text-align: justify; /* Justifica o texto */
  font-size: 15px;
  margin-bottom: 16px;
}
.about__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-block: 2rem;
}

.about__link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--white-color);
  color: var(--black-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.4s, color 0.4s;
}

.about__link:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

.about__image {
  background: var(--conic-gradient);
  height: 210px;
  border-radius: 2rem;
  display: grid;
  overflow: hidden;
}

.about__img {
  position: relative;
  width: 200px;
  justify-self: center;
  margin-top: -0.2rem;
  transform: translateY(-2.5rem);
}

.about__note {
  font-size: var(--small-font-size);
  margin-block: 1rem;
  font-size: 15px;
  text-align: justify;
}

.about .button {
  width: 100%;
}

/*===== SKILLS =====*/
.skills__title {
  font-size: var(--h2-font-size);
  text-align: center;
}

.skills__item {
  width: 1.5rem;
  transition: transform 0.4s;
}

.skills__item:hover {
  transform: translateY(-0.25rem);
}

.skills__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-block: 1.5rem;
}

.skills__description {
  font-size: 15px;
  text-align: justify;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 2.5rem;
  border-radius: 4rem;
  transition: background-color 0.4s;
}

.button__black {
  background-color: var(--first-color-alt);
}

.button:hover {
  background-color: var(--black-color);
}

/*=============== BOOK ===============*/
.book-root,
.book-root .wrapper,
.book-root .book-page {
  margin: 0;
}

.book-root {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  --main-color: black;
  --text-color: #333;
  --second-text-color: #555;
  --white-color: #fff;
  --cover-color: var(--first-color);
  --pages-color: linear-gradient(90deg, #fff, #ddd);
  --border: 0.125rem solid black;
  --box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  background: var(--bg-color);
  font-family: "Poppins", sans-serif;
}

.book-root .profile-page h1,
.book-root .profile-page h3,
.book-root .profile-page p,
.book-root .workeduc-box .workeduc-content h3,
.book-root .workeduc-box .workeduc-content p,
.book-root .services-box .services-content h3,
.book-root .services-box .services-content p,
.book-root .skills-box .skills-content h3,
.book-root .skills-content .content span,
.book-root .portfolio-box .info-box .info-title h3,
.book-root .portfolio-box .info-box p,
.book-root .contact-box .field,
.book-root .contact-box textarea,
.book-root .contact-box .btn {
  font-size: var(--book-text-font-size);
}

.book-root h1,
.book-root h2,
.book-root h3,
.book-root h4 {
  color: var(--text-color) !important;
}

.book-root .wrapper {
  position: relative;
  width: 60vw;
  height: 40vw;
  padding: 1.5vw;
  perspective: 150vw;
  opacity: 0; /* O livro começa oculto */
  transform: translateY(2vh); /* Posição inicial fora de vista */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Suave transição para quando a visibilidade for alterada */
}

.book-root .wrapper.animate {
  opacity: 1; /* Torna o livro visível */
  transform: translateY(0); /* Volta à posição original */
  animation: show-animate 2s forwards; /* Ativa a animação de introdução */
}

@keyframes show-animate {
  0%,
  30% {
    opacity: 0;
    transform: rotate(-20deg);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg);
  }
}

.book-root .cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--first-color-alt);
  box-shadow: var(--box-shadow);
  border-top-left-radius: 2vw;
  border-bottom-left-radius: 2vw;
  transform-origin: right;
}

.book-root .cover.cover-left {
  z-index: -1;
}

.book-root .cover.cover-right {
  z-index: 100;
  transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.book-root .cover.cover-right.turn {
  transform: rotateY(180deg);
}

.book-root .book {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  perspective: 150vw;
}

.book-root .book-page {
  position: absolute;
  width: 50%;
  height: 100%;
  background: var(--pages-color);
  box-shadow: var(--box-shadow);
  display: flex;
  padding: 1.5vw;
}

.book-root .book-page.page-left {
  box-shadow: -0.6rem 0.6rem 0.6rem rgba(0, 0, 0, 0.1);
}

.book-root .profile-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.book-root .profile-page img {
  max-width: 11vw;
  border-radius: 50%;
  border: 0.25vw solid var(--main-color);
  margin-bottom: 0.8vw;
}

.book-root .profile-page h1 {
  font-size: var(--book-title-font-size);
  line-height: 1;
  color: #000000;
}

.book-root .profile-page h3 {
  font-size: var(--book-subtitle-font-size);
  color: var(--main-color);
}

.book-root .profile-page p,
.book-root .contact-box .field,
.book-root .contact-box textarea,
.book-root .contact-box .btn {
  font-size: var(--book-text-font-size);
}

.book-root .profile-page .social-media {
  margin: 0.6vw 0 0.8vw;
}

.book-root .profile-page .social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.5vw;
  height: 2.5vw;
  background: transparent;
  border: var(--border);
  border-radius: 50%;
  font-size: 1vw;
  color: var(--main-color);
  margin: 0 0.2vw;
}

.book-root .profile-page .social-media a:hover {
  background: var(--main-color);
  color: var(--white-color);
}

.book-root .profile-page p {
  text-align: justify;
}

.book-root .profile-page .btn-box {
  margin-top: 1.2vw;
}

.book-root .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 8vw;
  height: 2.5vw;
  background: var(--main-color);
  border: var(--border);
  border-radius: 0.3vw;
  font-size: 1vw;
  color: var(--white-color);
  font-weight: 500;
  margin: 0 1vw;
  transition: 0.5s;
}

.book-root .btn:hover {
  background: transparent;
  color: var(--main-color);
}

.book-root .btn-box .btn:nth-child(2) {
  background: transparent;
  color: var(--main-color);
}

.book-root .btn-box .btn:nth-child(2):hover {
  background: var(--main-color);
  color: var(--white-color);
}

.book-root .book-page.page-right {
  position: absolute;
  right: 0;
  transform-style: preserve-3d;
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.book-root .book-page.page-right.turn {
  transform: rotateY(-180deg);
}

.book-root .book-page .page-front,
.book-root .book-page .page-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pages-color);
  padding: 1.5vw;
}

.book-root .book-page .page-front {
  transform: rotateY(0deg) translateZ(1px);
}

.book-root .book-page .page-back {
  transform: rotateY(180deg) translateZ(1px);
}

.book-root .title {
  text-align: center;
  margin-bottom: 1vw;
}

.book-root .workeduc-box {
  border-left: var(--border);
}

.book-root .workeduc-box .workeduc-content {
  position: relative;
  padding-left: 1.5vw;
  margin-bottom: 1.2vw;
}

.book-root .workeduc-box .workeduc-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -0.65vw;
  width: 1vw;
  height: 1vw;
  background: var(--main-color);
  border-radius: 50%;
}

.book-root .workeduc-content .year {
  color: var(--main-color);
}

.book-root .workeduc-content .year i {
  margin-right: 0.4rem;
}

.book-root .number-page {
  position: absolute;
  bottom: 1.2vw;
  left: 50%;
  transform: translateX(-50%);
}

.book-root .nextprev-btn {
  position: absolute;
  bottom: 0.9vw;
  right: 1.5vw;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 2rem;
  color: var(--second-text-color);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  z-index: 15;
}

.book-root .nextprev-btn:hover {
  color: #ffffff; /* Cor branca para o ícone da seta no hover */
  background: rgba(0, 0, 0, 0.5); /* Fundo semitransparente preto no hover */
}

.book-root .nextprev-btn.back {
  left: 1.5vw;
}

.book-root .services-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5vw;
}

.book-root .services-box .services-content {
  flex: 1 1 10vw;
  border: var(--border);
  border-radius: 0.5vw;
  padding: 0.1vw;
  text-align: center;
  transition: 0.3s ease;
}

.book-root .services-box .services-content:hover {
  box-shadow: var(--box-shadow);
}

.book-root .services-content i {
  font-size: 2vw;
  color: var(--main-color);
}

.book-root .services-content h3 {
  font-size: 1.1vw;
}

.book-root .services-content p {
  margin: 0.2rem 0 0.8rem;
}

.book-root .services-content .btn {
  width: 8rem;
  height: 2.5rem;
}

.book-root .skills-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.book-root .skills-box .skills-content {
  flex: 1 1 20rem;
}

.book-root .skills-content h3 {
  font-size: 1.3vw;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.book-root .skills-content .content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.book-root .skills-content .content span {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 5vw;
  height: 4vw;
  border: var(--border);
  font-size: 1vw;
  border-radius: 0.3rem;
}

.book-root .skills-content .content span:hover {
  box-shadow: var(--box-shadow);
}

.book-root .skills-content .content span i {
  font-size: 2.5vw;
  color: var(--main-color);
}

.book-root .portfolio-box .img-box {
  display: flex;
  width: 100%;
  height: 13vw;
  border: var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.book-root .portfolio-box .img-box img {
  width: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.book-root .portfolio-box .img-box:hover img {
  transform: scale(1.1);
}

.book-root .portfolio-box .info-box {
  margin: 1rem 0 1.5rem;
}

.book-root .portfolio-box .info-box .info-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.book-root .portfolio-box .info-box .info-title h3 {
  font-size: 1.2vw;
}

.book-root .portfolio-box .info-box .info-title a {
  display: flex;
  align-items: center;
  color: var(--main-color);
}

.book-root .portfolio-box .info-box .info-title a i {
  margin-left: 0.3rem;
}

.book-root .portfolio-box .info-box p:nth-of-type(1) {
  font-weight: 600;
}

.book-root .portfolio-box .btn-box {
  display: flex;
  justify-content: center;
}

.book-root .portfolio-box .btn-box .btn {
  margin: 0 1.15rem;
}

.book-root .contact-box {
  text-align: center;
}

.book-root .contact-box .field {
  width: 100%;
  background: transparent;
  border: var(--border);
  border-radius: 0.3rem;
  padding: 0.8vw;
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5vw;
  font-size: 1vw;
}

.book-root .contact-box .field,
.book-root .contact-box textarea,
.book-root .contact-box .btn {
  font-size: clamp(0.8rem, 1vw, 1rem); /* Ajuste responsivo */
}

.book-root .contact-box .field::placeholder {
  color: var(--text-color);
}

.book-root .contact-box textarea {
  resize: none;
  height: 15vw; /* Ajuste para reduzir proporcionalmente */
}

.book-root .contact-box .btn {
  cursor: pointer;
}

.book-root .back-profile {
  position: absolute;
  bottom: 1.2vw;
  right: 2vw;
  width: 2vw;
  height: 2vw;
  background: transparent;
  border: var(--border);
  border-radius: 0.3vw;
  font-size: 1vw;
  color: var(--main-color);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

.book-root .back-profile:hover {
  background: var(--main-color);
  color: var(--white-color);
}

.book-root .back-profile p {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  font-size: 1vw;
  color: var(--main-color);
  opacity: 0;
  transition: 0.5s;
}

.book-root .back-profile:hover p {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  top: -1.8vw;
}

/* Estilos do Carrossel para Mobile */
.book-root .carousel-container {
  display: none;
}

/* Estilos para o modo desktop (padrão) */
/* Estilo para o modo desktop */

.book-root .slideshow-container {
  display: none;
}

/*=============== PROJECTS ===============*/

.projects__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 2rem;
  text-align: justify;
}

.projects__image {
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%; /* Garante que o container ocupe toda a largura */
  height: 210px; /* Define uma altura fixa para o container */
}

.projects__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Faz a imagem preencher o container mantendo as proporções */
  transition: transform 0.4s;
}

.projects__name {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.projects__description {
  max-height: 6rem; /* Altura fixa */
  overflow: hidden;
  position: relative;
}

.projects__description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(to bottom, transparent, var(--container-color));
  pointer-events: none; /* Evita interferência no botão */
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--white-color);
  background-color: transparent;
  transition: all 0.3s ease; /* Adiciona uma transição suave */
}

.read-more-btn:hover {
  color: var(--text-color); /* Altere a cor ao passar o mouse */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Sombra suave */
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--container-color);
  padding: 2rem 2rem 0; /* Topo: 2rem, Esquerda/Direita: 2rem, Baixo: 0 */
  border-radius: 2rem;
  margin-top: 20px;
  max-width: 570px;
  max-height: 680px;
  width: 100%;
  top: 50%; /* Centralizar verticalmente */
  left: 50%; /* Centralizar horizontalmente */
  transform: translate(-50%, -50%); /* Ajustar deslocamento */
  text-align: left;
  position: fixed;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Previne barras de rolagem indesejadas no modal */
  text-align: justify;
}

.modal-content .project__data {
  overflow: auto;
}

/* Adiciona a lógica de gradiente apenas quando a classe has-scroll existe */
.modal .projects__data.has-scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--container-color));
  pointer-events: none;
}

/* Remover gradiente quando não há scroll */
.modal .projects__data:not(.has-scroll)::after {
  display: none; /* Remove o efeito de gradiente */
}

.modal-body img {
  justify-self: center;
  height: 210px;
  width: 100%;
  border-radius: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body .projects__description::after {
  display: none;
}

/* Text expander no card */
.projects__description {
  max-height: 6rem; /* Altura limitada para os cards */
  overflow: hidden;
  position: relative;
}

.projects__description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(to bottom, transparent, var(--container-color));
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  color: var(--white-color);
  cursor: pointer;
  font-size: var(--small-font-size);
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: var(--text-color);
}

.modal-body .read-more-btn {
  display: none;
}

.close-modal {
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #616161;
  cursor: pointer;
}
.close-modal i {
  display: inline-block;
  font-size: 1.5rem; /* Ajuste o tamanho do ícone */
}

.close-modal:hover {
  color: var(--first-color); /* Cor ao passar o mouse */
  transform: scale(1.2); /* Pequeno aumento ao passar o mouse */
  transition: transform 0.5s ease; /* Tempo de animação para o ícone */
}

.container-list {
  position: relative;
  padding: 1rem;
  background-color: #111111;
  height: auto; /* Ajusta a altura automaticamente */
  display: grid;
  border-radius: 2rem;
  margin-block: 1.5rem;
  overflow: hidden;
}

.projects__description-list {
  margin: 0.4rem 0 0.4rem 1.5rem; /* Espaçamento externo e recuo para a lista */
  padding: 0; /* Remove o padding padrão */
  list-style-type: disc; /* Bolinhas como marcador */
}

.projects__description-list li {
  font-size: 16px; /* Igual ao tamanho do texto no <p> */
  font-family: "Poppins", sans-serif; /* Fonte igual à tag <p> */
  color: #aaa7a7; /* Cor igual à tag <p> */
  margin-bottom: 0.2rem; /* Espaçamento entre os itens */
  line-height: 1.6; /* Linha semelhante ao parágrafo */
}

.modal .projects__data {
  max-height: 300px; /* Define um limite de altura */
  overflow-y: auto; /* Adiciona rolagem somente quando necessário */
  padding-right: 1rem; /* Espaçamento interno para não sobrepor a barra */
}

/* Barra de rolagem personalizada dentro de .projects__data */
.projects__data::-webkit-scrollbar {
  width: 0.5rem;
  background-color: hsl(0, 0%, 20%);
  border-radius: 0.5rem;
}

.projects__data::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 30%);
  border-radius: 0.5rem;
  min-height: 1.5rem; /* Define a altura mínima do botão de rolagem */
  min-width: 1.5rem; /* Caso seja horizontal, define a largura mínima */
}

.projects__data::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 40%);
}

.projects__card:hover .projects__img {
  transform: scale(1.2);
}

.no-scroll {
  overflow: hidden; /* Remove o scroll */
  height: 100% !important; /* Impede que o conteúdo do body se mova */
}

/*=============== SERVICES ===============*/
.services__card {
  background-color: var(--container-color);
  padding: 4rem 1.5rem 3.5rem 1.5rem;
  border-radius: 2rem;
}

.services__icon {
  display: inline-block;
  position: relative;
  margin-bottom: 2rem;
}

.services__icon i {
  font-size: 2.5rem;
  position: relative;
  z-index: var(--z-tooltip);
}

.services__circle {
  width: 3rem;
  height: 3rem;
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  top: -1rem;
  right: -1rem;
  transition: transform 0.4s;
}

.services__name {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.services__description {
  color: var(--text-color);
}

.services__card:hover .services__circle {
  transform: translate(0.25rem, -0.25rem);
}

/*=============== EXPERIENCE ===============*/
.experience__container {
  row-gap: 2rem;
}

.experience__card {
  display: grid;
  row-gap: 1rem;
}

.experience__company {
  font-size: var(--h2-font-size);
}

.experience__data {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.experience__profession {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.experience__date {
  display: block;
  font-size: var(--smaller-font-size);
  margin-bottom: 1rem;
}

.experience__description {
  color: var(--text-color);
}

/*=============== CONTACT ===============*/
.contact__group,
.contact__form {
  gap: 1rem;
}

.contact__form {
  position: relative;
}

.contact__input {
  background-color: var(--container-color);
  padding: 1.25rem;
  border-radius: 4rem;
  color: var(--white-color);
}

.contact__input::placeholder {
  color: var(--text-color);
}
.contact__input:autofill {
  transition: background-color 6000s, color 6000s;
}

.contact__area {
  height: 10rem;
  border-radius: 1.5rem;
  resize: none;
}

.contact__button {
  margin-top: 1.5rem;
  cursor: pointer;
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--smaller-font-size);
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 2rem 8rem;
}

.footer__container {
  row-gap: 2.5rem;
}

/* Estilização da logo no footer */
.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff; /* Cor do texto */
  font-family: "Merriweather", serif; /* Fonte usada */
  text-align: center;
  margin-bottom: 1rem;
}

.footer__first_name {
  font-size: 1.4rem; /* Ajuste do tamanho do texto */
  font-weight: normal;
  margin: 0;
}

.footer__second_name {
  font-size: 1.1rem;
  font-weight: normal;
  margin: 0;
  margin-top: 0.1rem;
}

.footer__line {
  width: 80%; /* Tamanho da linha */
  height: 1px;
  background-color: #ff0000; /* Cor vermelha */
  margin: 0.1rem 0; /* Espaçamento superior e inferior */
}

.footer__links {
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__link {
  color: var(--white-color);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--text-color);
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
}

.footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.4s, color 0.4s;
}

.footer__social-link:hover {
  background-color: var(--white-color);
  color: var(--black-color);
}

.footer__copy {
  display: block;
  margin-top: 4.5rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/* Floating Action Button */

@keyframes fab-enter {
  0% {
    transform: translateX(50px); /* Começa mais à direita */
    opacity: 0; /* Totalmente invisível */
  }
  100% {
    transform: translateX(0); /* Volta para a posição normal */
    opacity: 1; /* Totalmente visível */
  }
}

.fab-container {
  animation: fab-enter 2.8s ease-in forwards; /* Executa a animação */
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.fab {
  width: 60px;
  height: 60px;
  background: var(--first-color-alt);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}

.fab-icon {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fab-icon::before,
.fab-icon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 3px;
  background: #fff;
  transition: transform 0.3s ease-in-out;
}

.fab-icon::before {
  transform: rotate(0deg);
}

.fab-icon::after {
  transform: rotate(90deg);
}

/* Quando o botão está ativo (X) */
.fab.ativo .fab-icon::before {
  transform: rotate(0deg);
}

.fab.ativo .fab-icon::after {
  transform: rotate(-90deg);
}

.fab-options {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 70px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: all 0.3s;
}

.fab-option {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}
/* Ajuste para os links dentro dos botões */
.fab-option a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-option i {
  font-size: 32px; /* Tamanho do ícone */
  color: white; /* Cor do ícone */
  transition: transform 0.2s ease-in-out;
}

/* Efeito hover para aumentar o ícone */
.fab-option:hover i {
  color: var(--main-color);
}
/*=============== BREAKPOINTS ===============*/
/* For small devices */
/* Estilo para o modo mobile */

@media (max-width: 1440px) {
  .book-root .book,
  .book-root .cover {
    display: none;
  }

  .book-root {
    min-height: 842px;
  }

  /* Cover única para Modo Mobile */
  .book-root .cover-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    height: 841.45px;
    background: var(--cover-color);
    box-shadow: var(--box-shadow);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 32px;
  }

  .book-root .slideshow-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
  }

  .book-root .mySlides {
    position: relative;
    display: flex;
    width: 513.58px;
    height: 795.03px;
    padding: 20px;
    box-sizing: border-box;
    background: var(--pages-color);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
  }

  .book-root .mySlides.active {
    display: flex;
  }

  .book-root .mySlides .prev,
  .book-root .mySlides .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: black;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0);
    z-index: 15;
    transform: translateY(-50%);
  }

  .book-root .mySlides .prev:hover,
  .book-root .mySlides .next:hover,
  .book-root .mySlides .prev:active,
  .book-root .mySlides .next:active {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .book-root .mySlides .next {
    right: 10px;
    border-radius: 3px 0 0 3px;
  }

  .book-root .mySlides .prev {
    left: 10px;
    border-radius: 0 3px 3px 0;
  }

  .book-root .btn {
    width: 140px;
    height: 40px;
    font-size: 16px;
    margin: 20px;
  }

  /* Fix para .skills */
  .book-root .skills-box .skills-content .content span {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 64px;
    border: var(--border);
    font-size: 14px;
    border-radius: 6px;
  }
  .book-root .skills-box .content span i {
    font-size: 32px; /* Defina o tamanho fixo desejado */
    width: 32px; /* Ajuste a largura para acompanhar o tamanho */
    height: 32px;
    flex-shrink: 0; /* Impede que os ícones diminuam */
  }

  .book-root .numbertext {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    color: #333;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
  }

  .book-root .mySlides h1.title {
    font-size: 40px;
    margin-bottom: 16px;
  }

  /* Fix para contato */
  .book-root .contact-box,
  .book-root .contact-box .field,
  .book-root .contact-box textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .book-root .contact-box textarea {
    resize: none;
    height: 150px; /* Defina uma altura específica */
    min-height: 150px;
    padding: 16px;
    border-radius: 1.5rem;
  }

  .book-root .mySlides h3 {
    font-size: 28px;
    color: var(--main-color);
    margin-bottom: 16px;
  }

  .book-root .mySlides img.profile-pic {
    max-width: 180px;
    border-radius: 50%;
    border: 4px solid var(--main-color);
    margin-bottom: 16px;
  }

  .book-root .portfolio-box .img-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
  }

  .book-root .portfolio-box .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .book-root .info-box .info-title h3 {
    font-size: 1rem !important; /* Força o tamanho fixo */
  }
}

@media (max-width: 1199px) {
  .book-root {
    min-height: 592px;
  }

  .book-root .cover-mobile {
    width: 718.8px;
    height: 592px;
    box-sizing: border-box;
  }

  .book-root .mySlides {
    width: 672.38px;
    height: 545.58px;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    border: none;
  }
}

/* Escalonamento para tamanhos menores */
@media (max-width: 766px) {
  .book-root {
    min-height: 720px;
  }

  .book-root .cover-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 720px;
    background: var(--cover-color);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 32px;
  }

  .book-root .mySlides {
    max-width: 337.58;
    height: 673.58px;
    width: calc(80% + 32px);
    padding: 24px;
  }
  .book-root .btn {
    width: 112px;
    height: 40px;
    font-size: 14px;
    margin: 20px 8px;
  }

  .book-root .mySlides h1.title {
    font-size: 48px;
  }

  .book-root .mySlides p,
  .book-root .mySlides h3,
  .book-root .mySlides .workeduc-content h3,
  .book-root .mySlides .services-content h3 {
    font-size: 16px;
  }

  .book-root .mySlides img.profile-pic {
    width: 120px;
  }

  .book-root .portfolio-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
  }

  .book-root .portfolio-box .img-box {
    width: 240px;
    height: 180px;
    overflow: hidden;
  }

  .book-root .portfolio-box .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 539px) {
  .book-root {
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .book-root .cover-mobile {
    display: flex;
    position: absolute !important;
    width: 150%;
    max-width: 490px; /* Um pouco maior para acomodar o conteúdo */
    height: 720px;
    box-sizing: border-box;
    z-index: 1000 !important;
    padding: 23.21px;
    padding: 2rem 1.5rem;
    border-radius: 2rem;
  }

  .book-root .slideshow-container {
    width: 100%;
  }

  .book-root .mySlides {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .nav {
    padding: 1rem;
  }
}

@media screen and (min-width: 327px) {
  .perfil .perfil__data {
    height: 180px; /* Permite que a altura se ajuste ao conteúdo */
    max-width: 442px; /* Um pouco maior para acomodar o conteúdo */
    padding: 1rem; /* Adiciona um pouco de espaço interno */
  }

  .footer__line {
    width: 98%; /* Tamanho da linha */
    height: 1px;
  }
  .about {
    order: 2; /* Define a ordem como a primeira */
  }

  .perfil {
    order: 1; /* Define a ordem como a segunda */
  }

  .info {
    order: 3; /* Define a ordem como a terceira */
  }

  .skills {
    order: 4; /* Define a ordem como a quarta */
  }
  .about__img {
    margin-top: 1.3rem;
    transform: translateY(-2.5rem);
  }
  .modal-content {
    position: absolute;
    margin-top: 35px;
    max-width: 560px;
    max-height: 600px;
    min-height: 520px;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .about {
    order: 2; /* Define a ordem como a primeira */
  }

  .perfil {
    order: 1; /* Define a ordem como a segunda */
  }

  .info {
    order: 3; /* Define a ordem como a terceira */
  }

  .skills {
    order: 4; /* Define a ordem como a quarta */
  }

  .about__img {
    margin-top: 1.3rem;
    transform: translateY(-2.5rem);
  }

  .nav {
    width: max-content;
  }
  .nav__list {
    column-gap: 1.25rem;
  }

  .home__container,
  .projects__container,
  .services__container,
  .experience__container,
  .contact__container {
    grid-template-columns: 380px;
    justify-content: center;
  }
  .perfil .perfil__data {
    margin-top: 88px;
    height: 180px; /* Permite que a altura se ajuste ao conteúdo */
    width: 100%; /* Um pouco maior para acomodar o conteúdo */
    padding: 1rem; /* Adiciona um pouco de espaço interno */
  }

  .footer__first_name {
    font-size: 1.8rem; /* Ajuste do tamanho do texto */
    font-weight: normal;
    margin: 0;
  }
  .footer__line {
    width: 100%; /* Tamanho da linha */
    height: 2px;
  }
  .footer__second_name {
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
    margin-top: 0.1rem;
  }
  .modal-content {
    margin-top: 20px;
    max-width: 560px;
    max-height: 680px;
    min-height: 460px;
  }
}

@media screen and (min-width: 768px) {
  .perfil {
    order: 1; /* Define a ordem como a segunda */
    grid-row: 1/2;
  }

  .about {
    grid-column: 2/2; /* Coloca "about" na primeira coluna */
    grid-row: 1/3; /* Ocupa duas linhas */
    align-content: center;
  }

  .info {
    grid-column: 1/2; /* Coloca "about" na primeira coluna */
    grid-row: 2/3; /* Ocupa duas linhas */
  }

  .home__container {
    grid-template-columns: repeat(2, 350px);
    align-items: flex-start;
  }

  .perfil {
    height: 100%;
  }

  .perfil .perfil__data {
    height: 180px; /* Permite que a altura se ajuste ao conteúdo */
    max-width: 302px; /* Um pouco maior para acomodar o conteúdo */
    padding: 1rem; /* Adiciona um pouco de espaço interno */
  }

  .about__img {
    margin-top: 1.3rem;
    transform: translateY(-2.5rem);
  }

  .projects__container,
  .services__container {
    grid-template-columns: repeat(2, 350px);
  }

  .experience__container {
    grid-template-columns: initial;
  }
  .experience__card {
    grid-template-columns: 320px 380px;
    align-items: center;
  }

  .footer__container,
  .footer__content {
    grid-template-columns: repeat(2, max-content);
    align-items: center;
  }
  .footer__container {
    justify-content: space-between;
  }
  .footer__content {
    column-gap: 4.5rem;
  }

  .footer__first_name {
    font-size: 1.4rem; /* Ajuste do tamanho do texto */
    font-weight: normal;
    margin: 0;
  }

  .footer__second_name {
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0;
    margin-top: 0.1rem;
  }

  .footer__line {
    width: 100%; /* Tamanho da linha */
    height: 1px;
  }
}
/* For large devices */
@media screen and (min-width: 1200px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 3rem 4rem;
  }

  .section__title {
    font-size: var(--h1-font-size);
    margin-bottom: 4rem;
  }

  .home__container {
    grid-template-columns: 280px 560px 280px; /* Mantém três colunas */
    align-items: stretch;
  }

  .about {
    grid-column: 1/2; /* Coloca "about" na primeira coluna */
    grid-row: 1/3; /* Ocupa duas linhas */
    align-content: center;
  }

  .about__image {
    height: 210px;
  }

  .perfil {
    grid-column: 2/3; /* Coloca "perfil" no meio */
    grid-row: 1/3; /* Ocupa duas linhas */
    padding: 2rem;
  }

  .perfil__img {
    width: 450px;
  }

  .perfil .perfil__data {
    max-width: 350px;
    height: auto;
    border-radius: 2rem;
  }

  .info {
    grid-column: 3/4; /* Coloca "info" na terceira coluna */
    grid-row: 1/2; /* Ocupa apenas a primeira linha */
  }

  .info__name {
    font-weight: var(--font-semi-bold);
    font-size: 22px;
    text-align: center;
  }

  .skills {
    grid-column: 3/4; /* Coloca "skills" na terceira coluna */
    grid-row: 2/3; /* Ocupa a segunda linha */
  }

  .skills__title {
    font-size: 22px;
  }

  .projects__container {
    display: grid;
    grid-template-columns: repeat(3, 368px);
    gap: 2rem;
  }

  .projects__card {
    padding-bottom: 2rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 368px);
    gap: 2rem;
  }

  .services__card {
    padding-block: 6rem 5rem;
  }

  .services__icon i {
    font-size: 3.5rem;
  }

  .services__circle {
    width: 4rem;
    height: 4rem;
    right: -1.5rem;
    top: -1.5rem;
  }

  .experience__container {
    row-gap: 4rem;
  }

  .experience__card {
    grid-template-columns: 350px 510px;
    column-gap: 8rem;
  }

  .experience__company {
    font-size: var(--h1-font-size);
  }

  .experience__data {
    padding: 2rem;
    border-radius: 2rem;
  }

  .contact__container {
    grid-template-columns: 620px;
  }

  .contact__group {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__area {
    height: 15rem;
  }

  .contact__button {
    width: max-content;
    justify-self: center;
  }

  .footer {
    padding-top: 3rem;
  }

  .footer__links {
    column-gap: 3rem;
  }

  .footer__copy {
    margin-top: 7rem;
  }
}

@media screen and (min-width: 1500px) {
  .nav {
    width: max-content;
    height: max-content;
    padding: 2rem 1rem;
    left: initial;
    right: 3rem;
    top: 0;
    bottom: 0;
    margin-block: auto;
  }
  .nav__list {
    flex-direction: column;
    row-gap: 1.25rem;
  }

  .footer {
    padding-block: 3rem;
  }
}
