body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f6f8;
    color:#222;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: white;
    padding: 50px;
    text-align: center;
}

nav {
    background-color: #555;
    padding: 5px;
    
    display:flex;
    justify-content: center;
    gap: 25px;

}

nav a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #2e2e2e;
    text-decoration: underline;
    font-weight: bold;
    
}

main {
    padding: 20px;
    max-width: 900px;
    margin: auto;
    background-color: white;
    box-shadow:  0 0 10px rgba(0,0,0,0.1);
    flex: 1;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

section {
    background-color: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    
}

h2 {
    margin-top: 0;
}


p {
    line-height: 1.7;
}

header h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: 1px;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 250px;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
   
}

.card h3 {
   margin: 15px 0 8px;
    
}

.card:hover {
      transform: translateY(-5px); 
      box-shadow: 0 10px 20px rgba(0,0,0,0.12);

      }



.card img {
    width: 100%;
    height: 150px;
    border-radius: 6px;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
   
}

.card img:hover {
    transform: scale(1.05);


}

.card a {
    text-decoration: none;   
    color: inherit;
}

.card a:hover {
text-decoration: underline;
color: #333;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img{
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

#fechar{
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


.img-container {
    position:relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.img-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

.overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
color:white;
display:flex;
justify-content:center;
align-items:center;
font-size:18px;
opacity:0;
transition:0.3s;
pointer-events: none;
}

.img-container:hover .overlay{
opacity:1;
}

.img-container:hover img{
transform:scale(1.1);
}

.contato p {
    margin: 0;
}

.hero{
    background-color: linear-gradiente(135deg, #2f2f2f, #3b3b3b );
    color: white;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
}

.hero-conteudo {
    display: flex;
    justify-content: center;
    align-items: center; 
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
     
}



.hero-texto {
    text-align: center;
    max-width: 650px;
    flex: 1;
   

}

.hero-foto {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 5px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow:
        0 10px 25px rgba(0,0,0,0.25),
        0 0 25px rgba(255,255,255,0.15);
    flex-shrink: 0;

}

.hero-texto h1 {
    font-size: 56px;
    margin-bottom: 5px;
    line-height: 1.1;
    
}

.hero-texto p{
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 700px;
}


.hero-botoes{
    justify-content: center;
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}



.hero-foto::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, transparent 65%, rgba(0,0,0,0.15));
}

.hero-foto img{
    width: 230%;
    height:230%;
    object-fit: cover;
    transform: translateY(23px);
}

.btn {

    
    background-color: white;
    color: #333;
    padding: 14px 22px; 
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

.bnt-secundario {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.bnt-secundario: hover{
    background-color: white; 
    color: #333;
}

.btn:hover {
    background-color: #555;
    color: #222;
    transform: translateY(-2px);
}  

.habilidades-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    cursor: pointer;

}

.skill {
    background-color: #333;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 15px;
    transition: 0.3s;
}

.skill:hover{
    background-color:#555;
    transform:translateY(-2px);
}


.tecnologias {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}


.btn-projeto {
    margin-top: auto;
    display: inline-block;
    text-decoration: none;
    background-color: #333;
    color:white;
    padding: 12px; 
    border-radius: 6px;
    transition: 0.3s;
    text-align: center;
    
}

.btn-projeto:hover {
    background-color: #555;
    transform: translate(-2px);
}


section a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

section a:hover {
     text-decoration: underline;
}


.card .btn-projeto{
    background-color:#333;
    color:white;
}

.card .btn-projeto:hover{
    background-color:#555;
    color:white;
}










@media (max-width: 768px){

  .hero{
        padding: 24px 14px;
    }

    .hero-conteudo{
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .hero-texto {
        text-align: center;
        order: 2;
        position: relative;
        z-index: 10;
    }

    .hero-texto h1{
       
        font-size: 30px;   
    }


    .hero-texto p{
    
        font-size: 15px;
        margin-bottom: 15px;
    }


    .hero-botoes{

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        width: 100%;
        position: relative;
        z-index: 11;
    }

   .hero-foto{
    order: 1;
    position: relative;
    right: auto;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}


    .hero-foto img{
        width: 220%;
        height: 220%;
        object-fit: cover;
        transform: scale(1.8px);
        object-position: center 20%;
    }

    .cards {
        display: flex;
        flex-direction: column;
    }


    .btn {
         
        min-width: 140px;
        text-align: center;
        padding: 9px 16px;
        font-size: 15px;
        min-width: 140px;
        text-align: center;
    }
}

