/* VARIÁVEIS E GLOBAIS */
:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --card: #151515;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #b5b5b5;
  --accent: #ffffff;
  --accent-dark: #0a0a0a;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --max-width: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #1b1b1b 0%, #0a0a0a 45%);
  color: var(--text);
  line-height: 1.6;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* CURSOR PERSONALIZADO */
.inner-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  backface-visibility: hidden;
}

.outer-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: 0.08s linear;
  mix-blend-mode: difference;
  backface-visibility: hidden;
}

/* HEADER & NAVEGAÇÃO */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.25s;
}

.nav-links a:hover {
  color: var(--text);
}

/* HERO SECTION */
.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  border-radius: 999px;
  color: #d9d9d9;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2dd36f;
  box-shadow: 0 0 14px #2dd36f;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.03;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid var(--border);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.info-card span {
  display: block;
  color: #969696;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.info-card strong {
  font-size: 1rem;
  font-weight: 700;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.hero-panel .panel-title {
  font-size: 0.95rem;
  color: #d0d0d0;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

/* STACK LIST (ESTILO, CORES */

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stack-list span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #e5e5e5;
  display: inline-block;
  cursor: default;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.stack-list span:hover {
  background: #080808;
  transform: translateY(-3px) scale(1.05);
}

.stack-list span.html:hover {
  border-color: #E34F26;
  color: #E34F26;
  box-shadow: 0 5px 15px rgba(227, 79, 38, 0.15);
}

.stack-list span.css:hover {
  border-color: #1572B6;
  color: #1572B6;
  box-shadow: 0 5px 15px rgba(21, 114, 182, 0.15);
}

.stack-list span.js:hover {
  border-color: #F7DF1E;
  color: #F7DF1E;
  box-shadow: 0 5px 15px rgba(247, 223, 30, 0.1);
}

.stack-list span.react:hover {
  border-color: #61DAFB;
  color: #61DAFB;
  box-shadow: 0 5px 15px rgba(97, 218, 251, 0.15);
}

.stack-list span.git:hover {
  border-color: #F05032;
  color: #F05032;
  box-shadow: 0 5px 15px rgba(240, 80, 50, 0.15);
}

.stack-list span.github:hover {
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.stack-list span.uiux:hover {
  border-color: #FF61F6;
  color: #FF61F6;
  box-shadow: 0 5px 15px rgba(255, 97, 246, 0.15);
}

.stack-list span.java:hover {
  border-color: #ED8B00;
  color: #ED8B00;
  box-shadow: 0 5px 15px rgba(237, 139, 0, 0.15);
}

/* SEÇÕES GERAIS */
section {
  padding: 88px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-number {
  color: #5d5d5d;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
}

.section-description {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 26px;
}

/* CARDS E GRIDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* TIMELINE (FORMAÇÃO) */
.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.timeline-year {
  font-weight: 800;
  color: #f1f1f1;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.timeline-content h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.fumec {
  color: #0072ce;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.timeline-content ul {
  padding-left: 18px;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

/* PROJETOS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-tag {
  display: inline-block;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  color: #dedede;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-links a {
  font-weight: 600;
  color: #f4f4f4;
  opacity: 0.9;
}

/* CURSOS MODERNO */
.courses-modern {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.course-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.course-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.course-item a.course-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #2dd36f;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  opacity: 0.9;
}

.course-item a.course-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.course-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.course-provider {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--muted);
}

.course-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(45, 211, 111, 0.35);
  background: rgba(45, 211, 111, 0.08);
  color: #7ff0aa;
  font-size: 0.82rem;
  font-weight: 600;
}

/* CONTATO E RODAPÉ */
.contact-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-list a {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-weight: 600;
}

footer {
  padding: 28px 0 42px;
  color: #909090;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

.contact-box {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.contact-list a {
  transition: background 0.25s ease, transform 0.2s ease;
}

.contact-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- CONFIGURAÇÃO PARA SCROLL REVEAL ANIMAÇÃO --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.5, 0, 0, 1),
    opacity 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.2s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* RESPONSIVIDADE (MEDIA QUERIES) */
@media (max-width: 1040px) {

  .hero-grid,
  .grid-3,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  body {
    cursor: auto;
  }

  .inner-cursor,
  .outer-cursor {
    display: none;
  }

  .nav {
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: center;
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-grid,
  .grid-3,
  .projects-grid,
  .hero-info {
    grid-template-columns: 1fr;
  }

  section {
    padding: 68px 0;
  }

  .course-item {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .course-status {
    min-width: unset;
    width: fit-content;
  }
}