@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   DESIGN TOKENS — DARK THEME
   Paleta escura com acento laranja/âmbar
   ============================================= */
:root {
  --bg-color: #0a0a0a;
  --bg-deep: #050505;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --primary-color: #fe6019;       /* laranja vibrante */
  --secondary-color: #f97316;     /* laranja âmbar */
  --accent-color: #fb923c;        /* laranja claro */
  --text-color: #f1f5f9;          /* quase branco */
  --text-muted: #94a3b8;          /* cinza azulado médio */
  --text-dim: #64748b;            /* cinza suave */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(254, 96, 25, 0.3);
  --font-main: 'Outfit', sans-serif;
  --transition-speed: 0.3s;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed);
}

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

/* =============================================
   BACKGROUND — RADIAL GLOW FIXO
   ============================================= */
.bg-radial {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(254, 96, 25, 0.12) 0%,
    rgba(10, 10, 10, 0) 70%
  );
  pointer-events: none;
}

/* =============================================
   HEADER / NAVEGAÇÃO — GLASSMORPHISM ESCURO
   ============================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-speed) ease;
}

header.scrolled {
  background-color: rgba(10, 10, 10, 0.92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span.brand-dot {
  color: var(--primary-color);
  font-weight: 900;
}

.logo-orange {
  color: var(--primary-color);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  display: inline-block;
  transition: color var(--transition-speed) ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-color);
}

.nav-links a.active {
  color: var(--primary-color) !important;
}

.btn-contact-nav {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--transition-speed) ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-contact-nav:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(254, 96, 25, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-muted);
  transition: var(--transition-speed);
  border-radius: 2px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

.hero-container {
  max-width: 860px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Badge de status ativo */
.hero-subtitle {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 8px 18px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-subtitle .dot-container {
  position: relative;
  display: flex;
  height: 8px;
  width: 8px;
  flex-shrink: 0;
}

.hero-subtitle .dot-ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.75;
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-subtitle .dot-main {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  height: 8px;
  width: 8px;
  background-color: #22c55e;
}

/* Título Hero */
.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -2.5px;
  color: var(--text-color);
}

.hero h1 span.color-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero h1 span.color-alt {
  background: linear-gradient(135deg, #f59e0b 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   BOTÕES
   ============================================= */
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--primary-color);
  display: inline-block;
  box-shadow: 0 4px 16px rgba(254, 96, 25, 0.2);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(254, 96, 25, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-color);
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-speed) ease;
  background-color: rgba(255, 255, 255, 0.05);
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-primary-sm {
  background-color: var(--primary-color);
  color: #fff;
  padding: 9px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--primary-color);
  transition: all var(--transition-speed);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary-sm:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 6px 16px rgba(254, 96, 25, 0.3);
  transform: translateY(-1px);
}

.btn-outline-sm {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.btn-outline-sm:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: rgba(254, 96, 25, 0.05);
}

/* =============================================
   SEÇÃO DE PORTFÓLIO
   ============================================= */
.portfolio-section {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  color: var(--text-color);
}

.section-header h2 span {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
}

/* =============================================
   GRID DE PROJETOS
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Card de Projeto */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-speed) ease-in-out;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(254, 96, 25, 0.18);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(254, 96, 25, 0.08);
}

/* =============================================
   IMAGEM DO CARD — EFEITO DEPTH-BLUR
   ============================================= */
.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  margin: 8px 8px 0 8px;
  background-color: #111;
}

/* Imagem de fundo desfocada (cria o brilho de profundidade) */
.project-image .bg-blur-img {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(28px);
  opacity: 0.55;
  z-index: 0;
  transform: scale(1.1);
  transition: opacity 0.5s ease;
}

.project-card:hover .bg-blur-img {
  opacity: 0.75;
}

/* Imagem principal limpa */
.project-image .main-project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 10;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px;
}

.project-card:hover .main-project-img {
  transform: scale(1.04);
}

/* Overlay escuro suave sobre a imagem */
.project-image .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0) 40%,
    rgba(10, 10, 10, 0.55) 100%
  );
  z-index: 5;
}

/* Badge de categoria */
.project-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-muted);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 9999px;
  letter-spacing: 0.6px;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Conteúdo inferior do card */
.project-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
  letter-spacing: -0.3px;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Cabeçalho de bloco de categoria */
.category-block h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.category-block h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 9999px;
}

/* =============================================
   SEÇÃO PARCEIROS
   ============================================= */
.partners {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  justify-content: center;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: all var(--transition-speed);
}

.partner-card:hover {
  border-color: rgba(254, 96, 25, 0.2);
  background: rgba(254, 96, 25, 0.04);
  transform: translateY(-3px);
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all var(--transition-speed);
}

.partner-card:hover img {
  opacity: 0.85;
  filter: grayscale(0%);
}

/* =============================================
   SEÇÃO CONTATO
   ============================================= */
.contact-section {
  padding: 120px 24px;
  position: relative;
  z-index: 2;
}

/* Card de WhatsApp */
.whatsapp-card {
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 460px;
  width: 100%;
  transition: all var(--transition-speed) ease;
}

.whatsapp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 211, 102, 0.2);
  box-shadow: 0 24px 60px rgba(37, 211, 102, 0.06);
}

.whatsapp-icon-wrapper {
  background-color: rgba(37, 211, 102, 0.1);
  color: #25D366;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(37, 211, 102, 0.15);
}

.whatsapp-card:hover .whatsapp-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.whatsapp-number-link {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.5px;
  transition: color var(--transition-speed) ease;
  display: inline-block;
  margin-top: 4px;
}

.whatsapp-number-link:hover {
  color: #25D366;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 9999px;
  width: 100%;
  transition: all var(--transition-speed) ease;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
  cursor: pointer;
}

.btn-whatsapp:hover {
  background-color: #1ebd59;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo-orange {
  color: var(--primary-color);
}

.footer-logo span.brand-dot {
  color: var(--primary-color);
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* =============================================
   PROJECT DETAIL PAGE
   ============================================= */
.project-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-top: 20px;
  position: relative;
  z-index: 5;
}

.project-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.2rem;
    letter-spacing: -2px;
  }

  .project-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  header {
    width: 100%;
    top: 0;
    left: 0;
  }

  header.scrolled {
    top: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }

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

  .btn-contact-nav {
    display: none;
  }

  .hero {
    padding: 140px 20px 80px 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1.5px;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

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

  .section-header h2 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .nav-container {
    padding: 14px 20px;
  }
}
