/* ============================================================
   melhorias.css
   Skills · Footer · Back-to-top · Reveal animations
   ============================================================ */

/* ========== REVEAL ANIMATIONS ========== */
.reveal-up,
.reveal-card {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-card {
  transform: translateY(30px) scale(0.97);
}
.reveal-up.visible,
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========== SKILLS SECTION ========== */
.skills-section {
  padding: 7rem 2rem;
  position: relative;
}

.skills-titulo {
  font-family: "Syne", sans-serif;
  font-size: 2.8rem;
  color: var(--claro);
  text-align: center;
  font-weight: 800;
  margin-bottom: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

/* Categoria de skills */
.skills-category {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.skills-category:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12);
}

.skills-category-title {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skills-category-title i {
  color: var(--primaria);
}

/* Skill item */
.skill-item {
  margin-bottom: 1.2rem;
}
.skill-item:last-child {
  margin-bottom: 0;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--claro);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.skill-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primaria);
  font-family: "Syne", sans-serif;
}

/* Barra de progresso */
.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%; /* começa em 0, animado via JS */
  background: linear-gradient(90deg, var(--primaria), var(--secundaria));
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Ícones coloridos */
.skill-icon {
  font-size: 1rem;
}
.html {
  color: #e44d26;
}
.css {
  color: #264de4;
}
.js {
  color: #f7df1e;
}
.react {
  color: #61dafb;
}
.tailwind {
  color: #38bdf8;
}
.bootstrap {
  color: #7952b3;
}
.git {
  color: #f05032;
}
.vscode {
  color: #0078d4;
}
.figma {
  color: #f24e1e;
}

/* Pills de tecnologias */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 800px;
  margin: 0 auto;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: default;
  user-select: none;
}
.tech-pill:hover {
  background: rgba(79, 70, 229, 0.28);
  border-color: var(--primaria);
  transform: translateY(-2px);
  color: #fff;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 2rem;
  background: rgba(10, 15, 28, 0.6);
  backdrop-filter: blur(8px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.4);
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.6);
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-socials a:hover {
  background: linear-gradient(135deg, var(--primaria), var(--secundaria));
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

/* ========== BOTÃO VOLTAR AO TOPO ========== */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primaria), var(--secundaria));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  z-index: 200;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}
.back-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.back-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.55);
}

/* ========== MOBILE OVERLAY para menu ========== */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 98;
  backdrop-filter: blur(2px);
}
.menu-overlay.active {
  display: block;
}

/* ========== SKILLS RESPONSIVO ========== */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skills-titulo {
    font-size: 2.1rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .back-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ============================================================
   NOVO — Skills com categorias + badges visuais
   ============================================================ */

.skills-new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.skill-cat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.skill-cat-card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.14);
  transform: translateY(-3px);
}

.skill-cat-title {
  font-family: "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.skill-cat-title i {
  color: var(--primaria);
  font-size: 1rem;
}

.skill-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
  user-select: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.skill-badge:hover {
  background: rgba(79, 70, 229, 0.26);
  border-color: var(--primaria);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.skill-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.skill-badge-icon {
  font-size: 0.95rem;
  color: var(--primaria);
}

/* ============================================================
   NOVO — Placeholder de Projetos
   ============================================================ */

.projetos-placeholder {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(79, 70, 229, 0.35);
  border-radius: 24px;
  transition: border-color 0.3s ease;
}
.projetos-placeholder:hover {
  border-color: rgba(79, 70, 229, 0.6);
}

.placeholder-icon {
  font-size: 3.8rem;
  color: var(--primaria);
  opacity: 0.45;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.placeholder-title {
  font-family: "Syne", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--claro);
  margin-bottom: 0.75rem;
}

.placeholder-desc {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.5);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.placeholder-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primaria), var(--secundaria));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.placeholder-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}

/* ============================================================
   SOBRE — badge extra (Eng. da Computação)
   ============================================================ */
.sobre-badges .badge {
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVO — skills novo layout
   ============================================================ */
@media (min-width: 600px) and (max-width: 900px) {
  .skills-new-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .skills-new-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   VERSÃO COMERCIAL — Hero, Serviços, Projetos, Diferenciais,
   Stack, Contato aprimorado
   ============================================================ */

/* ===== HERO — layout dois colunas ===== */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  z-index: 1;
  position: relative;
}

.hero-text {
  flex: 1;
  max-width: 580px;
}

.hero-card-wrap {
  flex-shrink: 0;
  padding-bottom: 2rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primaria);
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--claro);
  margin-bottom: 1.25rem;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--primaria), var(--secundaria));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.68);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  background: linear-gradient(135deg, var(--primaria), var(--secundaria));
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.38);
}
.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(79, 70, 229, 0.52);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: transparent;
  color: var(--claro);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}
.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.4);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.trust-item i {
  color: var(--primaria);
  font-size: 0.82rem;
}
.trust-divider {
  opacity: 0.25;
}

/* ===== SECTION DESC (subtítulo das seções) ===== */
.section-desc {
  max-width: 560px;
  margin: 1rem auto 0;
  text-align: center;
  color: rgba(226, 232, 240, 0.5);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ===== SERVIÇOS ===== */
.servicos {
  padding: 7rem 2rem;
}

.servicos-titulo {
  font-family: "Syne", sans-serif;
  font-size: 2.8rem;
  color: var(--claro);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 3.5rem auto 0;
}

.servico-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.servico-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primaria), var(--secundaria));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.servico-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.14);
  transform: translateY(-5px);
}
.servico-card:hover::before {
  transform: scaleX(1);
}

.servico-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.18),
    rgba(124, 58, 237, 0.18)
  );
  border: 1px solid rgba(79, 70, 229, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primaria);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}
.servico-nome {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--claro);
  margin-bottom: 0.65rem;
}
.servico-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.6);
  margin-bottom: 1.2rem;
  flex: 1;
}
.servico-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.servico-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: rgba(226, 232, 240, 0.65);
}

/* ===== PROJETOS — formato case study ===== */
/* Override do grid antigo */
.projetos-caixa {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem;
  max-width: 1000px;
  margin: 3.5rem auto 0;
}

.projeto-case {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.projeto-case::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primaria), var(--secundaria));
}
.projeto-case:hover {
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.12);
  transform: translateX(6px);
}

.case-numero {
  font-family: "Syne", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(79, 70, 229, 0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
  user-select: none;
  padding-top: 0.2rem;
}
.case-content {
  flex: 1;
  min-width: 0;
}

.case-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.case-nome {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--claro);
}
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.case-stack span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: rgba(226, 232, 240, 0.6);
}
.case-contexto {
  font-size: 0.87rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.48);
  margin-bottom: 1.25rem;
  font-style: italic;
  border-left: 2px solid rgba(79, 70, 229, 0.2);
  padding-left: 0.75rem;
}
.case-problema-solucao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.case-bloco {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
}
.case-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: rgba(226, 232, 240, 0.35);
}
.case-label i {
  color: var(--primaria);
  font-size: 0.8rem;
}
.case-bloco p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.72);
}
.case-resultado {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4ade80;
  line-height: 1.5;
}
.case-resultado i {
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ===== PROJETO REAL — com preview screenshot ===== */
.projeto-case-real {
  flex-direction: column;
  padding: 0;
  gap: 0;
}
.projeto-case-real::after {
  display: none;
}
.projeto-case-real:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(79, 70, 229, 0.35) !important;
  box-shadow: 0 20px 52px rgba(79, 70, 229, 0.16) !important;
}

.case-preview-img {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.15),
    rgba(124, 58, 237, 0.15)
  );
}
.case-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s ease;
}
.projeto-case-real:hover .case-preview-img img {
  transform: scale(1.04);
}

.case-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.projeto-case-real:hover .case-preview-overlay {
  opacity: 1;
}

.case-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--primaria), var(--secundaria));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(10px);
  transition:
    transform 0.3s ease 0.04s,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}
.projeto-case-real:hover .case-preview-btn {
  transform: translateY(0);
}

.case-live-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 15, 28, 0.82);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4ade80;
  backdrop-filter: blur(6px);
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulsar-dot 2.2s ease infinite;
}

.case-real-body {
  display: flex;
  gap: 2rem;
  padding: 2rem 2.5rem;
}

@media (max-width: 768px) {
  .case-preview-img {
    height: 200px;
  }
  .case-real-body {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
  }
}

/* ===== DIFERENCIAIS ===== */
.diferenciais {
  padding: 7rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(79, 70, 229, 0.02);
}
.diferenciais-titulo {
  font-family: "Syne", sans-serif;
  font-size: 2.8rem;
  color: var(--claro);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0;
}
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 3.5rem auto 0;
}
.diferencial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.3s ease;
}
.diferencial-card:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12);
  transform: translateY(-4px);
}
.diferencial-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.15),
    rgba(124, 58, 237, 0.15)
  );
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primaria);
  margin-bottom: 1.1rem;
}
.diferencial-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--claro);
  margin-bottom: 0.6rem;
}
.diferencial-card p {
  font-size: 0.87rem;
  line-height: 1.72;
  color: rgba(226, 232, 240, 0.58);
}

/* ===== STACK SECTION ===== */
.stack-section {
  padding: 5rem 2rem 6rem;
}

.stack-titulo {
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  color: rgba(226, 232, 240, 0.55);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

/* ===== CONTATO MELHORADO ===== */
.contato-disponivel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4ade80;
}
.disponivel-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulsar-dot 2.2s ease infinite;
}
@keyframes pulsar-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
}

.contato-link-destaque {
  background: rgba(37, 211, 102, 0.08) !important;
  border-color: rgba(37, 211, 102, 0.25) !important;
}
.contato-link-destaque:hover {
  background: rgba(37, 211, 102, 0.16) !important;
  border-color: rgba(37, 211, 102, 0.45) !important;
}
.contato-icon-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
}

.form-nota {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.3);
  text-align: center;
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* ===== RESPONSIVO COMERCIAL ===== */
@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-card-wrap {
    padding-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.1rem;
  }
  .servicos-titulo,
  .diferenciais-titulo {
    font-size: 2.1rem;
  }
  .servicos-grid {
    grid-template-columns: 1fr;
  }
  .diferenciais-grid {
    grid-template-columns: 1fr;
  }
  .projeto-case {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
  }
  .case-numero {
    width: auto;
    font-size: 2rem;
  }
  .case-problema-solucao {
    grid-template-columns: 1fr;
  }
  .case-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .stack-titulo {
    font-size: 1.5rem;
  }
  .projetos-caixa {
    margin-top: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }
  .hero-cta-primary,
  .hero-cta-secondary {
    justify-content: center;
    width: 100%;
  }
  .servico-card {
    padding: 1.5rem;
  }
  .diferencial-card {
    padding: 1.5rem;
  }
}
/* ============================================================
   PROJETOS — REDESIGN (timeline + tilt cards)
   Adicione este bloco NO FINAL do melhorias.css
   ============================================================ */

/* ── Container principal ── */
.projetos-timeline {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  max-width: 860px !important;
  margin: 3.5rem auto 0 !important;
  padding: 0 !important;
  position: relative;
}

/* Linha vertical da timeline */
.projetos-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(79, 70, 229, 0.4) 10%,
    rgba(79, 70, 229, 0.4) 90%,
    transparent
  );
  pointer-events: none;
}

/* ── Item (linha = número + card) ── */
.pj-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  padding-bottom: 36px;
}

/* ── Coluna do número ── */
.pj-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

/* Ponto da timeline */
.pj-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primaria);
  border: 2px solid var(--escuro);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition:
    transform 0.3s ease,
    box-shadow 0.35s ease;
}

.pj-item:hover .pj-dot {
  transform: scale(1.4);
  box-shadow:
    0 0 0 8px rgba(79, 70, 229, 0.12),
    0 0 20px rgba(79, 70, 229, 0.4);
}

/* Número fantasma de fundo */
.pj-num-bg {
  font-family: "Syne", sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: rgba(79, 70, 229, 0.07);
  letter-spacing: -0.05em;
  margin-top: -8px;
  user-select: none;
  transition: color 0.4s ease;
}

.pj-item:hover .pj-num-bg {
  color: rgba(79, 70, 229, 0.15);
}

/* ── Card ── */
.pj-card {
  margin-left: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.12s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

/* Barra esquerda roxa */
.pj-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primaria), var(--secundaria));
  border-radius: 3px 0 0 3px;
}

.pj-card:hover {
  border-color: rgba(79, 70, 229, 0.32);
  box-shadow: 0 20px 56px rgba(79, 70, 229, 0.14);
}

/* Card do projeto real (sem barra lateral — tem imagem) */
.pj-card--real::after {
  display: none;
}

/* ── Preview de imagem (projeto real) ── */
.pj-preview {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.15),
    rgba(124, 58, 237, 0.15)
  );
}

.pj-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.pj-card--real:hover .pj-preview img {
  transform: scale(1.04);
}

.pj-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pj-card--real:hover .pj-preview-overlay {
  opacity: 1;
}

.pj-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--primaria), var(--secundaria));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transform: translateY(10px);
  transition:
    transform 0.28s ease 0.04s,
    box-shadow 0.28s ease;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

.pj-card--real:hover .pj-preview-btn {
  transform: translateY(0);
}

/* Badge "No ar" */
.pj-live-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4ade80;
  backdrop-filter: blur(6px);
}

/* ── Corpo do card ── */
.pj-body {
  padding: 1.75rem 2rem 1.75rem 2.25rem;
}

.pj-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.pj-nome {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--claro);
  line-height: 1.25;
}

/* Stack tags */
.pj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-items: center;
}

.pj-stack span {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: rgba(226, 232, 240, 0.6);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.pj-card:hover .pj-stack span {
  background: rgba(79, 70, 229, 0.18);
  border-color: rgba(79, 70, 229, 0.38);
  color: rgba(200, 195, 255, 0.9);
}

/* Contexto */
.pj-contexto {
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(226, 232, 240, 0.45);
  font-style: italic;
  border-left: 2px solid rgba(79, 70, 229, 0.2);
  padding-left: 0.75rem;
  margin-bottom: 1.2rem;
}

/* Grid problema / solução */
.pj-ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.pj-bloco {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  transition: border-color 0.3s ease;
}

.pj-card:hover .pj-bloco {
  border-color: rgba(79, 70, 229, 0.18);
}

.pj-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.pj-label i {
  font-size: 0.78rem;
}

.pj-label--problema {
  color: #f87171;
}
.pj-label--problema i {
  color: #f87171;
}

.pj-label--solucao {
  color: rgba(79, 70, 229, 0.85);
}
.pj-label--solucao i {
  color: var(--primaria);
}

.pj-bloco p {
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.7);
}

/* Resultado */
.pj-resultado {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4ade80;
  line-height: 1.55;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.pj-card:hover .pj-resultado {
  background: rgba(34, 197, 94, 0.11);
  border-color: rgba(34, 197, 94, 0.3);
}

.pj-resultado i {
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ── Efeito tilt 3D via JS ── */
.pj-card[style*="rotateY"] {
  transition: none !important;
}

/* ── Responsivo ── */
@media (max-width: 768px) {
  .projetos-timeline::before {
    left: 19px;
  }

  .pj-item {
    grid-template-columns: 52px 1fr;
    padding-bottom: 24px;
  }

  .pj-num-bg {
    font-size: 52px;
  }

  .pj-card {
    margin-left: 10px;
  }

  .pj-preview {
    height: 200px;
  }

  .pj-body {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  }

  .pj-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pj-ps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .projetos-timeline::before {
    display: none;
  }
  .pj-num-col {
    display: none;
  }
  .pj-item {
    grid-template-columns: 1fr;
  }
  .pj-card {
    margin-left: 0;
  }
}
/* ============================================================
   melhorias-animacoes.css
   Adicione <link rel="stylesheet" href="css/melhorias-animacoes.css">
   no <head> depois dos outros CSS
   ============================================================ */

/* ========== 1. PRELOADER ========== */
body.no-scroll {
  overflow: hidden;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0f1c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

#preloader.preloader--saindo {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.preloader-logo {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: -0.03em;
  animation: preloader-pulse 1.2s ease-in-out infinite alternate;
}

.preloader-logo .logo-bracket {
  color: #4f46e5;
}
.preloader-logo .logo-dot {
  color: #7c3aed;
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 999px;
  animation: preloader-load 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.1s;
}

@keyframes preloader-load {
  to {
    width: 100%;
  }
}

@keyframes preloader-pulse {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

/* ========== 2. TYPEWRITER ========== */
.hero-headline .typewriter-linha {
  display: block;
}

#typewriter-word {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline;
}

/* Cursor piscante */
#typewriter-word::after {
  content: "|";
  -webkit-text-fill-color: #4f46e5;
  color: #4f46e5;
  margin-left: 2px;
  animation: cursor-blink 0.75s step-end infinite;
  font-weight: 300;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ========== 3. MARQUEE / HORIZONTAL SCROLLER ========== */
.stack-cloud--marquee {
  overflow: hidden !important;
  padding: 0 !important;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-wrapper {
  overflow: hidden;
  padding: 0.5rem 0;
}

.marquee-track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track .skill-badge {
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% / 3));
  }
}

/* ========== 4. ANIMATED NUMBERS ========== */
.stat-num {
  transition: none;
}

/* Efeito de "pulso" quando o número termina */
@keyframes num-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.stat-num.animou {
  animation: num-pop 0.4s ease-out;
}

/* ========== 5. ICON SLIDE IN BUTTON ========== */
.btn-slide-icon {
  overflow: hidden;
  position: relative;
}

.btn-slide-icon i {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-slide-icon:hover i {
  transform: translateX(3px) scale(1.15);
}

/* Shimmer no hover */
.btn-slide-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0s;
}

.btn-slide-icon:hover::after {
  left: 160%;
  transition: left 0.55s ease;
}

/* ========== 6. CONIC BORDER nos cards ========== */
.conic-card {
  position: relative;
  isolation: isolate;
}

/* Spotlight de luz seguindo o mouse */
.conic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(79, 70, 229, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.conic-card:hover::before {
  opacity: 1;
}

/* Borda brilhante seguindo o mouse */
.conic-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(79, 70, 229, 0.45),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.conic-card:hover::after {
  opacity: 1;
}

/* Garante que o conteúdo fique acima do efeito */
.conic-card > * {
  position: relative;
  z-index: 1;
}

/* ========== 7. PARTICLES CANVAS ========== */
#particles-canvas {
  /* já estilizado inline no JS, mas garantimos aqui */
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Hero precisa de position relative para o canvas */
.cabecalho {
  position: relative;
}

/* Garante que o hero-inner fica acima das partículas */
.hero-inner,
.scroll-indicator {
  position: relative;
  z-index: 1;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
  .marquee-track {
    animation-duration: 20s;
  }

  /* No mobile, desativa conic e particles (já feito no JS) */
  .conic-card::before,
  .conic-card::after {
    display: none;
  }

  #particles-canvas {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  #typewriter-word::after {
    animation: none;
  }
  .preloader-fill {
    animation: none;
    width: 100%;
  }
  #particles-canvas {
    display: none;
  }
}
