/* =========================
   RESET E CONFIGURAÇÕES GERAIS
========================= */

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

:root {
  --bg-main: #020617;
  --bg-secondary: #0f172a;
  --bg-card: #111827;
  --bg-card-hover: #1e293b;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --blue: #38bdf8;
  --blue-strong: #2563eb;
  --purple: #8b5cf6;
  --green: #22c55e;
  --yellow: #facc15;
  --pink: #ec4899;

  --border: rgba(148, 163, 184, 0.2);
  --border-blue: rgba(56, 189, 248, 0.35);

  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 35%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 35%),
    radial-gradient(circle at bottom, rgba(37, 99, 235, 0.1), transparent 38%),
    var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

section {
  width: 100%;
}


/* =========================
   CABEÇALHO
========================= */

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;

  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 999;

  transition: 0.3s ease;
}

.header-scroll {
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.navbar {
  width: min(1180px, 92%);
  height: 78px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active-link {
  color: var(--blue);
}

.nav-curriculo {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 15px;

  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;

  background: linear-gradient(135deg, var(--blue-strong), var(--purple));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);

  transition: 0.3s ease;
  white-space: nowrap;
}

.nav-curriculo:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.28);
}

.menu-mobile {
  display: none;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.4rem;
  cursor: pointer;
}


/* =========================
   HERO / INÍCIO
========================= */

.hero {
  width: min(1180px, 92%);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 120px;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.tag {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;

  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;

  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero h2 {
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-description {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-bottom: 32px;
}

.hero-buttons,
.entretenimento-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 48px;
  padding: 13px 22px;

  font-weight: 800;
  border-radius: 14px;
  border: 1px solid transparent;

  transition: 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-strong), var(--blue));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(56, 189, 248, 0.28);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--border);
}

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

.btn-outline {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--border);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: var(--purple);
  transform: translateY(-3px);
}


/* =========================
   ÍCONES SOCIAIS
========================= */

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.social-icons a {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-secondary);
  font-size: 1.2rem;

  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;

  transition: 0.3s ease;
}

.social-icons a:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-4px);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 82%;
  height: 82%;
  top: 10%;
  left: 10%;

  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 38px;
  filter: blur(55px);
  opacity: 0.35;
  z-index: -1;
}

.hero-image img {
  width: min(380px, 100%);
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: var(--shadow);
  animation: floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}


/* =========================
   SEÇÕES GERAIS
========================= */

.section {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 95px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title p {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}


/* =========================
   SOBRE
========================= */

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.sobre-text,
.demos-intro,
.entretenimento-text,
.contato-content,
.comentario-action {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.sobre-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.sobre-text p:last-child {
  margin-bottom: 0;
}

.sobre-cards {
  display: grid;
  gap: 18px;
}

.info-card,
.projeto-card,
.demo-card,
.rede-card,
.comentario-card,
.evento-card,
.contato-card,
.resumo-card,
.feedback-card {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  transition: 0.3s ease;
}

.info-card:hover,
.projeto-card:hover,
.demo-card:hover,
.rede-card:hover,
.comentario-card:hover,
.evento-card:hover,
.contato-card:hover,
.resumo-card:hover,
.feedback-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-6px);
}

.info-card i,
.resumo-card i {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--blue);
  font-size: 1.35rem;

  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
}

.info-card h3,
.projeto-card h3,
.demo-card h3,
.rede-card h3,
.evento-card h3,
.contato-card h3,
.resumo-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.info-card p,
.projeto-card p,
.demo-card p,
.rede-card p,
.comentario-card p,
.evento-card p,
.contato-text p,
.entretenimento-text p,
.demos-intro p,
.resumo-card p,
.feedback-card p {
  color: var(--text-secondary);
}


/* =========================
   RESUMO RÁPIDO
========================= */

.resumo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.resumo-card {
  min-height: 240px;
}

.resumo-card h3 {
  color: var(--text-main);
}

.resumo-card p {
  font-size: 0.97rem;
}


/* =========================
   PROJETOS
========================= */

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.projeto-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.expandable-card {
  cursor: pointer;
}

.expandable-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;

  background: linear-gradient(to top, rgba(17, 24, 39, 0.95), transparent);
  pointer-events: none;
  transition: 0.3s ease;
}

.expandable-card:hover::after {
  opacity: 0;
}

.projeto-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.projeto-icon {
  min-width: 58px;
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.8rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;

  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: 999px;
  white-space: nowrap;
}

.status-dev {
  color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.status-online {
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-study {
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.project-short {
  margin-bottom: 18px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tech-list span {
  padding: 6px 10px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;

  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 999px;
}

.project-expanded {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;

  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.expandable-card:hover .project-expanded {
  max-height: 280px;
  opacity: 1;
  margin-top: 8px;
}

.project-expanded p {
  margin-bottom: 10px;
  font-size: 0.93rem;
}

.project-expanded strong {
  color: var(--blue);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  position: relative;
  z-index: 2;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;

  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;

  background: linear-gradient(135deg, var(--blue-strong), var(--blue));
  border-radius: 12px;

  transition: 0.3s ease;
}

.btn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.24);
}

.btn-card-secondary {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
}


/* =========================
   DEMONSTRAÇÕES DOS PROJETOS
========================= */

.demos-intro {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.demos-intro h3 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.demo-card {
  min-height: 395px;
  display: flex;
  flex-direction: column;
}

.video-placeholder {
  height: 190px;
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));

  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
}

.video-placeholder i {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 1.4rem;

  background: linear-gradient(135deg, var(--blue-strong), var(--purple));
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35);
}

.demo-status {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;

  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;

  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 999px;
}


/* =========================
   ENTRETENIMENTO E EVENTOS
========================= */

.entretenimento-content {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: stretch;
}

.entretenimento-text h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.entretenimento-text p {
  margin-bottom: 18px;
}

.entretenimento-buttons {
  margin-top: 28px;
}

.entretenimento-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.entretenimento-gallery img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.entretenimento-gallery img:hover {
  transform: scale(1.025);
  border-color: rgba(56, 189, 248, 0.45);
}


/* =========================
   REDES
========================= */

.redes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.rede-card {
  min-height: 190px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rede-card i {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--blue);
  font-size: 1.55rem;

  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;

  transition: 0.3s ease;
}

.rede-card:hover i {
  color: white;
  background: linear-gradient(135deg, var(--blue-strong), var(--purple));
  border-color: transparent;
}

.rede-card h3 {
  color: var(--text-main);
}


/* =========================
   FEEDBACKS / COMENTÁRIOS
   Carrossel infinito por JavaScript
========================= */

.feedback-slider {
  position: relative;

  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

.feedback-carousel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  padding: 8px 0 18px;
}

.feedback-carousel::before,
.feedback-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.feedback-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-main), transparent);
}

.feedback-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-main), transparent);
}

.feedback-track {
  display: flex;
  gap: 22px;
  width: max-content;

  transform: translateX(0);
  transition: transform 0.45s ease;
  will-change: transform;

  animation: none !important;
}

.feedback-card {
  width: 360px;
  min-height: 190px;
  flex: 0 0 360px;
}

.feedback-card p {
  font-style: italic;
  margin-bottom: 18px;
}

.feedback-card span {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.feedback-card[data-clone="true"] {
  pointer-events: none;
}

.feedback-nav {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;

  cursor: pointer;
  transition: 0.3s ease;
  z-index: 5;
}

.feedback-nav:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-strong), var(--purple));
  border-color: transparent;
  transform: translateY(-3px);
}

.feedback-nav:active {
  transform: scale(0.96);
}

.comentario-action {
  margin: 34px auto 0;
  max-width: 760px;
  text-align: center;
}

.comentario-action p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .feedback-slider {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .feedback-nav {
    width: 38px;
    height: 38px;
  }

  .feedback-carousel::before,
  .feedback-carousel::after {
    width: 36px;
  }

  .feedback-card {
    width: 280px;
    flex: 0 0 280px;
  }
}


/* =========================
   CONTATO
========================= */

.contato-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;

  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 38%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.12), transparent 34%),
    rgba(15, 23, 42, 0.76);
}

.contato-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;

  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;

  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 999px;
}

.contato-text h3 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.contato-text p {
  margin-bottom: 16px;
}

.contato-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin-top: 24px;
  padding: 16px;

  color: var(--text-main);
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 18px;
}

.contato-highlight i {
  color: var(--green);
  margin-top: 4px;
}

.contato-highlight span {
  color: var(--text-secondary);
  font-weight: 700;
}

.contato-cards {
  display: grid;
  gap: 16px;
}

.contato-card {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 20px;
}

.contato-card i {
  min-width: 52px;
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--blue);
  font-size: 1.35rem;

  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;

  transition: 0.3s ease;
}

.contato-card:hover i {
  color: white;
  background: linear-gradient(135deg, var(--blue-strong), var(--purple));
  border-color: transparent;
}

.contato-card h3 {
  margin-bottom: 4px;
}

.contato-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}


/* =========================
   RODAPÉ
========================= */

.footer {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.8);
}

.footer strong {
  color: var(--blue);
}


/* =========================
   EFEITOS DO JAVASCRIPT
========================= */

.hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 1120px) {
  .nav-menu {
    gap: 14px;
  }

  .nav-menu a {
    font-size: 0.82rem;
  }

  .nav-curriculo {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

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

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


@media (max-width: 980px) {
  .nav-menu {
    position: absolute;
    top: 78px;
    right: 4%;

    width: 280px;
    padding: 20px;

    display: none;
    flex-direction: column;
    align-items: flex-start;

    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-mobile {
    display: block;
  }

  .hero,
  .sobre-content,
  .entretenimento-content,
  .contato-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 130px;
    text-align: center;
  }

  .tag,
  .hero-buttons,
  .social-icons {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .projetos-grid,
  .demos-grid {
    grid-template-columns: 1fr;
  }

  .projeto-card {
    min-height: auto;
  }

  .project-expanded {
    max-height: none;
    opacity: 1;
    margin-top: 8px;
  }

  .expandable-card::after {
    display: none;
  }

  .contato-content {
    text-align: left;
  }
}


@media (max-width: 720px) {
  .nav-curriculo {
    display: none;
  }

  .resumo-grid,
  .redes-grid {
    grid-template-columns: 1fr;
  }

  .entretenimento-gallery {
    grid-template-columns: 1fr;
  }

  .entretenimento-gallery img {
    height: 370px;
  }

  .feedback-card {
    width: 310px;
  }
}


@media (max-width: 640px) {
  .navbar {
    width: 90%;
  }

  .hero,
  .section {
    width: 90%;
  }

  .hero {
    gap: 36px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

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

  .sobre-text,
  .demos-intro,
  .entretenimento-text,
  .contato-content,
  .comentario-action,
  .info-card,
  .projeto-card,
  .demo-card,
  .rede-card,
  .comentario-card,
  .contato-card,
  .resumo-card {
    padding: 22px;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons,
  .entretenimento-buttons {
    width: 100%;
  }

  .contato-card {
    align-items: flex-start;
  }

  .feedback-carousel::before,
  .feedback-carousel::after {
    width: 55px;
  }
}

/* =========================
   CARD EXPANDIDO POR CLIQUE
========================= */

.expandable-card.card-open .project-expanded {
  max-height: 280px;
  opacity: 1;
  margin-top: 8px;
}

.expandable-card.card-open::after {
  opacity: 0;
}

.expandable-card:focus {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* =========================
   BORDA NEON ANIMADA DA PÁGINA
   Versão mais compatível
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 8px;
  pointer-events: none;
  z-index: 2000;

  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 18px;

  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.22),
    0 0 26px rgba(139, 92, 246, 0.14),
    inset 0 0 16px rgba(56, 189, 248, 0.08);

  animation: neonPulse 5s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 78px;
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.85),
    rgba(139, 92, 246, 0.75),
    rgba(34, 197, 94, 0.55),
    transparent
  );

  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.35),
    0 0 22px rgba(139, 92, 246, 0.25);

  pointer-events: none;
  z-index: 1001;
  opacity: 0.85;
}

@keyframes neonPulse {
  0% {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow:
      0 0 10px rgba(56, 189, 248, 0.16),
      0 0 22px rgba(139, 92, 246, 0.10),
      inset 0 0 12px rgba(56, 189, 248, 0.06);
  }

  50% {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow:
      0 0 16px rgba(56, 189, 248, 0.28),
      0 0 34px rgba(139, 92, 246, 0.20),
      inset 0 0 18px rgba(34, 197, 94, 0.08);
  }

  100% {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow:
      0 0 10px rgba(56, 189, 248, 0.16),
      0 0 22px rgba(139, 92, 246, 0.10),
      inset 0 0 12px rgba(56, 189, 248, 0.06);
  }
}

/* =========================
   FORMULÁRIO DE FEEDBACK
========================= */

.feedback-area {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.feedback-text {
  text-align: left;
}

.feedback-text h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feedback-text p {
  color: var(--text-secondary);
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
  text-align: left;
}

.form-group label {
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;

  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;

  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;

  outline: none;
  transition: 0.3s ease;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.feedback-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.92rem;
}

.feedback-frame {
  display: none;
}

@media (max-width: 980px) {
  .feedback-area {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FUNDO PIXEL ART ANIMADO
========================= */

.pixel-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.pixel-dot,
.pixel-star,
.pixel-cube {
  position: absolute;
  display: block;
  opacity: 0.45;
  image-rendering: pixelated;
}

/* Pequenos pixels flutuando */
.pixel-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  box-shadow:
    10px 0 rgba(139, 92, 246, 0.7),
    20px 0 rgba(34, 197, 94, 0.45),
    10px 10px rgba(56, 189, 248, 0.65);
  animation: pixelFloat 12s linear infinite;
}

.dot-1 {
  left: 8%;
  top: 22%;
  animation-delay: 0s;
}

.dot-2 {
  left: 28%;
  top: 70%;
  animation-delay: 2s;
}

.dot-3 {
  left: 52%;
  top: 18%;
  animation-delay: 4s;
}

.dot-4 {
  left: 76%;
  top: 62%;
  animation-delay: 1s;
}

.dot-5 {
  left: 88%;
  top: 32%;
  animation-delay: 6s;
}

.dot-6 {
  left: 14%;
  top: 86%;
  animation-delay: 8s;
}

/* Estrelas pixeladas */
.pixel-star {
  width: 4px;
  height: 4px;
  background: rgba(248, 250, 252, 0.75);
  box-shadow:
    0 -8px rgba(248, 250, 252, 0.5),
    0 8px rgba(248, 250, 252, 0.5),
    -8px 0 rgba(248, 250, 252, 0.5),
    8px 0 rgba(248, 250, 252, 0.5);
  animation: pixelBlink 3s ease-in-out infinite;
}

.star-1 {
  left: 20%;
  top: 16%;
}

.star-2 {
  left: 66%;
  top: 28%;
  animation-delay: 1s;
}

.star-3 {
  left: 82%;
  top: 78%;
  animation-delay: 2s;
}

/* Cubos estilo pixel */
.pixel-cube {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.45) 50%, rgba(139, 92, 246, 0.45) 50%);
  box-shadow:
    0 0 0 4px rgba(15, 23, 42, 0.7),
    0 0 18px rgba(56, 189, 248, 0.22);
  animation: cubeDrift 18s ease-in-out infinite;
}

.cube-1 {
  left: 6%;
  top: 58%;
}

.cube-2 {
  right: 8%;
  top: 44%;
  animation-delay: 5s;
}

@keyframes pixelFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.15;
  }

  35% {
    opacity: 0.55;
  }

  70% {
    opacity: 0.35;
  }

  100% {
    transform: translateY(-90px) translateX(26px);
    opacity: 0.05;
  }
}

@keyframes pixelBlink {
  0%, 100% {
    opacity: 0.18;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.4);
  }
}

@keyframes cubeDrift {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.18;
  }

  50% {
    transform: translateY(-28px) rotate(8deg);
    opacity: 0.45;
  }
}


/* =========================
   BANNER PIXEL / MINECRAFT
========================= */

.pixel-game-banner {
  max-width: 880px;
  margin: -10px auto 38px;
  padding: 22px;

  display: flex;
  align-items: center;
  gap: 22px;

  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(56, 189, 248, 0.06)),
    rgba(15, 23, 42, 0.72);

  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 22px;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.25),
    inset 0 0 22px rgba(34, 197, 94, 0.04);
}

.minecraft-block {
  min-width: 68px;
  width: 68px;
  height: 68px;
  position: relative;

  background:
    linear-gradient(#4ade80 0 35%, #22c55e 35% 55%, #166534 55% 100%);

  border: 4px solid rgba(2, 6, 23, 0.9);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.25),
    0 0 22px rgba(34, 197, 94, 0.18);

  image-rendering: pixelated;
  animation: minecraftBlockFloat 4s ease-in-out infinite;
}

.minecraft-block::before {
  content: "";
  position: absolute;
  inset: 10px;

  background:
    linear-gradient(90deg, transparent 0 26%, rgba(2, 6, 23, 0.9) 26% 38%, transparent 38% 62%, rgba(2, 6, 23, 0.9) 62% 74%, transparent 74%),
    linear-gradient(transparent 0 48%, rgba(2, 6, 23, 0.9) 48% 62%, transparent 62%);
}

.minecraft-block span {
  position: absolute;
  left: 22px;
  bottom: 10px;
  width: 24px;
  height: 12px;
  background: rgba(2, 6, 23, 0.9);
}

.pixel-game-text h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.pixel-game-text p {
  color: var(--text-secondary);
}

@keyframes minecraftBlockFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 720px) {
  .pixel-game-banner {
    flex-direction: column;
    text-align: center;
  }

  .minecraft-block {
    min-width: 58px;
    width: 58px;
    height: 58px;
  }

  .pixel-background {
    opacity: 0.65;
  }
}

/* =========================
   SOBRE MIM - VERSÃO MELHORADA
========================= */

.sobre-content-premium {
  align-items: stretch;
}

.sobre-panel {
  position: relative;
  overflow: hidden;
}

.sobre-panel::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -120px;
  right: -120px;

  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 65%);
  pointer-events: none;
}

.sobre-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 18px;
  padding: 8px 14px;

  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;

  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
}

.sobre-panel h3 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

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

.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 26px;
}

.sobre-tags span {
  padding: 8px 12px;

  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;

  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
}

.sobre-side .info-card {
  position: relative;
  overflow: hidden;
}

.sobre-side .info-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -70px;
  bottom: -70px;

  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 68%);
}

.sobre-timeline {
  margin-top: 34px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-item {
  position: relative;
  overflow: hidden;

  min-height: 190px;
  padding: 24px;

  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);

  transition: 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
  background: var(--bg-card-hover);
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  margin-bottom: 16px;

  color: var(--blue);
  font-weight: 900;

  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
}

.timeline-item h3 {
  margin-bottom: 10px;
}

.timeline-item p {
  color: var(--text-secondary);
}

