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

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
    padding: 0;
    margin: 0;
    
}

body {
    width: 100%;
    font-family: "Roboto", sans-serif;
}

nav {
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 1;
}

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

nav .logo img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}
  
nav .logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

nav .logo img.circulo {
    position: absolute;
    animation: spin 2s alternate infinite;
}
nav .logo img.logo-img {
    position: relative;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


nav .logo h1 {
  font-size: 1.4rem;
  background: linear-gradient(to right, #b927fc 0%, #2c64fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  
}

nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 1.5rem;
}
nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #f5f5f5;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 1px;
  background-color: #1f1f1f;
  display: block;
  margin: 7px auto;
  transition: all 0.3s ease-in-out;
}
.hamburger-active {
  transition: all 0.3s ease-in-out;
  transition-delay: 0.6s;
  transform: rotate(45deg);
}

.hamburger-active .line:nth-child(2) {
  width: 0px;
}

.hamburger-active .line:nth-child(1),
.hamburger-active .line:nth-child(3) {
  transition-delay: 0.3s;
}

.hamburger-active .line:nth-child(1) {
  transform: translateY(12px);
}

.hamburger-active .line:nth-child(3) {
  transform: translateY(-5px) rotate(90deg);
}

.menubar {
  position: absolute;
  top: 0;
  left: -60%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 40%;
  height: 100vh;
  padding: 20% 0;
  background: rgba(255, 255, 255);
  transition: all 0.5s ease-in;
  z-index: 2;
}
.active {
  left: 0;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.menubar ul {
  padding: 0;
  list-style: none;
}
.menubar ul li {
  margin-bottom: 32px;
}

.menubar ul li a {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: 5px;
}

.menubar ul li a:hover {
  background-color: #f5f5f5;
}
.greetings {
    
    padding-top: 10%;
    font-size: 50px;
    justify-self: center;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
}

.greeting-text {
    color: rgb(83, 83, 207);
    margin: 0;
    padding: 0;
}

.greeting-name {
    font-weight: 100;
    margin: -10px 0 0 0;
    padding: 0;
}

.greeting-title {
    color: #494949;
    margin: -10px 0 0 0;
    padding: 0;
}

.button-79 {
    backface-visibility: hidden;
    background: rgb(83, 83, 207);;
    border: 0;
    border-radius: .375rem;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: Circular,Helvetica,sans-serif;
    font-size: 0.925rem;
    font-weight: 100;
    letter-spacing: -.01em;
    line-height: 1.3;
    padding: 0.600rem 0.925rem;
    position: relative;
    text-align: left;
    text-decoration: none;
    transform: translateZ(0) scale(1);
    transition: transform .2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }
  
  .button-79:disabled {
    color: #787878;
    cursor: auto;
  }
  
  .button-79:not(:disabled):hover {
    transform: scale(1.05);
  }
  
  .button-79:not(:disabled):hover:active {
    transform: scale(1.05) translateY(.125rem);
  }
  
  .button-79:focus {
    outline: 0 solid transparent;
  }
  
  .button-79:focus:before {
    border-width: .125rem;
    content: "";
    left: calc(-1*.375rem);
    pointer-events: none;
    position: absolute;
    top: calc(-1*.375rem);
    transition: border-radius;
    user-select: none;
  }
  
  .button-79:focus:not(:focus-visible) {
    outline: 0 solid transparent;
  }
  
  .button-79:not(:disabled):active {
    transform: translateY(.125rem);
}
.social-media{
    display: flex;
    margin-top: 30px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 400px;
}
.social-media-contatos{
  display: flex;
  margin-top: 100px;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
}


.social-media img{
    height: 40px;
}

/* Centralização e responsividade para a seção Sobre Mim */
.sobre-mim {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1100px;
}
.sobre-mim img {
  display: block;
  border-radius: 20px;
  width: 280px;
  max-width: 90vw;
  height: auto;
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
}
.sobre-mim .texto-sobre-mim {
  text-align: center;
  color: #494949;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.sobre-mim .texto-sobre-mim h2{
  font-weight: 600;
  margin: 10px 0px 40px 0px;
}

.sobre-mim .texto-sobre-mim h4{
  max-width: 700px;
  font-size: 20px;
  margin: 0 auto 30px auto;
  font-weight: 400;
  line-height: 1.5;
}
.sobre-mim .habilidades{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 100%;
  margin: 10px auto;
  padding: 0 20px;
}
.sobre-mim .habilidades img{
  width: 40px;
  height: 40px;
}

.projetos{
  text-align: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  max-width: 1200px;
}

.projetos h3{
  font-size: 30px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  padding-top: 20px;
  margin-top: 20%;
  margin-bottom: 10%;
  
}

.projetos .cards{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: #f2f2f2;
  border-radius: 10px;
  margin-bottom: 30px;
  display: grid;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card img {
  box-shadow: 0 0 0 5px #ffffff80;
  width: 250px;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.card__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f2f2f2;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 700;
}

.card:hover svg {
  scale: 0;
}

.card__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: #777;
  line-height: 1.4;
}


@media screen and (max-width: 790px) {
  .hamburger {
    display: block;
  }
  nav ul {
    display: none;
  }
  .greetings {
    margin-left: 5px;
    margin-right: 5px;
    padding-top: 70%;
    font-size: 30px;
    justify-self: center;
    margin-bottom: 400px;
  }
  /* Responsivo para telas menores */
  @media (max-width: 900px) {
    .sobre-mim {
      flex-direction: column;
      padding: 30px 5vw;
      gap: 24px;
    }
    .sobre-mim img {
      width: 180px;
      margin-bottom: 20px;
    }
    .sobre-mim .texto-sobre-mim {
      max-width: 98vw;
    }
  }

}
