:root {
  --primary: #fbaa00;
  --primary-dark: #e69500;
  --secondary: #0097ff;
  --dark: #0b0b0c;
  --dark-light: #1a1a1d;
  --gray: #23232a;
  --light: #ffffff;
  --light-gray: #dddddd;
  --font-primary: 'Orbitron', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 10px 30px rgba(251, 170, 0, 0.15);
  --shadow-hover: 0 15px 40px rgba(251, 170, 0, 0.25);
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

/* Seção Hero */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-section h1 {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1;
}

.hero-section .subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--light);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Botão Primário */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--dark);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Títulos de Seção */
.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.section-title .highlight {
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--light-gray);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* Linha do Tempo */
.timeline-section {
  background-color: var(--dark-light);
  padding: 100px 0;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-year {
  width: 120px;
  height: 120px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  margin: 0 40px;
  position: relative;
  z-index: 1;
}

.timeline-content {
  background: rgba(35, 35, 42, 0.7);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(251, 170, 0, 0.1);
  box-shadow: var(--shadow);
  flex: 1;
}

.timeline-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.timeline-content p {
  color: var(--light-gray);
  line-height: 1.7;
}

/* Seção Missão */
.mission-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.mission-card {
  background: rgba(35, 35, 42, 0.7);
  padding: 40px 30px;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(251, 170, 0, 0.1);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(251, 170, 0, 0.3);
}

.mission-icon {
  width: 80px;
  height: 80px;
  background: rgba(251, 170, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary);
}

.mission-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.mission-card ul {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
}

.mission-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 20px;
}

.mission-card ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Seção Time */
.team-section {
  padding: 100px 0;
  background-color: var(--dark);
}

.team-slider {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Seção Time */
.team-member {
  display: none;
  background: rgba(35, 35, 42, 0.7);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(251, 170, 0, 0.1);
  box-shadow: var(--shadow);
  flex-direction: column;
}

.team-member.active {
  display: flex;
}

.member-image {
  width: 100%;
  height: 500px; /* Altura fixa para a área da imagem */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  position: relative;
  overflow: hidden; /* Garante que a imagem não vaze */
}

.member-image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover; /* Mudado de contain para cover para preencher melhor */
  object-position: center center;
  border-radius: 12px 12px 0 0; /* Arredonda apenas o topo */
}

.member-info {
  padding: 30px;
  flex: 1;
}

.social-links {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-5px);
}

.member-info {
  padding: 30px;
  flex: 1;
}

.member-info h3 {
  color: var(--primary);
  font-family: var(--font-primary);
  margin-bottom: 0.5rem;
}

.member-info h4 {
  color: var(--light-gray);
  font-weight: 400;
  margin-bottom: 1rem;
}

.member-info p {
  color: var(--light-gray);
  margin-bottom: 1.5rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  background: rgba(251, 170, 0, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.slider-controls button {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controls button:hover {
  background: rgba(251, 170, 0, 0.1);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: var(--gray);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Seção Brand */
.brand-section {
  padding: 100px 0;
  background-color: var(--dark-light);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.brand-item {
  text-align: center;
}

.color-box {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.color-box:hover {
  transform: rotate(5deg) scale(1.05);
}

.brand-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}

.brand-item p {
  color: var(--light-gray);
}

/* Seção CTA */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(0, 0, 0, 0.8);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-section .btn-primary {
  background-color: var(--dark);
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background-color: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

/* Responsividade */
@media (max-width: 992px) {
  .container {
    padding: 60px 0;
  }
  
  .timeline::before {
    left: 60px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    margin-bottom: 40px;
  }
  
  .timeline-year {
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
    margin: 0 20px 0 0;
  }
  
  .team-member {
    flex-direction: column;
  }
  
  .member-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 600px;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
  }
  
  .brand-grid {
    grid-template-columns: 1fr;
  }
  
  .color-box {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .member-info {
    padding: 20px;
  }
}
/* ==================== */
/* CORREÇÕES PARA SCROLL HORIZONTAL */
/* ==================== */

/* 1. Prevenção global */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* 2. Container principal ajustado */
.container {
  width: 95%;
  max-width: 100vw;
  padding: 20px 15px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 3. Seção Hero */
.hero-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-section h1 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 4. Linha do tempo responsiva */
.timeline {
  width: calc(100% - 30px);
  padding: 40px 15px;
}

.timeline-item {
  flex-direction: column;
  align-items: flex-start;
}

.timeline-year {
  margin: 0 0 20px 0;
}

/* 5. Seção Time */
.team-member {
  width: 100%;
}

.member-image {
  height: auto;
  max-height: 400px;
}

.member-image img {
  width: 100%;
  height: auto;
}

/* 6. Grids responsivas */
.mission-grid,
.brand-grid {
  width: 100%;
  padding: 0 15px;
}

/* 7. Elementos que podem causar overflow */
.color-box,
.mission-card,
.timeline-content {
  max-width: 100%;
}

/* ==================== */
/* AJUSTES ESPECÍFICOS PARA MOBILE */
/* ==================== */

@media (max-width: 992px) {
  /* Timeline em mobile */
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-year {
    position: absolute;
    left: 0;
    top: 0;
  }
}

@media (max-width: 768px) {
  /* Ajustes de padding */
  .container {
    padding: 40px 15px;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 500px;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  /* Team member */
  .member-info {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  /* Ajustes finos para mobile pequeno */
  .hero-section h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
  
  .btn-primary {
    width: 100%;
    text-align: center;
  }
  
  .slider-controls {
    flex-wrap: wrap;
  }
}

/* ==================== */
/* PREVENÇÃO ADICIONAL */
/* ==================== */

/* Garante que imagens não ultrapassem os limites */
img, video {
  max-width: 100%;
  height: auto;
}

/* Remove transformações em mobile */
@media (max-width: 768px) {
  .mission-card:hover,
  .color-box:hover {
    transform: none;
  }
}

/* Corrige possíveis problemas com white-space */
h1, h2, h3, p, a, span {
  white-space: normal;
  word-break: break-word;
}

/* Garante que elementos inline não causem overflow */
[class*="-btn"], 
[class*="-card"] {
  max-width: 100%;
}