@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;1,9..144,300&display=swap");

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #7c3aed;
  --purple-light: #c4b5fd;
  --pink: #db2777;
  --pink-light: #f9a8d4;
  --blue: #2563eb;
  --blue-light: #93c5fd;
  --bg: #0d0a14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(196, 181, 253, 0.35);
  --text-primary: #e8e0f0;
  --text-secondary: rgba(232, 224, 240, 0.55);
  --text-muted: rgba(232, 224, 240, 0.3);
  --gradient-text: linear-gradient(
    120deg,
    #c4b5fd 0%,
    #f9a8d4 50%,
    #93c5fd 100%
  );
  --gradient-btn: linear-gradient(135deg, #7c3aed, #db2777);
  --font-display: "Fraunces", serif;
  --font-body: "DM Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ========== AURORA BACKGROUND ========== */
.aurora-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: drift 10s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  top: -200px;
  left: -150px;
  animation-duration: 12s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--pink);
  top: 10vh;
  right: -100px;
  animation-duration: 9s;
  animation-delay: -3s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: var(--blue);
  bottom: 20vh;
  left: 20%;
  animation-duration: 14s;
  animation-delay: -6s;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: var(--purple);
  bottom: -100px;
  right: 10%;
  animation-duration: 11s;
  animation-delay: -2s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, 25px) scale(1.1);
  }
}

/* ========== HEADER / NAV ========== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
}

.cabecalho {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 10, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1rem 0.6rem 1.4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-btn);
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
  flex-shrink: 0;
}

.nome {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.curso {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

.menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.menu-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  /* Área de toque confortável */
  min-height: 36px;
  display: flex;
  align-items: center;
}

.menu-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.menu-link.active {
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.15);
}

.nav-github {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--gradient-btn);
  color: white;
  transition: opacity 0.2s;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.nav-github:hover {
  opacity: 0.85;
}

/* ── Botão hambúrguer ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: rgba(124, 58, 237, 0.15);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  transform-origin: center;
}

/* Estado ativo (X) */
.nav-hamburger.active .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Menu mobile dropdown ── */
.mobile-menu {
  display: none;
  max-width: 1100px;
  margin: 0.5rem auto 0;
  background: rgba(13, 10, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transform: translateY(-8px);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-list {
  list-style: none;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-link {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  transition: all 0.18s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-github {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1.25rem;
  margin: 0.25rem 0 0.25rem;
  border-radius: 12px;
  background: var(--gradient-btn);
  color: white;
  min-height: 48px;
  transition: opacity 0.2s;
}

.mobile-menu-github:hover {
  opacity: 0.88;
}

/* ========== MAIN ========== */
main {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-family: var(--font-display);
  /* Responsivo via clamp: de 1.7rem (mobile) até 2.4rem (desktop) */
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

@keyframes shimmer {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 200% center;
  }
}

/* ========== SECTION SPACING ========== */
section {
  padding: 5rem 0;
  min-height: 100vh;
  /* dvh: considera barra do browser no iOS/Android */
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

section.compact {
  min-height: auto;
}

/* ========== SEÇÃO INÍCIO ========== */
#inicio {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6rem 2rem 4rem;
}

.hero {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border: 0.5px solid rgba(196, 181, 253, 0.25);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
}

.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-light);
  display: inline-block;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 5s linear infinite;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.skill-pill {
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 0.5px solid rgba(196, 181, 253, 0.3);
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
  font-weight: 400;
  transition: all 0.2s;
}

.skill-pill:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(196, 181, 253, 0.5);
}

.hero-stats {
  display: flex;
  gap: 1px;
  justify-content: center;
  margin-bottom: 3rem;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 1.25rem 0.5rem;
  background: var(--bg-card);
}

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: var(--gradient-btn);
  color: white;
  transition:
    opacity 0.2s,
    transform 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: 0.5px solid rgba(196, 181, 253, 0.4);
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.08);
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.18);
  transform: translateY(-2px);
}

/* ========== SEÇÃO SOBRE MIM ========== */
.sobre-mim {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.sobre-mim-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cards genéricos escuros */
.dark-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.dark-card:hover {
  border-color: var(--border-hover);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
}

.dark-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.dark-card p:last-child {
  margin-bottom: 0;
}

/* Habilidades grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s;
}

.skill-card:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.skill-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
}

.skill-card h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.skill-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 !important;
}

/* Hobbies */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hobby-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.hobby-card:hover {
  border-color: rgba(249, 168, 212, 0.3);
  transform: translateY(-3px);
}

.hobby-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
}

.hobby-card h4 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pink-light);
  margin-bottom: 0.2rem;
}

.hobby-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 !important;
}

/* Perfil sidebar */
.perfil {
  position: sticky;
  top: 100px;
}

.perfil-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.foto-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  padding: 2px;
}

.foto-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.perfil-nome {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.perfil-role {
  font-size: 0.8rem;
  color: var(--purple-light);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.perfil-info {
  margin-bottom: 1.5rem;
  border-top: 0.5px solid var(--border);
  padding-top: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
}

.info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.info-val {
  font-size: 0.78rem;
  color: var(--purple-light);
  font-weight: 500;
}

.info-val a {
  color: var(--purple-light);
  text-decoration: none;
}

.etiquetas-wrap {
  border-top: 0.5px solid var(--border);
  padding-top: 1rem;
}

.etiquetas-wrap h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.etiqueta {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.15);
  color: var(--pink-light);
  border: 0.5px solid rgba(219, 39, 119, 0.25);
  font-weight: 400;
}

/* ========== SEÇÃO FORMAÇÃO ========== */
.formacao-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.edu-item {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.edu-item:hover {
  border-color: var(--border-hover);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.edu-item h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.edu-year {
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  border: 0.5px solid rgba(124, 58, 237, 0.25);
  white-space: nowrap;
  font-weight: 400;
}

.edu-inst {
  font-size: 0.82rem;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.edu-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Disciplinas por área */
.disciplinas-idiomas {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.area-group {
  margin-bottom: 1.75rem;
}

.area-group:last-child {
  margin-bottom: 0;
}

.area-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.area-label.dev {
  color: var(--blue-light);
}
.area-label.dados {
  color: var(--purple-light);
}
.area-label.ux {
  color: var(--pink-light);
}
.area-label.fund {
  color: rgba(232, 224, 240, 0.5);
}

.area-label::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.disc-item {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  transition: all 0.2s;
}

.disc-item:hover {
  border-color: var(--border-hover);
}

.disc-item h4 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.disc-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 300;
  line-height: 1.4;
}

.disc-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
}

.disc-badge.concluido {
  background: rgba(37, 99, 235, 0.15);
  color: var(--blue-light);
  border: 0.5px solid rgba(37, 99, 235, 0.25);
}

.disc-badge.em-andamento {
  background: rgba(219, 39, 119, 0.15);
  color: var(--pink-light);
  border: 0.5px solid rgba(219, 39, 119, 0.25);
}

.disc-badge.planejado {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 0.5px solid var(--border);
}

/* Idiomas sidebar */
.idiomas-card {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.idiomas-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.idioma-item {
}

.idioma-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.idioma-info h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.idioma-level {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

.idioma-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.idioma-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-light), var(--pink-light));
}

/* ========== SEÇÃO PORTFÓLIO ========== */
.portfolio-section {
  background: rgba(255, 255, 255, 0.015);
}

.destaque-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.5rem;
}

.destaque-label.featured {
  color: var(--purple-light);
}
.destaque-label.other {
  color: var(--text-muted);
}

.category-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 2rem 0 0.75rem;
  padding-left: 2px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.portfolio-grid.outros {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.proj-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
}

.proj-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.proj-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.proj-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.thumb-sus {
  background: linear-gradient(135deg, #064e3b, #065f46);
}
.thumb-game {
  background: linear-gradient(135deg, #1e1b4b, #1e3a5f);
}
.thumb-port {
  background: linear-gradient(135deg, #2e1065, #4c1d95);
}
.thumb-car {
  background: linear-gradient(135deg, #1e293b, #334155);
}
.thumb-hotel {
  background: linear-gradient(135deg, #0c2340, #0e4d6e);
}
.thumb-estoque {
  background: linear-gradient(135deg, #451a03, #78350f);
}
.thumb-python {
  background: linear-gradient(135deg, #1a4731, #15803d);
}
.thumb-java {
  background: linear-gradient(135deg, #3b0438, #850e7f);
}
.thumb-stream {
  background: linear-gradient(135deg, #0f0f0f, #dc2626);
}
.thumb-app {
  background: linear-gradient(135deg, #0c4a6e, #075985);
}
.thumb-analise {
  background: linear-gradient(135deg, #1e1b4b, #3730a3);
}

.proj-emoji {
  position: relative;
  z-index: 1;
}

.proj-body {
  padding: 1.5rem;
}

.proj-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.proj-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 300;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--purple-light);
  border: 0.5px solid rgba(124, 58, 237, 0.2);
  font-weight: 400;
}

.proj-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.proj-link {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 0.5px solid rgba(196, 181, 253, 0.3);
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.08);
  transition: all 0.2s;
  /* Área de toque adequada */
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.proj-link:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(196, 181, 253, 0.5);
}

.proj-link.pink {
  border-color: rgba(249, 168, 212, 0.3);
  color: var(--pink-light);
  background: rgba(219, 39, 119, 0.08);
}

.proj-link.pink:hover {
  background: rgba(219, 39, 119, 0.18);
}

/* ========== SEÇÃO CONTATO ========== */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
  /* Altura mínima recomendada para toque */
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(196, 181, 253, 0.5);
  background: rgba(124, 58, 237, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  background: var(--gradient-btn);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
  align-self: flex-start;
  min-height: 48px;
}

.submit-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.contato-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contato-link-wrap {
  text-decoration: none;
}

.contato-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
  min-height: 44px;
}

.contato-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.contato-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.15);
  border: 0.5px solid rgba(196, 181, 253, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contato-item h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.contato-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  border-top: 0.5px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 300;
}

/* ========================================
   RESPONSIVE — TABLET (max 900px)
   ======================================== */
@media (max-width: 900px) {
  .disciplinas-idiomas {
    grid-template-columns: 1fr;
  }
  .idiomas-card {
    position: static;
  }
}

/* ========================================
   RESPONSIVE — MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 0.75rem 1rem;
  }

  .cabecalho {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
  }

  /* Esconde menu desktop e GitHub pill */
  .menu {
    display: none;
  }
  .nav-github {
    display: none;
  }

  /* Mostra hambúrguer */
  .nav-hamburger {
    display: flex;
  }

  /* Menu mobile visível quando aberto */
  .mobile-menu {
    display: block;
  }

  /* Curso escondido em telas muito pequenas para não quebrar o brand */
  .curso {
    display: none;
  }

  /* Hero */
  #inicio {
    padding: 5rem 1.25rem 3rem;
    min-height: 100dvh;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-stats {
    max-width: 100%;
  }

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

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Sections */
  section {
    padding: 4rem 0;
    min-height: auto;
    align-items: flex-start;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-subtitle {
    margin-bottom: 2rem;
    font-size: 0.92rem;
  }

  /* Sobre Mim: perfil sobe para o topo */
  .sobre-mim {
    grid-template-columns: 1fr;
  }

  .perfil {
    position: static;
    order: -1; /* Card de foto aparece primeiro em mobile */
  }

  /* Formação */
  .academica-grid {
    grid-template-columns: 1fr;
  }

  /* Portfólio */
  .portfolio-grid,
  .portfolio-grid.outros {
    grid-template-columns: 1fr;
  }

  /* Contato */
  .contato-grid {
    grid-template-columns: 1fr;
  }

  /* Botão de envio ocupa largura toda em mobile */
  .submit-btn {
    align-self: stretch;
    width: 100%;
  }

  /* Dark cards com padding menor */
  .dark-card {
    padding: 1.5rem 1.25rem;
  }

  /* Skills grid 2 colunas em mobile */
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Hobbies 2 colunas */
  .hobbies-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   RESPONSIVE — MUITO PEQUENO (max 380px)
   ======================================== */
@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hobbies-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
}
