/* =========================
   CONFIGURAÇÕES GERAIS
========================= */

:root {
  --background: #080b10;
  --background-secondary: #0d1117;

  --card: #111720;

  --border: #263040;

  --text: #e6edf3;
  --text-secondary: #9ba7b4;

  --primary: #00d084;
  --primary-dark: #00a86b;

  --blue: #61afef;
  --purple: #c678dd;
  --yellow: #e5c07b;

  --max-width: 1180px;
}

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);

  color: var(--text);

  font-family: "Inter", sans-serif;

  line-height: 1.6;

  overflow-x: hidden;
}

a {
  color: inherit;

  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(90%, var(--max-width));

  margin: auto;
}

/* =========================
   CABEÇALHO
========================= */

.header {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  background: rgba(8, 11, 16, 0.92);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(12px);

  z-index: 100;
}

.navbar {
  height: 76px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

.logo {
  font-family: "Fira Code", monospace;

  font-size: 1.35rem;

  font-weight: 700;
}

.logo span {
  color: var(--primary);
}

.menu {
  display: flex;

  align-items: center;

  gap: 2rem;
}

.menu a {
  color: var(--text-secondary);

  font-size: 0.9rem;

  transition: 0.3s;
}

.menu a:hover {
  color: var(--primary);
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  padding: 9rem 0 5rem;

  background: radial-gradient(
    circle at 75% 30%,
    rgba(0, 208, 132, 0.09),
    transparent 30%
  );
}

.hero-content {
  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  align-items: center;

  gap: 5rem;
}

.terminal-text {
  color: var(--primary);

  font-family: "Fira Code", monospace;

  font-size: 0.85rem;

  margin-bottom: 1.5rem;
}

.terminal-text span {
  color: var(--text);
}

.hero h1 {
  max-width: 700px;

  font-size: clamp(2.8rem, 6vw, 5.2rem);

  line-height: 1.05;

  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;

  color: var(--primary);
}

.hero-description {
  max-width: 650px;

  color: var(--text-secondary);

  font-size: 1.1rem;

  margin-top: 2rem;
}

.hero-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

  margin-top: 2.5rem;
}

/* =========================
   BOTÕES
========================= */

.button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 48px;

  padding: 0 1.5rem;

  border-radius: 7px;

  font-weight: 600;

  transition:
    transform 0.3s,
    background 0.3s,
    border 0.3s;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #04100b;

  background: var(--primary);
}

.button-primary:hover {
  background: #16e598;
}

.button-secondary {
  color: var(--text);

  border: 1px solid var(--border);

  background: transparent;
}

.button-secondary:hover {
  border-color: var(--primary);

  color: var(--primary);
}

/* =========================
   JANELA DE CÓDIGO
========================= */

.code-window {
  background: #0b0f14;

  border: 1px solid var(--border);

  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.window-header {
  height: 52px;

  display: flex;

  align-items: center;

  gap: 1rem;

  padding: 0 1.2rem;

  background: #10151c;

  border-bottom: 1px solid var(--border);
}

.window-header p {
  color: var(--text-secondary);

  font-family: "Fira Code", monospace;

  font-size: 0.75rem;
}

.window-buttons {
  display: flex;

  gap: 0.45rem;
}

.window-buttons span {
  width: 11px;

  height: 11px;

  border-radius: 50%;

  background: #ff5f57;
}

.window-buttons span:nth-child(2) {
  background: #febc2e;
}

.window-buttons span:nth-child(3) {
  background: #28c840;
}

pre {
  padding: 1.7rem;

  overflow-x: auto;
}

code {
  color: #d7dde5;

  font-family: "Fira Code", monospace;

  font-size: 0.78rem;

  line-height: 1.9;
}

.purple {
  color: var(--purple);
}

.yellow {
  color: var(--yellow);
}

.blue {
  color: var(--blue);
}

.green {
  color: var(--primary);
}

/* =========================
   SEÇÕES
========================= */

.section {
  padding: 7rem 0;
}

.section-dark {
  background: var(--background-secondary);

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);
}

.section-title {
  max-width: 760px;

  margin-bottom: 4rem;
}

.section-title > p {
  color: var(--primary);

  font-family: "Fira Code", monospace;

  font-size: 0.8rem;

  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);

  line-height: 1.15;

  letter-spacing: -0.04em;
}

.section-title h2 span {
  color: var(--primary);
}

/* =========================
   SOBRE
========================= */

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 5rem;
}

.about-text {
  display: flex;

  flex-direction: column;

  gap: 1.4rem;

  color: var(--text-secondary);
}

.about-text strong {
  color: var(--text);
}

.stats {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1rem;
}

.stat-card {
  min-height: 175px;

  padding: 1.7rem;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 10px;

  transition: 0.3s;
}

.stat-card:hover {
  border-color: var(--primary);

  transform: translateY(-5px);
}

.stat-card h3 {
  color: var(--primary);

  font-family: "Fira Code", monospace;

  font-size: 1.1rem;

  margin-bottom: 1rem;
}

.stat-card p {
  color: var(--text-secondary);

  font-size: 0.9rem;
}

/* =========================
   HABILIDADES
========================= */

.skills-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1.2rem;
}

.skill-card {
  padding: 2rem;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 10px;

  transition: 0.3s;
}

.skill-card:hover {
  border-color: var(--primary);

  transform: translateY(-6px);
}

.skill-icon {
  width: 55px;

  height: 55px;

  display: grid;

  place-items: center;

  margin-bottom: 1.5rem;

  background: rgba(0, 208, 132, 0.1);

  border-radius: 10px;

  font-size: 1.7rem;
}

.skill-card h3 {
  margin-bottom: 0.8rem;

  font-size: 1.2rem;
}

.skill-card p {
  color: var(--text-secondary);

  font-size: 0.9rem;
}

/* =========================
   PROJETOS
========================= */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1.3rem;
}

.project-card {
  min-height: 370px;

  display: flex;

  flex-direction: column;

  padding: 2.2rem;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 12px;

  transition: 0.3s;
}

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

  transform: translateY(-7px);
}

.project-number {
  color: var(--primary);

  font-family: "Fira Code", monospace;

  font-size: 0.72rem;

  margin-bottom: 1.8rem;
}

.project-card h3 {
  font-size: 1.45rem;

  margin-bottom: 1rem;
}

.project-card > p {
  color: var(--text-secondary);

  font-size: 0.92rem;
}

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 0.6rem;

  margin-top: 1.7rem;
}

.tags span {
  padding: 0.4rem 0.7rem;

  color: var(--primary);

  background: rgba(0, 208, 132, 0.08);

  border: 1px solid rgba(0, 208, 132, 0.2);

  border-radius: 5px;

  font-family: "Fira Code", monospace;

  font-size: 0.68rem;
}

.project-link {
  width: fit-content;

  margin-top: auto;

  padding-top: 2rem;

  color: var(--text);

  font-weight: 600;

  transition: 0.3s;
}

.project-link:hover {
  color: var(--primary);
}

/* =========================
   EXPERIÊNCIA
========================= */

.experience-card {
  display: grid;

  grid-template-columns: 180px 1fr;

  gap: 3rem;

  padding: 3rem;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 12px;
}

.experience-date {
  display: flex;

  align-items: center;

  gap: 0.8rem;

  height: fit-content;

  color: var(--primary);

  font-family: "Fira Code", monospace;

  font-size: 0.75rem;
}

.experience-date div {
  width: 25px;

  height: 1px;

  background: var(--primary);
}

.company {
  color: var(--primary);

  font-family: "Fira Code", monospace;

  font-size: 0.85rem;

  margin-bottom: 0.7rem;
}

.experience-content h3 {
  font-size: 1.6rem;

  margin-bottom: 1.3rem;
}

.experience-content > p {
  max-width: 800px;

  color: var(--text-secondary);
}

.experience-content ul {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 0.9rem;

  margin-top: 2rem;
}

.experience-content li {
  color: var(--text-secondary);

  font-size: 0.9rem;
}

.experience-content li::before {
  content: "→";

  color: var(--primary);

  margin-right: 0.6rem;
}

/* =========================
   CONTATO
========================= */

.contact {
  padding: 8rem 0;

  text-align: center;

  background: radial-gradient(
    circle at center,
    rgba(0, 208, 132, 0.12),
    transparent 45%
  );
}

.contact-content {
  max-width: 850px;
}

.contact-content > p:first-child {
  color: var(--primary);

  font-family: "Fira Code", monospace;

  font-size: 0.8rem;

  margin-bottom: 1.3rem;
}

.contact h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);

  line-height: 1.05;

  letter-spacing: -0.05em;
}

.contact h2 span {
  display: block;

  color: var(--primary);
}

.contact-description {
  max-width: 620px;

  margin: 2rem auto;

  color: var(--text-secondary);
}

.contact-buttons {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 1rem;
}

/* =========================
   RODAPÉ
========================= */

footer {
  display: flex;

  justify-content: space-between;

  gap: 2rem;

  padding: 2rem 5%;

  background: #05070a;

  border-top: 1px solid var(--border);

  color: var(--text-secondary);

  font-size: 0.8rem;
}

footer strong {
  color: var(--primary);
}

/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 950px) {
  .hero-content {
    grid-template-columns: 1fr;

    gap: 4rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

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

  .about-grid {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

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

  .experience-card {
    grid-template-columns: 1fr;

    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .header {
    position: static;
  }

  .navbar {
    height: auto;

    flex-direction: column;

    gap: 1.3rem;

    padding: 1.3rem 0;
  }

  .menu {
    width: 100%;

    justify-content: center;

    flex-wrap: wrap;

    gap: 1rem;
  }

  .hero {
    min-height: auto;

    padding-top: 5rem;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

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

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

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

  .experience-content ul {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;

    text-align: center;
  }
}
