/* =====================================================
   1. VARIÁVEIS GLOBAIS (MANTIDAS)
   ===================================================== */
:root {
  --primary: #4361ee;
  --primary-hover: #3a56d4;
  --primary-light: #eef2ff;
  --accent: #00d4aa;
  --accent-hover: #00b894;
  --bg-light: #ffffff;
  --bg-light-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* =====================================================
   2. BASE (MANTIDA)
   ===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Espaço para não esconder conteúdo atrás da navbar fixa */
  padding-top: 80px; 
}

/* =====================================================
   3. NAVBAR - Veja navbar.css para estilos da navbar
   ===================================================== */
/* Todos os estilos da navbar estão no arquivo navbar.css */

/* =====================================================
   4. ANIMAÇÕES (MANTIDAS)
   ===================================================== */
.hero .animate__animated {
  opacity: 0;
  visibility: hidden;
  animation-fill-mode: forwards !important;
}

.animate__fadeInUp {
  animation-name: fadeInUp !important;
  visibility: visible !important;
}

@keyframes fadeInUpFallback {
  from { opacity: 0; transform: translate3d(0, 30px, 0); visibility: hidden; }
  to { opacity: 1; transform: translate3d(0, 0, 0); visibility: visible; }
}

/* =====================================================
   5. HERO SECTION (MANTIDA)
   ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 100px; /* Ajuste fino */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 50%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #cbd5f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* =====================================================
   6. SEÇÕES E CARDS (MANTIDOS SEUS EFEITOS)
   ===================================================== */
section { position: relative; padding: 5rem 0; }

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin-bottom: 3rem;
}

/* CARD STYLE */
.card {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { opacity: 1; }

.card-body { padding: 2rem; }

.card i {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card p { color: var(--text-muted); line-height: 1.6; }

/* Modern Card Effects & Improvements */
/* Hover effect for cards */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15) !important;
  border-color: rgba(67, 97, 238, 0.2);
}

.hover-lift {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(67, 97, 238, 0.2) !important;
}

/* Icon wrapper improvements */
.icon-wrapper {
  background: linear-gradient(135deg, #eef2ff 0%, #f0f4ff 100%);
  transition: all 0.3s ease;
}

.card:hover .icon-wrapper {
  background: linear-gradient(135deg, #4361ee 0%, #5b7aff 100%);
}

.card:hover .icon-wrapper svg {
  color: white !important;
  filter: drop-shadow(0 4px 12px rgba(67, 97, 238, 0.3));
}

/* Text improvements */
.card h5 {
  color: #1e293b;
  font-weight: 700;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.card:hover h5 {
  color: #fbfbfb;
}

.card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Large screen card improvements */
@media (min-width: 768px) {
  .card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
  }
  
  .card .card-body {
    display: flex;
    flex-direction: column;
  }
}

/* Mobile improvements */
@media (max-width: 768px) {
  .card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  }
  
  .icon-wrapper {
    width: 60px !important;
    height: 60px !important;
  }
}

footer {
  background: var(--bg-darker);
  padding: 3rem 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

footer a { color: var(--text-light); text-decoration: none; transition: all 0.3s ease; }
footer a:hover { color: var(--accent); }

/* Responsividade Geral de Texto */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  section { padding: 3rem 0; }
}