/* Primes Tech — Static Site Styles */
:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #9ca3af;
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --radius: 8px;
  --max-w: 1200px;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

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

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav-cta {
  display: inline-block;
  background: var(--primary);
  color: #061a0d !important;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 24px -6px var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    min-width: 180px;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
  }
  .nav a:hover {
    background: var(--surface-2);
  }
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #061a0d;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 30px -8px var(--primary);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: #333;
}

/* ---------- Sections ---------- */
section {
  padding: 5rem 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 0.5rem;
}

.section-header p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6rem 0 5rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.08);
  filter: blur(120px);
  z-index: -1;
}

.hero::before {
  top: -200px;
  left: -200px;
}

.hero::after {
  bottom: -200px;
  right: -200px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero .badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary), #86efac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ---------- Grid & Cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.25s;
}

.card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 24px -8px rgba(34, 197, 94, 0.3);
}

.card h3 {
  font-size: 1.25rem;
  margin-top: 0.75rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.card-num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.card ul {
  list-style: none;
  margin-top: 1.25rem;
}

.card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.card ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg);
}

.stats .grid {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ---------- Projects ---------- */
.project-card {
  display: flex;
  flex-direction: column;
}

.project-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card .arrow {
  color: var(--muted);
  transition: all 0.2s;
}

.project-card:hover .arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}

.project-card h3 {
  margin-top: 1rem;
  transition: color 0.2s;
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* ---------- Tech stack ---------- */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-badge {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
}

/* ---------- About extras ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.about-grid h2 {
  font-size: 1.75rem;
}

.about-grid p {
  color: var(--muted);
  margin-top: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.stat-card .num {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-card .lbl {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.team-member {
  text-align: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15rem;
  margin: 0 auto 1rem;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

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

.form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--primary);
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-success.show { display: block; }

.contact-info h2 {
  font-size: 1.5rem;
}

.contact-info p {
  color: var(--muted);
  margin-top: 1rem;
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-list li {
  margin-bottom: 1.25rem;
}

.contact-list .label {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.contact-list .value {
  font-size: 1rem;
  margin-top: 0.15rem;
}

/* ---------- CTA ---------- */
.cta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.1), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(34, 197, 94, 0.08), transparent 50%);
  z-index: 0;
}

.cta > * { position: relative; z-index: 1; }

.cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.cta p {
  color: var(--muted);
  margin: 1rem auto 2rem;
  max-width: 600px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

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

.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 0.5rem;
}

.footer-grid ul li a,
.footer-grid ul li {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-grid ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

/* =========================================================
   FUNDO ANIMADO DE CÓDIGO
   ========================================================= */

.code-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.16;
}

.code-background-inner {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  min-height: 150%;
  will-change: transform;
}

.code-column {
  position: absolute;
  top: 0;

  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;

  color: var(--primary);

  white-space: pre;
  user-select: none;

  opacity: 0.6;
}

.code-column:nth-child(1) {
  left: 3%;
}

.code-column:nth-child(2) {
  left: 28%;
  opacity: 0.35;
}

.code-column:nth-child(3) {
  left: 55%;
  opacity: 0.45;
}

.code-column:nth-child(4) {
  left: 80%;
  opacity: 0.3;
}

/* deixa o conteúdo do site acima da animação */

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}


/* efeito de desaparecimento */

.code-background::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      var(--bg) 0%,
      transparent 15%,
      transparent 80%,
      var(--bg) 100%
    );
}


/* MOBILE */

@media (max-width: 768px) {

  .code-background {
    opacity: 0.09;
  }

  .code-column {
    font-size: 10px;
  }

  .code-column:nth-child(2),
  .code-column:nth-child(4) {
    display: none;
  }

}


/* acessibilidade */

@media (prefers-reduced-motion: reduce) {

  .code-background-inner {
    transform: none !important;
  }

}