*{
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;

}

body { /* Corpo do site*/

    font-family: 'Roboto', sans-serif;
    background-color: #000;
    
}

html {
    scroll-behavior: smooth; /* Estou definindo que ao clicar nas opções terá uma transição mais leve*/
}

/*Inicio Header */

.nav { /*Todo o espaço do cabeçalho*/
    background: rgba(0, 0, 0, 0.8);
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between; /* joga um bloco pra cada lado */
    align-items: center; /* centraliza na vertical */
    position: sticky;
    top: 0;
    z-index: 9;
    padding: 0 28px; /* respiro nas laterais */
}

.nav-list { /*posição das opções Home, Sobre e Projetos*/
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #FFFFFF;
    padding: 10px 0;
}

.contatos {
    display: flex;
    gap: 10px;
}

.action { /*botões dos contatos*/
    cursor: pointer;
    text-decoration: none;

    border: 1px solid #6fbf73;
    color: #6fbf73;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600; /*negrito*/
    transition: 0.9s; /*velocidade da transição do botão*/
}


.nav-list a:hover { /*Aqui configurei o que fazer quando o cursos estiver posicionado nas opções*/
color: #FFFFFF;
}

/* Fim Header*/

/* Inicio Main */

.main { /*Aqui configurei a 1° área, definindo, cor, tamanho, imagem etc*/
    
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #000;
    background-size: cover;
    height: calc(100vh - 0px);
    background-image: url(imagens/portfolio/fundo-dia.png);
    padding-left: 10%;
    min-height: 100vh;

   

}

.main h1 { /* Aqui configurei o título da 1°área*/
    
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.light { /* Formatação da 1° linha*/
    font-weight: 400;
    color: #e0e0e0;
}

.strong { /* Formatação da 2° linha*/
    font-weight: 700;
    color: #ffffff;
}
.main p { /*Formatação do subtexto da 1° área*/
    color: #cfcfcf;
    font-size: 18px;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 40px;
    
}

.call-to-action { /* Aqui eu configurei o botão da 1° área*/
    background: linear-gradient(135deg, #4b5638, #263124);
    color: #f4ead2;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600px;
    cursor: pointer;
    transition: 0.9s; /*velocidade da transição do botão*/
    
} 

.call-to-action:hover{ /* Aumentar o tamanho do Botão ao posicionar o cursos*/
    transform: scale(1.1);
    
}

.main a{
    text-decoration: none;
    color: #181818;

}

/* Fim Main*/

/* Inicio Sobre*/

.about {  /* Configuração da janela*/

    min-height: 100vh; /* Mínimo de ocupação da tela*/
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: linear-gradient(
    to right,
    #000000 0%,
    #050505 50%,
    #0a0a0a 100%
    );
    color: #cfcfcf;
    width: 100%;
    padding: 80px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about div{  /*Configuração do espaço do conteúdo*/
    max-width: 50%;
    padding-right: 40px;
}




.about img { /*Configuração da imagem*/
    max-width: 400px;
    border-radius: 8px;
}


.about div h2{
    color:#f5f5f5;
    font-size: 32px;
    margin: 14px;
}

.about div p{  /*Configuração da descrição*/
    color: #d1d5db;
}

.highlight { /*Detalhe na fonte em verde*/
    color: #4b5638; /* verde que já utilizo */
    font-weight: 500; /* mais destaque no texto*/
}


.about div,

.about img {
    position: relative;
    z-index: 1; /*Controle de camada*/
}



/* Inicio Projeto */

.projects { /*Configuração da janela*/
    min-height: 100vh;
     background: linear-gradient(
        to bottom,
        #050505 0%,
        #0c0c0c 45%,
        #141414 100%
    );
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
  
}


  
.projects h2 { /*Configuração do Texto*/
        font-size: 32px;
        margin-bottom: 8px;
        margin-top: 30px;
        color: #ffffff;
    }

.projects p { /*Configuração do parágrafo*/
    margin-bottom: 40px;
    font-style: italic;
    color: #cfcfcf;
}

.project-list { /*Container dos projetos*/
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    
}

.projects img { /*Imagens */
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    width: auto;
    height: 220px;
    object-fit: cover;
    margin-left: 0.5% ;
    margin-right: 0.5%;
    opacity: 0.9;
    
}

.projects img:hover{ /*Transição das imagens*/
    opacity: 2;
    transform: scale(1.08); /* leve zoom interno */
    transition: 1s; /* tempo de transição ao posicionar o cursos*/
}

/* card */
.project-card {
    position: relative;
    width: 30%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

/* imagem */
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: 0.4s ease;
}

/* sobreposição (camada escura + texto) */
.overlay {
    position: absolute;
    inset: 0; /* top, right, bottom e left = 0 */

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.3)
    );

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: 0.4s ease;
    padding: 20px;
}

/* HOVER (passar o mouse) */
.project-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.5);
}

.project-card:hover .overlay {
    opacity: 1;
}

/* texto dos cards*/
.overlay h3 { /* Título */

    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
}

.text-desktop {
    color: #cfcfcf;
    font-size: 14px;
}

.text-mobile {
    display: none;
}


.action:hover {
    transform: scale(1.1);
}

/* Fim Projetos*/

/*Contatos*/

/*Inicio rodapé*/

footer {
    width: 100%;
    background-color: #181818;
    padding: 60px 0;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a {
    text-decoration: none;
    color: #FFFFFF;
}

footer p{
    margin-left: 12px;
}

/*Fim rodapé*/

/* Responsividade */

@media (max-width: 768px) {
    .nav {
        height: auto;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: 16px 20px;
    }

    .nav-list {
        gap: 14px;
        margin-right: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list a {
        padding: 6px 0;
        font-size: 14px;
    }

    .contatos {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .action {
        font-size: 13px;
        padding: 7px 10px;
    }
}

@media (max-width: 900px) {

  header {
    padding: 24px 6%;
  }

  .main {
    padding: 0 6%;
    background-position: center;
  }

  .main h1 {
    font-size: 42px;
  }

  .main p {
    max-width: 100%;
    font-size: 16px;
  }

  .about {
    flex-direction: column;
    text-align: left;
    padding: 80px 6%;
    gap: 40px;
  }


  .about div {
    max-width: 100%;
    padding-right: 0;
  }

  .about img {
    max-width: 100%;
    width: 100%;
  }

  .projetos {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 6%;
  }

    .overlay {
        opacity: 1;
        justify-content: center;
        text-align: center;
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.9),
            rgba(0,0,0,0.15)
        );
    }


    .overlay h3 {
        margin-bottom: 6px;
        text-align: center;
        font-size: 12px;
        
    }

    .overlay p {
        font-size: 10px;
    }


     .text-desktop {
        display: none;
    }

    .text-mobile {
        display: block;
        font-size: 12px;
    }

    .project-card:hover img {
        transform: none;
        filter: none;
    }

    .contatos {
       display: flex;
        justify-content: center;
        gap: 16px;
        width: 100%;
    }


}

