/* =============================================================
   style.css — ESTILOS DO PORTFÓLIO
   Para mudar conteúdo, edite data.js — não este arquivo.
   Para ajustar cores/tipografia, veja a seção TOKENS abaixo.
   ============================================================= */

/* ─── TOKENS ─────────────────────────────────────────────────
   Altere aqui para mudar a identidade visual inteira.          */
:root {
  --bg: #080c10;
  --surface: #0d1117;
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.14);
  --fg: #e8edf2;
  --muted: #6b7a8d;
  --accent: #00e5a0;
  --accent2: #005eff;
  --java: #f89820;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}

/* ─── NOISE OVERLAY ──────────────────────────────────────────*/
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ─── GRID LINES ─────────────────────────────────────────────*/
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 10%,
    black 30%,
    transparent 100%
  );
}

/* ─── GLOW ORBS ──────────────────────────────────────────────*/
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 229, 160, 0.06);
  top: -200px;
  right: -200px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(0, 94, 255, 0.05);
  bottom: 0;
  left: -150px;
}

/* ─── LAYOUT ─────────────────────────────────────────────────*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
section {
  padding: 120px 0 80px;
}

/* ─── SECTION LABELS ─────────────────────────────────────────*/
.section-label {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  max-width: 80px;
}

.section-title {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  color: var(--fg);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────*/
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Atraso escalonado para filhos de grids */
.stagger > *:nth-child(1) {
  transition-delay: 0ms;
}
.stagger > *:nth-child(2) {
  transition-delay: 80ms;
}
.stagger > *:nth-child(3) {
  transition-delay: 160ms;
}
.stagger > *:nth-child(4) {
  transition-delay: 240ms;
}
.stagger > *:nth-child(5) {
  transition-delay: 320ms;
}
.stagger > *:nth-child(6) {
  transition-delay: 400ms;
}

/* ─── NAVBAR ─────────────────────────────────────────────────*/
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 16, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.3s;
}
#navbar.scrolled {
  border-color: var(--border-hi);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover {
  color: var(--fg);
  background: var(--border);
}
.nav-links .nav-cv {
  color: var(--accent);
  border: 1px solid rgba(0, 229, 160, 0.3);
  padding: 6px 14px;
}
.nav-links .nav-cv:hover {
  background: rgba(0, 229, 160, 0.08);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
}

/* ─── HERO ───────────────────────────────────────────────────*/
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-tag::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.hero-h1 {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero-h1 .hl {
  color: var(--accent);
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 8px;
  border: 1px solid var(--border-hi);
  letter-spacing: 0.01em;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 160, 0.05);
  transform: translateY(-2px);
}

/* Hero — cards laterais */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  /* overflow:hidden removido — causava o corte do badge "Disponível" */
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    transparent
  );
}

.hero-card-title {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-n {
  font-family: "Inter Tight", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.stat-l {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

.tech-scroll {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tech-chip {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hi);
  color: var(--muted);
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.tech-chip:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.3);
}
.tech-chip.hi {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.3);
  background: rgba(0, 229, 160, 0.06);
}

/* Badge "disponível" */
.java-badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: var(--java);
  display: flex;
  align-items: center;
  gap: 6px;
}
.java-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--java);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* ─── SKILLS ─────────────────────────────────────────────────*/
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}
.skill-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(to right, var(--accent2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.skill-card:hover::after {
  transform: scaleX(1);
}

.skill-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.skill-card-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.badge {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 400;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
  cursor: default;
}
.badge:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.3);
  background: rgba(0, 229, 160, 0.06);
}
.badge-accent {
  background: rgba(0, 229, 160, 0.07);
  border-color: rgba(0, 229, 160, 0.2);
  color: var(--accent);
}

/* ─── PROJECTS ───────────────────────────────────────────────*/
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}
.project-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.project-card.featured {
  grid-column: span 2;
}
.project-card.featured .thumb {
  height: 220px;
}

.thumb {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, #0d1117 0%, #161d2a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(0, 229, 160, 0.08) 0%,
    transparent 70%
  );
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.project-card:hover .thumb img {
  opacity: 1;
  transform: scale(1.03);
}
.thumb-icon {
  font-size: 2.8rem;
  color: var(--accent);
  opacity: 0.5;
  position: relative;
  z-index: 1;
}
.thumb-name {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--java);
  color: #000;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.project-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
  font-weight: 300;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.tech-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 94, 255, 0.08);
  border: 1px solid rgba(0, 94, 255, 0.18);
  color: #7eaaff;
}

.card-links {
  display: flex;
  gap: 8px;
}
.card-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-hi);
  color: var(--muted);
  transition: all 0.2s;
}
.card-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 160, 0.05);
}
.card-link.demo:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(0, 94, 255, 0.05);
}

/* ─── EDUCATION ──────────────────────────────────────────────*/
.edu-list {
  display: grid;
  gap: 16px;
}

.edu-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  transition: border-color 0.3s;
}
.edu-item:hover {
  border-color: var(--border-hi);
}

.edu-year {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(0, 229, 160, 0.07);
  border: 1px solid rgba(0, 229, 160, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 110px;
  text-align: center;
}

.edu-main h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.edu-main p {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 300;
}

/* ─── CONTACT ────────────────────────────────────────────────*/
#contact {
  padding-bottom: 120px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    transparent
  );
}
.contact-box::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(
    ellipse,
    rgba(0, 229, 160, 0.06),
    transparent 70%
  );
  pointer-events: none;
}

.contact-box h2 {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.contact-box p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-hi);
  color: var(--muted);
  transition: all 0.2s;
}
.contact-btn i {
  font-size: 1rem;
}
.contact-btn.email:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 160, 0.05);
}
.contact-btn.linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.05);
}
.contact-btn.github:hover {
  border-color: var(--fg);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── FOOTER ─────────────────────────────────────────────────*/
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
footer p {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
footer span {
  color: var(--accent);
}

/* ─── CURSOR PISCANTE ────────────────────────────────────────*/
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ─── SCROLLBAR ──────────────────────────────────────────────*/
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-hi);
  border-radius: 3px;
}

/* ─── RESPONSIVIDADE ─────────────────────────────────────────*/
@media (max-width: 900px) {
  section {
    padding: 80px 0 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
  .hero-right {
    display: none;
  }

  .skills-layout {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured {
    grid-column: span 1;
  }

  .contact-box {
    padding: 40px 24px;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8, 12, 16, 0.97);
    border-bottom: 1px solid var(--border-hi);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.35s ease;
  }
  .nav-links.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .nav-links a {
    font-size: 0.95rem;
    padding: 10px 0;
  }
  .mobile-menu-btn {
    display: block;
  }
}
