/* ===========================
   VARIÁVEIS & RESET
=========================== */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --card: #16161f;
  --border: #2a2a3a;
  --accent: #64ffda;
  --accent2: #ff6b6b;
  --accent3: #ffd93d;
  --text: #e8e8f0;
  --muted: #7070a0;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* ===========================
   CURSOR CUSTOMIZADO
=========================== */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.15s;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.35s cubic-bezier(.18,.89,.32,1.1), opacity 0.3s;
  opacity: 0.5;
}

/* ===========================
   NOISE OVERLAY
=========================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
}

/* ===========================
   NAVEGAÇÃO
=========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 80px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  cursor: none;
}

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

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
  cursor: none;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===========================
   HERO
=========================== */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.2;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero-name .first {
  color: var(--white);
  display: block;
}

.hero-name .last {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  display: block;
}

.hero-name .surname {
  color: var(--muted);
  font-size: 0.55em;
  display: block;
  font-weight: 600;
}

.hero-desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 48px;
  border-left: 2px solid var(--border);
  padding-left: 20px;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 700;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Botões */
.btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  text-decoration: none;
  cursor: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.btn-primary:hover {
  background: #fff;
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--accent);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--border);
}

/* Hero visual */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  width: 380px;
  height: 380px;
}

.hex-ring {
  position: absolute;
  inset: 0;
  animation: spin 20s linear infinite;
}

.hex-ring-2 {
  animation: spin 30s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.avatar-placeholder {
  position: absolute;
  inset: 60px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.avatar-initials {
  font-family: 'Syne', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.avatar-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.floating-badge {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}

.badge-python {
  top: 40px;
  right: -20px;
  animation-delay: 0s;
  border-left: 3px solid var(--accent3);
}

.badge-html {
  bottom: 80px;
  right: -30px;
  animation-delay: 1.3s;
  border-left: 3px solid var(--accent2);
}

.badge-cs {
  top: 120px;
  left: -40px;
  animation-delay: 0.7s;
  border-left: 3px solid var(--accent);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: grow 2s ease-in-out infinite;
}

@keyframes grow {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ===========================
   SEÇÕES GERAIS
=========================== */
section {
  padding: 120px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

/* ===========================
   SOBRE
=========================== */
#sobre .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.sobre-text p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 24px;
}

.sobre-text p strong {
  color: var(--text);
}

.sobre-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::before {
  opacity: 0.04;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===========================
   SKILLS
=========================== */
.skills-section {
  padding: 120px 80px;
  background: var(--surface);
}

.skills-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  transition: all 0.3s;
}

.skill-group:hover {
  border-color: var(--accent);
}

.sg-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.sg-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.skill-item {
  margin-bottom: 18px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.skill-name {
  color: var(--text);
}

.skill-pct {
  color: var(--accent);
}

.skill-bar {
  height: 2px;
  background: var(--border);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.19,1,.22,1);
}

.skill-fill.animate {
  transform: scaleX(1);
}

/* ===========================
   FORMAÇÃO
=========================== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(.19,1,.22,1);
}

.tl-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.tl-dot {
  position: absolute;
  left: -44px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent);
}

.tl-year {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tl-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.tl-institution {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.tl-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 500px;
}

.tl-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--accent3);
  color: var(--accent3);
}

.tl-badge-done {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===========================
   PROJETOS
=========================== */
.projetos-section {
  background: var(--surface);
  max-width: 100%;
  padding: 120px 0;
}

.projetos-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: none;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--border);
}

.project-card-wip {
  border-style: dashed;
  opacity: 0.5;
}

.project-num {
  font-family: 'Syne', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.3s;
}

.project-card:hover .project-num {
  color: var(--accent);
}

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

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

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

.project-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 9px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.project-card:hover .tag {
  border-color: var(--accent);
  color: var(--accent);
}

.project-cta {
  margin-top: 28px;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.1em;
  transition: gap 0.2s;
  cursor: none;
}

.project-cta:hover {
  gap: 14px;
}

/* ===========================
   CONTATO
=========================== */
.contato-section {
  background: var(--surface);
  text-align: center;
}

.contato-section .section-label {
  justify-content: center;
}

.contato-section .section-label::after {
  display: none;
}

.contato-section .section-label::before {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.contato-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.9;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px 32px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  transition: all 0.25s;
  cursor: none;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===========================
   FOOTER
=========================== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-motto {
  color: var(--accent);
}

/* ===========================
   ANIMAÇÕES
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(.19,1,.22,1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVO
=========================== */
@media (max-width: 900px) {
  nav {
    padding: 20px 32px;
  }

  .nav-links {
    gap: 24px;
  }

  #hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 120px 32px 60px;
  }

  .hero-right {
    display: none;
  }

  section {
    padding: 80px 32px;
  }

  #sobre .grid,
  .skill-groups,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-section {
    padding: 80px 32px;
  }

  .projetos-inner {
    padding: 0 32px;
  }

  footer {
    padding: 24px 32px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
