/* ====== ESTILOS GERAIS ====== */
body {
  background-color: #000;
  background-image: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #ccc;
  font-family: "Roboto Mono", monospace;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
}

header h2 {
  font-family: "Roboto Mono", monospace;
  font-size: 1.2rem;
  color: #9ca3af;
}

/* ====== MENU ====== */
.nav {
  display: flex;
  gap: 20px;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #9ca3af;
  transition: color 0.3s;
}

.nav a:hover {
  color: #00f7ff;
}

/* ====== BOTÃO HAMBÚRGUER ====== */
.menu-toggle {
  display: none;
  font-size: 2rem; /* aumentei um pouco p/ ficar mais visível */
  background: none;
  border: none;
  color: #00f7ff; /* neon ciano */
  cursor: pointer;
  transition: transform 0.3s;
}

.menu-toggle:hover {
  transform: scale(1.2);
}




/* ====== TÍTULO NEON ====== */
h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  color: #00f7ff;
  text-shadow: 0 0 5px #00f7ff, 0 0 10px #00f7ff, 0 0 20px #00f7ff,
    0 0 40px #00c8d6, 0 0 80px #0099aa;
  margin: 40px 0 10px;
  animation: neon-flicker 3s infinite;
}

@keyframes neon-flicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow: 0 0 5px #00f7ff, 0 0 10px #00f7ff, 0 0 20px #00f7ff,
      0 0 40px #00c8d6, 0 0 80px #0099aa;
    color: #00f7ff;
  }
  20%,
  24%,
  55% {
    text-shadow: none;
    color: #055d63;
  }
}

.subtitle {
  text-align: center;
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 40px;
}

/* ====== GALERIA ====== */
.portfolio {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 40px 60px;
  flex-wrap: wrap;
}

.card {
  width: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: none;
}

.card img {
  width: 100%;
  display: block;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00f7ff44;
  opacity: 0.7;
}

.card p {
  padding: 15px;
  font-size: 0.9rem;
  text-align: center;
  color: #ccc;
  cursor: none;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    flex-direction: column;
    width: 100%;
    background: #111;
    text-align: center;

    /* animação de slide */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .nav.active {
    max-height: 300px; /* altura suficiente p/ links */
    opacity: 1;
  }

  h1 {
    font-size: 2rem;
  }

  .card {
    width: 90%;
  }
}

@media (max-width: 480px) {
  body {
    background-size: 25px 25px;
  }
  h1 {
    font-size: 1.6rem;
  }
  .subtitle {
    font-size: 0.9rem;
    padding: 0 15px;
  }
  .card {
    width: 100%;
    margin: 0 10px;
  }
  .card p {
    font-size: 0.8rem;
  }
}

.img-style {
  box-shadow: #000;
  opacity: 0.1;
}
.img-style:hover {
  opacity: 0.4;
}

/* Botão Voltar ao Topo */
#back-to-top {
  position: fixed;
  bottom: 110px;
  right: 40px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, #0e1717 0%, #2c676d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  /* invisível até o scroll */
  opacity: 0;
  pointer-events: none;

  /* animações */
  transition: opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10000;

  /* Glow inicial */
  box-shadow: 0 0 10px #00f7ff, 0 0 20px #00c8d6, 0 0 40px #0099aa;
}

/* Estado visível */
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  animation: pulse-glow 2.5s infinite;
}

/* Ícone dentro */
#back-to-top svg {
  width: 28px;
  height: 28px;
  fill: #00f7ff;
  filter: drop-shadow(0 0 6px #00f7ff);
}

/* Hover premium neon */
#back-to-top:hover {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 0 20px #00f7ff, 0 0 40px #00c8d6, 0 0 70px #0099aa;
}

/* Animação de pulsação neon */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 10px #00f7ff, 0 0 20px #00c8d6, 0 0 40px #0099aa;
  }
  50% {
    box-shadow: 0 0 20px #00f7ff, 0 0 40px #00c8d6, 0 0 80px #0099aa;
  }
}

/* Tooltip neon */
#back-to-top .tooltip {
  position: absolute;
  bottom: 55px; /* acima do botão */
  right: 50%;
  transform: translateX(50%) translateY(10px);
  background: rgba(0, 0, 0, 0.85);
  color: #00f7ff;
  font-size: 0.45rem;
  font-family: "Roboto Mono", monospace;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;

  /* efeito neon */
  text-shadow: 0 0 8px #00f7ff;
  box-shadow: 0 0 10px #00f7ff55, 0 0 20px #00c8d6aa;
}

/* Setinha do tooltip */
#back-to-top .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 30%;
  margin-left: 6px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

/* Mostrar tooltip no hover */
#back-to-top:hover .tooltip {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

/* Container do botão */
.orcamento-container {
  display: flex;
  justify-content: center;
  margin: 60px 0 40px 0;
}

/* Botão principal */
#btn-orcamento {
  padding: 15px 35px;
  border: none;
  border-radius: 50px; /* Container do botão */
  .orcamento-container {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px 0;
  }

  .solicit-orcament {
    color: #070606;
  }

  /* Botão principal */
  #btn-orcamento {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: "Roboto Mono", monospace;
    cursor: pointer;
    color: #101313;
    background: linear-gradient(90deg, #122e2f, #15393d);
    text-shadow: 0 0 10px #0c1414;
    box-shadow: 0 0 15px #2d1d54, 0 0 30px #091718;
    transition: all 0.3s ease;
  }

  #btn-orcamento:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #3b313f, #6a00a8);
    box-shadow: 0 0 25px #260a30, 0 0 50px #574e5d;
    color: #070606;
  }

  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
  }

  /* Conteúdo do modal */
  .modal-content {
    background: #0a0a0a;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    color: #141818;
    box-shadow: 0 0 25px #1f2424, 0 0 50px #404647;
    animation: showModal 0.4s ease;
  }

  /* Animação de entrada */
  @keyframes showModal {
    from {
      transform: scale(0.7);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* Fechar */
  .close {
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    color: #353032;
    text-shadow: 0 0 10px #232963;
  }

  .close:hover {
    color: #fff;
  }

  /* Título */
  .modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.6rem;
    text-shadow: 0 0 12px #00f7ff;
  }

  /* Inputs */
  .modal-content input,
  .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #151414;
    font-size: 1rem;
    font-family: "Roboto Mono", monospace;
    box-shadow: inset 0 0 8px #00f7ff55;
  }

  .modal-content input:focus,
  .modal-content textarea:focus {
    outline: none;
    box-shadow: 0 0 12px #00f7ff, 0 0 24px #0099aa;
  }

  /* Botão enviar */
  .enviar-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #215a5c, #0099aa);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
  }

  .enviar-btn:hover {
    background: linear-gradient(90deg, #067bdb, #23072e);
    color: #fff;
    box-shadow: 0 0 20px #333102, 0 0 40px #e95906;
  }
  /* Container do botão */
  .orcamento-container {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px 0;
  }

  /* Botão principal */
  #btn-orcamento {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: "Roboto Mono", monospace;
    cursor: pointer;
    color: #2e3434;
    background: linear-gradient(90deg, #bdd0d1, #274f54);
    text-shadow: 0 0 10px #cbd3d3;
    box-shadow: 0 0 15px #c9d1d1, 0 0 30px #a7b1b2;
    transition: all 0.3s ease;
  }

  #btn-orcamento:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #b800ff, #6a00a8);
    box-shadow: 0 0 25px #b800ff, 0 0 50px #6a00a8;
    color: #fff;
  }

  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
  }

  /* Conteúdo do modal */
  .modal-content {
    background: #0a0a0a;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    color: #1d2020;
    box-shadow: 0 0 25px #00f7ff, 0 0 50px #0099aa;
    animation: showModal 0.4s ease;
  }

  /* Animação de entrada */
  @keyframes showModal {
    from {
      transform: scale(0.7);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* Fechar */
  .close {
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    color: #4c3a42;
    text-shadow: 0 0 10px #1b1719;
  }

  .close:hover {
    color: #fff;
  }

  /* Título */
  .modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.6rem;
    text-shadow: 0 0 12px #00f7ff;
  }

  /* Inputs */
  .modal-content input,
  .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    font-family: "Roboto Mono", monospace;
    box-shadow: inset 0 0 8px #00f7ff55;
  }

  .modal-content input:focus,
  .modal-content textarea:focus {
    outline: none;
    box-shadow: 0 0 12px #00f7ff, 0 0 24px #0099aa;
  }

  /* Botão enviar */
  .enviar-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #00f7ff, #0099aa);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
  }

  .enviar-btn:hover {
    background: linear-gradient(90deg, #220513, #2f143a);
    color: #fff;
    box-shadow: 0 0 20px #301924, 0 0 40px #0a0218;
  }
  /* Container do botão */
  .orcamento-container {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px 0;
  }

  /* Botão principal */
  #btn-orcamento {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: "Roboto Mono", monospace;
    cursor: pointer;
    color: #00f7ff;
    background: linear-gradient(90deg, #cfe0e0, #e1e6e7);
    text-shadow: 0 0 10px #00f7ff;
    box-shadow: 0 0 15px #00f7ff, 0 0 30px #0099aa;
    transition: all 0.3s ease;
  }

  #btn-orcamento:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #45364a, #180622);
    box-shadow: 0 0 25px #1d1420, 0 0 50px #624d6e;
    color: #fff;
  }

  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
  }

  /* Conteúdo do modal */
  .modal-content {
    background: #0a0a0a;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    color: #00f7ff;
    box-shadow: 0 0 25px #00f7ff, 0 0 50px #0099aa;
    animation: showModal 0.4s ease;
  }

  /* Animação de entrada */
  @keyframes showModal {
    from {
      transform: scale(0.7);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* Fechar */
  .close {
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    color: #0c97c5;
    text-shadow: 0 0 10px #07617d;
  }

  .close:hover {
    color: #fff;
  }

  /* Título */
  .modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.6rem;
    text-shadow: 0 0 12px #00f7ff;
  }

  /* Inputs */
  .modal-content input,
  .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    font-family: "Roboto Mono", monospace;
    box-shadow: inset 0 0 8px #00f7ff55;
  }

  .modal-content input:focus,
  .modal-content textarea:focus {
    outline: none;
    box-shadow: 0 0 12px #00f7ff, 0 0 24px #0099aa;
  }

  /* Botão enviar */
  .enviar-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #00f7ff, #0099aa);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
  }

  .enviar-btn:hover {
    background: linear-gradient(90deg, #1b1232, #cc0822);
    color: #fff;
    box-shadow: 0 0 20px #073156, 0 0 40px #3a363b;
  }

  font-size: 1.2rem;
  font-family: "Roboto Mono", monospace;
  cursor: pointer;
  color: #363b3b;
  background: linear-gradient(90deg, #e2ecec, #b1c8cb);
  text-shadow: 0 0 10px #00f7ff;
  box-shadow: 0 0 15px #00f7ff, 0 0 30px #0099aa;
  transition: all 0.3s ease;
}

#btn-orcamento:hover {
  transform: scale(1);
  /* background: linear-gradient(90deg, #4f4454, #2a4a83); */
  box-shadow: 0 0 25px #ddd6e0, 0 0 50px #022b3f;
  color: #544d4d;
  font-size: 1.3rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

/* Conteúdo do modal */
.modal-content {
  background: #0a0a0a;
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  color: #00f7ff;
  box-shadow: 0 0 25px #00f7ff, 0 0 50px #0099aa;
  animation: showModal 0.4s ease;
}

/* Animação de entrada */
@keyframes showModal {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Fechar */
.close {
  float: right;
  font-size: 1.8rem;
  cursor: pointer;
  color: #343032;
  text-shadow: 0 0 10px #480404;
}

.close:hover {
  color: #fff;
}

/* Título */
.modal-content h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.6rem;
  text-shadow: 0 0 12px #00f7ff;
}

/* Inputs */
.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  font-family: "Roboto Mono", monospace;
  box-shadow: inset 0 0 8px #00f7ff55;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  box-shadow: 0 0 12px #00f7ff, 0 0 24px #0099aa;
}

/* Botão enviar */
.enviar-btn {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #00f7ff, #0099aa);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  width: 100%;
}

.enviar-btn:hover {
  background: linear-gradient(90deg, #260bd7, #100116);
  color: #fff;
  box-shadow: 0 0 20px #1b1b5b, 0 0 40px #2c2f02;
}

.cta-button {
  display: none;
}

@media (max-width: 768px) {
  /* .orcamento-container {
    visibility: hidden;
  } */

  .cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    margin: 0 auto 0 auto;
    background: linear-gradient(135deg, #25d366, #0adc57);
    color: #413c3c;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 0 25px #0ee40a, 0 0 50px #04581e;

    font-size: 1.3rem;
  }
  .cta-button:hover {
    background: linear-gradient(135deg, #9bec72, #07e18d);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(2, 48, 15, 0.3);
    opacity: 0.7;
    color: rgb(67, 71, 71);
  }
}
