/* =============================================
   VARIÁVEIS E RESET
   ============================================= */
:root {
  --bg: #0d0d0d;
  --bg-card: #161616;
  --bg-dark: #111111;
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --text: #e8e8e8;
  --text-muted: #888;
  --border: #2a2a2a;
  --radius: 12px;
  --font-hero: "Press Start 2P", cursive;
  --font-mono: "Space Mono", monospace;
  --font-sans: "Syne", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* =============================================
   UTILITÁRIOS
   ============================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 99;
}

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

.nav-links a {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.05);
}

/* Hamburguer */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title span {
  display: block;
}

#avatar:active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 90vh; /* Ajusta a altura da imagem */
  z-index: 999;
  outline: none; /* Remove borda de foco do navegador */
  box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.8); /* Cria o efeito de fundo escuro */
}

#hero-title {
  font-family: var(--font-hero);
}

.highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 590px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.03em;
}

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

.btn-primary:hover {
  background: #00c4db;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Code block decoration */
.hero-decoration {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 340px;
  color: var(--text-muted);
}

.code-block .kw {
  color: var(--accent2);
}
.code-block .str {
  color: var(--accent);
}
.code-block .line {
  display: block;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* =============================================
   SOBRE
   ============================================= */
.sobre-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sobre-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar-placeholder {
  width: 110px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.15);
}

.avatar-tag {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-align: center;
}

.sobre-text h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.sobre-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.sobre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================
   HABILIDADES
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.05);
}

.skill-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.skill-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

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

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.skill-tag.aprendendo {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.skill-tag.iniciando {
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.skill-tag.solido {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* =============================================
   FORMAÇÃO / TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

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

.timeline-dot {
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.35rem 0 0.25rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tags span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* =============================================
   PROJETOS
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-card.coming-soon {
  opacity: 0.55;
}

.project-card.coming-soon.visible {
  opacity: 0.55;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding-right: 3.5rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  background: rgba(0, 229, 255, 0.07);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.project-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.project-status.em-desenvolvimento {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.project-status.breve {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

/* =============================================
   CONTATO
   ============================================= */
.contato-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contato-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all 0.25s;
  opacity: 0;
  transform: translateY(16px);
}

.contato-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contato-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.08);
}

.contato-icon {
  font-size: 1.5rem;
}

.contato-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  display: block;
  letter-spacing: 0.08em;
}

.contato-value {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-sub {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  color: #555 !important;
}

/* =============================================
   MEDIA QUERIES — TABLET (600px+)
   ============================================= */
@media (min-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero-decoration {
    margin-top: 2rem;
  }
}

/* =============================================
   MEDIA QUERIES — DESKTOP (900px+)
   ============================================= */
@media (min-width: 900px) {
  .navbar {
    padding: 1rem 3rem;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.875rem;
  }

  .hamburger {
    display: none;
  }

  .hero {
    padding: 0 3rem;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .hero-content {
    flex: 1;
  }

  .hero-title br {
    display: none;
  }

  .hero-decoration {
    flex: 0 0 auto;
    margin-top: 0;
    align-self: center;
  }

  .code-block {
    font-size: 0.875rem;
    max-width: 380px;
  }

  .sobre-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .sobre-avatar {
    flex: 0 0 180px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contato-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .container {
    padding: 0 2rem;
  }
}
