* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --accent-color: #00e5ff; /* Ciano Elétrico */
  --accent-color-rgb: 0, 229, 255;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Fundo das Geometrias */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 0; /* Ajustado para ficar ao fundo */
}

/* Desativa interceptação de clique no canvas */
#particles-js canvas,
.particles-js-canvas-el {
  pointer-events: none !important;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background-color: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  opacity: 0.8;
  transition: 0.3s;
}

nav a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  padding: 20px;
}

.profile-img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(var(--accent-color-rgb), 0.4);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -2px;
}

.subtitle {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 35px;
}

/* Redes Sociais */
.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 45px;
}

.social-links a {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(var(--accent-color-rgb), 0.3);
}

/* Botão Ver Projetos */
.btn-projects {
  background-color: #ffffff;
  color: #000000;
  padding: 15px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-projects:hover {
  background-color: var(--accent-color);
  color: #000;
  box-shadow: 0 5px 20px rgba(var(--accent-color-rgb), 0.4);
}

/* --- SEÇÃO SOBRE MIM --- */
.about-section {
  position: relative;
  z-index: 10;
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

.section-title span {
  color: #00f0ff;
}

.about-content {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 40px;
  backdrop-filter: blur(8px);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.about-text strong {
  color: #00f0ff;
}

/* Grid de Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s ease;
}

.skill-card i {
  color: #00f0ff;
  font-size: 1.3rem;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* --- SEÇÃO PROJETOS --- */
.projects-section {
  position: relative;
  z-index: 10;
  padding: 60px 20px 100px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.project-card {
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.project-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.project-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Estilo do Card Em Breve */
.project-card.coming-soon {
  border-style: dashed;
  opacity: 0.85;
}

.project-card.coming-soon .project-tags span {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Estilização dos Links dos Projetos */
.links-projeto {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  position: relative;
  z-index: 20;
}

.btn-link {
  color: #00f0ff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 6px 12px;
  border: 1px solid #00f0ff;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 20;
}

.btn-link:hover {
  background-color: #00f0ff;
  color: #0d1117;
  box-shadow: 0 0 10px #00f0ff;
}

/* ==========================================
   RESPONSIVIDADE (CELULARES E TABLETS)
   ========================================== */

@media (max-width: 768px) {
  /* Header e Navegação */
  header {
    padding: 15px 5%;
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    margin: 0 10px;
    font-size: 0.8rem;
  }

  /* Hero / Home */
  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .profile-img img {
    width: 110px;
    height: 110px;
  }

  .btn-projects {
    padding: 12px 25px;
    font-size: 0.75rem;
  }

  /* Seção Sobre Mim */
  .about-section {
    padding: 40px 15px;
  }

  .about-content {
    padding: 20px;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  /* Seção Projetos */
  .projects-section {
    padding: 40px 15px 60px;
  }

  .project-card {
    padding: 20px;
  }

  .links-projeto {
    flex-direction: column;
    gap: 10px;
  }

  .btn-link {
    text-align: center;
    width: 100%;
  }

  /* Skills Grid */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}