@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root{
    --branco: #fff;
    --preto:#000;
    --bg-color1:#323b45 ;
    --bg-color2:#101623 ;
    --container-bg-color:#1e1f24;
    --container-bg-color:#1e1f24;
    --link-hover-color: #ffae00; 
    --banner-shadow-color1:#000000 ;
    --banner-shadow-color2:#00000000 ;
    --box-bg-color: #2b2c44;
    --btn-colo1: #449225;
    --btn-color2: #c1ffa8;
    --bar-color1:#787f9a;
    --bar-color2: #ffae00;


}

body{
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    background-color:var(--bg-color1);
    background: linear-gradient(
        180deg,
        var(--bg-color1) 0%,
        var(--bg-color2) 100%
        );
    color: var(--branco);
    font-family: "Roboto", sans-serif;
    letter-spacing: 2px;
    overflow-x: hidden;


}

#container{

    background-color: var(--container-bg-color);
    max-width: 1280px;
    margin: 50px;
    flex-grow: 1;
    box-shadow: -10px 10px 40px var(--preto);
    border-radius: 10px;

}

header {
    border-radius: 10px;
    background-color: var(--bg-color1);
    background: linear-gradient(
        90deg,
        var(--bg-color1)0%,
        var(--bg-color2)100%
    );
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

nav > img{
    align-self: flex-start;
    margin: 10px 3vw;
}

nav > ul {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 7vw;
}

nav > ul > li {
    text-decoration: none;
    display: inline;
}

a {
    color: var(--branco);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
}

#banner {
    background-image: url("../images/banner.png");
    width: 1280px;
    height: 600px;
    top: 60px;
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
}

#banner-shadow {
    height: 100%;
    background: linear-gradient(
        0deg,
        var(--banner-shadow-color1)0%,
        var(--banner-shadow-color2)50%,
        var(--banner-shadow-color2)100%
    );
    position: relative;
}

#banner h1{
    position: relative;
    font-size: 65px;
    top: -180px;
    left: 40px;
    text-transform: uppercase;
}

#info{
    display: flex;
    justify-content: space-between;
}

#sobre {
    flex: 1;
}

div.title {
    background: linear-gradient(
        90deg,
        var(--banner-shadow-color1) 0%,
        var(--banner-shadow-color2) 100%
    );
    font-size: 36px;
    padding: 10px 30px;
    margin: 0 0 20px 0;
}

#sobre p {
    margin: 30px;

}

p {
    font-size: 28px;
    font-weight: lighter;
}

#habilidades {
    flex: 1;
    margin-right: 30px;
    margin-top: -180px;
    z-index: 100;

}

#social {
    display: flex;
}

#social img {
    width: 50px;
    padding: 10px 0 0 30px;
    transition: width 100ms;
}

#social img:hover {
    width: 55px;
}

#resumo {
    padding: 20px;
    background-color: var(--box-bg-color);
    border-radius: 10px;
}

h3{
    font-size: 36px;
}

#resumo h3 {
    margin-top: 0;
    padding: 0;
}

#resumo a,
input[type="submit"] {
    text-transform: uppercase;
    background-color: var(--btn-colo1);
    color: var(--branco);
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    transition: all 500ms ease-in-out;
}

#resumo a:hover,
input[type="submit"]:hover {
    background-color: var(--btn-color2);
    color: var(--branco);
}

#habilidades > h3 {
    padding-left: 20px;
}

#habilidades .tecnologia {
    padding: 20px;
    background-color: var(--box-bg-color);
    border-radius: 10px;
    display: flex;
    justify-content: stretch;
    align-items: center;
    gap: 10px;
    margin: 20px;

}

.tecnologia img {
    width: 50px;
    height: 50px;
    border-radius: 15px;
}

.tecnologia > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tecnologia > div > span {
    font-size: 20px;
    font-weight: bold;
}

.bar {

    height: 20px;
    background-color: var(--bar-color1);
    border-radius: 10px;
}
.bar div {
    height: 20px;
    background-color: var(--bar-color2);
    border-radius: 10px;
}

#galeria_projetos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#galeria_projetos a {
    max-width: 45%;

}

#galeria_projetos > a > img {
    max-width: 100%;
    margin: 10px;

}

#contato {
    display: flex;
    flex-direction: column ;

}

#container_formulario {
    margin: 20px 0 40px 0;
    padding: 20px;
    max-width: 800px;
    background-color: var(--box-bg-color);
    border-radius: 10px;
    align-self: center;

}

form {
    display: flex;
    flex-wrap: wrap;

}

input[type="text"],
textarea {
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    border: none;
    flex: 1;
}

textarea {
    height: 200px;
}

input[type="text"]:nth-child(3n) {
    flex-basis: 100%;
}

form div {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100%;
}

h4 {
    font-size: 18px;
    margin: 5px 10px;
}

#projetos,
#info {
    margin-bottom: 40px;
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--container-bg-color);
    
}

::-webkit-scrollbar-track {
    background-color: var(--preto);
    
}



::-webkit-scrollbar-thumb:hover {
    background-color: var(--branco);
    
}

@media (max-width: 1000px) {
    #banner h1 {
        font-size: 45px;
    }
    nav {
        gap:0px;
    }
    nav > ul {
        gap:3vw;
    }
    #galeria_projetos a {
        max-width: 40%;
    
    }
    #container_formulario {
        max-width: 600px;

    }


}

@media (max-width: 767px) {
    #banner h1 {
        font-size: 46px;
        position: relative;
        top: -100;
        left: 25px;
        max-width: 390px;
    }

    #info {
        flex-direction: column;
        width: max-content;
        max-width: 390px;

    }

    #banner {
        max-width: 390px;


    }
    
    nav {
       flex-direction: row;
       justify-content: space-between;
       flex-wrap: wrap;
       padding: 10px;
    }

    nav > ul {
        flex-direction: column;
        display: none;
        padding: 0px;
    }
    
    nav > ul > li {
        font-size: 18px;
        margin: 10px;
        text-decoration: none;
        display: block;
    }

    nav :nth-child(1) { order: 1;}
    nav :nth-child(2) { order: 3;}
    nav :nth-child(3) { order: 2;}

    #habilidades {
        margin: 20px;
    }

    #container {
        max-width: 390px;
        flex-direction: column;
        margin: 0;
        padding: 0;

    }

    h3,
    div.title {
        font-size: 22px;
    }

    p {
        font-size: 18px;
    }

    body {
        letter-spacing: 1px;
        margin: 0;
        padding: 0;


    }

    #container_formulario {
        margin: 20px;
    }

    #galeria_projetos {
        flex-direction: column;
        align-items: center;
        flex-direction: row;

    }

    #galeria_projetos > a > img {
        flex-direction: row;
    }

    #menu-haburger {
        display: block;
    }

}
