/* ===== FONTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Fira+Sans:wght@300;400;500;600;700&family=Martian+Mono:wght@300..700&display=swap');

/* ===== VARIÁVEIS ===== */
:root {
  --primary-color: #AC41F2;
  --secundary-color: #4C2CBF;
  --thirdy-color: #1BF2F2;
  --forthy-color: #16B4F2;
  --fivethy-color: #155FBF;

  --bg: #0b0816;
  --bg-soft: #130e26;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --text-color: #f3f0ff;
  --muted: #a69fc4;

  --title-font: 'Boldonse', sans-serif;
  --text-font: 'Fira Sans', sans-serif;
  --code-font: 'Martian Mono', monospace;

  --radius: 16px;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--forthy-color) 60%, var(--thirdy-color));
}

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

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

body {
  font-family: var(--text-font), Helvetica, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(172, 65, 242, 0.25), transparent 60%),
    radial-gradient(800px 500px at 0% 30%, rgba(22, 180, 242, 0.14), transparent 60%),
    radial-gradient(700px 500px at 100% 80%, rgba(76, 44, 191, 0.25), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--thirdy-color);
  text-decoration: none;
  transition: .2s;
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

strong {
  color: #fff;
  font-weight: 600;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(11, 8, 22, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--code-font);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

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

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width .25s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== LAYOUT ===== */
main {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
}

.section {
  padding: 80px 0 20px;
}

.section-title {
  font-family: var(--code-font);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span {
  color: var(--thirdy-color);
  font-weight: 400;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-tag {
  font-family: var(--code-font);
  color: var(--thirdy-color);
  font-size: .95rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--title-font);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  line-height: 1.25;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: .25s;
}

.btn-primary {
  background: var(--gradient);
  color: #0b0816;
  box-shadow: 0 8px 30px rgba(172, 65, 242, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  color: #0b0816;
  box-shadow: 0 12px 36px rgba(27, 242, 242, 0.3);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: #fff;
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--thirdy-color);
  transform: translateY(-3px);
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

/* Sobre */
.about p {
  font-size: 1.08rem;
  color: #ddd8f2;
  margin-bottom: 20px;
}

.about-list {
  display: grid;
  gap: 10px;
}

.about-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.about-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

/* Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.project {
  display: flex;
  flex-direction: column;
}

.project:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 18px 50px rgba(172, 65, 242, 0.25);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-icon {
  font-size: 2.4rem;
}

.project-link {
  font-size: 1.5rem;
  color: var(--muted);
}

.project-link:hover {
  color: var(--thirdy-color);
  transform: scale(1.15);
}

.project p {
  color: var(--muted);
  font-size: .97rem;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags li {
  font-family: var(--code-font);
  font-size: .7rem;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--thirdy-color);
  background: rgba(27, 242, 242, 0.08);
  border: 1px solid rgba(27, 242, 242, 0.2);
}

.more {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
}

.more a {
  border-bottom: 1px dashed var(--thirdy-color);
}

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.stack-card:hover {
  transform: translateY(-5px);
  border-color: var(--forthy-color);
}

.stack-card h3 {
  font-family: var(--code-font);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 500;
  transition: .25s;
}

.chips li i {
  font-size: 1.25rem;
}

.chips li:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--thirdy-color);
  box-shadow: 0 0 18px rgba(27, 242, 242, 0.25);
}

/* Timeline (cursos) */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 26px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 12px var(--primary-color);
}

.timeline strong {
  display: block;
  font-size: 1.05rem;
}

.timeline span {
  color: var(--muted);
  font-size: .9rem;
}

.timeline em {
  color: var(--thirdy-color);
  font-style: normal;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 90px;
  padding: 40px 16px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
}

.socials a {
  font-size: 1.8rem;
  color: var(--muted);
}

.socials a:hover {
  color: var(--thirdy-color);
  transform: translateY(-4px) scale(1.1);
}

/* ===== ANIMAÇÃO ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

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

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

/* ===== RESPONSIVO ===== */
@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 8, 22, 0.97);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
  }

  .nav-links a::after {
    display: none;
  }

  .section {
    padding-top: 60px;
  }

  .card {
    padding: 22px;
  }
}