/* ================================
   Lennon Souza — Portfolio 2026
   ================================ */

:root {
  --bg: #07090d;
  --surface: rgba(15, 18, 24, .78);
  --surface-solid: #0f1218;
  --surface-soft: #12161d;
  --border: rgba(255,255,255,.09);
  --border-hover: rgba(255,255,255,.17);
  --text: #f3f5f7;
  --muted: #929aa7;
  --muted-strong: #b7bec8;
  --accent: #8b7cff;
  --accent-2: #55d6be;
  --accent-soft: rgba(139,124,255,.12);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
  z-index: 0;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
}

.ambient-one {
  width: 520px;
  height: 520px;
  top: -280px;
  right: -120px;
  background: rgba(139,124,255,.13);
}

.ambient-two {
  width: 420px;
  height: 420px;
  top: 42%;
  left: -280px;
  background: rgba(85,214,190,.055);
}

/* Header */

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 20;
}

.nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(8,10,14,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #6357d8);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 0 25px rgba(139,124,255,.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: 10px;
  transition: .2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.nav-links .nav-link-cta {
  margin-left: 6px;
  color: var(--text);
  background: rgba(139,124,255,.13);
  border: 1px solid rgba(139,124,255,.22);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px;
  background: var(--text);
}

/* Hero */

.hero {
  min-height: 900px;
  padding: 190px 0 110px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  align-items: center;
  gap: 80px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}

h1, h2, h3 { letter-spacing: -.045em; }

h1 {
  max-width: 780px;
  margin-top: 25px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .98;
  font-weight: 700;
}

h1 span,
h2 span {
  display: block;
  color: #8f96a2;
}

.hero-copy {
  max-width: 650px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-copy strong {
  color: var(--muted-strong);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8d80ff, #695be1);
  box-shadow: 0 12px 30px rgba(111,93,225,.2);
}

.btn-ghost {
  color: var(--muted-strong);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}

.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

.hero-stack {
  margin-top: 56px;
}

.hero-stack > span {
  display: block;
  margin-bottom: 12px;
  color: #6f7784;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-list span,
.tag-list span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted-strong);
  background: rgba(255,255,255,.025);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

/* Profile card */

.hero-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139,124,255,.1), transparent 38%),
    linear-gradient(145deg, rgba(18,22,29,.94), rgba(10,12,16,.94));
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.025);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  color: #6e7683;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.availability { color: var(--accent-2); }

.mono,
.terminal-line {
  font-family: "JetBrains Mono", monospace;
}

.terminal-line {
  margin-top: 54px;
  color: #6f7784;
  font-size: 11px;
}

.prompt { color: var(--accent-2); }

.profile-name {
  margin-top: 10px;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.profile-role {
  margin-top: 2px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.profile-divider {
  height: 1px;
  margin: 26px 0 20px;
  background: var(--border);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  color: #6f7784;
  font-size: 11px;
}

.profile-row strong {
  color: var(--muted-strong);
  font-weight: 500;
  text-align: right;
}

.code-window {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 5px 9px;
  margin-top: 25px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #080a0e;
  color: #5e6672;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  line-height: 1.65;
}

.code-window code { color: #9ca4b0; }

/* Sections */

.section {
  padding: 130px 0;
  border-top: 1px solid var(--border);
}

.section-heading { margin-bottom: 55px; }

.section-kicker {
  display: block;
  margin-bottom: 15px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

h2 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 650;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 100px;
  align-items: start;
}

.about-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.about-copy p + p { margin-top: 20px; }

.about-copy strong {
  color: var(--text);
  font-weight: 500;
}

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

.stat-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: .25s ease;
}

.stat-card:hover,
.skill-card:hover,
.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.stat-card strong {
  font-size: 34px;
  letter-spacing: -.05em;
}

.stat-card strong span { color: var(--accent); }

.stat-card small {
  color: #737b87;
  font-size: 11px;
}

/* Skills */

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

.skill-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  transition: .25s ease;
}

.skill-icon {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding-top: 3px;
}

.skill-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.skill-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* Timeline */

.timeline {
  position: relative;
  max-width: 920px;
  margin-left: 20px;
  padding-left: 44px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 65px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -50px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(139,124,255,.08), 0 0 24px rgba(139,124,255,.35);
}

.timeline-marker.muted {
  background: #3f4651;
  box-shadow: 0 0 0 6px rgba(255,255,255,.025);
}

.timeline-date {
  margin-bottom: 8px;
  color: #6f7784;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.timeline-content h3 {
  font-size: 24px;
  margin-bottom: 3px;
}

.company {
  color: var(--accent);
  font-size: 13px;
}

.timeline-content p {
  max-width: 750px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

/* Certifications */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cert-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  transition: .25s ease;
}

.cert-card span,
.cert-card small {
  color: #69717d;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.cert-card strong {
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.45;
}

/* Contact */

.contact-section {
  padding: 40px 0 100px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 75px 70px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background:
    radial-gradient(circle at 85% 15%, rgba(139,124,255,.15), transparent 34%),
    linear-gradient(135deg, #11151c, #0b0e13);
}

.contact-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -140px;
  bottom: -180px;
  border-radius: 50%;
  border: 1px solid rgba(139,124,255,.15);
  box-shadow: 0 0 0 40px rgba(139,124,255,.025), 0 0 0 80px rgba(139,124,255,.015);
}

.contact-card h2 { max-width: 600px; }

.contact-card p {
  margin-top: 18px;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.btn-dark {
  color: var(--muted-strong);
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
}

.btn-dark:hover { color: var(--text); border-color: var(--border-hover); }

/* Footer */

footer {
  padding: 25px 0 35px;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer span {
  font-weight: 600;
}

footer small {
  color: #646c77;
  font-size: 11px;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-card {
    max-width: 600px;
  }

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

@media (max-width: 700px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header {
    top: 10px;
  }

  .nav {
    min-height: 58px;
    border-radius: 15px;
  }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(8,10,14,.94);
    backdrop-filter: blur(20px);
  }

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

  .nav-links a { padding: 12px; }

  .nav-links .nav-link-cta {
    margin: 0;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 145px 0 90px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 65px);
  }

  .hero-copy { font-size: 15px; }

  .section {
    padding: 95px 0;
  }

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

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

  .timeline {
    margin-left: 8px;
    padding-left: 30px;
  }

  .timeline-marker {
    left: -36px;
  }

  .contact-card {
    padding: 50px 28px;
    border-radius: 20px;
  }

  footer .container {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}