/* Import the Poppins font from Google Fonts  */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --main-color: #00eeff;
    --text-color: #ffffff;
    --bg-color-01: #1f242d;
    --bg-color-02: #323946;
    --color-00: #0000001a;

    /* Extra  */
    --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;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 5px var(--color-00);
    /* border: solid 1px var(--color-02); */
}


.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-02);
}

.nav a, .nav-responsive a {
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 0.7rem 1.5rem;
    transition: 0.4s;
    border: solid 1px transparent; /* Remover o teste padrão */
}

.nav a:hover, .nav-responsive a:hover {
    color: var(--main-color);
    border-color: var(--main-color);
}

section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
}

span {
    color: var(--main-color);
}

.home, .about {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center; /* Correção do erro */
}

.home-img {
    border-right: solid 0.6rem;
    border-bottom: solid 0.6rem;
    border-image: linear-gradient(135deg, transparent 50%, var(--main-color)) 1;
    padding: 0.5rem;
    transition: border-color 0.3s ease-in-out;
}

.about-img {
    border-left: solid 0.6rem;
    border-bottom: solid 0.6rem;
    border-image: linear-gradient(225deg, transparent 50%, var(--main-color)) 1;
}

.home-img:hover, .about-img:hover {
    border-image: linear-gradient(135deg, var(--main-color) 50%, transparent) 1;
}

.home-img img, .about-img img {
    width: 100%;
    max-width: 400px; /* Limite de largura */
    height: auto; /* Mantém proporções */
}



.home-content, .about-content {
    width: 45%;
}

.home-content h3, .about-content h3 {
    font-weight: 700;

    font-size: 1.6;  
}

.home-content h1, .about-content h1 {
    font-weight: 700;
    line-height: 1.3;
    font-size: 1.6;  /* TESTE */
}

.home-content p, .about-content p {
    margin-top: 1.2rem;
    text-align: justify;
}

.services h2, .portifolio h2, .contact h2 { 
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.services-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.services-box {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* Melhor ajuste para distribuição do conteúdo */
    min-height: 25rem;
    margin-bottom: 1rem;
    padding: 2rem 1rem 2.5rem;
    border-radius: 1.2rem;
    text-align: center;
    border: solid 0.15rem var(--bg-color-01);
    background-color: var(--bg-color-02);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Sombra mais suave */
}

.services-container .services-box:hover {
    background-color: rgba(0, 238, 255, 0.2); /* Cor de fundo mais suave e transparente */
    color: rgba(255, 255, 255, 0.9); /* Cor do texto mais suave */
    transform: translateY(-5px); /* Efeito de levantar mais suave */
}

.services-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--main-color);
    transition: color 0.3s ease; /* Transição suave para a cor do ícone */
}

.services-box i:hover {
    color: rgba(0, 149, 57, 0.8); /* Alteração de cor mais suave no hover */
}

.services-box h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease; /* Transição suave na cor do título */
}

.services-box p {
    font-size: 1rem; /* Ajuste o tamanho da fonte para melhor legibilidade */
    margin-bottom: 1.5rem;
    letter-spacing: 0.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limita o texto a 4 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona reticências caso o texto ultrapasse as 4 linhas */
}


.services-box a {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--main-color);
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.services-box a:hover {
    background-color: rgba(0, 238, 255, 0.2); /* Cor de fundo suave ao passar o mouse */
    color: #fff;
    border-color: rgba(0, 238, 255, 0.5); /* Cor de borda suave */
}

.services-container .services-box {
    border-color: var(--main-color);
    transform: scale(1.01); /* Um leve aumento no scale para destaque */
    transition: transform 0.3s ease, border-color 0.3s ease; /* Transição suave */
}

.services-container .services-box:hover {
    transform: scale(1.03); /* Aumenta o efeito de scale no hover de forma sutil */
    border-color: var(--color-02); /* Alteração suave da cor da borda */
}

.services-box a.read-more {
    font-size: 1rem;
    color: var(--main-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--main-color);
    border-radius: 4px;
    background-color: transparent; /* Cor de fundo transparente */
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 1rem; /* Distância para o texto */
}

.services-box a.read-more:hover {
    background-color: var(--main-color); /* Altera a cor de fundo ao passar o mouse */
    color: #fff; /* Altera a cor do texto */
    border-color: var(--main-color); /* Mantém a cor da borda */
}

/* Ajuste para garantir que o botão "Read More" esteja sempre visível */
.services-box p + a.read-more {
    display: inline-block;
    margin-top: 1rem; /* Espaçamento entre o texto e o botão */
}

.portfolio {
    background-color: var(--bg-color-02);
    padding: 4rem 0;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
}

.portfolio-box {
    position: relative;
    border-radius: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.portfolio-box img {
    width: 100%;
    transition: transform 0.3s ease;
    border-radius: 0.8rem;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700; /* Negrito */
    letter-spacing: 0.5px;
    color: #000; /* Cor do texto */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6); /* Brilho */
}


.portfolio-layer p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #000; /* Cor do texto */
    font-weight: bold; /* Negrito */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6); /* Brilho */
}



.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--main-color);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.portfolio-layer a i {
    font-size: 1.4rem;
    color: #fff;
}

.portfolio-layer a:hover {
    background: rgba(0, 238, 255, 0.8);
    transform: scale(1.1);
}

.portfolio h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;  /* Centraliza o texto */
}

.portfolio h2 span {
    color: var(--main-color);  /* Altere a cor do "span" se necessário */
    font-weight: 600;  /* Ajuste o peso da fonte do "span" */
}



form{
    max-width: 45rem;
    margin: 0.6rem auto;
    text-align: center;
    margin-bottom: 2rem;

    

}

form .input-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: flex;
}

#form-message {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
}


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;
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: scale(1.1); /* Suave aumento no hover */
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem; /* Ajuste para torná-lo mais proeminente */
    height: 3rem;
    background: transparent;
    border: solid 0.15rem var(--main-color);
    border-radius: 50%;
    font-size: 1.8rem; /* Leve ajuste na fonte */
    color: var(--main-color);
    margin: 1rem 0.5rem; /* Menor margem para um layout mais compacto */
    transition: all 0.5s ease; /* Correção na transição */
}

.social-media a:hover {
    background-color: var(--main-color);
    color: var(--bg-color-02);
    box-shadow: 0 4px 10px rgba(0, 238, 255, 0.3); /* Sombra suave ao passar o mouse */
    transform: scale(1.1); /* Leve aumento no tamanho */
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background-color: var(--main-color);
    border-radius: 2rem;
    color: var(--bg-color-02);
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-align: center; /* Alinhamento do texto no centro */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1.2rem;
}

.btn:hover {
    box-shadow: 0 4px 10px rgba(0, 238, 255, 0.3); /* Sombra mais visível */
    background-color: transparent; /* Transparência para destacar a borda */
    color: var(--main-color);
    transform: scale(1.05); /* Leve aumento no tamanho */
    cursor: pointer;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0.5rem rgba(0, 238, 255, 0.5); /* Foco mais destacado */
    transform: scale(1.02); /* Efeito sutil no foco */
}


/* button  */


/* menu hamburguer  */
.menu-hamburguer {
    display: block; /* Alterar conforme a necessidade (block/none) */
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    width: 2rem;
    height: 0.3rem;
    background-color: var(--text-color);
    margin: 0.4rem 0;
    border-radius: 0.15rem; /* Suaviza os cantos das barras */
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.change .bar1 {
    transform: translate(0, 0.65rem) rotate(-45deg); /* Gira e desloca a barra superior */
}

.change .bar2 {
    opacity: 0; /* Oculta a barra do meio */
}

.change .bar3 {
    transform: translate(0, -0.65rem) rotate(45deg); /* Gira e desloca a barra inferior */
}


/* /menu hamburguer */


/* media queries */

/* Extra Small (xs): Smartphone (portrait)  */

/* Default Styles (Mobile-First) */
.menu-hamburguer {
    display: block;
}
.nav {
    display: none;
}
.nav-responsive a {
    display: block;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
section {
    padding: 6rem 2.5rem;
}
.home, .about {
    flex-direction: column;
    gap: 1.2rem;
}
.home-img, .about-img {
    width: 88%;
    max-width: 80%;
}
.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;
}
.services-container {
    flex-direction: column;
    align-items: center;
}
.services-box {
    width: 100%;
}

/* Extra Small (xs): Smartphones */
@media (min-width: 0px) {
    .menu-hamburguer {
        display: block;
    }
    .nav {
        display: none;
    }
    .nav-responsive a {
        display: block;
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }
    section {
        padding: 6rem 2.5rem;
    }
    .home, .about {
        flex-direction: column;
        gap: 1.2rem;
    }
    .home-img, .about-img {
        width: 88%;
        max-width: 80%;
    }
    .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;
    }
    .services-container {
        flex-direction: column;
        align-items: center;
    }
    .services-box {
        width: 100%;
    }
}

/* Small (sm): Tablets */
@media (min-width: 576px) {
    .home-img, .about-img {
        width: 65%;
        max-width: 65%;
    }
    .services-box {
        width: 70%;
    }
}

/* Medium (md): Tablets Landscape / Small Laptops */
@media (min-width: 768px) {
    .menu-hamburguer {
        display: none;
    }
    .nav {
        display: block;
    }
    .nav-responsive, .nav-responsive a {
        display: none;
    }
    .home, .about {
        flex-direction: row;
        justify-content: space-evenly;
    }
    .home-img, .about-img {
        max-width: 35%;
    }
    .home-content, .about-content {
        width: 50%;
    }
    .services-box {
        width: 60%;
        margin-bottom: 2rem;
    }
    .portifolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
    form .input-box input {
        width: 49%;
    }
}

/* Large (lg): Laptops */
@media (min-width: 992px) {
    .services-container {
        flex-direction: row;
        gap: 1.2rem;
    }
}

/* Extra Large (xl): Desktops */
@media (min-width: 1200px) {
    .home-img, .about-img {
        max-width: 25%;
    }
    .home-content h1 {
        font-size: 2.7rem;
    }
    .home-content h3 {
        font-size: 2rem;
    }
    .portifolio-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
