/* ========================
       Variáveis de Estilo
    ========================= */
    :root {
      --cor-primaria: #708993;   /* Roxo */
      --cor-secundaria: #19183B; /* Laranja avermelhado */
      --cor-fundo: #A1C2BD;
      --cor-texto: #333;
      --cor-clara: #E7F2EF;

      --fonte-titulo: 'Poppins', sans-serif;
      --fonte-texto: 'Raleway', sans-serif;
    }

    /* ========================
       Reset básico
    ========================= */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: var(--fonte-texto);
      background-color: var(--cor-fundo);
      color: var(--cor-texto);
      line-height: 1.6;
      scroll-behavior: smooth;
    }

    h1, h2, h3 {
      font-family: var(--fonte-titulo);
      color: var(--cor-primaria);
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    h2 {
      font-size: 2rem;
      margin-bottom: 20px;
    }

    /* ========================
       Header
    ========================= */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: var(--cor-primaria);
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 15px 40px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      z-index: 1000; /* fica acima de tudo */
      border-bottom: 2px solid var(--cor-fundo);
    }

    .title {
      display: none;
    }

    .nav-links {
      list-style: none;
      display: flex;
      justify-content: center;
      gap: 30px;
      align-items: center;
      transition: all 0.3s ease;
    }

    .nav-links li a {
      color: var(--cor-clara);
      font-size: 1.2em;
      font-weight: bold;
      transition: color 0.3s;
    }

    .nav-links li a:hover {
      color: var(--cor-secundaria);
    }

    .menu-toggle {
      display: none;
      font-size: 1.8rem;
      color: var(--cor-clara);
      cursor: pointer;
    }

    /* ========================
       Hero Section
    ========================= */
    .hero {
      height: 100vh;
      background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
      color: var(--cor-clara);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .hero img {
      max-width: 500px;
      margin-bottom: 20px;
    }

    .hero h1 {
      font-size: 3rem;
      margin-bottom: 15px;
    }

    .hero p {
      font-size: 1.3rem;
      margin-bottom: 25px;
    }

    .hero p::after {
      content: ' |';
      animation: blink 1s infinite;
    }

    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    .btn {
      background: var(--cor-clara);
      color: var(--cor-primaria);
      padding: 12px 24px;
      border-radius: 30px;
      font-weight: bold;
      transition: 0.3s;
    }

    .btn:hover {
      background: var(--cor-secundaria);
      color: var(--cor-clara);
    }

    /* ========================
       Sobre Section
    ========================= */

    .sobre {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      max-width: 100%;
      height: 100vh;
      margin: auto;
      text-align: center;

      /* Carrossel */
      background-size: cover;
      background-position: center;
      animation: slideShow 30s infinite;
      color: var(--cor-clara); /* deixa o texto visível sobre as imagens */
    }

    .sobre::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(42, 52, 63, 0.849); /* camada escura para contraste */
      z-index: 1;
    }

    .sobre h2, 
    .sobre p {
      position: relative;
      z-index: 2; /* garante que fiquem acima do overlay */
    }

    .sobre p {
      margin-top: 20px;
      font-size: 1.2rem;
      line-height: 1.8;
      color: var(--cor-clara);
      max-width: 1000px;
      
    }

    /* ========================
       Serviços
    ========================= */
    .servicos {
      padding: 60px 20px;
      text-align: center;
      max-width: 100%;
      margin: auto;
    }

    .servicos h2 {
      font-size: 2rem;
      margin-bottom: 20px;
      color: var(--cor-primaria);
    }

    .cards {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 40px 20px;
      gap: 20px;
      flex-wrap: wrap;
  
    }

    .card {
        display: flex;
        flex-direction: column; /* Alinha os itens em coluna (ícone em cima, texto embaixo) */
        align-items: center; /* Centraliza horizontalmente */
        justify-content: center; /* Centraliza verticalmente */
        gap: 15px; /* Adiciona um espaço entre o ícone e o texto */
        text-align: center; /* Centraliza o texto */
        background: var(--cor-clara);
        color: var(--cor-texto);
        max-width: 300px;
        width: 300px;
        height: 200px;
        font-size: 1.3em;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s;
    }

    /* Estilo para o ícone */
    .card i {
        font-size: 2.5em; /* Aumenta o tamanho do ícone */
        color: var(--cor-principal); /* Opcional: define uma cor para o ícone */
    }

    .card:hover {
      transform: translateY(-5px);
    }

  /* ========================
    Portfólio
  ========================= */
  .portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-image: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    padding: 60px 20px;
    color: var(--cor-clara);
    text-align: center;
    max-width: 100%;
    margin: auto;
    border-radius: 15px;
    margin-bottom: 40px;
  }

  .projetos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
  }

  .projeto {
    position: relative;
    width: 380px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .projeto a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
  }

  .projeto img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* cobre o card inteiro */
    object-position: top;
    border-radius: 10px;
    transition: transform 0.3s;
  }

  .projeto:hover img {
    transform: scale(1.05);
  }

  .projeto .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s;
  }

  .projeto:hover .overlay {
    background: rgba(0,0,0,0.8);
  }

    /* ========================
       CTA
    ========================= */
    .cta {
      background: var(--cor-primaria);
      color: var(--cor-clara);
      text-align: center;
      padding: 60px 20px;
      border-radius: 15px;
    }

    .cta h2 {
      margin-bottom: 20px;
    }

    /* ========================
       Contato
    ========================= */
    .contato {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      text-align: center;
      background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
      color: var(--cor-clara);
      border-radius: 15px;
      margin: 40px auto;
      max-width: 1000px;
    }

    .contato h2 {
      font-size: 2rem;
      margin-bottom: 15px;
    }

    .contato p {
      font-size: 1.2rem;
      margin-bottom: 30px;
      max-width: 700px;
    }

    .btn-whatsapp {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background-color: #25D366;
      color: #fff;
      padding: 15px 25px;
      border-radius: 50px;
      font-size: 1.2rem;
      text-decoration: none;
      font-weight: bold;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      transition: transform 0.2s, background 0.2s;
    }

    .btn-whatsapp img {
      width: 24px;
      height: 24px;
    }

    .btn-whatsapp:hover {
      transform: scale(1.05);
      background-color: #20b858;
    }


    /* ========================
       Footer
    ========================= */
    footer {
      text-align: center;
      padding: 20px;
      background: #eee;
      font-size: 0.9rem;
    }


    /* ========================
      Responsividade
    ========================= */

    /* Tablets */
    @media (max-width: 992px) {
      .hero h1 {
        font-size: 2.2rem;
      }

      .hero img {
        max-width: 300px;
      }

      .sobre {
        height: auto;
        padding: 40px 20px;
      }

      .cards {
        gap: 15px;
      }

      .card {
        width: 45%;  /* 2 por linha */
        max-width: none;
      }


      .projeto {
        width: 45%;
        height: 220px;
      }
    }

    /* Responsivo */
    @media (max-width: 768px) {
      header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
      }

      nav {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .menu-toggle {
        display: block; /* aparece no mobile */
      }

      .title {
        display: block;
        color: var(--cor-clara);
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 10px;
        font-family: var(--fonte-titulo);
        padding-top: 10px;
      }

      .nav-links {
        position: absolute;
        top: 70px; /* altura do header */
        right: 0;
        flex-direction: column;
        background: var(--cor-primaria);
        width: 200px;
        height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        border-radius: 0 0 0 15px;
      }

      .nav-links.active {
        height: auto;
        padding: 20px;
        opacity: 1;
        pointer-events: auto;
      }

      .nav-links li {
        margin: 10px 0;
      }
    }

    /* Celulares */
    @media (max-width: 600px) {
      header {
        padding: 10px 20px;
      }

      .nav-links {
        flex-direction: column;
        gap: 15px;
      }

      .hero h1 {
        font-size: 1.8rem;
      }

      .hero p {
        font-size: 1rem;
      }

      .card {
        width: 100%;   /* 1 por linha */
        height: auto;
        padding: 20px;
      }

      .projeto {
        width: 100%;
        height: 200px;
      }

      .contato p {
        font-size: 1rem;
        padding: 0 10px;
      }

      .btn-whatsapp {
        font-size: 1rem;
        padding: 12px 18px;
      }
    }
