/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --primary-color: #f8f5ed; /* Fundo principal claro */
  --primary-color-2: #f0ebe2; /* Fundo para containers */
  --primary-color-3: #d2cfc7; /* Bordas e divisores */

  --background-color: #f8f5ed; /* Igual ao fundo principal */

  --secondary-color: #3b453d; /* Texto e strokes principais */
  --secondary-color-2: #5a655d; /* Texto secundário */
  --secondary-text-color: #768C99;

  --button-background: #2e372f; /* Botões escuros */
  --button-text-hover: #9ab3ba; /* Hover azul acinzentado */

  --button-border: #2e372f 0.1rem solid; /* Contorno forte */
  --button-border-2: #f8f5ed 0.1rem solid; /* Contorno claro */

  --container-border: #d2cfc7; /* Bordas de containers */

  --image-color: #f2f0e9;
}

/* Dark Mode */
[theme="dark"] {
  --primary-color: #1c1d1b; /* Fundo base dark inspirado no stroke */
  --primary-color-2: #252725; /* Containers dark */
  --primary-color-3: #373b38; /* Bordas dark */

  --background-color: #1c1d1b;

  --secondary-color: #f8f5ed; /* Texto claro */
  --secondary-color-2: #d2cfc7; /* Texto secundário claro */

  --button-background: #d2cfc7;
  --button-text-hover: #9ab3ba;

  --button-border: #d2cfc7 0.1rem solid;
  --button-border-2: #1c1d1b 0.1rem solid;

  --container-border: #373b38;
}

* {
  margin: 0;
  padding: 0;
}

h3 {
  color: var(--secondary-color);
}

html, body {
  overflow-x: hidden;
}
body {
  position: relative
}

body {
  max-width: 1250px;
  margin: 0 auto;
  font-family: "Inter", sans-serif; /* "Poppins" */
  background-color: var(--background-color);
  overflow-x:hidden;
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--secondary-color-2);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
  align-items: center;
}

nav {
  justify-content: space-around;
  height: 10vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.hamburger-menu li:last-child {
  width: max-content;
  display: flex;
  margin: auto;
  padding: 10px;
  padding-bottom: 15px;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  text-decoration-color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
  text-decoration-color: var(--secondary-color);
}

nav a:hover {
  color: var(--secondary-color);
  text-underline-offset: 1rem;
  text-decoration-color: var(--secondary-color);
}

.logo {
  font-size: 2rem;
  color: var(--secondary-color);
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 25px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  /* top: 120%; */
  top: 4vh;
  right: 0;
  background-color: var(--primary-color);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
    max-height: 425px;
    width: 190px;
    border-radius: 5%;
    box-shadow: 1px 1px 20px rgba(181, 181, 181, 50%);
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 4px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -4px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}



/* PROFILE SECTION */

#profile {
  padding-top: 0vh;
  display: flex;
  justify-content: center;
  gap: 2rem;
  height: 90vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.profile-picture {
  width: 400px;
  height: 400px;
  text-align: center;
  border-radius: 5%;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 0.2rem;
}

/* .section__text__p3 {
  font-size: 1.20rem;
  margin-bottom: 1rem;
} */
.section__text__p3 {
  font-size: 1.20rem;
  margin-bottom: 1rem;
  padding: 10px 40px;
  max-width: 370px;
  margin: 0 auto;
}


.title {
  color: var(--secondary-color);
  font-size: 3rem;
  text-align: center;
}
.subtitle {
  text-align:center;
  margin-top: 10px;
  font-size: 1.2rem!important;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 1.8rem;
  font-size: 2.4em;
  text-align: center;
  color: var(--secondary-color);
}

#experience {
  h3 {
    font-size: 1rem;
  }
  .article-container {
    gap: 1.5rem;
  }
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  /* width: 8rem; */
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: var(--button-border);
  color: var(--secondary-color-2);
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: var(--button-background);
  color: var(--primary-color);
}

.btn-color-1:hover {
  background: var(--secondary-color);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: var(--button-border);
  background: var(--secondary-color);
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

#about {
    .text-container .first_paragraph{
      font-size: 1rem;
      width: 470px;
      text-align: left;
    }

    .text-container .second_paragraph{
      text-align: left;
      width: 470px;
      /* padding-right: 10em; */
    }
  }

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  margin: 2rem auto;
}

#about .about-containers {
  max-width: 600px;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.text-container-experience ul {
  padding-left: 1em;
  list-style:none;
  color: var(--secondary-color);
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

#open_projects {
  .about-containers {
    flex-wrap: wrap;
  }

  /* .about-containers > .details-container:nth-child(1):first-child {
    flex: 1 1 100%;
    max-width: 100%;
  } */

  /* .details-container {
    padding: 1.8rem 1.5rem ;
    flex: 1 1 calc(50% - 2rem);
    max-width: calc(50% - 4.5rem);
  } */
}

.details-container {
  padding: 1.8rem 1.5rem ;
  flex: 1;
  background: var(--primary-color-2);
  border-radius: 2rem;
  border: var(--button-border);
  border-color: var(--container-border);
  text-align: center;
}

.details-container article {
  text-align: left;
  /* width: auto!important; */
}

.details-container p {
  font-size: 0.9rem;
}

#about .details-container {
  flex: none;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects, #open_projects, #articles {
  position: relative;
}

.color-container,
.details-container {
  border-color: var(--container-border);
  background: var(--primary-color-2);
  box-shadow: 1px 1px 10px rgba(46, 55, 47, 10%);
}

.article-container a {
  display: block;
  width: 100%;
}

.project-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 2rem;
  background-color: var(--image-color);
  box-shadow: 1px 1px 10px rgba(181, 181, 181, 0.1);
}

.lazyload,
.lazyloading {
  opacity: 1;
}

.lazyloaded {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.section__pic-container .lazyloaded {
  z-index: -10;
}

/* Definindo o fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.project-title {
  margin: 1rem;
  color: var(--secondary-color);
}

.project-btn {
  margin-top: 10px;
  color: var(--secondary-color);
  border-color: var(--container-border);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-text {
  max-width: 500px;
  justify-content: center;
  margin: 2rem auto;
  text-align: center;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: var(--button-border);
  border-color: var(--container-border);
  background: var(--background-color);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}