/* --- 1. CONFIGURAÇÕES GERAIS E VARIÁVEIS --- */
:root {
  --primary-gold: #c5a880;
  --primary-gold-hover: #e0caaa;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --nav-bg: rgba(7, 11, 22, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: #020617;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- 2. VÍDEO DE FUNDO --- */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

#videoFundo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.8) 0%, rgba(2, 6, 23, 0.95) 100%);
  z-index: -1;
}

/* --- 3. MENU DE NAVEGAÇÃO --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  padding: 15px 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-logo span {
  color: var(--primary-gold);
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  border-color: var(--primary-gold);
  background: rgba(197, 168, 128, 0.1);
}

/* --- 4. ESTRUTURA DOS CARDS DE CONTEÚDO (GLASSMORPHISM) --- */
.main-content {
  max-width: 1000px;
  margin: 120px auto 60px auto;
  padding: 0 20px;
}

.content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hero-card, .glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

/* Títulos Premium */
h1, h2 {
  font-family: 'Cinzel', serif;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

h1 { font-size: 2.2rem; text-align: center; }
h2 { font-size: 2rem; border-left: 4px solid var(--primary-gold); padding-left: 15px; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.section-subtitle {
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 30px;
}

/* --- 5. DETALHES SEÇÃO HOME --- */
.hero-badge {
  background: rgba(197, 168, 128, 0.15);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 15px;
}

.profile-frame {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.profile-img {
  max-width: 100%;
  width: 450px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 5px 25px rgba(0,0,0,0.6);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  margin-bottom: 30px;
}

.info-item {
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
}

.info-item strong {
  color: var(--primary-gold);
  margin-bottom: 3px;
}

.academic-box {
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--primary-gold);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
}

.academic-box h3, .media-box h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
}

.academic-box ul {
  list-style: none;
}

.academic-box li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
}

.academic-box li::before {
  content: '▪';
  color: var(--primary-gold);
  position: absolute;
  left: 0;
}

/* Mídia e Parcerias */
.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.media-tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- 6. CARROSSEL DE IMAGENS --- */
.carousel-container {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.carousel {
  position: relative;
  height: 400px;
  background: #000;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel img.active {
  opacity: 1;
  position: relative;
}

/* --- 7. ACORDEÃO (PROJETOS) --- */
.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: #fff;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  outline: none;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion i {
  transition: transform 0.3s ease;
  color: var(--primary-gold);
}

.active, .accordion:hover {
  background: rgba(197, 168, 128, 0.15);
  border-color: var(--primary-gold);
}

.accordion.active i {
  transform: rotate(180deg);
}

.panel {
  padding: 0 20px;
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  margin-top: -12px;
  margin-bottom: 12px;
}

.panel p {
  padding-top: 20px;
}

.panel a {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.panel a:hover {
  color: var(--primary-gold-hover);
  text-decoration: underline;
}

.project-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid var(--border-glass);
}

/* --- 8. EXPERIÊNCIAS GRID --- */
.experiencias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.experiencia-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.experiencia-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
}

.exp-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-glass);
}

.exp-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experiencia-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--primary-gold);
  margin-bottom: 12px;
  line-height: 1.4;
}

.experiencia-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.exp-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
}

.highlight-text {
  font-style: italic;
  text-align: center;
  color: var(--text-secondary);
}

/* --- 9. RODAPÉ GLOBAL ÚNICO --- */
.global-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--border-glass);
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.social-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-button.twitter:hover {
  background: #000;
  border-color: #555;
  transform: translateY(-3px);
}

.social-button.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: 0.85rem;
  color: #64748b;
}

/* --- 10. RESPONSIVIDADE --- */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-content {
    margin-top: 160px;
  }
  
  .experiencias-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-card, .glass-card {
    padding: 25px;
  }
}

/* --- ESTILOS DA LINHA DO TEMPO (TIMELINE) --- */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding: 20px 0;
}

/* Linha vertical centralizadora */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px; /* Alinhado à esquerda para facilitar em telas menores */
  width: 2px;
  background: linear-gradient(180deg, var(--primary-gold) 0%, rgba(197, 168, 128, 0.1) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px; /* Dá espaço para o ícone flutuante */
}

/* Ícone indicador */
.timeline-icon {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #020617;
  border: 2px solid var(--primary-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-gold);
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.3);
}

/* Caixa com as informações do evento */
.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 25px;
  border-radius: 12px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  border-color: var(--primary-gold);
}

.timeline-date {
  display: inline-block;
  font-family: 'Cinzel', serif;
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
  text-align: left;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Ajustes finos de responsividade para a Linha do Tempo */
@media (max-width: 600px) {
  .timeline-container::before {
    left: 21px;
  }
  .timeline-icon {
    left: 2px;
  }
  .timeline-item {
    padding-left: 55px;
  }
}

/* --- ESTILOS DE LEIS E RESULTADOS --- */
.subsection-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #fff;
  margin: 40px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

/* Grid de Indicadores em Destaque */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.result-card {
  background: rgba(197, 168, 128, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
}

.result-number {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(197, 168, 128, 0.2);
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* Cards das Leis */
.laws-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.law-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.law-card:hover {
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.02);
}

.law-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* Badges de Status da Lei */
.law-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.law-badge.aprovada {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.law-badge.projeto {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.law-badge.cpi {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.law-number {
  font-size: 0.85rem;
  color: var(--primary-gold);
  font-weight: 600;
}

.law-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.law-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
}

/* --- ESTILOS DE CONTATO E LOCALIZAÇÃO --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 30px;
  text-align: left;
}

.contact-form-container h3,
.contact-info-container h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Campos de Formulário */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-gold);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

.form-group select option {
  background: #090d16;
  color: #fff;
}

/* Botão de Envio */
.btn-submit {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #a4814e 100%);
  color: #020617;
  font-weight: 700;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 168, 128, 0.4);
}

/* Caixa de Informações */
.info-block {
  margin-bottom: 25px;
}

.info-block p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.map-placeholder {
  margin-top: 25px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  overflow: hidden;
}

/* Responsividade do layout */
@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- ESTILOS DO CHATBOT INTELIGENTE --- */
.chatbot-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

/* Botão Flutuante */
.chatbot-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #a4814e 100%);
  border: none;
  color: #020617;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(197, 168, 128, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.chatbot-launcher:hover {
  transform: scale(1.1);
}

/* Tooltip do botão */
.launcher-tooltip {
  position: absolute;
  right: 80px;
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--border-glass);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.chatbot-launcher:hover .launcher-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Janela do Chat */
.chatbot-window {
  display: none; /* Escondido por padrão */
  flex-direction: column;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 480px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: slideInUp 0.3s ease forwards;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cabeçalho do Chat */
.chatbot-header {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-glass);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.1);
  border: 1.5px solid var(--primary-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-gold);
}

.chatbot-profile h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: #fff;
  margin: 0;
}

.bot-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.btn-close-chat {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.btn-close-chat:hover {
  color: #fff;
}

/* Área de Mensagens */
.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.message.bot {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border-glass);
}

.message.user {
  background: var(--primary-gold);
  color: #020617;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* Área do Input de Envio */
.chatbot-input-area {
  display: flex;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-glass);
  gap: 10px;
}

.chatbot-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.85rem;
}

.chatbot-input-area input:focus {
  outline: none;
  border-color: var(--primary-gold);
}

.btn-send-chat {
  background: var(--primary-gold);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #020617;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.btn-send-chat:hover {
  background: var(--primary-gold-hover);
}

/* Ajuste para telas pequenas */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    right: -10px;
  }
}
