/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo e fonte */
body {
    font-family: Arial, sans-serif;
    background-color: #001827;
    color: #333;
    line-height: 1.6;
}

/* Cabeçalho fixo */
header {
    background-color: #001827;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;  /* Torna o cabeçalho fixo */
    top: 0;  /* Fixa o topo na parte superior da tela */
    left: 0;  /* Alinha o cabeçalho à esquerda da tela */
    width: 100%;  /* Faz o cabeçalho ocupar toda a largura da tela */
    z-index: 1000;  /* Garante que o cabeçalho fique acima de outros elementos */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adiciona uma sombra para destacar */
}

/* Ajuste para o conteúdo da página (para não ficar escondido atrás do cabeçalho fixo) */
body {
    padding-top: 80px; /* Adiciona um espaçamento superior para que o conteúdo não fique embaixo do cabeçalho */
}

/* Outras propriedades do cabeçalho */
header .logo img {
    width: 150px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

header nav ul li a:hover {
    color: #fbb832;
}

/* Seções */
#background {
    background-image: url("/src/img/foto.teste.png");
    background-color: #001827;
    background-size: cover;
    background-position: center;
    height: 750px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* Centraliza o texto */
    padding: 20px;
}

#background h1 {
     display: inline-block;
     color: #f74009;
     font-size: 80px;
    border-right: 2px solid black; /* cursor piscando */
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    max-width: 100%;
    animation: typing 4s steps(30) 1s forwards, blink 0.75s step-end infinite; /* Ajustado */
}

#background h2 {
    font-size: 45px;
    color: #ffff;
    margin-top: 10px;
}

#typing-effect {
    display: inline-block;
    border-right: 2px solid black; /* cursor piscando */
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    max-width: 100%;
    animation: typing 4s steps(30) 1s forwards, blink 0.75s step-end infinite; /* Ajustado */
}

/* Animação da digitação */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 35%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent; /* Faz o cursor piscar */
    }
}

/* Seções de conteúdo */
section {
    padding: 60px 20px;
    margin: 20px 0;
    background-color: #001827;
    color: white;
}

section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

section p {
    font-size: 18px;
    margin-bottom: 20px;
}

section img {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Estilo do menu */
.menu-list {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.menu-list li a {
    text-decoration: none;
    color: #ffff;
    font-size: 16px;
}

/* Menu hambúrguer oculto por padrão */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* Estilo do menu quando estiver em dispositivos móveis */
@media screen and (max-width: 768px) {
    .menu-list {
        display: none;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

    .menu-list.show {
        display: flex;
    }
}


/* Estilizando a seção "Sobre" */


#sobre {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

#sobre h2 {
    font-size: 36px;
    color: #001827;
    margin-bottom: 20px;
}

#sobre p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

#sobre ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

#sobre ul li {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

#sobre video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}
/* Seção de Serviços */
#servicos {
    background-color: #f4f4f9; /* Cor suave de fundo */
    padding: 50px 20px;
    text-align: center;
    margin-top: 30px;
}

#servicos h2 {
    font-size: 36px;
    color: #001827;
    font-weight: 700;
    margin-bottom: 20px;
}

#servicos p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Contêiner de serviços */
.servicos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

/* Estilo para cada caixa de serviço */
.servico {
    background-color: #fbb832;
    border-radius: 10px;
    padding: 20px;
    width: 22%; /* Controla a largura das caixas */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra para dar profundidade */
    transition: all 0.3s ease;
}

.servico h3 {
    font-size: 24px;
    color: #ffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.servico p {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Link "Saiba Mais" */
.servico a {
    color: #001827; /* Cor vibrante para o link */
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #001827;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.servico a:hover {
    background-color: #fbb832;
    color: #fff;
}

/* Efeito de Hover nas caixas de serviço */
.servico:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}



/* Estilo para a seção de portfólio */
#portfolio {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#portfolio h2 {
    font-size: 36px;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
}

#portfolio p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Contêiner de itens de portfólio */
.portfolio-items {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap; /* Permite que os itens se ajustem em telas menores */
}

/* Estilo para cada item de portfólio */
.portfolio-item {
    width: 32%; /* Cada item ocupa 32% da largura do contêiner */
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    align-items: center;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1); /* Efeito de zoom quando o mouse passa sobre a imagem */
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

.view-details {
    color: #fbb832;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #fbb832;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.view-details:hover {
    background-color: #fbb832;
    color: #fff;
}


/* Estilo para a seção de blog */
#blog {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#blog h2 {
    font-size: 36px;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
}

#blog p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Contêiner de posts */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

/* Estilo para cada post */
.blog-post {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    width: 23%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: left;
}

.blog-post img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blog-post h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-post p {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-post a {
    color: #fbb832;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #fbb832;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.blog-post a:hover {
    background-color: #fbb832;
    color: #fff;
}

/* Efeito de hover nos posts */
.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}


/* Estilo para o formulário */
#contato {
    background-color: #00243b;
    padding: 50px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* Limita a largura do formulário */
    margin-left: auto;
    margin-right: auto;
}

#contato h2 {
    font-size: 36px;
    color: #ffff;
    font-weight: 700px;
    margin-bottom: 20px;
}

#contato p {
    font-size: 18px;
    color: #ffff;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Estilo para cada campo do formulário */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.contact-form .form-group {
    width: 70%; /* Garante que a largura dos campos seja controlada */
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%; /* Garante que os campos não ocupem 100% da tela */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical; /* Permite o ajuste da altura da área de texto */
}

/* Estilo para o botão de envio */
.contact-form button {
    background-color: #fbb832;
    color: white;
    font-size: 16px;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #e69f2c;
}



/* Media Queries para Responsividade */

/* Dispositivos móveis (smartphones) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    header nav ul li {
        margin: 10px 0;
    }

    section {
        padding: 40px 15px;
    }

    section h2 {
        font-size: 24px;
    }

    section p {
        font-size: 16px;
    }

    .portfolio-items {
        display: block;
        width: 100%;
        flex-direction: column;
        align-items: center;
     
    }

    .portfolio-items img {
        width: 100%;
        margin-bottom: 20px;
    }

    .portfolio-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .portfolio-item:hover img {
        transform: scale(1); /* Remove o efeito de zoom em telas menores */
    }


    form input, form textarea {
        padding: 12px;
    }

    form button {
        width: 100%;
    }

    @keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
    #background h1 {
        font-size: 50px; /* Ajusta o tamanho do texto para dispositivos móveis */
        text-align: center; /* Centraliza o texto */
        margin-top: 70;
    }

    #background h2 {
        font-size: 30px; /* Ajusta o tamanho do subtítulo para dispositivos móveis */
        text-align: center; /* Centraliza o subtítulo */
        margin-top: 3%;
        
    }

     #sobre {
        padding: 20px;
    }

    #sobre h2 {
        font-size: 28px;
    }

    #sobre p {
        font-size: 16px;
    }

    #sobre ul li {
        font-size: 16px;
    }

    #sobre img {
        width: 100%;
        margin-top: 20px;
    }

    .servicos-container {
        flex-direction: column;
        align-items: center;
    }

    .servico {
        width: 80%;
        margin-bottom: 30px;
    }

    .blog-container {
        flex-direction: column;
        align-items: center;
    }

    .blog-post {
        width: 80%;
        margin-bottom: 20px;
        align-items: center;
    }
      

    #contato {
        padding: 40px 20px;
    }

    .contact-form {
        gap: 15px;
    }

    .contact-form .form-group {
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .contact-form button {
        padding: 12px 22px;
    }

     .hamburger {
    display: block;
  }

  .menu.show {
    display: flex;
  }
    .menu-list {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* Tablets (dispositivos médios) */
@media (max-width: 1024px) {
    .portfolio-items {
        display: flex;
        gap: 15px;
    }

    .portfolio-items img {
        width: 45%;
    }

    section h2 {
        font-size: 26px;
    }

    section p {
        font-size: 17px;
    }

    form input, form textarea {
        padding: 12px;
    }

    form button {
        padding: 12px 24px;
    }
}

/* Dispositivos grandes (desktops e maiores) */
@media (min-width: 1200px) {
    header nav ul li {
        font-size: 20px;
    }

    .portfolio-items img {
        width: 30%;
    }

    section h2 {
        font-size: 32px;
    }

    section p {
        font-size: 18px;
    }
}