/* Importação da fonte para o estilo "Engineering/Racing" */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap");

:root {
  /* Cores e Identidade */
  --brand-blue: #0070f3;
  --surface-dark: #050505;
  --surface-card: #111111;
  --surface-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1a1;
  --text-tertiary: #555555;
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Animações Cinza Metálico */
  --anim-speed: 0.5s;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background-color: var(--surface-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER REFINADO ===== */
.header {
  width: 100%;
  padding: 1.5rem 10%;
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* ===== NAVIGATION ===== */
.nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav a:hover {
  color: var(--text-primary);
}

/* ===== HAMBURGER ===== */
.hamburger {
  width: 25px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 3px;
  transition: 0.3s var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO (ESTILO LANDO NORRIS) ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  background: radial-gradient(circle at center, #111 0%, #050505 100%);
  position: relative;
}

/* Elemento decorativo de fundo */
.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--brand-blue);
  filter: blur(150px);
  opacity: 0.15;
  z-index: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  z-index: 1;
}

.btn-cta {
  padding: 1rem 2.5rem;
  background: var(--brand-blue);
  color: var(--text-primary);
  border-radius: 4px; /* Pontas mais quadradas para um ar mais sério/moderno */
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(0, 112, 243, 0.2);
  z-index: 1;
}

.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 112, 243, 0.4);
}

/* Efeito de Scroll Suave nativo */
html {
  scroll-behavior: smooth;
}

/* Container da setinha flutuante */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--text-secondary);
  opacity: 0.7;
  animation: float 2s infinite ease-in-out;
  pointer-events: none; /* Para não atrapalhar cliques próximos */
}

/* Animação de flutuar (subir e descer) */
@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* Feedback visual ao clicar no botão (Animação extra) */
.btn-cta:active {
  transform: scale(0.95);
  transition: 0.1s;
}

/* ===== SEÇÕES ===== */
.section {
  padding: 100px 20px 60px;
  max-width: 900px;
  margin: auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section p,
.section ul,
.section a {
  font-size: 1rem;
  color: #cccccc;
}

/* Serviços */

.servicos-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start; /* 🔥 Evita que os cards fiquem com a mesma altura */
}

.card {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

.card:hover {
  background-color: #292929;
}

.card-header {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1rem; /* 🔽 Reduzi um pouco o tamanho */
  word-break: break-word; /* ✅ Evita quebra ruim em textos longos */
}

.card-content {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #cccccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Quando estiver expandido */

.card.expanded .card-content {
  max-height: 200px;
}

/* Seção de Projetos Refatorada */
.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.categoria-titulo {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 40px 0 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* O Card Moderno */
.card-moderno {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-moderno:hover {
  background-color: var(--surface-hover);
  border-color: var(--brand-blue);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Badge estilizado com sua cor de marca */
.badge {
  width: fit-content;
  background: rgba(0, 112, 243, 0.1);
  color: var(--brand-blue);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.card-moderno h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card-moderno p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1; /* Garante que o botão fique sempre embaixo */
}

/* Botão do Projeto */
.btn-projeto-moderno {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-projeto-moderno:hover {
  gap: 12px;
  filter: brightness(1.2);
}

/* Animação para os cards extras */
.extra {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Botão Ver Mais */
.centered-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-vermais {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.btn-vermais:hover {
  background: var(--brand-blue);
  color: var(--text-primary);
  border-color: var(--brand-blue);
}

/* Botão - Mantendo suas cores originais */
.btn-vermais {
  margin: 15px auto 40px;
  display: block;
  padding: 10px 20px;
  background-color: #2e2e2e; /* Sua cor */
  color: #ccc; /* Sua cor */
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-vermais:hover {
  background-color: #3a3a3a;
  color: #fff;
  transform: scale(1.05);
}

/* --- LÓGICA DE EXIBIÇÃO E ANIMAÇÃO --- */

/* Container da Timeline */
.timeline {
  position: relative;
  margin: 40px 0 45px 15px; /* Aumentei levemente a margem esquerda */
  padding-left: 45px;
  min-height: 10px;
}

/* A LINHA - Desenho vertical */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background-color: #444; /* Cinza metálico */
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.timeline.animate::before {
  height: 100% !important;
}

/* ITENS - Entrada suave */
.timeline-item {
  position: relative;
  margin-bottom: 45px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.6s ease-out;
  z-index: 2;
}

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

/* BOLINHA - Centralizada exatamente na linha */
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 22px;
  height: 22px;
  background-color: #0b0b0b;
  border: 2px solid #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Estilo do Check para itens completos */
.timeline-dot i {
  color: #fff;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item.completed .timeline-dot i {
  opacity: 1;
}

/* Efeito cascata (Delays) */
.timeline.animate .timeline-item:nth-child(1) {
  transition-delay: 0.3s;
}
.timeline.animate .timeline-item:nth-child(2) {
  transition-delay: 0.7s;
}
.timeline.animate .timeline-item:nth-child(3) {
  transition-delay: 1.1s;
}

/* Textos da Timeline */
.timeline-status {
  font-size: 0.75rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content h3 {
  margin: 5px 0;
  color: #fff;
  font-size: 1.2rem;
}

.timeline-content .instituicao {
  color: #ccc;
  font-size: 0.95rem;
}

/* Divisor para curriculo */

.divisor-recursos {
  margin: 60px 0 30px 0;
  padding-left: 0;
}

.divisor-tag {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.divisor-titulo {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.divisor-subtitulo {
  font-size: 0.9rem;
  color: #888;
  max-width: 500px;
  line-height: 1.5;
}

/* Botões - Suas cores preservadas */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.resume-card {
  background: #141414;
  border: 1px solid #222;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  gap: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.resume-card:hover {
  border-color: #444;
  background: #1a1a1a;
}

.resume-icon {
  font-size: 1.5rem;
  color: #888;
}

.resume-info h4 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.resume-info p {
  font-size: 0.8rem;
  color: #666;
  margin: 5px 0 15px;
}

.resume-link {
  font-size: 0.85rem;
  text-decoration: none;
  color: #ccc;
  font-weight: bold;
}

.resume-link.highlight {
  color: #00d2ff;
}

/* ===== CONTATOS ===== */
:root {
  --color-linkedin: #0077b5;
  --color-github: #2ea44f; /* Um verde GitHub mais vibrante */
  --color-email: #ea4335;
  --color-whatsapp: #25d366;
}

.contato-icones {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  padding: 10px;
  font-size: 1.8rem;
}

.contato-btn {
  position: relative;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05); /* Fundo sutil */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: visible; /* Para permitir que o brilho saia do botão */
  backdrop-filter: blur(5px);
}

/* Camada de Brilho (Glow) que aparece no Hover */
.contato-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: all 0.5s ease;
  filter: blur(15px);
}

.contato-btn:hover {
  transform: translateY(-10px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.contato-btn:hover::before {
  opacity: 0.6;
}

.contato-btn i {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilização Individual com Gradientes e Glow */

/* LinkedIn */
.btn-linkedin:hover {
  background: var(--color-linkedin);
}
.btn-linkedin::before {
  background: var(--color-linkedin);
}

/* GitHub */
.btn-github:hover {
  background: #333;
}
.btn-github::before {
  background: #333;
}

/* Email */
.btn-email:hover {
  background: var(--color-email);
}
.btn-email::before {
  background: var(--color-email);
}

/* WhatsApp */
.btn-whatsapp:hover {
  background: var(--color-whatsapp);
}
.btn-whatsapp::before {
  background: var(--color-whatsapp);
}

/* Animação de Flutuação Suave nos ícones */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

.contato-icones a {
  animation: float 3s ease-in-out infinite;
}

/* Delay para cada ícone não subir ao mesmo tempo */
.contato-icones a:nth-child(2) {
  animation-delay: 0.5s;
}
.contato-icones a:nth-child(3) {
  animation-delay: 1s;
}
.contato-icones a:nth-child(4) {
  animation-delay: 1.5s;
}

.footer {
  background-color: #080808;
  padding: 60px 10% 30px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 50px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.footer-brand .logo-img {
  height: 120px; 
  width: auto;
  display: block;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 15px;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.footer-social-mini {
  display: flex;
  gap: 20px;
}

.footer-social-mini a {
  color: var(--text-tertiary);
  transition: var(--transition);
}

.footer-social-mini a:hover {
  color: var(--brand-blue);
}

/* ===== POPUP WHATSAPP ===== */
.whatsapp-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.whatsapp-popup {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 30px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-popup-overlay.active .whatsapp-popup {
  transform: translateY(0);
  opacity: 1;
}

.whatsapp-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #777;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-popup-close:hover {
  color: #333333;
}

.whatsapp-popup-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.whatsapp-popup-icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.whatsapp-popup-title {
  color: #444444;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.whatsapp-popup-subtitle {
  color: #333;
  font-size: 14px;
  margin: 0 0 20px;
}

.whatsapp-popup-message {
  background-color: #f1f8e9;
  border-left: 4px solid #25d366;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
}

.whatsapp-popup-btn {
  width: 100%;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.whatsapp-popup-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
  .nav {
    position: static;
    height: auto;
    width: auto;
    background: none;
    overflow: visible;
  }

  .nav ul {
    flex-direction: row;
    gap: 30px;
    opacity: 1;
    transform: translateY(0);
  }

  .hamburger {
    display: none;
  }
}

/*  RESPONSIVO para celulares */

@media (max-width: 768px) {
  .logo-img {
    height: 50px;
  }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0; /* Inicia fechado */
    background-color: rgba(5, 5, 5, 0.98);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: height 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
  }

  .nav.show {
    height: 100vh; /* Ocupa a tela inteira ao abrir */
  }

  .nav ul {
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    text-align: center;
    transform: translateY(-20px);
    transition: 0.3s ease;
  }

  .nav.show ul {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  .nav a {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .servicos-cards {
    grid-template-columns: 1fr;
  }

  .card-header {
    font-size: 0.95rem;
  }

  .card-content {
    font-size: 0.85rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center; /* Centraliza a logo no celular */
  }

  .footer-brand p {
    margin: 15px auto;
  }

  .footer-copy {
    flex-direction: column;
    gap: 15px;
  }
}
