@charset "UTF-8";

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Poppins", serif;
    font-style: normal;
}
html {
    scroll-behavior: smooth;
}

body {
    height: 100vh;
    width: 100vw;
}
section#principal {
    height: 920px;
    background-image: url(Imagens/jakob-owens-uWbRcJSJLV8-unsplash\ 2.png);
    background-position: center;
    display: flex;
    justify-content: space-between;
    background-size: cover;
    
}
article#social, article#perfil, article#scroll{
    align-self: center;
}
article#social {
    display: flex;
    flex-direction: column;
    padding: 100px;
    font-size: 24px;
} 
article#scroll {
    writing-mode: vertical-rl;
    /* text-orientation: upright;  */
    padding: 100px; 
    font-size: 24px; /* Tamanho da fonte */    
}
article#scroll > a {
    text-decoration: none;
    color: black;
}

article#social > a {
    padding: 5px;
    color: black;
}
article#perfil {
    text-align: center;
} 
article#perfil > p {
    padding: 5px;
    font-size: 15px;
}
article#perfil > img{
    height: 150px;
    width: 150px;
    border-radius: 100px;
}
p#dev::before, p#dev::after  {
    content: '---'; /* Adiciona o conteúdo de traço */
    padding: 0 10px; /* Espaçamento entre o traço e o texto */
    margin: 0px;
}
section#sec {
    display: flex;
    justify-content: space-evenly;
    background-size: cover;
    padding: 100px;
    
}
article#img > img {
height: 650px;
width: 500px;
border-radius: 20px;
box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}
article#conteudo {
    width: 500px;
    align-self: center;
    font-size: 15px;
}
article#conteudo > p {
    padding: 10px;
    text-align: justify;
}
article#conteudo > p#nome {
    padding-top: 20px;
}
article#conteudo > a > input{
    height: 50px;
    width: 230px;
    background-color: black;
    color: white;
    font-size: 20px;
    border-radius: 20px;
    margin-top: 50px;
    margin-left: 150px;
    cursor: pointer;
    transition: 0.5s;
}
article#conteudo > a > input:hover {
    background-color: white;
    color: black;
    transition: 0.5s;
} 
section#skill {
    background-color: rgb(201, 201, 201);
    height: 670px;
    padding: 20px;  
    display: flex;
    justify-content: space-evenly; 
}
section#skill > article > h2 {
    font-size: 18px;
    text-align: center;
}
section#skill > article > p {
    font-size: 15px;
}
section#skill > article {
    height: 400px;
    width: 500px;
    text-align: justify;    
}

section#skill > article > h2 {
    padding: 25px;
    padding-top: 100px;
}
section#skill > article > p {
    padding: 25px;
}
section#skill > article > div {
    padding: 25px;
}
div.skill-container {
    background: #E0E0E0; /* Cor de fundo da barra */
    border-radius: 5px; /* Bordas arredondadas */
    margin: 10px 0; /* Margem acima e abaixo da barra */
    overflow: hidden; /* Para ocultar parte da barra que excede */
}

div.skill-bar {
    height: 20px; /* Altura da barra de habilidade */
    border-radius: 5px; /* Bordas arredondadas */
    background: #000000; /* Cor da barra de habilidade (verde) */
    text-align: center; /* Centraliza o texto na barra */
    color: white; /* Cor do texto */
    line-height: 20px; /* Alinha o texto verticalmente */
}

div.skill-label {
    margin: 15px 0 5px 0; /* Margem em cima e embaixo do rótulo */
    font-weight: bold; /* Destaque para o rótulo */
}
section.projetos > article > h2 {
    margin-top: 20px;
}
.skill-label {
  display: flex;
  align-items: center;
  gap: 8px; /* espaço entre ícone e texto */
  font-size: 16px;
  }

.skill-label .icon {
  width: 20px;
  height: 20px;
}
#black{
    img {
  filter: brightness(0);
}
}
#projetos {
    text-align: center;
    margin: 50px 0px 10px 0px;
    font-size: 25px;
    color: black;
    text-decoration: none;
}    
.projetos {
    padding: 50px 100px 50px 100px;
    text-align: center;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    
}
.projeto{
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}
.projeto:hover {
    transform: scale(1.05);
}
.projeto img {
    width: 100%;
    height: 250px;
    object-fit: initial;
    display: block;
    filter: brightness(40%); /* escurece por padrão */
    transition: filter 0.3s;
}
.projeto h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
    transition: opacity 0.3s;
    pointer-events: none; /* evita clicar no texto */
}
.projeto a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.projeto.hidden {
    display: none;
}
.projeto:hover {
    transform: scale(1.05);
}

.projeto:hover img {
    filter: brightness(100%); /* clareia */
}

.projeto:hover h3 {
    opacity: 0; /* título some */
}
.projeto:hover .icons {
    opacity: 0; /* título e ícones somem */
}
/* rodapé com ícones */
.projeto .icons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.3s;
}
.projeto .icons img {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1);
}
button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: #444444;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}
button:hover {
    background: #000000;
}
.btn-container {
      text-align: center;
      margin-bottom: 50px;
    }
@media (max-width: 1024px) {
    .projetos {
        grid-template-columns: repeat(2, 1fr); /* em telas médias */
    }
    .projeto:hover {
    transform: scale(1.05);
    }
    .projeto img {
        width: 100%;
        height: auto;
        display: block;
    }
    .projeto h3 {
        margin: 10px 0;
        font-size: 18px;
        color: black;
        text-decoration: none;
    }
    .projeto a {
        text-decoration: none;
        color: inherit;
        display: block;
    }
}


@media (max-width: 720px) {
  /* Use o mesmo nome da classe que você usa no HTML (.projetos) */
  .projetos {
    grid-template-columns: 1fr; /* 1 coluna no mobile */
    gap: 16px;
    padding: 20px;             /* reduz padding grande que quebrou layout */
    justify-content: center;
    margin: 0 auto;
  }

  .projeto {
    width: 100%;
    max-width: 100%;
    display: block;           /* garante que o card seja exibido */
    margin: 0 auto;
  }

  .projeto img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .projeto h3 {
    font-size: 16px;
    padding: 10px;
  }

  .projeto.hidden {
    display: none; /* mantém o comportamento de "escondido" quando usado pelo JS */
  }

  .btn-container {
    text-align: center;
    margin: 18px 0 40px;
  }

  button {
    width: 100%;
    max-width: 360px;
    padding: 12px;
    font-size: 16px;
    margin: 0 auto;
  }

  /* se você tiver padding pesando em outras sections, reduza no mobile também */
  section#sec,
  section#skill,
  .projetos {
    padding-left: 20px;
    padding-right: 20px;
  }
}

section#final {
    background-color: rgb(201, 201, 201);
    text-align: center;
    padding: 50px;     
}
section#final > article > h1 {
    padding: 5px;
}
section#final > article > p {
    padding: 10px 5px 5px 5px ;
}
section#final > article > p > a {
    text-decoration: none;
    color: black;
}
footer {
    text-align: center;
    background-color: black;
    color: white;
}