/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Layout geral */
body {
    line-height: 1.6;
    /*background-color: #f4f4f4;*/
    background: linear-gradient(rgb(231, 226, 226), rgba(231, 226, 226, 0.50)), 
    url("../img/bg_2.jpg") no-repeat fixed;
    background-size: cover;
    background-position-x: center;
    color: #333;
    overflow: hidden;    
    
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px 0;
}
/* Cabeçalho */
header {
    background: #33333357;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    height: 90px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header ul {
    list-style: none;
    display: flex;
}

header ul li {
    margin-left: 20px;
}

header ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
header .logo {
    width: 10vw; /* largura relativa à largura da viewport */
    max-width: 58px; /* limita a largura máxima */
    height: 66px; /* mantém a proporção da imagem */
    margin-top: -2rem; /* espaço superior em unidade relativa */
    margin-left: 1rem; /* espaço à esquerda */
    display: flex;
    position: absolute;
  }
  header h1 {
    position: relative;
    margin-top: -2rem;
    margin-left: 16rem;
    font-size: 2rem; /* tamanho base */
  }
  
header #menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -2rem;
    margin-left: 46rem;
}

header nav{
    position: absolute;
    right: 16%;
    margin-top: 8px;
}

/* Hero Section */
#hero {
    
    color: rgb(75, 75, 75);
    text-align: center;
    padding: 100px 0;
}

#hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

#hero .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}
#hero p {
    font-size: 17px;
    margin-bottom: 20px;
   /* color: #524f4f;*/
   color: #4d4646;    
}
p{
  font-size: 20px;
  margin-bottom: 20px;
  color:  #4d4646;      
}
/* Seções */
section {
    padding: 50px 0;
    text-align: center;
}

section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.servico {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
}

form label {
    text-align: left;
    margin-top: 10px;
    font-weight: bold;
}

form input, form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

form button {
    margin-top: 15px;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #0056b3;
}

/* Rodapé */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}
.central{
    position: absolute;
    margin-top: 7%;
    background:  rgba(102, 51, 153, 0.185);
    overflow:   scroll;
    height: calc(100vh - 15%);
    width: 100%;    
}
.digitando {
    font-family: monospace;
    overflow:hidden;
    white-space:nowrap;
    border-right:2px solid #000;
    width: 0;
    animation:digita 4s steps(30, end) forwards, pisca 0.7s step-end infinite;
    font-size: 21px;
    font-size-adjust: ic-height;
    font-style: oblique;
    font-weight: bold;

    /* A animação "digita" faz o texto aparecer, enquanto "pisca" faz o cursor piscar */
  }
  
  /* Efeito de digitação */
  @keyframes digita {
    from { width: 0; }
    to { width: 100%; }
  }
  
  /* Cursor piscando */
  @keyframes pisca {
    50% { border-color: transparent; }
  }
  
/* Estilo para a barra de rolagem */
::-webkit-scrollbar {
    width: 8px; /* Largura da barra de rolagem */
  }
  
  /* Estilo para o trilho (fundo) da barra de rolagem */
  ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.000); /* Cor do fundo do trilho */
  }
  
  /* Estilo para o polegar (parte que você arrasta) */
  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.6); /* Cor do polegar com 50% de opacidade */
    border-radius: 12px; /* Arredondamento das bordas do polegar */
  }
  
  /* Estilo quando o polegar está sendo interagido (hover) */
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.7); /* Torna o polegar mais visível ao passar o mouse */
  }
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.quemsomos{
    background: white;/* rgba(231, 228, 228, 0.459); /* Cor de fundo transparente */
 /*   color: #fff; /* Cor do texto */
    padding: 20px; /* Espaçamento interno */
    border-radius: 8px; /* Bordas arredondadas */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Sombra */
    font-size: 17px;
    margin-bottom: 20px;
    text-shadow:
        -1px -1px 0 #fff,  
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff;   
}
/* portifolio */
.portfolio-section {
  width: 80%;
  margin: 0 auto;
  padding: 2rem;
  background-color: #f4f4f4;
  text-align: center;
}

.portfolio-track-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 3 colunas fixas */
  gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-item {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  display: block;
}

.caption {
  background: rgba(70, 90, 120, 0.7); /* fumê azul acinzentado */
  color: white;
  padding: 0.75rem;
  font-size: 1rem;
  text-align: center;
}


/* fim Telas grandes (desktops) */

  /* Telas médias (tablets, etc.) */
  @media (max-width: 900px) {
    
    header h1 {
      font-size: 6px;
      margin-left: 8rem;
    }
    header .logo {
        width: 10vw; /* largura relativa à largura da viewport */
        max-width: 38px; /* limita a largura máxima */
        height: 46px; /* mantém a proporção da imagem */
        margin-top: -2rem; /* espaço superior em unidade relativa */
        margin-left: 1rem; /* espaço à esquerda */
        display: flex;
        position: absolute;
      }
      .central{
        position: absolute;
        margin-top: 20%;
        background:  rgba(102, 51, 153, 0.185);
        overflow:   scroll;
        height: calc(100vh - 15%);
        width: 100%;    
    }
    form input, form textarea {
        padding:
      10px;
        margin-top: 5px;
        border:
      1px solid #cccccc05;
        border-radius:
      5px;
        width: 100%;
        height: 13px;
      }
      @media (max-width: 900px) {
        .central {
          position: absolute;
          margin-top: 22%;
          background:
      rgba(102, 51, 153, 0.185);
          overflow:
      scroll;
          height: calc(100vh - 15%);
          width: 100%;
        }
      }
    }
    @media (max-width: 900px) and (orientation: landscape) {
        header {
            height: 10px;
          }
        
        header {
          background:
        #33333357;
          color: #2e2727;
          padding: -8px 0;
          position: fixed;
          width: 100%;
          height: 5px;
        } 
        header .logo {
            width: 10vw;
            max-width: 38px;
            height: 46px;
            margin-left: 1rem;
            position: absolute;
            top: -24%;
            transform: translateY(-50%);
        }
        header h1 {
            font-size: 24px;
            margin-left: 8rem;
            margin-top: -24%;
        }
        .central {
            margin-top: 90px;
            position: relative;
            background: rgba(102, 51, 153, 0.185);
            overflow-y: scroll;
            height: calc(100vh - 90px);
            width: 100%;
        }
    
        form input,
        form textarea {
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
            width: 100%;
            height: auto; /* Altura automática para melhor adaptação */
            font-size: 0.9rem;
        }
    }
    
  
  /* Telas pequenas (celulares) */
  @media (max-width: 480px) {
    header h1 {
      font-size: 12px;
      margin-left: 4rem;
    }
    header nav{
      position: absolute;
      right: 16%;
      margin-top: 26px;
  }
  }
  
  @media (max-width: 900px) {
    .portfolio-track-wrapper {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .portfolio-track-wrapper {
      grid-template-columns: 1fr;
    }
  }
    