/* ── IMPORTS & RESET ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0d1220;
  --bg-surface: #141b2d;
  --bg-card: #1a2340;
  --text-primary: #eef2f8;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent-primary: #3b82f6;
  --accent-secondary: #2563eb;
  --border-subtle: #1e293b;
  --border-hover: #334155;
  --gradient-primary: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --gradient-accent: linear-gradient(135deg, #60a5fa, #3b82f6);
  --glow-primary: rgba(59, 130, 246, 0.2);
  --max-width: 1100px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo .highlight {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  color: var(--text-tertiary);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--accent-primary);
  color: white;
}

.mobile-menu-btn {
  display: none;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 4rem;
  align-items: center;
  z-index: 2;
  position: relative;
}

.hero-tag {
  display: block;
  width: fit-content;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.hero-availability {
  display: block;
  width: fit-content;
  padding: 0.4rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  color: #86efac;
  font-weight: 500;
  white-space: nowrap;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.2);
  animation: glow-pulse 5s ease-in-out infinite;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-hover);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

/* SECTIONS (geral) */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.section-label {
  display: block;
  width: fit-content;
  margin: 0 auto 1rem auto;
  padding: 4px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
  display: inline-block;
  position: relative;
}

.about-content,
.stats-grid,
.skills-categories,
.certs-grid,
.projects-grid,
.experience-grid {
  text-align: left;
}

/* ABOUT */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 100%;
}

.stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.stat:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(270deg, #60a5fa, #3b82f6, #60a5fa);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* SKILLS */
.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  opacity: 0.8;
}

.skill-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

/* CERTS */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.cert-card.featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.12);
}

.cert-card.featured .cert-name {
  color: var(--accent-primary);
  font-size: 1.05rem;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.cert-name {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cert-hours {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  --angle: 0deg;
  z-index: 1;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: conic-gradient(from var(--angle) at 50% 50%, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.project-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(59, 130, 246, 0.15);
}

.project-card:hover::before {
  opacity: 0.05;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    animation: rotate 4s linear infinite;
  }
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

.project-card.legacy {
  border-color: var(--border-hover);
}

.project-card.legacy:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 45px rgba(59, 130, 246, 0.15);
}

.project-number {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.project-tags span {
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.project-tags span:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.project-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.project-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.project-links span {
  color: #eef2f8;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.project-links span:hover {
  color: var(--accent-primary);
  transform: translateY(-3px) scale(1.03);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.project-card.full-width {
  grid-column: 1 / -1;
}

/* EXPERIENCE */
.experience-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 100%;
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.experience-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.experience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.exp-date {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.experience-card p:not(.exp-date) {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CONTACT */
#contact {
  text-align: center;
  padding-bottom: 4rem;
}

.contact-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* CURSOR GLOW */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: none;
}

@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* PARTICLES CANVAS */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* GLOW DIVIDER */
hr.glow-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
  margin: 2rem auto;
  max-width: 600px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-content {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    padding: 4px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section {
    max-width: 900px;
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    width: 180px;
    height: 180px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .nav-content {
    padding: 1rem;
  }
}

/* PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }

  .particles-canvas {
    display: none;
  }
}

/* ── KEYFRAMES ── */

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
  }

  50% {
    box-shadow: 0 0 45px rgba(59, 130, 246, 0.35);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.15);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.7);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ── PSEUDO-ELEMENTS (shimmer, barras, etc) ── */

.section-label::after,
.hero-tag::after,
.hero-availability::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: shimmer 4s ease-in-out infinite;
}

.section-label::after {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.25), transparent);
}

.hero-tag::after {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.25), transparent);
}

.hero-availability::after {
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed .section-title::after {
  width: 60px;
}

/* ── BOLINHA VERDE ── */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-dot 3s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── HOVER NAS TAGS DE PROJETOS LEGADO ── */
.project-card.legacy .project-tags span:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent-primary);
}

/* ── LINK NOS CERTIFICADOS ── */
.cert-name a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.cert-name a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.cert-name a:hover {
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.cert-name a:hover::after {
  width: 100%;
}

/* ── BOTÃO CURRÍCULO NA LINHA DEBAIXO ── */
.hero-content .hero-buttons:last-child {
  justify-content: flex-start;
}

/* ── CENTRALIZAR STACK TÉCNICA ── */
.skills-categories {
  align-items: center;
}

.skill-group {
  align-items: center;
  text-align: center;
}

.skill-group-label {
  text-align: center;
  width: 100%;
}

.skill-tags-row {
  justify-content: center;
}