* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-black: #000000;
  --color-dark-blue: #52057b;
  --color-purple: #892cdc;
  --color-cyan: #bc6ff1;
  --text-primary: #ffffff;
  --text-secondary: #fff;
  --text-accent: #892cdc;
  --bg-primary: #000000;
  --bg-secondary: #52057b;
  --bg-card: rgba(82, 5, 123, 0.3);
  --gradient-primary: linear-gradient(
    135deg,
    #52057b 0%,
    #892cdc 50%,
    #bc6ff1 100%
  );
  --gradient-secondary: linear-gradient(45deg, #000000 0%, #52057b 100%);
  --gradient-accent: linear-gradient(90deg, #892cdc 0%, #bc6ff1 100%);
  --shadow: 0 20px 40px rgba(137, 44, 220, 0.3);
  --glow: 0 0 20px rgba(188, 111, 241, 0.5);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(82, 5, 123, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(137, 44, 220, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(188, 111, 241, 0.1) 0%,
      transparent 50%
    );
  animation: backgroundShift 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes backgroundShift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-20px, -10px) scale(1.02);
  }
  66% {
    transform: translate(10px, -20px) scale(0.98);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(188, 111, 241, 0.2);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo::after {
  content: "_";
  animation: blink 1s infinite;
  color: var(--color-cyan);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 1rem;
}

.nav-link::before {
  content: "< ";
  opacity: 0;
  transition: var(--transition);
}

.nav-link::after {
  content: " />";
  opacity: 0;
  transition: var(--transition);
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
  opacity: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  text-shadow: var(--glow);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-greeting {
  font-size: 1.2rem;
  color: var(--color-cyan);
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideInLeft 1s ease-out forwards;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.2s forwards;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.4s forwards;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.8s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.btn {
  padding: 1rem 2.5rem;
  border: 2px solid;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-primary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 rgba(188, 111, 241, 0.5);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: var(--transition);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(188, 111, 241, 0.4);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-purple);
  border-color: var(--color-purple);
}

.btn-secondary:hover {
  background: var(--color-purple);
  color: var(--text-primary);
  transform: translateX(-5px);
  box-shadow: var(--shadow);
}

/* Terminal Window */
.terminal-window {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--color-purple);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  opacity: 0;
  animation: slideInRight 1s ease-out 1s forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.terminal-header {
  background: var(--color-dark-blue);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #28ca42;
}

.terminal-title {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.terminal-body {
  padding: 2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

.terminal-line {
  display: flex;
  margin-bottom: 0.5rem;
}

.terminal-prompt {
  color: var(--color-cyan);
  margin-right: 0.5rem;
}

.terminal-command {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--color-purple);
  margin-left: 2rem;
}

.typing-animation {
  border-right: 2px solid var(--color-cyan);
  animation: typing 3s steps(30) 1s 1 normal both,
    blink-cursor 1s steps(2) infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-cursor {
  0%,
  50% {
    border-color: var(--color-cyan);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

/* Sections */
section {
  padding: 8rem 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-number {
  font-size: 1rem;
  color: var(--color-cyan);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: linear-gradient(
    135deg,
    rgba(52, 5, 123, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: center;
}

.about-profile {
  text-align: center;
}

.profile-image-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--color-purple);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.profile-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 25px 50px rgba(137, 44, 220, 0.4);
}

.profile-image-container::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--color-cyan);
  border-radius: 25px;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.1;
  }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--color-purple);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-cyan);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text h3 {
  color: var(--color-cyan);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--color-purple);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(188, 111, 241, 0.1),
    transparent
  );
  transition: var(--transition);
}

.skill-category:hover::before {
  left: 100%;
}

.skill-category:hover {
  transform: translateY(-10px);
  border-color: var(--color-cyan);
  box-shadow: var(--glow);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-primary);
}

.skill-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.skill-item {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--color-dark-blue);
  transition: var(--transition);
}

.skill-item:hover {
  border-color: var(--color-cyan);
  background: rgba(188, 111, 241, 0.1);
  transform: scale(1.05);
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Projects Section */
.projects {
  background: linear-gradient(
    135deg,
    rgba(137, 44, 220, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-purple);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  margin-bottom: 3rem;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.project-content {
  padding: 3rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-type {
  font-size: 0.9rem;
  color: var(--color-cyan);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--color-purple);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--color-cyan);
  transform: scale(1.2);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.project-highlights {
  margin-bottom: 2rem;
}

.project-highlights h4 {
  color: var(--color-cyan);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.project-highlights ul {
  list-style: none;
  padding-left: 0;
}

.project-highlights li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.project-highlights li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--color-purple);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: rgba(0, 0, 0, 0.7);
  color: var(--color-cyan);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--color-dark-blue);
  transition: var(--transition);
}

.tech-tag:hover {
  border-color: var(--color-cyan);
  background: rgba(188, 111, 241, 0.2);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--color-cyan);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--color-purple);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--color-cyan);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-details p {
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--color-purple);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  color: var(--color-cyan);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--color-dark-blue);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(188, 111, 241, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
}

.footer-content {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 2px solid var(--color-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--color-cyan);
  background: var(--gradient-accent);
  transform: translateY(-5px) rotate(10deg);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .profile-image {
    width: 220px;
    height: 220px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
/* ====== OVERRIDE: remover faixas entre seções e deixar fundo uniforme ====== */

/* 1) Fundo uniforme e suave (quase preto). Altere a cor se quiser outro tom) */
body {
  background: #050306 !important; /* fundo único, sem cortes */
  background-image: none !important;
}

/* 2) Remover qualquer pseudo-elemento que esteja desenhando cortes (body::before, body::after) */
body::before,
body::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* 3) Tornar todas as seções transparentes (sem gradientes locais) */
section,
.section,
.projects,
.projects-grid,
.hero,
.about,
.skills,
.contact,
footer,
.header,
.container,
.container-wide {
  background: transparent !important;
  background-image: none !important;
  background-repeat: none !important;
  border: none !important;
}

/* 4) Remover sombras de borda que possam criar ilusão de divisão */
section,
.card,
.project-card,
.contact-form {
  box-shadow: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* 5) Se existirem overlays com gradientes em elementos específicos, esconda-os */
[class*="overlay"],
[class*="bg-"],
[class*="gradient"],
[data-bg],
[data-overlay] {
  background: transparent !important;
  background-image: none !important;
}

/* 6) Garantir que o canvas de partículas fique atrás e não crie faixas */
#particles {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* 7) Caso alguma seção esteja usando um pseudo-elemento para criar uma "faixa", escondemos também */
section::before,
section::after,
.hero::before,
.hero::after,
.projects::before,
.projects::after {
  display: none !important;
  content: none !important;
}

/* 8) Se quiser um leve vinheta suave (opcional): descomente abaixo para ativar
   Essa vinheta é única e uniforme, não criará divisões entre seções.
*/

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      60% 40% at 50% 40%,
      rgba(137, 44, 220, 0.02),
      transparent 20%
    ),
    radial-gradient(60% 40% at 10% 80%, rgba(0, 0, 0, 0.05), transparent 20%);
  z-index: -1;
}

/* 9) Respeitar prefers-reduced-motion (não altera aparência) */
@media (prefers-reduced-motion: reduce) {
  #particles {
    display: none !important;
  }
}

/* === Ajuste final: centralizar os dois cards no meio === */
.about-extras {
  margin: 60px auto 0 auto;
  display: flex;
  justify-content: center; /* centraliza os filhos */
  align-items: flex-start;
  gap: 40px;
  max-width: 900px; /* limita a largura total */
}

.about-extras .skill-category {
  flex: 0 0 400px; /* cada card fixo em até 400px */
  max-width: 400px;
}
@media (max-width: 850px) {
  .about-extras {
    flex-direction: column;
    align-items: center;
  }
}

/* Ajuste do botão "Ver Certificações" */
.about-extras .skill-item a {
  display: inline-block;
  padding: 0; /* remove espaçamento de botão */
  border: none; /* remove borda */
  background: none; /* remove fundo/retângulo */
  color: var(--text-primary); /* texto branco */
  font-weight: 600;
  text-decoration: none; /* tira sublinhado */
}

.about-extras .skill-item a:hover {
  color: var(--color-purple); /* hover roxo, igual aos títulos */
  text-decoration: underline; /* opcional: sublinhado no hover */
}

/* === Cards de Projetos === */
/* Grid com 3 cards */
/* Grid com 3 cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card de projeto igual ao antigo */
.project-card {
  background: var(--bg-card); /* roxo claro */
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

/* Imagem */
.project-image {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Título */
.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-purple);
}

/* Descrição */
.project-description {
  font-size: 0.95rem;
  color: #f5f5f5;
  margin-bottom: 12px;
}

/* Tags (badges) */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tech-tag {
  background: rgba(0, 0, 0, 0.5); /* roxo escuro */
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: transform 0.25s ease;
}
.tech-tag:hover {
  transform: scale(1.05);
}

/* Botões */
.project-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.project-links .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  padding: 8px 0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5); /* igual botão hero */
  color: #fff;
  border: solid 1px, var(--color-purple);
  transition: background 0.3s ease, transform 0.2s ease;
}
.project-links .btn:hover {
  background: var(--color-purple-dark);
  transform: translateY(-2px);
}
.github-btn i {
  margin-right: 6px;
}


@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* Menos espaço e fonte menor */
.nav-menu {
  display: flex;
  gap: 14px; /* antes devia ser ~25px, reduzi */
  align-items: center;
}
.nav-menu .nav-link {
  font-size: 0.9rem; /* um pouco menor */
  padding: 6px 8px;  /* mais compacto */
}

/* Botão de idioma */
.nav-menu .lang-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: inherit; /* mesma cor dos links */
  transition: color 0.3s ease;
}
.nav-menu .lang-btn:hover {
  color: var(--color-purple);
}

/* Botão CV */
.nav-menu .cv-btn {
  border: 1px solid var(--color-purple);
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-menu .cv-btn:hover {
  background: var(--color-purple);
  color: #fff;
}

/* Container do dropdown */
/* ===== Dropdown Idioma ===== */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: inherit;
  transition: color 0.3s ease;
}

.lang-btn:hover {
  color: var(--color-purple);
}

/* Menu inicial escondido */
.lang-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--color-purple);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  list-style: none;
  padding: 8px 0;
  min-width: 140px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

/* Quando ativo */
.lang-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Links internos */
.lang-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-menu li a:hover {
  background: var(--color-purple);
  color: #fff;
}

/* Bandeirinhas */
.lang-menu .flag {
  font-size: 1.1rem;
}

/* Link ativo na navbar (só muda a cor, mantém o < /> existente) */
.nav-menu .nav-link.active {
  color: var(--color-purple);
  font-weight: 600; /* opcional: deixa o ativo mais forte */
}

.cv-btn {
  background: var(--color-purple);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-left: 12px;
}

.cv-btn:hover {
  background: #6b21a8;
  transform: translateY(-2px);
}