/* ============================================================
   FILIPI SOUSA — Criação de sites profissionais
   Tema escuro sofisticado, minimalista e responsivo.
   ============================================================ */

:root {
  --bg: #08080a;
  --bg-alt: #0a0a0d;
  --card: #111114;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #8a8a93;
  --accent: #6366f1;
  --accent-2: #a78bfa;
  --whatsapp: #25d366;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.05rem; }

.eyebrow { color: var(--accent-2); font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 12px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ---------- Animação de revelação (controlada pelo JS) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { background: rgba(8, 8, 10, 0.85); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  /* background: linear-gradient(135deg, #818cf8, #8b5cf6); */
  /* color: #fff; font-size: 13px; font-weight: 700; */
}
.logo-mark-lg { width: 96px; height: 96px; border-radius: 50%; font-size: 34px; margin-bottom: 20px; }

.Sobre-foto {
  border-radius:2%;
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: #d4d4d8; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta-mobile { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-light { background: #fff; color: var(--bg); }
.btn-light:hover { background: #e4e4e7; }
.btn-ghost { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; margin-top: 24px; }
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99,102,241,0.18), transparent 70%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; color: #d4d4d8;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 24px 0; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #818cf8, #c4b5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #a1a1aa; font-size: 1.05rem; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }

.hero-visual { position: relative; }
.device-frame {
  position: relative; z-index: 1;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.device-frame img { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.floating-card {
  position: absolute; bottom: -20px; left: -20px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(17,17,20,0.92); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; backdrop-filter: blur(8px);
}
.floating-card strong { display: block; font-size: 0.9rem; }
.floating-card small { color: var(--muted); font-size: 0.75rem; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.about-photo {
  aspect-ratio: 4/5; border-radius: 20px; border: 1px solid var(--border);
  background: var(--card); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 8px;
}
.about-photo p { color: var(--muted); font-size: 0.85rem; max-width: 260px; margin-top: 4px; }
.about-text > p { color: #a1a1aa; margin-top: 20px; }
.about-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.check {
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  border-radius: 12px; padding: 12px 16px; font-size: 0.875rem; color: #e4e4e7;
}

/* ---------- Portfólio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter-btn {
  border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: #d4d4d8;
  border-radius: 999px; padding: 8px 18px; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.filter-btn.active { background: #fff; color: var(--bg); border-color: #fff; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.3s;
}
.project:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); }
.project-img { position: relative; overflow: hidden; }
.project-tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  border-radius: 999px; padding: 4px 10px; font-size: 0.7rem; color: #e4e4e7;
}

/* ---------- Carrossel dos cards de projeto ---------- */
.carousel { position: relative; width: 100%; aspect-ratio: 1568/882; overflow: hidden; }
.carousel-track {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.5s ease;
}
.carousel-track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
  z-index: 3;
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: rgba(0,0,0,0.8); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.45); transition: background 0.2s, width 0.2s;
}
.carousel-dot.active { background: #fff; width: 16px; border-radius: 3px; }
.project-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.project-cat { color: var(--accent-2); font-size: 0.75rem; font-weight: 600; }
.project-body h3 { margin: 8px 0; font-size: 1.05rem; }
.project-body p { color: var(--muted); font-size: 0.875rem; flex: 1; }
.project-link { margin-top: 16px; color: #fff; text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.project-link:hover { text-decoration: underline; }
.projects-empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.step { position: relative; text-align: left; }
.step-num {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; position: relative; z-index: 1; margin-bottom: 20px;
}
.step p { color: var(--muted); font-size: 0.875rem; margin-top: 8px; }

/* ---------- Cards (Serviços / Diferenciais) ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; height: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: rgba(129,140,248,0.4); background: rgba(255,255,255,0.03); }
.card .icon { font-size: 1.4rem; display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: rgba(99,102,241,0.15); align-items: center; justify-content: center; }
.card p { color: var(--muted); font-size: 0.875rem; margin-top: 10px; }
.card-row { display: flex; gap: 16px; align-items: flex-start; }
.card-row h3, .card-row p { margin-top: 0; }
.card-row h3 { margin-bottom: 6px; }

/* ---------- Tecnologias ---------- */
.techs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.techs span {
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  border-radius: 999px; padding: 8px 18px; font-size: 0.875rem; color: #e4e4e7;
}

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; height: 100%;
}
.plan-highlight { border-color: rgba(129,140,248,0.5); background: linear-gradient(180deg, rgba(99,102,241,0.1), transparent 60%), var(--card); }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: 0.7rem; font-weight: 500; white-space: nowrap;
}
.plan p { color: var(--muted); font-size: 0.875rem; margin-top: 8px; }
.plan ul { list-style: none; margin: 20px 0; flex: 1; display: grid; gap: 10px; }
.plan li { color: #d4d4d8; font-size: 0.875rem; }
.plan-price { font-size: 0.9rem; font-weight: 500; margin-bottom: 16px; }
.plan .btn { margin-top: auto; }

/* ---------- Depoimentos ---------- */
.testimonial {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; display: flex; flex-direction: column; height: 100%;
}
.testimonial blockquote { flex: 1; color: #e4e4e7; }
.testimonial blockquote::before { content: "“"; display: block; font-size: 2rem; color: rgba(129,140,248,0.6); line-height: 1; margin-bottom: 12px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #8b5cf6);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 0.875rem;
}
.testimonial small { color: var(--muted); display: block; }

/* ---------- FAQ ---------- */
#faqList { display: grid; gap: 12px; }
.faq { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.9rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #d4d4d8; font-size: 1.1rem; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 20px 20px; color: var(--muted); font-size: 0.875rem; }

/* ---------- CTA final ---------- */
.cta {
  position: relative; text-align: center; overflow: hidden;
  border: 1px solid var(--border); border-radius: 28px;
  background: radial-gradient(50% 60% at 50% 0%, rgba(99,102,241,0.25), transparent 70%), var(--card);
  padding: 64px 32px;
}
.cta p { color: #a1a1aa; max-width: 480px; margin: 16px auto 0; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-grid h2 { margin: 12px 0; }
.contact-grid > div > p { color: #a1a1aa; margin-top: 16px; }
.contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; display: grid; gap: 16px;
}
.contact-form label { font-size: 0.75rem; font-weight: 500; color: #d4d4d8; display: grid; gap: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; color: var(--text);
  font: inherit; font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(129,140,248,0.6); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #52525b; }
/* Corrige o menu suspenso do <select>: o navegador usa fundo branco por padrão,
   então forçamos as cores do tema pra não ficar texto claro em fundo claro */
.contact-form select option {
  background: var(--card);
  color: var(--text);
}

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer p { color: var(--muted); font-size: 0.875rem; margin-top: 12px; max-width: 260px; }
.footer h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #71717a; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: #d4d4d8; text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem;
}
.footer small { color: #71717a; font-size: 0.72rem; display: block; margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px; text-align: center; }
.footer-bottom p { color: #71717a; font-size: 0.75rem; max-width: none; }

/* ============================================================
   RESPONSIVO — tablet e celular
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid, .cards-3, .plans { grid-template-columns: repeat(2, 1fr); }
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .floating-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Carrossel: sem hover no touch, então as setas ficam sempre visíveis */
  .carousel-arrow { opacity: 1; width: 30px; height: 30px; font-size: 1rem; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 120px 0 72px; }

  /* Menu mobile */
  .menu-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,8,10,0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-cta-mobile { display: block; padding-top: 16px; }

  .projects-grid, .cards-3, .cards-4, .plans, .steps, .about-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 48px 24px; }
  .about-photo { max-width: 380px; margin: 0 auto; }
}

/* Acessibilidade: movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}