/* Tailwind base override: fonte global */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  /* Previne scroll horizontal acidental */
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.section-diagonal {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  position: relative;
}

/* Adiciona um elemento decorativo sutil */
.section-diagonal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
}

.glass-card,
.glass-card-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.05);
  /* Sombra mais suave inicial */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow:
    0 25px 40px -10px rgba(0, 0, 0, 0.1),
    0 15px 15px -8px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* Service Card Glass Optimization */
.service-card-premium {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card-premium:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: rgba(15, 23, 42, 0.55);
}

/* Magnetic Icon Effect */
.magnetic-icon {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.group:hover .magnetic-icon {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(1.2);
}

/* Hero overlay e imagem de fundo industrial */
.hero-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  /* Efeito de zoom lento continuo pode ser muito pesado, vamos suavizar */
  animation: heroPulse 20s ease-in-out infinite alternate;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  /* Gradiente mais rico e profundo */
  background:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%),
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.2), transparent 50%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.2), transparent 50%);
  mix-blend-mode: normal;
  /* Alterei para normal para ter mais controle */
}

@keyframes heroPulse {
  0% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1.1);
  }
}

/* Grid de estatísticas */
.stats-grid {
  /* background-image: radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), transparent 60%); */
}

.stats-band {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.section-dark-cta {
  background: #0f172a;
  /* Slate 900 */
  position: relative;
  overflow: hidden;
}

/* Campos do formulário */
.form-dark input,
.form-dark select,
.form-dark textarea {
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  color: #334155;
  transition: all 0.2s;
}

.form-dark input::placeholder,
.form-dark textarea::placeholder {
  color: #94a3b8;
}

.form-dark input:focus,
.form-dark select:focus,
.form-dark textarea:focus {
  background-color: #ffffff;
  border-color: #10b981;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Imagens de projetos */
.project-image {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  position: relative;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  opacity: 0.6;
}

/* Badge suave */
.soft-badge {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  color: #059669;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilitários extras */
.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* --- NOVO: IDENTIDADE CORPORATIVA --- */
.corporate-border {
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  border-radius: 1rem;
}

.corporate-border::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-color);
  z-index: -1;
  opacity: 0.1;
  border-radius: inherit;
  transition: all 0.4s ease;
}

.corporate-border:hover::after {
  transform: translate(5px, 5px);
  opacity: 0.3;
}

.white-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.institutional-shadow {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}