/* style.css */

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f0f0f;
  color: #e0e0e0;
}

.hero {
  position: relative;
  background: url("assets/img/terminal3.jpg") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75); /* antes era 0.6 */
  z-index: 1;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.btn-primary {
  background-color: #00ff99;
  color: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #00cc77;
}

.section {
  padding: 4rem 2rem;
  background-color: #1a1a1a;
}

.section h2 {
  text-align: center;
  color: #00ff99;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: #222;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #00ff99;
  margin-bottom: 1rem;
}

.card p {
  color: #ccc;
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #111;
  color: #777;
  font-size: 0.9rem;
}

footer a {
  color: #00ff99;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background-color: #1c1c1c;
  border: 1px solid #00ff99;
  padding: 1rem;
  color: #fff;
  border-radius: 5px;
  resize: none;
}

.contact-form button {
  background-color: #00ff99;
  color: #000;
  border: none;
  padding: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.contact-form button:hover {
  background-color: #00cc77;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border: 2px solid #00ff99;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.about-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-image img {
  width: 300px;
  border-radius: 10px;
  border: 2px solid #00ff99;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.2);
}

.about-text {
  flex: 1;
}

#about h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  color: #00ffc8;
  text-shadow: 0 0 5px #00ffc8aa;
  margin-bottom: 1.5rem;
}

#about {
  font-family: "Open Sans", sans-serif; /* ou 'Fira Code' pra vibe tech */
  color: #e0e0e0;
  line-height: 1.8;
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 2;
  text-align: center;
}

.nome {
  color: #00ffc8;
  text-shadow: 0 0 10px #00ffc8aa;
  animation: glowNome 3s ease-in-out infinite alternate;
}

.titulo {
  color: #ff0055;
  text-shadow: 0 0 10px #ff0055aa;
  font-size: 2.5rem;
  animation: glowTitulo 3s ease-in-out infinite alternate;
}

/* Animações independentes */
@keyframes glowNome {
  0% {
    text-shadow: 0 0 5px #00ffc8, 0 0 10px #00ffc8aa;
  }
  100% {
    text-shadow: 0 0 20px #00ffc8, 0 0 30px #00ffc8;
  }
}

@keyframes glowTitulo {
  0% {
    text-shadow: 0 0 5px #ff0055, 0 0 10px #ff0055aa;
  }
  100% {
    text-shadow: 0 0 20px #ff0055, 0 0 30px #ff0055;
  }
}

.about-image img {
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  border-radius: 10px;
}

/* Animação no hover */
.about-image img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 10px 20px rgba(0, 255, 200, 0.2);
}

/* Estilizando o texto geral */
.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d0d0d0;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.about-text p:hover {
  color: #00ffc3; /* muda de cor ao passar o mouse */
}

/* Destaque nos <strong> */
.about-text strong {
  color: #00ffc3;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 255, 200, 0.5);
  transition: text-shadow 0.3s ease;
}

.about-text strong:hover {
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.9);
}

/* Animação para fade de baixo pra cima */
@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Estilo elegante da lista */
.about-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.about-text ul li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 0.8em;
  font-size: 1.05rem;
  color: #d8d8d8;
  transition: color 0.3s ease;
}

.about-text ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00ffc3;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(0, 255, 200, 0.4);
}

.about-text ul li:hover {
  color: #00ffc3;
}

.light-mode {
  background-color: #f5f5f5;
  color: #333;
}
.light-mode .card {
  background-color: #fff;
}

h2:hover {
  animation: glitch 0.5s linear infinite;
}
@keyframes glitch {
  0% {
    text-shadow: 2px 0 #ff0055, -2px 0 #00ff99;
  }
  25% {
    text-shadow: -2px 0 #ff0055, 2px 0 #00ff99;
  }
  50% {
    text-shadow: 2px 0 #ff0055, -2px 0 #00ff99;
  }
  100% {
    text-shadow: -2px 0 #ff0055, 2px 0 #00ff99;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scrollbar personalizada */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background-color: #00ff99;
  border-radius: 4px;
}

.light-mode {
  background-color: #f5f5f5;
  color: #333;
}
.light-mode .terminal-container {
  background-color: #fff;
  color: #333;
  border-color: #333;
}

/* Animações de Scroll */
[data-anime] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-anime="fade"] {
  transform: translateY(50px);
}

[data-anime="fade-left"] {
  transform: translateX(-50px);
}

[data-anime="fade-right"] {
  transform: translateX(50px);
}

[data-anime="zoom"] {
  transform: scale(0.9);
}

[data-anime].animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Efeito Glitch especial para títulos */
[data-anime="glitch"] {
  position: relative;
}
[data-anime="glitch"].animate::before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  text-shadow: 2px 0 #00ff99;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip-path: inset(10% 0 90% 0);
  }
  20% {
    clip-path: inset(80% 0 5% 0);
  }
  40% {
    clip-path: inset(30% 0 30% 0);
  }
  60% {
    clip-path: inset(70% 0 10% 0);
  }
  80% {
    clip-path: inset(10% 0 60% 0);
  }
  100% {
    clip-path: inset(40% 0 30% 0);
  }
}

/* Efeito Scanline */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 255, 153, 0.05) 1px,
    transparent 1px
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1000;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100vh);
  }
}

/* Adicione isso no seu style.css */

/* ANIMAÇÕES PARA SERVIÇOS */
#services .card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.5s ease;
}

#services .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 153, 0.1),
    transparent
  );
  transition: 0.5s;
}

#services .card:hover::before {
  left: 100%;
}

#services .card:hover {
  border-color: #00ff99;
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.3), 0 0 40px rgba(0, 255, 153, 0.1);
  transform: translateY(-10px) scale(1.02);
}

#services .card h3 {
  position: relative;
  padding-bottom: 10px;
}

#services .card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00ff99;
  transition: width 0.5s ease;
}

#services .card:hover h3::after {
  width: 100%;
}

#services .card p {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.2s;
}

#services .card:hover p {
  transform: translateY(0);
  opacity: 1;
}

/* Efeito de digitação nos títulos */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

#services h2 {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(40) 1s 1 normal both;
}

/* Pulsação nos ícones (adicione ícones ou use pseudo-elementos) */
#services .card::after {
  content: "➜";
  position: absolute;
  right: 20px;
  top: 20px;
  color: #00ff99;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

#services .card:hover::after {
  opacity: 1;
  transform: translateX(0);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* GALERIA - EFEITOS HACKER */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #00ff99;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 255, 153, 0.3);
  border-color: #00ffc8;
}

.gallery-item:hover img {
  filter: brightness(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(0, 20, 10, 0.9);
  padding: 1.2rem;
  transition: bottom 0.4s ease;
  backdrop-filter: blur(5px);
  border-top: 2px solid #00ff99;
}

.gallery-item:hover .gallery-overlay {
  bottom: 0;
}

.gallery-overlay h3 {
  color: #00ff99;
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.gallery-overlay p {
  color: #e0e0e0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Efeito de Subtítulo Hacker */
.hacker-subtitle {
  font-family: "Courier New", monospace;
  font-size: 1.3rem;
  color: #00ff99;
  text-shadow: 0 0 10px rgba(0, 255, 153, 0.5);
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
  background: rgba(0, 20, 10, 0.3);
  border-left: 3px solid #00ff99;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(50) 1s 1 normal both;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.3rem;
  background: #00ff99;
  margin-left: 5px;
  animation: blink 0.7s infinite;
  vertical-align: middle;
}

/* Efeito de máquina de escrever */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Piscar do cursor */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Efeito de scanline (opcional) */
.hacker-subtitle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 255, 153, 0.1) 50%,
    transparent 100%
  );
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}


/* =================================== */
/* ==== ESTILOS DO FORMULÁRIO DE CONTATO ==== */
/* =================================== */

#contact h2 {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
}

.contact-form {
  max-width: 800px;
  margin: 2rem auto 0 auto;
  border: 1px solid #00ff99;
  border-radius: 8px;
  padding: 2rem;
  background-color: #111;
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.15);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #00ff99;
  font-family: 'Courier New', monospace;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background-color: #0d0d0d;
  border: 1px solid #333;
  padding: 0.8rem 1rem;
  color: #e0e0e0;
  border-radius: 4px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Garante que padding não afete a largura total */
}

.contact-form select {
  appearance: none; /* Remove a seta padrão do select */
  background-image: url("data:image/svg+xml;utf8,<svg fill='rgb(0, 255, 153)' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 98%;
  background-position-y: 50%;
}


.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #00ff99;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.5);
}

.btn-submit {
  width: 100%;
  background-color: #00ff99;
  color: #000;
  border: none;
  padding: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background-color: #fff;
  color: #00ff99;
  box-shadow: 0 0 20px #00ff99;
}

/* Estilo para a mensagem de status (sucesso/erro) */
#form-status {
  margin-top: 1.5rem;
  text-align: center;
  font-family: 'Courier New', monospace;
  padding: 1rem;
  border-radius: 4px;
  display: none; /* Começa escondido */
}

#form-status.success {
  background-color: rgba(0, 255, 153, 0.1);
  border: 1px solid #00ff99;
  color: #00ff99;
  display: block;
}

#form-status.error {
  background-color: rgba(255, 0, 85, 0.1);
  border: 1px solid #ff0055;
  color: #ff0055;
  display: block;
}