/* Critical CSS for fast loading and light/dark mode variables */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #ffc300;
    --primary-dark: #e5af00;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-color-rgb: 255, 255, 255;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4),
      0 4px 6px -2px rgba(0, 0, 0, 0.3);
  }
}
/* Auto-detect system preference */
:root {
  /* Light mode colors */
  --primary-color: #ffc300;
  --primary-dark: #e5af00;
  --secondary-color: #f8fafc;
  --primary-color-rgb: 0, 0, 0;
  --accent-color: #a8f20acc;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-white: #f9fafb;
  --text-dark: #1f2937;
  --text-muted: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f0fdf4;
  --bg-color-rgb: 255, 255, 255;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --gradient-green: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  --glow-green: 0 0 15px rgba(118, 171, 67, 0.7);
  --glow-accent: 0 0 20px rgba(168, 242, 10, 0.8);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
}

/* Dark mode variables (corrigido: direto em body.dark, sem aninhar :root) */
body.dark {
  --primary-color: #ffc300;
  --primary-dark: #e5af00;
  --secondary-color: #1f2937;
  --accent-color: #a8f20acc;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --bg-primary: #131313;
  --bg-secondary: #222220;
  --bg-accent: #f0fdf4;
  --bg-color-rgb: 19, 19, 19;
  --border-color: #2a2a2a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --gradient-green: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  --glow-green: 0 0 15px rgba(118, 171, 67, 0.7);
  --glow-accent: 0 0 20px rgba(168, 242, 10, 0.8);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
}

/* Transições suaves para mudanças de tema (aplica globalmente) */
:root,
body {
  transition: color 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease;
}

/* Header with transparent overlay effect */
/* header.navbar {
  background: rgba(255, 255, 255, 0) !important;

  transition: all 0.3s ease;
}

.dark header.navbar {
  background: rgba(17, 24, 39, 0) !important;
} */

.bg-primary {
  background-color: var(--bg-primary) !important;
}

/* Configuração básica do header */
header {
  position: sticky !important;
  top: 0;
  z-index: 1;
  padding: 1rem;
  /* backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color); */
  background: transparent; /* Background inicial */
  transition: background 0.3s ease; /* Transição suave para a mudança */
}

/* Classe adicionada via JS quando scroll é detectado */
header.scrolled {
  background: white; /* Muda para branco (ou cor desejada) */
}

.dark header.scrolled {
  background: rgba(var(--bg-color-rgb), 0.95) !important;
}

.navbar-brand img.logo-dark {
  display: none;
}
.navbar-brand img.logo-white {
  display: block;
}

header.scrolled {
  .navbar-brand img.logo-dark {
    display: block;
  }
  .navbar-brand img.logo-white {
    display: none;
  }
}

.dark header.scrolled {
  .navbar-brand img.logo-white {
    display: block;
  }
  .navbar-brand img.logo-dark {
    display: none;
  }
}

/* Hero section critical styles */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-accent) 100%
  );
  min-height: 500px;
  max-height: max-content;
  padding-bottom: 50px;
  margin-top: -100px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  text-align: start;
  padding-top: 100px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--primary-color);
}
