/* ========================================
   SOTERION — Estilos (tom escuro / dev)
   ======================================== */

:root {
  --bg: #050507;
  --surface: #0b0b10;
  --surface-hover: #121218;
  --text: #e8e8ea;
  --text-dim: #9a9aa6;
  --accent: #00f2ff;
  --accent-dim: #00b8c9;
  --accent-glow: rgba(0, 242, 255, 0.12);
  --border: #1a1a24;
  --border-hover: #333340;
  --radius: 14px;
  --transition: 300ms ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(0, 242, 255, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img,
canvas {
  display: block;
}

/* ===== Utilitários ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--dark {
  background: var(--surface);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section__title .accent {
  color: var(--accent);
}

.section__subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ===== Navegação ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: rgba(5, 5, 7, 0.8);
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.nav__menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--accent);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: pulse 8s ease-in-out infinite;
}

.glow--1 {
  width: 520px;
  height: 520px;
  background: var(--accent);
  top: -120px;
  left: -120px;
  animation-delay: 0s;
}

.glow--2 {
  width: 420px;
  height: 420px;
  background: #7000ff;
  bottom: -100px;
  right: -100px;
  animation-delay: -2s;
}

.glow--3 {
  width: 320px;
  height: 320px;
  background: #00ff88;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  animation-delay: -4s;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: 760px;
  padding: 0 24px;
}

.hero__kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease both;
}

.hero__title {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.15s;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.3s;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.45s;
}

.hero__dev {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 56px;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.6s;
}

.dev-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  background: var(--surface);
}

.dev-tag:nth-child(1) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #000;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 242, 255, 0.35);
}

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

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

/* ===== Características ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature__text {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ===== Timeline / Experiência ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline__badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--surface);
  z-index: 2;
}

.timeline__content {
  flex: 1;
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline__text {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ===== Stack ===== */
.stack__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.stack__item {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  background: var(--surface);
  transition: var(--transition);
}

.stack__item:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ===== Contato ===== */
.contact__card {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.contact__text {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 20px;
}

.socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
}

.socials a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
  background: var(--surface);
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer__brand {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.25rem;
}

.footer__copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ===== Animações ===== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.15) translate(20px, -20px);
    opacity: 0.55;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal ao scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Responsividade ===== */
@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 7, 0.95);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
    display: none;
    border-bottom: 1px solid var(--border);
  }

  .nav__menu.open {
    display: flex;
  }

  .nav__link {
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: center;
  }

  .nav__toggle {
    display: block;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
  }

  .dev-tag {
    font-size: 0.7rem;
    padding: 5px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}