
/* =============================================
   SegCam I.A - Custom Styles
   ============================================= */

* { scroll-behavior: smooth; }

html {
  /* overflow-x gerenciado pelo #page-content para não prender o sticky header */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0f;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #2adddd; border-radius: 3px; }

/* =============================================
   BACKGROUNDS
   ============================================= */

.bg-hero {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(42,221,221,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 40%, rgba(59,130,246,0.08) 0%, transparent 50%),
    #0a0a0f;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(42,221,221,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,221,221,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-section-dark {
  background: #0d1117;
}

.bg-cta {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(42,221,221,0.08) 0%, rgba(59,130,246,0.04) 40%, transparent 70%),
    #0a0a0f;
}

/* =============================================
   TEXT EFFECTS
   ============================================= */

.gradient-text {
  background: linear-gradient(135deg, #2adddd 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 30px rgba(42,221,221,0.5);
}

/* =============================================
   GLOW EFFECTS
   ============================================= */

.glow-green {
  box-shadow: 0 0 20px rgba(42,221,221,0.35), 0 0 60px rgba(42,221,221,0.12);
}

.glow-green-sm {
  box-shadow: 0 0 12px rgba(42,221,221,0.3), 0 0 30px rgba(42,221,221,0.08);
}

/* =============================================
   GLASSMORPHISM
   ============================================= */

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

.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.35s ease;
  overflow: hidden;
}

.glass-card:hover {
  background: rgba(42,221,221,0.06);
  border-color: rgba(42,221,221,0.25);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 20px rgba(42,221,221,0.08);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  background: linear-gradient(135deg, #2adddd 0%, #3b82f6 100%);
  color: #0a0a0f;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59,130,246,0.4), 0 0 20px rgba(42,221,221,0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: #2adddd;
  color: #2adddd;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42,221,221,0.15);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #2adddd 0%, #3b82f6 100%);
  color: #0a0a0f;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1ac8c8 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59,130,246,0.4), 0 0 20px rgba(42,221,221,0.2);
}

/* =============================================
   NAVBAR
   ============================================= */

#navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
  background: rgba(10,10,15,0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42,221,221,0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-link {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: #2adddd;
}

/* =============================================
   MOBILE MENU
   ============================================= */

#mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(42,221,221,0.1);
  padding: 1.5rem;
  gap: 1rem;
}

#mobile-menu.open { display: flex; }

/* =============================================
   ICON BOXES
   ============================================= */

.icon-box {
  background: linear-gradient(135deg, rgba(42,221,221,0.1), rgba(59,130,246,0.08));
  border: 1px solid rgba(42,221,221,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box-light {
  background: linear-gradient(135deg, rgba(42,221,221,0.08), rgba(59,130,246,0.06));
  border: 1px solid rgba(42,221,221,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   CARDS LIGHT SECTIONS
   ============================================= */

.solution-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all 0.35s ease;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: #17b8b8;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(23,184,184,0.2);
}

.project-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

/* =============================================
   STEP INDICATOR
   ============================================= */

.step-number {
  background: linear-gradient(135deg, #2adddd, #17b8b8);
  color: #0a0a0f;
  font-weight: 900;
  font-size: 1.1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-connector {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(42,221,221,0.4), rgba(42,221,221,0.05));
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all 0.3s ease;
  animation: pulse-wpp 2.5s ease-in-out infinite;
}

.whatsapp-float a:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 35px rgba(37,211,102,0.65);
}

/* =============================================
   BADGE / TAG
   ============================================= */

.badge-neon {
  background: rgba(42,221,221,0.1);
  border: 1px solid rgba(42,221,221,0.3);
  color: #2adddd;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.badge-gray {
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes reveal-fallback {
  to { opacity: 1; transform: none; }
}
.reveal, .reveal-left, .reveal-right {
  animation: reveal-fallback 0.7s ease 2s forwards;
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* =============================================
   KEYFRAMES
   ============================================= */

@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 4px 35px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.animate-float { animation: float 5s ease-in-out infinite; }
.animate-glow  { animation: glow-pulse 3s ease-in-out infinite; }

/* =============================================
   DIVIDER
   ============================================= */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,221,221,0.25), transparent);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .whatsapp-float { bottom: 20px; right: 20px; }
  .whatsapp-float a { width: 54px; height: 54px; }
}

@media (max-width: 1023px) {
  img, video, iframe, svg { max-width: 100%; }
  main p.leading-relaxed { text-align: justify; }
  #recursos .glass-card .icon-box { margin-left: auto; margin-right: auto; }
  #recursos .glass-card h3, #projetos .glass-card h3 { text-align: center; }
  .solution-card.flex { align-items: center; }
  .solution-card.flex p { text-align: justify; width: 100%; }
  .solution-card.flex a { justify-content: center; }
  #recursos .glass-card .mt-4 { text-align: center; }
  #diferenciais .solution-card .icon-box-light { margin-left: auto; margin-right: auto; }
  #diferenciais .solution-card h3 { text-align: center; }
  #projetos .glass-card .flex.items-center.gap-3 { justify-content: center; }
  #projetos .glass-card .border-t p { text-align: center; }
  #navbar nav { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
}
  

    /* Offset do header fixo — inline para garantir funcionamento independente do style.css */
    #page-content { padding-top: 175px !important; }
    @media (min-width: 1024px) {
      #page-content { padding-top: 80px !important; }
    }

    @media (max-width: 1023px) {

      /* Texto justificado em parágrafos de conteúdo */
      main p.leading-relaxed { text-align: justify !important; }

      /* ── Recursos (Tecnologia Real) ──────────────────── */
      #recursos .glass-card .icon-box {
        margin-left: auto !important;
        margin-right: auto !important;
      }
      #recursos .glass-card h3   { text-align: center !important; }
      #recursos .glass-card .mt-4 { text-align: center !important; }

      /* ── Diferenciais (Por que a SegCam I.A) ─────────── */
      #diferenciais .icon-box {
        margin-left: auto !important;
        margin-right: auto !important;
      }
      #diferenciais h3 { text-align: center !important; }

      /* ── Projetos (Casos Reais) ───────────────────────── */
      #projetos .glass-card > div:first-child {
        justify-content: center !important;
      }
      #projetos .glass-card h3           { text-align: center !important; }
      #projetos .glass-card .border-t p  { text-align: center !important; }

      /* ── Serviços (Portfólio Completo) ───────────────── */
      #servicos .solution-card .text-4xl { text-align: center !important; }
      #servicos .solution-card h3        { text-align: center !important; }

    }
  