/* =============================
   RESET E CONFIGURAÇÕES GERAIS
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

span {
  color: #00ff08;
}

/* Classe container centralizadora */
.interface {
  max-width: 1200px;  /* largura máxima */
  margin: 0 auto;     /* centraliza na tela */
  padding: 0 5%;      /* respiro lateral */
}

/* Classe utilitária para Flexbox */
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =============================
   HEADER E MENU
============================= */
header {
  width: 100%;
  padding: 20px 5%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

/* Garante que logo e menu fiquem na mesma linha */
header .interface {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo img {
  max-width: 100px;
}

.menu-desktop ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu-desktop a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu-desktop a:hover {
  color: #00ff08; 
}

/* Botão de contato no header */
.btn-contato button {
  padding: 10px 25px;
  font-size: 16px;
  font-weight: 600;
  background-color: #EEB001;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-contato button:hover {
  background-color: #eeaf0186;
}

/* =============================
   TOPO DO SITE
============================= */
.topo-do-site {
  padding: 120px 5% 60px; /* compensação do header fixo */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.topo-do-site .txt-topo-site {
  max-width: 600px;
}

.topo-do-site h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.topo-do-site h1 span {
  color: #00ff08;
}

.topo-do-site p {
  margin: 20px 0;
  font-size: 1.1rem;
  color: #ddd;
}

.img-topo-site img {
  position: relative;
  animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar {
  0% { top: 0; }
  100% { top: 30px; }
}

/* =============================
   ESPECIALIDADES
============================= */
.especialidades {
  padding: 80px 5%;
  background: #111;
  text-align: center;
}

.skills-title {
  font-size: 2rem;
  margin-bottom: 40px;
}

.skills-title .highlight {
  color: #00ff08;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.skill-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  background: #222;
}

.skill-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

/* Cores dos ícones de skills */
.html5-icon { color: #e34f26; }
.css3-icon { color: #1572b6; }
.js-icon { color: #f7df1e; }
.react-icon { color: #61dafb; }
.python-icon { color: #3776ab; }
.node-icon { color: #68a063; }

/* =============================
   SEÇÃO SOBRE
============================= */
.sobre {
  padding: 80px 4%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.img-sobre img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
}

.txt-sobre h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  margin-left: 15px;
}

.txt-sobre h2 span {
  color: #00ff08;
}

.txt-sobre p {
  margin-bottom: 15px;
  margin-left: 15px;
  color: #ccc;
}

/* =============================
   PROJETOS
============================= */
.works {
  padding: 80px 5%;
  background: #111;
  text-align: center;
}

.works h2 span {
  color: #00ff08;
}

.grid_container_works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.grid_items_works {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.grid_items_works:hover {
  transform: scale(1.05);
}

/* =============================
   CONTATO
============================= */
.formulario {
  padding: 80px 5%;
}

.contact-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.contact-container h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}

.contact-container p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.contact-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  background: #222;
}

.card-icon {
  font-size: 35px;
  margin-bottom: 15px;
  color: #00ff08;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.whatsapp-btn:hover {
  background: #20b954;
}

.contact-direct {
  margin-top: 40px;
  text-align: left;
}

.contact-direct h3 {
  text-align: center;
} 

.contact-method {
  margin: 10px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =============================
   FOOTER
============================= */
footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #333;
}

.social-section {
  text-align: center;
}

.social-midia {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #00ff08;
}

/* =============================
   MENU SANDUÍCHE (MOBILE)
============================= */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  margin-left: auto; /* empurra para a direita */
}

.menu-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #111111e0;
  border-top: 1px solid #0c0c0c;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-mobile ul {
  list-style: none;
  padding: 20px 0;
}

.menu-mobile li {
  margin: 15px 0;
}

.menu-mobile a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.menu-mobile a:hover {
  color: #00ff08;
}

/* =============================
   RESPONSIVIDADE
============================= */
@media (max-width: 992px) {
  .topo-do-site {
    flex-direction: column;
    text-align: center;
  }

  .sobre {
    flex-direction: column;
    text-align: center;
  }

  .img-sobre img {
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .menu-desktop, 
  .btn-contato {
    display: none;
  }

  .menu-mobile.active {
    display: block;
    animation: fadeIn 0.3s ease;    
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0); }
  }  

  /* Logo menor no mobile */
  header .logo img {
    max-width: 72px;
  }

  .menu-toggle {
    display: block;
  }
}

/* ------------------------------------------------------
   RESPONSIVO GERAL
------------------------------------------------------ */
@media screen and (max-width: 1020px) {
    .flex { flex-direction: column; }
    .topo-do-site .flex { flex-direction: column-reverse; gap: 40px; }
    h2.titulo { font-size: 34px; line-height: 30px; }

    /* Mantive logo visível no mobile */
    .menu-desktop, .btn-contato { display: none; }

    section.topo-do-site { padding: 20px 8%; }
    .topo-do-site h1 { font-size: 30px; }
    .topo-do-site .img-topo-site img { width: 100%; }
    section.sobre { padding: 80px 8%; }
    .sobre .txt-sobre h2 { font-size: 34px; line-height: 35px; text-align: center; }
    .btn-social { text-align: center; }
    .img-sobre img { width: 100%; }
    footer .flex { flex-direction: column; gap: 30px; }
    footer .line-footer { text-align: center; }
}

/* =============================
   FIX HEADER: forçar logo + hamburguer na mesma linha
   COLE ESTE BLOCO AO FINAL DO style.css
============================= */

/* Força header a ficar em linha (row) — mais específico para ganhar da regra global */
header#inicio .interface,
header#inicio .interface.flex {
  display: flex;
  flex-direction: row;        /* força linha (não coluna) */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Garante que a logo nunca seja escondida por regras genéricas */
header#inicio .logo {
  display: flex;             /* visível e em linha */
  align-items: center;
}
header#inicio .logo img {
  max-width: 84px;
  height: auto;
  display: block;
}

/* Mostra o hamburguer nos breakpoints onde o menu desktop é escondido.
   Ajuste breakpoint se você preferir outro valor. */
@media (max-width: 1020px) {
  .menu-desktop,
  .btn-contato {
    display: none; /* ocultamos elementos de desktop, mas NÃO a logo */
  }

  /* Verifica se o botão de menu aparece nesse breakpoint */
  .menu-toggle {
    display: block;
    margin-left: auto; /* empurra para a direita */
    z-index: 1200;
  }

  /* assegura que header continue em linha mesmo se houver regra global .flex{flex-direction:column;} */
  header#inicio .interface {
    flex-direction: row;
  }

  /* reduz um pouco a logo em telas médias */
  header#inicio .logo img { max-width: 72px; }
}

/* mobile finetune */
@media (max-width: 600px) {
  header#inicio .logo img { max-width: 64px; }
  /* garante que menu mobile abra logo abaixo do header */
  .menu-mobile { top: 100%; }
}

/* garante que quando JS adicionar .active o menu apareça */
.menu-mobile.active { display: block; }
