/*
Theme Name: Dysket
Description: Tema moderno e responsivo para a Dysket Digital Solutions. Inclui seções de portfolio, serviços, sobre e contato com design dark/light mode e animações suaves.
Author: Dysket Digital Solutions
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dysket
Tags: modern, business, portfolio, responsive, dark-mode, light-mode, corporate, technology
*/

/* =============================
   CORREÇÕES DE VISIBILIDADE
   ============================= */

/* =============================
   TIPOGRAFIA BASE FORTE
   ============================= */

/* Reset e configuração universal */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: #1f2937 !important;
  background-color: #ffffff !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia forte para todos os títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #111827 !important;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 500; }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; }

/* Texto do corpo com contraste forte */
p, span, div, li {
  color: #374151 !important;
  font-size: 1rem;
  line-height: 1.65;
}

/* Links com cores visíveis */
a {
  color: #2563eb !important;
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover, a:focus {
  color: #1d4ed8 !important;
  text-decoration: underline;
}

/* Classes de utilidade para texto */
.text-primary { color: #111827 !important; }
.text-secondary { color: #6b7280 !important; }
.text-muted { color: #9ca3af !important; }
.text-white { color: #ffffff !important; }

/* =============================
   TEMA CLARO - ELEGANTE E MODERNO
   ============================= */

/* Background principal mais suave */
[data-bs-theme="light"] body {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  background-attachment: fixed;
}

/* Navbar com glassmorphism */
[data-bs-theme="light"] .navbar-modern {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

/* Links do menu com melhor hierarquia visual */
[data-bs-theme="light"] .navbar-modern .nav-link {
  color: #334155 !important;
  font-weight: 500;
  text-shadow: none;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  position: relative;
}

[data-bs-theme="light"] .navbar-modern .nav-link:hover,
[data-bs-theme="light"] .navbar-modern .nav-link:focus {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.05);
  text-decoration: none;
  transform: translateY(-1px);
}

[data-bs-theme="light"] .navbar-modern .nav-link:active {
  transform: translateY(0);
}

[data-bs-theme="light"] .navbar-modern .navbar-brand {
  color: #0f172a !important;
  font-weight: 700;
}

/* Melhora contraste do texto geral */
[data-bs-theme="light"] {
  --bs-body-color: #374151;
  --bs-heading-color: #0f172a;
  --bs-link-color: #3b82f6;
  --bs-link-hover-color: #1d4ed8;
}

[data-bs-theme="light"] body {
  color: #374151;
  background-color: #ffffff;
}

[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
  color: #0f172a !important;
}

[data-bs-theme="light"] .text-muted {
  color: #6b7280 !important;
  opacity: 1;
}

[data-bs-theme="light"] .lead {
  color: #4b5563 !important;
  font-weight: 400;
}

/* Hero section com gradiente elegante */
[data-bs-theme="light"] .hero-section {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 50%,
    rgba(241, 245, 249, 0.85) 100%) !important;
  position: relative;
  overflow: hidden;
}

[data-bs-theme="light"] .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

[data-bs-theme="light"] .hero-section * {
  position: relative;
  z-index: 1;
}

/* Cards com glassmorphism elegante */
[data-bs-theme="light"] .card {
  color: #374151;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

[data-bs-theme="light"] .card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(59, 130, 246, 0.1);
}

[data-bs-theme="light"] .card-title {
  color: #0f172a !important;
  font-weight: 600;
}

[data-bs-theme="light"] .card-text {
  color: #475569 !important;
  font-weight: 400;
}

[data-bs-theme="light"] .card-subtitle {
  color: #64748b !important;
}

/* =============================
   TEMA ESCURO - CONTRASTE MÁXIMO
   ============================= */

[data-bs-theme="dark"] body {
  color: #f3f4f6 !important;
  background-color: #0f172a !important;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: #ffffff !important;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] div,
[data-bs-theme="dark"] li {
  color: #e5e7eb !important;
}

[data-bs-theme="dark"] a {
  color: #60a5fa !important;
}

[data-bs-theme="dark"] a:hover,
[data-bs-theme="dark"] a:focus {
  color: #93c5fd !important;
}

[data-bs-theme="dark"] .text-primary {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .text-secondary {
  color: #d1d5db !important;
}

[data-bs-theme="dark"] .text-muted {
  color: #9ca3af !important;
}

/* Navbar tema escuro */
[data-bs-theme="dark"] .navbar-modern {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-modern .navbar-brand {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .navbar-modern .nav-link {
  color: #e5e7eb !important;
}

[data-bs-theme="dark"] .navbar-modern .nav-link:hover {
  color: #60a5fa !important;
  background: rgba(96, 165, 250, 0.1);
  transform: translateY(-1px);
}

/* Theme Toggle Button - melhor visibilidade */
#themeToggle,
#themeToggle.btn,
button#themeToggle {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  color: #374151 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease;
  overflow: hidden !important;
}

#themeToggle:hover,
#themeToggle.btn:hover,
button#themeToggle:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] #themeToggle,
[data-bs-theme="dark"] #themeToggle.btn,
[data-bs-theme="dark"] button#themeToggle {
  background: rgba(30, 41, 59, 0.9) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #f3f4f6 !important;
}

[data-bs-theme="dark"] #themeToggle:hover,
[data-bs-theme="dark"] #themeToggle.btn:hover,
[data-bs-theme="dark"] button#themeToggle:hover {
  background: rgba(30, 41, 59, 1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Cards tema escuro - MELHOR VISIBILIDADE */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-modern {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb !important;
}

[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .card-modern h1,
[data-bs-theme="dark"] .card-modern h2,
[data-bs-theme="dark"] .card-modern h3,
[data-bs-theme="dark"] .card-modern h4,
[data-bs-theme="dark"] .card-modern h5,
[data-bs-theme="dark"] .card-modern h6 {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .card-text,
[data-bs-theme="dark"] .card-modern p,
[data-bs-theme="dark"] .card-modern .text-muted {
  color: #e5e7eb !important;
  opacity: 0.9 !important;
}

/* =============================
   TEMA CLARO - CONTRASTE MÁXIMO
   ============================= */

[data-bs-theme="light"] body {
  color: #1f2937 !important;
  background-color: #ffffff !important;
}

[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
  color: #111827 !important;
}

[data-bs-theme="light"] p,
[data-bs-theme="light"] span,
[data-bs-theme="light"] div,
[data-bs-theme="light"] li {
  color: #374151 !important;
}

[data-bs-theme="light"] a {
  color: #2563eb !important;
}

[data-bs-theme="light"] a:hover,
[data-bs-theme="light"] a:focus {
  color: #1d4ed8 !important;
}

[data-bs-theme="light"] .text-primary {
  color: #111827 !important;
}

[data-bs-theme="light"] .text-secondary {
  color: #6b7280 !important;
}

[data-bs-theme="light"] .text-muted {
  color: #9ca3af !important;
}

/* Navbar tema claro */
[data-bs-theme="light"] .navbar-modern {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .navbar-modern .navbar-brand {
  color: #111827 !important;
}

/* Cards tema claro */
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .card-modern {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #374151 !important;
}

[data-bs-theme="light"] .card-title {
  color: #111827 !important;
}

[data-bs-theme="light"] .card-text {
  color: #6b7280 !important;
}

/* =============================
   BOTÕES E ELEMENTOS INTERATIVOS
   ============================= */

/* Botões modernos e elegantes */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.btn:focus {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
  border: 2px solid #3b82f6;
  color: #3b82f6;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* =============================
   FORMULÁRIOS ELEGANTES
   ============================= */

.form-control {
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  background-color: #ffffff;
}

.form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

[data-bs-theme="dark"] .form-control {
  background-color: #1f2937;
  border-color: #374151;
  color: #d1d5db;
}

[data-bs-theme="dark"] .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Labels dos formulários */
.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

[data-bs-theme="dark"] .form-label {
  color: #d1d5db;
}

/* =============================
   MELHORIAS DE ACESSIBILIDADE
   ============================= */

/* Indicadores de foco visíveis */
*:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

[data-bs-theme="dark"] button:focus,
[data-bs-theme="dark"] a:focus,
[data-bs-theme="dark"] input:focus,
[data-bs-theme="dark"] textarea:focus,
[data-bs-theme="dark"] select:focus {
  outline-color: #60a5fa;
}

/* Melhor contraste para texto secundário */
.text-secondary {
  color: #6b7280 !important;
}

[data-bs-theme="dark"] .text-secondary {
  color: #9ca3af !important;
}

/* Estados de hover mais suaves */
.nav-link,
.btn,
.card {
  transition: all 0.2s ease;
}

/* =============================
   RESPONSIVIDADE APRIMORADA
   ============================= */

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .form-control {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    line-height: 1.15;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

[data-bs-theme="light"] .card-modern {
  color: #1a1a1a !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Texto em botões */
[data-bs-theme="light"] .btn-outline-primary {
  color: #1a1a1a !important;
  border-color: var(--primary);
}

[data-bs-theme="light"] .btn-outline-primary:hover {
  color: #ffffff !important;
  background-color: var(--primary);
}

/* Texto em seções com background */
[data-bs-theme="light"] section {
  color: #1a1a1a;
}

[data-bs-theme="light"] .hero-section h1,
[data-bs-theme="light"] .hero-section h2,
[data-bs-theme="light"] .hero-section p {
  color: #1a1a1a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* =============================
   DYSKET - MODERN WORDPRESS THEME
   ============================= */

/* =============================
   CUSTOM VARIABLES & TOKENS
   ============================= */
:root {
  /* Cores modernas */
  --primary: #6366f1;
  --primary-dark: #4338ca;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Gradientes modernos */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  
  /* Tipografia */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  
  /* Sombras modernas */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 0 1px rgb(99 102 241 / 0.05), 0 1px 3px 0 rgb(99 102 241 / 0.1);
  
  /* Bordas */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Espaçamentos */
  --section-padding: 5rem 0;
}

/* =============================
   WORDPRESS CORE STYLES
   ============================= */

/* Alignments */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* =============================
   THEME CUSTOMIZATIONS
   ============================= */

/* Light theme customization */
[data-bs-theme="light"] {
  --bs-body-bg: #ffffff;
  --bs-body-color: #22223b;
  --bs-emphasis-color: #111111;
  --bs-secondary-color: #3a3a3a;
  --bs-tertiary-color: #6c757d;
  --bs-border-color: #d1d5db;
  --bs-surface: #f8fafc;
  --bs-surface-secondary: #e2e8f0;
  /* Light theme gradients */
  --gradient-dark: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  /* Light theme shadows */
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
}

/* Dark theme customization */
[data-bs-theme="dark"] {
  --bs-body-bg: #0f172a;
  --bs-body-color: #f8fafc;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: #94a3b8;
  --bs-tertiary-color: #64748b;
  --bs-border-color: #334155;
  --bs-surface: #1e293b;
  --bs-surface-secondary: #334155;
}

/* Theme-specific overrides */
[data-bs-theme="light"] .hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-bs-theme="light"] .hero-section::before {
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='%23cbd5e1'%3e%3cpath d='m0 .5 32 32M32 .5 0 32'/%3e%3c/svg%3e") center/32px 32px;
  opacity: 0.3;
}

[data-bs-theme="light"] .navbar-modern {
  background: rgba(248, 250, 252, 0.9) !important;
  border-bottom: 1px solid var(--bs-border-color);
}

[data-bs-theme="light"] .card-modern {
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--bs-border-color);
}

[data-bs-theme="light"] .footer-modern {
  background: var(--gradient-dark);
  border-top: 1px solid var(--bs-border-color);
}

/* Light theme specific adjustments */
[data-bs-theme="light"] .section-modern.bg-dark {
  background: var(--bs-surface) !important;
}

[data-bs-theme="light"] .badge-modern {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

[data-bs-theme="light"] .carousel-modern .carousel-control-prev,
[data-bs-theme="light"] .carousel-modern .carousel-control-next {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Theme toggle button styles */
#themeToggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#themeToggle:hover {
  background: var(--bs-surface) !important;
  transform: scale(1.1);
}

[data-bs-theme="light"] #themeToggle {
  color: #f59e0b;
}

[data-bs-theme="dark"] #themeToggle {
  color: #60a5fa;
}

/* =============================
   BASE STYLES
   ============================= */
* {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

.font-display {
  font-family: var(--font-display);
}

/* =============================
   WORDPRESS POST & PAGE STYLES
   ============================= */

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}

.entry-meta {
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.entry-meta a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.entry-meta a:hover {
  color: var(--primary);
}

.entry-content {
  line-height: 1.8;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bs-border-color);
}

/* Comments */
.comments-area {
  margin-top: 3rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bs-surface);
  border-radius: var(--radius);
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  margin-bottom: 1rem;
}

/* Navigation */
.navigation {
  margin: 3rem 0;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

/* =============================
   ANIMATIONS
   ============================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: var(--shadow-lg);
  }
  50% {
    box-shadow: var(--shadow-xl), var(--shadow-glow);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animation Classes */
.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease-out forwards;
  opacity: 0;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 4s ease-in-out infinite;
}

.spin-animate {
  animation: spin 1s linear infinite;
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* =============================
   COMPONENTS
   ============================= */

/* Modern Card */
/* Cards */
.card-modern {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333 !important;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-modern h1,
.card-modern h2,
.card-modern h3,
.card-modern h4,
.card-modern h5,
.card-modern h6 {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

.card-modern p,
.card-modern .text-muted {
    color: #4a5568 !important;
    opacity: 0.95 !important;
    line-height: 1.6 !important;
}

.card-modern .btn {
    color: #fff !important;
}

/* Background Gradients for Hero Cards - RESTAURADO */
.bg-gradient-primary {
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
}

.bg-gradient-accent {
  background: var(--gradient-accent) !important;
  color: white !important;
  border: none !important;
}

.bg-gradient-dark {
  background: var(--gradient-dark) !important;
  color: white !important;
  border: none !important;
}

/* Classes específicas para ícones circulares */
.icon-circle-primary {
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.icon-circle-accent {
  background: var(--gradient-accent) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.icon-circle-dark {
  background: var(--gradient-dark) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Força ícones circulares apenas quando necessário - ALINHAMENTO PERFEITO */
.rounded-circle.bg-gradient-primary,
.rounded-circle.bg-gradient-accent,
.rounded-circle.bg-gradient-dark,
.bg-gradient-primary.rounded-circle,
.bg-gradient-accent.rounded-circle,
.bg-gradient-dark.rounded-circle {
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  aspect-ratio: 1 / 1 !important;
  position: relative !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Forçar todos os ícones circulares em contexto de serviços - CENTRALIZAÇÃO ABSOLUTA */
.card-modern .rounded-circle,
.services .rounded-circle,
[class*="col-"] .rounded-circle {
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  position: relative !important;
  text-align: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

/* Ensure text visibility in gradient cards - sombras suaves */
.bg-gradient-primary *,
.bg-gradient-accent *,
.bg-gradient-dark * {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.bg-gradient-primary h1, .bg-gradient-primary h2, .bg-gradient-primary h3,
.bg-gradient-primary h4, .bg-gradient-primary h5, .bg-gradient-primary h6,
.bg-gradient-accent h1, .bg-gradient-accent h2, .bg-gradient-accent h3,
.bg-gradient-accent h4, .bg-gradient-accent h5, .bg-gradient-accent h6,
.bg-gradient-dark h1, .bg-gradient-dark h2, .bg-gradient-dark h3,
.bg-gradient-dark h4, .bg-gradient-dark h5, .bg-gradient-dark h6 {
  color: white !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.bg-gradient-primary p, .bg-gradient-primary small, .bg-gradient-primary span,
.bg-gradient-accent p, .bg-gradient-accent small, .bg-gradient-accent span,
.bg-gradient-dark p, .bg-gradient-dark small, .bg-gradient-dark span {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Hero Section Specific Fixes */
.hero-gradient {
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.8) 50%, rgba(6, 182, 212, 0.9) 100%);
  z-index: -1;
}

/* Card Hover Effects */
.card-modern:hover .bg-gradient-primary,
.card-modern:hover .bg-gradient-accent {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Text Contrast Improvements */
.text-white-contrast {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
  font-weight: 600 !important;
}

/* =============================
   SEARCH PAGE STYLES
   ============================= */

/* Hero Search Section */
.hero-search {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
}

.hero-search::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(#grid)"/></svg>');
  z-index: 0;
}

.hero-search > .container {
  position: relative;
  z-index: 1;
}

/* Advanced Search Form */
.search-form-advanced .input-group {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.search-form-advanced .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.search-form-advanced .form-control:focus {
  box-shadow: none;
  background: white;
}

/* Search Filters */
.search-filters .filter-btn {
  border-radius: 25px;
  padding: 0.5rem 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-filters .filter-btn:hover,
.search-filters .filter-btn.active {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

/* Category Filters Sidebar */
.category-filters .form-check {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-filters .form-check:last-child {
  border-bottom: none;
}

.category-filters .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.category-filters .badge {
  font-size: 0.7rem;
}

/* Tag Filters */
.tag-filter {
  border-radius: 20px;
  transition: all 0.3s ease;
}

.tag-filter:hover,
.tag-filter.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  transform: scale(1.05);
}

/* Search Results */
.search-results-header {
  padding: 1.5rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.results-count {
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

/* Result Cards */
.search-results .card-modern {
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-results .card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-results .card-modern .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* Loading States */
#search-loading .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* No Results State */
#no-results .bi-search {
  opacity: 0.3;
}

/* Sticky Sidebar */
.sticky-top {
  position: sticky !important;
  top: 100px !important;
}

/* =============================
   VISITOR COUNTER STYLES
   ============================= */

/* Counter Cards */
.visitor-counter-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.visitor-counter-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.counter-stat {
  padding: 1rem 0;
}

.counter-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-label {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

/* Realtime Counter Widget */
.realtime-counter-widget {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.realtime-counter-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Minimal Counter */
.visitor-counter-minimal {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Counter Animations */
.count-up {
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-search {
    min-height: 50vh;
    padding: 2rem 0;
  }
  
  .search-form-advanced .form-control {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  
  .counter-number {
    font-size: 2rem;
  }
  
  .sticky-top {
    position: relative !important;
    top: auto !important;
  }
}

/* Modern Buttons */
.btn-modern {
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

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

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

/* Botões específicos para temas - ALTA ESPECIFICIDADE */
.btn-primary-modern,
a.btn-primary-modern,
button.btn-primary-modern {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  text-shadow: none !important;
}

.btn-primary-modern:hover,
a.btn-primary-modern:hover,
button.btn-primary-modern:hover {
  background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  text-decoration: none !important;
}

/* Tema claro - forçar visibilidade */
[data-bs-theme="light"] .btn-primary-modern,
[data-bs-theme="light"] a.btn-primary-modern,
[data-bs-theme="light"] button.btn-primary-modern {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #ffffff !important;
  border: none !important;
}

[data-bs-theme="light"] .btn-primary-modern:hover,
[data-bs-theme="light"] a.btn-primary-modern:hover,
[data-bs-theme="light"] button.btn-primary-modern:hover {
  background: linear-gradient(135deg, #3730a3, #6b21a8) !important;
  color: #ffffff !important;
}

/* Tema escuro - botões mais visíveis */
[data-bs-theme="dark"] .btn-primary-modern,
[data-bs-theme="dark"] a.btn-primary-modern,
[data-bs-theme="dark"] button.btn-primary-modern {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

[data-bs-theme="dark"] .btn-primary-modern:hover,
[data-bs-theme="dark"] a.btn-primary-modern:hover,
[data-bs-theme="dark"] button.btn-primary-modern:hover {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Textos mais visíveis no tema escuro */
[data-bs-theme="dark"] .text-muted {
  color: #d1d5db !important;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] div,
[data-bs-theme="dark"] li {
  color: #f3f4f6 !important;
}

/* Correções específicas para ícones e cards - AJUSTADO */
.card-modern .icon-circle-primary,
.card-modern .icon-circle-accent,
.card-modern .icon-circle-dark {
  min-width: 60px !important;
  max-width: 60px !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Ícones dentro dos containers circulares - ALINHAMENTO CORRIGIDO */
.icon-circle-primary i,
.icon-circle-accent i,
.icon-circle-dark i,
.rounded-circle i,
.rounded-circle [class*="bi-"],
.rounded-circle [class*="bi "] {
  font-size: 1.4rem !important;
  color: white !important;
  text-shadow: none !important;
  line-height: 60px !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  position: relative !important;
}

/* Garantir que TODOS os elementos com .rounded-circle sejam círculos perfeitos */
.rounded-circle {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}

/* CSS específico para ícones Bootstrap dentro de círculos */
.rounded-circle .bi,
.rounded-circle [class^="bi-"],
.rounded-circle [class*=" bi-"] {
  font-size: 1.5rem !important;
  color: white !important;
  display: block !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Forçar forma circular em qualquer contexto */
[class*="bg-gradient"].rounded-circle,
[class*="bg-gradient"][class*="circle"] {
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  aspect-ratio: 1 / 1 !important;
}

/* Cards hero mantêm seu layout normal */
.card-modern .bg-gradient-primary,
.card-modern .bg-gradient-accent,
.card-modern .bg-gradient-dark {
  border-radius: 0.5rem !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  padding: 1rem !important;
}

/* EXCEÇÃO: Quando tem .rounded-circle, força formato circular */
.card-modern .bg-gradient-primary.rounded-circle,
.card-modern .bg-gradient-accent.rounded-circle,
.card-modern .bg-gradient-dark.rounded-circle {
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

/* CSS universal para círculos perfeitos */
.circle, .rounded-circle, [class*="circle"] {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Compatibilidade cross-browser para aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .rounded-circle::before {
    content: '';
    display: block;
    padding-bottom: 100%;
  }
}

.btn-outline-modern {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-modern:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Modern Badge */
.badge-modern {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.85rem;
}

/* Text Gradient - PALETA HARMONIOSA com identidade Dysket */
.text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 30%, #0ea5e9 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800 !important;
  font-size: 1.2em !important;
  text-shadow: none !important;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* Gradiente harmônico no tema escuro */
[data-bs-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #0ea5e9 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800 !important;
  font-size: 1.2em !important;
}

/* Animação sutil para destaque - paleta harmoniosa */
.text-gradient::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #0ea5e9, #06b6d4);
  border-radius: 2px;
  opacity: 0.3;
}

/* Não adicionar sublinhado em links com text-gradient */
a.text-gradient::after,
.nav-link.text-gradient::after {
  display: none;
}

[data-bs-theme="dark"] .text-gradient::after {
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #0ea5e9, #06b6d4);
}

/* Stats */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* =============================
   LAYOUT SECTIONS
   ============================= */

/* Navbar */
.navbar-modern {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-modern.scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-brand svg {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover svg {
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.4));
  transform: scale(1.05);
}

.brand-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  color: var(--bs-secondary-color);
  font-weight: 400;
}

/* Links genéricos do nav */
.nav-link {
  color: var(--bs-body-color) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Navbar Actions Alignment */
.navbar-nav.me-auto {
  flex: 1;
}

.navbar-collapse .d-flex.ms-auto {
  margin-left: auto !important;
}

/* Theme Toggle and WhatsApp Buttons */
#themeToggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#themeToggle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: transparent !important;
}

.btn-primary-modern {
  background: var(--gradient-primary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Sublinhado animado apenas para links do menu navbar */
.navbar-modern .nav-link {
  position: relative;
  text-decoration: none !important;
}

.navbar-modern .nav-link::before,
.navbar-modern .nav-link::after {
  display: none !important;
}

.navbar-modern .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  display: block !important;
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link:focus::after {
  width: 80%;
  left: 50%;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='%23334155'%3e%3cpath d='m0 .5 32 32M32 .5 0 32'/%3e%3c/svg%3e") center/32px 32px;
  opacity: 0.1;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Alinhamento dos cards com o conteúdo da esquerda */
.hero-section .row.align-items-center {
  align-items: center !important;
}

.hero-section .col-lg-6 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-section .animate-float {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Section Modern */
.section-modern {
  padding: var(--section-padding);
}

.section-modern.bg-dark {
  background: var(--gradient-dark);
}

/* Footer */
.footer-modern {
  background: var(--gradient-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-modern a {
  transition: color 0.3s ease;
}

.footer-modern a:hover {
  color: var(--primary) !important;
}

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

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-modern {
    padding: 3rem 0;
  }
  
  .btn-modern {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .card-modern {
    margin-bottom: 1.5rem;
  }
}

/* =============================
   ACCESSIBILITY
   ============================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.btn-modern:focus,
.nav-link:focus,
#themeToggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.5);
  }
}

/* =============================
   TEXT VISIBILITY IMPROVEMENTS
   ============================= */

/* Visitor Counter Styles */
.visitor-counter-widget {
    margin: 20px 0;
}

.visitor-counter-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    color: #333 !important;
}

/* Search Page Styles */
.search-filters {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #333 !important;
}

.search-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.search-stats h3,
.search-stats p,
.search-stats strong {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.search-results-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #666 !important;
    margin-right: 5px;
}

.search-results-tabs .nav-link.active {
    background: white;
    color: #333 !important;
}

.post-type-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 15px;
    color: white !important;
}

.search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #856404 !important;
}

/* Text Visibility Improvements */
.bg-gradient-primary,
.bg-gradient-secondary,
.bg-gradient-success,
.bg-gradient-danger,
.bg-gradient-warning,
.bg-gradient-info,
.bg-gradient-light,
.bg-gradient-dark {
    color: white !important;
}

.bg-gradient-primary *,
.bg-gradient-secondary *,
.bg-gradient-success *,
.bg-gradient-danger *,
.bg-gradient-warning *,
.bg-gradient-info *,
.bg-gradient-dark * {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bg-gradient-light * {
    color: #333 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Hero section text visibility */
.hero-section {
    color: white !important;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-section .lead {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Card text improvements */
.card-modern h1,
.card-modern h2,
.card-modern h3,
.card-modern h4,
.card-modern h5,
.card-modern h6 {
    color: #222 !important;
}

.card-modern p,
.card-modern .text-muted {
    color: #666 !important;
}

.card-modern .btn {
    color: #fff !important;
}

/* General text contrast improvements */
.text-on-gradient {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.text-on-light {
    color: #333 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}