/* Ajustes gerais */
:root{
  --ring: rgba(139,92,246,.35);
}

/* 2. ScrollSpy e Links (Item do menu ativo) */
.nav-link {
  color: #cbd5e1;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

/* Estado Ativo - Tema Roxo Oficial */
.nav-active {
  color: #8b5cf6 !important; /* Roxo oficial do seu tema */
  font-weight: 700;
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.4); /* Brilho neon sutil */
}

/* Indicador (pontinho roxo) abaixo do menu ativo */
.nav-active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #8b5cf6;
  border-radius: 50%;
  box-shadow: 0 0 8px #8b5cf6;
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: #8b5cf6;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(139,92,246,0.3);
  transition: background 0.2s;
  outline: none;
}
.btn-primary:hover {
  background: #7c3aed;
}
.btn-primary:focus {
  box-shadow: 0 0 0 2px #a78bfa;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: background 0.2s;
  outline: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}
.btn-ghost:focus {
  box-shadow: 0 0 0 2px #a78bfa;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #c4b5fd; /* violeta claro */
  border-radius: 0.375rem;
  border: 1px solid rgba(139,92,246,0.6); /* borda violeta */
  background: transparent;
  transition: all 0.25s ease;
  gap: 0.5rem; /* espaçamento entre ícone e texto */
  box-shadow: 0 0 0 0 rgba(139,92,246,0.4);
}

/* Hover - brilho elegante */
.btn-cv:hover {
  color: #ffffff;
  background: rgba(139,92,246,0.08); /* brilho suave interno */
  box-shadow: 0 0 18px rgba(139,92,246,0.55); /* glow externo */
  border-color: rgba(139,92,246,0.9);
}

/* Títulos de seção */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
@media (min-width: 640px) {
  .section-title { font-size: 1.875rem; }
}
@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

/* Cartas de estatística simples */
.stat-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 1rem 1rem;
  backdrop-filter: blur(4px);
}

/* Projetos */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(30,41,59,0.4);
  transition: all 0.3s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px 0 rgba(139,92,246,0.1);
}
.project-thumb {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.3s;
}
.project-body {
  padding: 1.25rem;
}
.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.project-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.project-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: #cbd5e1;
}
.project-tags li {
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 0.25rem 0.625rem;
}
.project-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #c4b5fd;
  transition: color 0.2s;
}
.project-link:hover {
  color: #ddd6fe;
}
.project-link::after {
  content: "↗";
}

/* Habilidades */
.skill-bar {
  margin-top: 0.5rem;
  height: 0.5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  --value: 0%;
  --ring: rgba(3,211,238,.35);
  position: relative;
}
.skill-bar::before {
  content: "";
  position: absolute; inset: 0;
  width: var(--value);
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  box-shadow: 0 0 18px var(--ring);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}

/* Chips de contato antigos */
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  transition: background 0.2s;
}
.contact-chip:hover {
  background: rgba(255,255,255,0.1);
}

/* ===============================
   📧 NOVOS CHIPS DE CONTATO (MODERNO)
   =============================== */
.contact-chip-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-chip-modern:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
}

/* Aurora animada */
.aurora-bg {
  pointer-events: none;
  border-radius: 2rem;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 60% 40% at 60% 30%, #8B5CF6 60%, transparent 100%),
              radial-gradient(ellipse 40% 60% at 30% 70%, #00cfff 40%, transparent 100%),
              radial-gradient(ellipse 50% 30% at 80% 80%, #ff0057 30%, transparent 100%);
  opacity: 0.7;
  filter: blur(32px) saturate(2.5) brightness(1.2);
  animation: aurora-move 8s linear infinite;
}

@keyframes aurora-move {
  0% { background-position: 60% 30%, 30% 70%, 80% 80%; }
  50% { background-position: 65% 35%, 35% 65%, 75% 85%; }
  100% { background-position: 60% 30%, 30% 70%, 80% 80%; }
}

/* === CARROSSEL DE PROJETOS === */
.projects-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.projects-carousel {
  flex: 1;
  overflow: hidden;
}

.project-slide {
  display: none;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-slide.active {
  display: grid;
}

@media (min-width: 640px) {
  .project-slide.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .project-slide.active {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.carousel-btn {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.carousel-dots {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dots .dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, border-color 0.2s;
}

.carousel-dots .dot.active {
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  border-color: transparent;
  transform: scale(1.05);
}

/* ===============================
   🎬 ANIMAÇÕES DE SCROLL (REVEAL)
   =============================== */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.fade-up { transform: translateY(60px); }
.fade-left { transform: translateX(-60px); }
.fade-right { transform: translateX(60px); }
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }

/* ===============================
   🔥 MELHORIAS UX / UI
   =============================== */
section {
  scroll-margin-top: 5rem;
}

/* Seção de Contato maior para o ScrollSpy funcionar */
#contato {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===============================
   🌟 SCROLLBAR PERSONALIZADA
   =============================== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #4c1d95;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}