/* ==========================================
           Variáveis Base (Dark Mode + Red Accent)
========================================== */
:root {
  --bg-dark: #121212;
  --surface: #1E1E1E;
  --accent: #900C3F;
  /* Carmim profundo */
  --accent-hover: #700931;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ==========================================
           Canvas Three.js (Fundo WebGL)
========================================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ==========================================
           Utilitários de Cor
========================================== */
.text-accent {
  color: var(--accent) !important;
}

.text-light-gray {
  color: var(--text-muted);
}

/* ==========================================
           Glassmorphism & Componentes
========================================== */
.glass-nav {
  background: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Estilização para quando o menu mobile abrir e não perder o blur */
.navbar-collapse {
  background: rgba(18, 18, 18, 0.9);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .navbar-collapse {
    background: transparent;
    padding: 0;
    margin-top: 0;
  }
}

.glass-card {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(144, 12, 63, 0.4);
  transform: translateY(-5px);
}


.btn-primary-custom {
  background-color: var(--accent);
  color: white;
  border: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.btn-primary-custom:hover {
  background-color: var(--accent);
  opacity: 0.9;
  color: white;
}

.border-top-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-custom {
  color: var(--text-muted);
  transition: color 0.2s ease;
  text-decoration: none;
  font-size: 0.875rem;
}

.nav-link-custom:hover {
  color: var(--text-main);
}

/* ==========================================
   Formulários e Modal
========================================== */
.custom-input {
  background-color: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.custom-input:focus {
  background-color: rgba(18, 18, 18, 0.8);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(144, 12, 63, 0.25);
  color: var(--text-main);
}

.custom-input::placeholder {
  color: var(--text-muted);
}

.modal-backdrop.show {
  opacity: 0.7;
}

.modal-content.glass-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.05);
}

textarea.custom-input {
  resize: none;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
}

/* Estilização das opções do Select para manter o Dark Mode nativo */
select.custom-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

select.custom-input option {
  background-color: var(--surface);
  color: var(--text-main);
  padding: 10px;
}

/* ==========================================
           Scroll Reveal
========================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}