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

:root {
    --main-color:#00eeff;
    --text-color: #ffffff;
    --bg--color-01: #1f242d;
    --bg--color-02: #323946;
    --color-00: #0000001a;

    --color-01: #999999;
    --color-02: #009539;
    --color-03: #7950f2;
    --color-04: #c00000;
    --color-05: #232323;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}



html {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

body {
    background-color: var(--bg--color-01);
    color: var(--text-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.1rem;
    background-color: var(--bg--color-01);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.logo {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.nav-responsive {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: var(--bg--color-01);
}

.nav a, .nav-responsive a {
    font-size:1.2rem;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: 0.4s;
}

.nav a:hover, .nav-responsive a:hover {
    background-color: var(--main-color);
}


span {
    background-color: var(--main-color);
}

.about {
    margin: 1rem;
}


.home, .about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}



.home-img img, .about-img img {
    width: 100%;
}


.home-content h1, .about-content h1 {
    font-weight: 700;
    line-height: 1.3;
}

.home-content h3, .about-content h3{
    font-weight: 700;
    font-size: 1.6rem;
    margin-top: 80px;
}


.home-content p, .about-content p {
    margin-top: 1.2rem;
    text-align: justify;
}

.conhecimentos h2,
.portfolio h2,
.contato h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    
}

.conhecimentos {
    padding: 0 2rem;
}

.conhecimentos-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 0.4rem;
}

.conhecimentos-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 25rem;
    margin-bottom: 1rem;
}

.conhecimentos-container, .conhecimentos-box {
    padding: 5rem 1rem 2.5rem;
    border-radius: 1.2rem;
    text-align: center;
    border: solid 0.15rem var(--main-color);
    background-color: var(--bg--color-02);
    transition: 0.5s ease;
}

.servconhecimentos-container .conhecimentos-box:hover {
    border-color: var(--main-color);
    transform: scale(1.01);
}

.conhecimentos-box i {
    font-size: 4.3rem;
    color: var(--main-color);
}

.conhecimentos-box h3 {
    font-size: 1.5rem;
}

.conhecimentos-box p {
    margin-top: 0.5rem;
    letter-spacing: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;

} 

.portfolio{
    padding: 0 1rem;
    margin: 2rem 0;
}

.portfolio-container {
    display: grid;
    gap: 1.2rem;
}

.portfolio-box {
    position: relative;
    border-radius: 0.6rem;
    box-shadow:  0 0 0.6rem var(--bg--color-01);
    overflow: hidden;
    display: flex;
}

.portfolio-box img {
    width: 100%;
    transition: 0.5s ease;
}

.portfolio-box img:hover {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, var(--color-00));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(30rem);
    transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}

.potfolio-layer h4 {
    font-size: 1.8rem;
}


.portfolio-layer a i {
    font-size: 1.2rem;
    color: #ffffff;
}

form {
    max-width: 45rem;
    margin: 0.6rem auto;
    text-align: center;
    margin-bottom: 2rem;
}

form .iput-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}


form .input-box input,
form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg--color-02);
    border-radius: 0.5rem;
    margin: 0.4rem 0;
}

form textarea {
    resize: none;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    background-color: var(--bg--color-01);
}

.social-media img {
    width: 3.5rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: solid 0.15rem var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 1.8rem 1rem 1.8rem 0;
    transition: 0.5s ease;
}

.social-media a:hover {
    background-color: var(--main-color);
    color: var(--bg--color-02);
    box-shadow: 0 0 0.3rem var(--main-color);
}

.menu-hamburguer {
    display: none;
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    width: 2rem;
    height: 0.3rem;
    background-color: var(--text-color);
    margin: 0.4rem 0;
    transition: 0.3s ease;
}

.change .bar1 {
    transform: translate(0, 0.65rem) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -0.65rem) rotate(45deg);
}


@media (min-width: 0px) { 
    .menu-hamburguer {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav-responsive a {
        display: block;
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    .home, .about {
        flex-direction: column;
        gap: 1.2rem;
    }

    .home-img {
        width: 50%;
        max-width: 50%;
    }

    .home-content .about-content{
        width: 100%;
    }

    .home-content div {
        text-align: center;
    }

    .home-content h1 .about-content h1 {
        font-size: 2.2rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .conhecimentos-container {
        flex-direction: column;
        align-items: center;
    }

    .conhecimentos-box{
        width: 100%;
    }

    
}


@media (min-width: 576px) {
    .home-img {
        width: 45%;
        max-width: 45%;
    }

    .conhecimentos-box {
        width: 70%;
    }

    
}


@media (min-width: 768px) {
    .menu-hamburguer{
        display: none;
    }

    .nav {
        display: block
    }
        
    .nav-responsive, .nav-responsive a {
        display: none;
    }

    .home {
        flex-direction: row;
        justify-content: space-evenly;
    }

    .about {
        flex-direction: column;
        justify-content: center;
    }

    .home-img, .about-img {
        max-width: 35%;
    }

    .home-content, .about-content{
        width: 50%;
    }

    .conhecimentos-box {
        width: 60%;
        margin-bottom: 2rem;
    }

    .portfolio-container {
        grid-template-columns: auto auto;
    }

    form .input-box input {
        width: 49%;
    }

}


@media (min-width: 992px) {
    .home-img, .about-img {
        max-width: 35%;
    }

    .conhecimentos-container {
        flex-direction: row;
        gap: 1.2rem;
    }
}
    


@media (min-width: 1200px) {
    .home-img, .about-img {
        max-width: 25%;
    }

    .home-content h1 {
        font-size: 2.7rem;
    }

    .home-content h3 {
        font-size: 2rem;
    }

    .portfolio-container {
        grid-template-columns: auto auto auto auto;
    }
}