@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 90px; /* altura real da navbar */
  background: radial-gradient(circle at center, #0f0c29, #000);
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  color: white;
}

 
.nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 200px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);

}

.nav .search-icon {
  opacity: 0%;
}

.nav,
.nav .nav-links{
    display: flex;
    align-items: center;
}

.nav {
    justify-content: space-between;
}

a {
    color: white;
    text-decoration: none;
}

.nav .logo{
    font-size: 22px;
    font-weight: 500;
}

.nav .nav-links {
    column-gap: 20px;
    list-style: none;
}


@keyframes neonPulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(0,255,255,0.15), transparent 60%);
  animation: energyMove 20s linear infinite;
}

body::after {
  background: radial-gradient(circle, rgba(255,0,255,0.15), transparent 60%);
  animation-duration: 30s;
}

@media screen and (max-width: 950px) {
  .nav{
    padding: 15px 50px;
  }

}

/* Esconde botões no desktop */
.nav .navOpenBtn,
.nav .navCloseBtn {
  display: none;
}

@media screen and (max-width: 768px) {

  .nav {
    padding: 15px 20px;
  }

  /* Mostra botões só no mobile */
  .nav .navOpenBtn,
  .nav .navCloseBtn {
    display: block;
  }

  .nav .nav-links {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  max-width: 280px;
  width: 100%;
  padding-top: 100px;
  row-gap: 30px;
  flex-direction: column;

  /* 🔧 CORREÇÃO DO BACKGROUND */
  background: linear-gradient(
  rgba(17,16,29,0.98),
  rgba(17,16,29,0.98)
  );        /* remove o bug */

  z-index: 999;
  transition: left 0.4s ease;
}


  .nav.openNav .nav-links {
    left: 0;
  }

  .nav .navOpenBtn {
    font-size: 20px;
    cursor: pointer;
  }

  .nav .navCloseBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
  }
  }

.topicos {
  width: 100%;
}

.topicos h4 {
  margin-top: 80px;   /* espaço da navbar */
  margin-left: 17%;
  margin-bottom: 50px; /* espaço entre o SOBRE e o conteúdo */
  font-size: 14px;
  letter-spacing: 4px;
  color: #5ee7e7;
  opacity: 0.8;
  font-weight: 500;
}


/* Linha neon embaixo (opcional, mas fica lindo) */
.topicos h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #5ee7e7;
  margin-top: 8px;
}


.texto h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}

.about {
  display: flex;
  align-items: center;
  gap: 60px;
  
  padding: 0 3%;
}

.texto p {
  color: #cfcfcf;        /* melhor que gray em fundo escuro */
  font-size: 16px;
  line-height: 1.7;
  margin-top: 20px;
  text-align: left;      /* ou justify se quiser estilo artigo */
}


.texto {
  max-width: 600px;
  margin-left: 15%;
  margin-top: 0; /* agora quem dá o espaço é o .topicos */
}

.texto-destaque {
  color: #5ee7e7; /* ciano mais suave */
  font-weight: 600;
  text-shadow: 0 0 4px rgba(94, 231, 231, 0.5);
}

.foto {
  position: relative;
  transition: 0.4s ease;
}

.foto img {
  transform: translateY(50px);
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: 0.4s ease;
  box-shadow:
    0 0 20px rgba(94, 231, 231, 0.5),
    0 0 40px rgba(94, 231, 231, 0.4),
    0 0 80px rgba(94, 231, 231, 0.3),
    0 0 120px rgba(94, 231, 231, 0.2);
}

/* Glow de fundo */
.foto::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(94, 231, 231, 0.4);
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
  transition: 0.4s ease;
}

/* Hover */
.foto:hover img {
  transform: translateY(50px) scale(1.08);
  transform: scale(1.08); /* aumenta a foto */
  box-shadow:
    0 0 30px rgba(94, 231, 231, 0.8),
    0 0 60px rgba(94, 231, 231, 0.6),
    0 0 120px rgba(94, 231, 231, 0.4),
    0 0 180px rgba(94, 231, 231, 0.3);
}

.foto:hover::before {
  width: 360px;
  height: 360px;
  filter: blur(80px); /* glow maior atrás */
  background: rgba(94, 231, 231, 0.6);
}


@keyframes energyMove {
  from {
    transform: rotate(0deg) translate(0, 0);
  }
  to {
    transform: rotate(360deg) translate(200px, 200px);
  }
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding-bottom: 100px;
}

/* Card grande */
.skill-card {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
}

.skill-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #ffffff;
}

/* Grid interno */
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Caixinhas pequenas */
.skill-mini {
  width: 110px;
  height: 95px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.04),
    rgba(0,0,0,0.45)
  );
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.skill-mini img {
  width: 30px;
  height: 30px;
}

.skill-mini span {
  font-size: 12.5px;
  color: #ffffff;
}

.skill-mini:hover {
  transform: translateY(-3px);
  background: rgba(40, 40, 40, 0.95);
}

.icon-white {
  filter: invert(1);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 0 12%;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    padding: 0 6%;
  }
}
.footer {
  width: 100%;
  padding: 80px 10%;
  background: linear-gradient(90deg, #0b1c1f, #150c24);
  border-top: 1px solid rgba(94, 231, 231, 0.2);
  box-shadow: 0 -10px 40px rgba(94, 231, 231, 0.1);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-brand h2 {
  font-size: 42px;
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
}

.footer-brand p {
  margin-top: 10px;
  color: #aaa;
  font-size: 14px;
  letter-spacing: 1px;
}

.footer-nav h4,
.footer-social h4 {
  color: #5ee7e7;
  font-size: 13px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.footer-nav a {
  display: block;
  color: #ccc;
  margin-bottom: 10px;
  font-size: 15px;
  transition: 0.3s;
}

.footer-nav a:hover {
  color: #5ee7e7;
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(94,231,231,0.15);
}

.social-icons a:hover {
  background: rgba(94,231,231,0.15);
  box-shadow: 0 0 25px rgba(94,231,231,0.5);
  transform: translateY(-4px) scale(1.05);
}

.footer-copy {
  margin-top: 60px;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  backdrop-filter: blur(4px);
}

.projects {
  margin-top: 120px;
  padding: 0 10%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  position: relative;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(94,231,231,0.15),
    rgba(140,0,255,0.15)
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  transition: 0.4s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(
    circle at top left,
    rgba(94,231,231,0.25),
    transparent 60%
  );
  opacity: 0;
  transition: 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 0 25px rgba(94,231,231,0.3),
    0 0 60px rgba(140,0,255,0.2);
}

.tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: #5ee7e7;
  opacity: 0.8;
}

.card h3 {
  font-size: 28px;
  margin: 10px 0;
}

.card p {
  font-size: 15px;
  color: #cfcfcf;
  line-height: 1.6;
}

.card a {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #7df9ff;
  text-decoration: none;
  transition: 0.3s;
}

.card a:hover {
  color: white;
}

.card-img {
  width: 100%;
  height: 120px;              /* tamanho pequeno e elegante */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 12px rgba(94,231,231,0.3);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-cards {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.mini-card {
  padding: 12px 30px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  color: #5ee7e7;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid rgba(94,231,231,0.3);
  box-shadow: 0 0 10px rgba(94,231,231,0.2);
}

.mini-card:hover {
  background: rgba(94,231,231,0.1);
  box-shadow: 0 0 20px rgba(94,231,231,0.6);
}

.projects {
  display: block;
  width: 100%;
}



.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* separa texto e imagem */
  gap: 12px;
  margin-bottom: 10px;
}


.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* separa texto e imagem */
  gap: 12px;
  margin-bottom: 10px;
}

.project-list {
  display: none;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 60px auto;
  padding: 20px;
  border-radius: 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(94,231,231,0.2);
}

.project-list.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.project-list.hide-title h2 {
  display: none;
}




.tech-cards {
  width: 100%;
  display: flex;
  justify-content: center;   /* centraliza no meio */
  align-items: center;
  gap: 24px;                 /* espaço entre os botões */
  margin: 20px 0 20px 0;
}

.texto-projetos{
  padding: 5%;
  text-align: center;
}
.texto-projetos h1::after {
  content: "";
  display: flex;
  text-align: center;
  width: 40px;
  height: 2px;
  background: #5ee7e7;
  margin-top: 8px;
  margin-left: 41%;
  padding-left: 10%;
}
.texto-blog h1{

  text-align: center;
  font-size: 45px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}

.texto-blog p {
    color: #cfcfcf;       
    font-size: 16px;
    line-height: 1.7;
    margin: 20px auto 0 auto;
    text-align: center;
    max-width: 700px;   /* controla a largura da linha */
}

/* ===========================
   MOBILE FIX (RESPONSIVO)
   =========================== */
@media (max-width: 768px) {

  body {
    padding-top: 80px; /* em vez de % */
  }

  /* NAV */
  .nav {
    padding: 12px 16px;
  }

  /* TÍTULOS / TOPICOS */
  .topicos h4 {
    margin-left: 0;
    text-align: center;
  }

  .topicos h4::after {
    margin: 8px auto 0 auto;
  }

  /* ABOUT */
  .about {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 0 20px;
  }

  .texto {
    margin-left: 0;
    max-width: 100%;
  }

  .texto h1 {
    font-size: 26px;
  }

  .texto p {
    text-align: center;
    font-size: 15px;
  }

  /* FOTO */
  .foto img {
    width: 220px;
    height: 220px;
    transform: none;
  }

  .foto::before {
    width: 240px;
    height: 240px;
  }

  /* SKILLS */
  .skills {
    padding: 0 20px;
  }

  .skills-grid {
    padding: 0;
  }

  /* PROJECTS */
  .projects {
    padding: 0 20px;
  }

  .tech-cards {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mini-card {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* TEXTO BLOG */
  .texto-blog h1 {
    font-size: 28px;
  }

  .texto-blog p {
    font-size: 15px;
    padding: 0 10px;
  }

  /* FOOTER */
  .footer {
    padding: 60px 20px;
    text-align: center;
  }

  .footer-container {
    gap: 40px;
  }

  .footer-nav,
  .footer-social {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }
}

  /* PERFORMANCE MOBILE */

  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.85);
  }

  body {
    animation: none;
  }

  body::before,
  body::after {
    display: none;
  }

