/* Variáveis para cores - Mantendo as cores originais do K.A.D.A. */
:root {
  --primary-color: #5d3fd3;
  --secondary-color: #4b0082; 
  --accent-color: #8a2be2;
  --text-color: #e0e0e0;
  --bg-color: #0d0d2b; 
  --card-bg: #1a1a36;
  --card-border: #2c2c54;
}

/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* CORREÇÃO: Previne scroll horizontal */
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
  /* CORREÇÃO: Previne scroll horizontal */
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  /* CORREÇÃO: Garante que o body não exceda a largura da viewport */
  max-width: 100vw;
}

/* Container principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  /* CORREÇÃO: Garante que o container não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

/* Padrão de fundo ondulado com pontos - Integrado */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 1px 1px, rgba(138, 43, 226, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: 0 0;
  z-index: -2;
  animation: pattern-drift 60s ease-in-out infinite;
  /* CORREÇÃO: Previne que o padrão cause overflow */
  overflow: hidden;
}

.background-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 800px 600px at 20% 40%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 1000px 800px at 80% 60%, rgba(93, 63, 211, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 600px 400px at 40% 80%, rgba(75, 0, 130, 0.06) 0%, transparent 50%);
  animation: wave-motion 25s ease-in-out infinite;
}

@keyframes pattern-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -5px); }
  50% { transform: translate(-5px, 10px); }
  75% { transform: translate(-10px, -10px); }
}

@keyframes wave-motion {
  0%, 100% { 
    background: 
      radial-gradient(ellipse 800px 600px at 20% 40%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse 1000px 800px at 80% 60%, rgba(93, 63, 211, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 600px 400px at 40% 80%, rgba(75, 0, 130, 0.06) 0%, transparent 50%);
  }
  33% { 
    background: 
      radial-gradient(ellipse 900px 700px at 60% 20%, rgba(138, 43, 226, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse 800px 600px at 30% 80%, rgba(93, 63, 211, 0.09) 0%, transparent 50%),
      radial-gradient(ellipse 700px 500px at 80% 40%, rgba(75, 0, 130, 0.07) 0%, transparent 50%);
  }
  66% { 
    background: 
      radial-gradient(ellipse 700px 500px at 80% 70%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 900px 700px at 10% 30%, rgba(93, 63, 211, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse 800px 600px at 60% 10%, rgba(75, 0, 130, 0.05) 0%, transparent 50%);
  }
}

/* Animação de fundo com estrelas - Original do K.A.D.A. */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20px 30px, var(--accent-color), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--primary-color), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.1), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--accent-color), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: star-fall 20s linear infinite;
  z-index: -3;
}

@keyframes star-fall {
  from { transform: translateY(-100px); }
  to { transform: translateY(100vh); }
}

/* Header - Adaptado do design da Ubistart */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 12vh;
  background: rgba(13, 13, 43, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  /* CORREÇÃO: Garante que o header não cause overflow */
  box-sizing: border-box;
}

.header.scrolled {
  background: rgba(13, 13, 43, 0.95);
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  height: 100%;
  /* CORREÇÃO: Garante que o container do header não exceda a viewport */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  /* CORREÇÃO: Previne quebra de linha */
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 40px;
  /* CORREÇÃO: Permite quebra de linha se necessário */
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  /* CORREÇÃO: Previne quebra de linha */
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-btn {
  background: #ffffff;
  color: #0a0a0a;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  /* CORREÇÃO: Previne quebra de linha */
  white-space: nowrap;
}

.contact-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.hamburger-menu:hover {
  color: var(--accent-color);
}

/* Mobile Navigation */
.mobile-nav {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(13, 13, 43, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateX(100%); /* Start off-screen */
  transition: transform 0.4s ease-in-out;
  /* CORREÇÃO: Garante que o menu mobile não cause overflow */
  box-sizing: border-box;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0); /* Slide in */
}

.mobile-nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  transition: color 0.3s ease;
  /* CORREÇÃO: Centraliza o texto */
  text-align: center;
}

.mobile-nav-link:hover {
  color: var(--accent-color);
}

.mobile-contact-btn {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.mobile-contact-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Main Content - Hero Section */
.main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  /* CORREÇÃO: Garante que o main não cause overflow */
  width: 100%;
  box-sizing: border-box;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
  width: 100%;
  /* CORREÇÃO: Garante que o grid não exceda a viewport */
  max-width: 100%;
  box-sizing: border-box;
}

.hero-content {
  max-width: 600px;
  /* CORREÇÃO: Garante que o conteúdo não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
  animation: neon-glow 3s ease-in-out infinite alternate;
  /* CORREÇÃO: Permite quebra de linha em telas pequenas */
  word-wrap: break-word;
  hyphens: auto;
}

@keyframes neon-glow {
  from { text-shadow: 0 0 30px rgba(138, 43, 226, 0.3); }
  to { text-shadow: 0 0 40px rgba(138, 43, 226, 0.5), 0 0 60px rgba(138, 43, 226, 0.2); }
}

.highlight {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #0a0a0a;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
  /* CORREÇÃO: Previne quebra de linha */
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--accent-color);
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(138, 43, 226, 0.3);
}

/* Info Section - Novo Tab Menu Integrado */
.info-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 400px;
  /* CORREÇÃO: Garante que a seção não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.info-box {
  max-width: 500px;
  width: 100%;
  background: rgba(26, 26, 54, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  /* CORREÇÃO: Garante que o box não exceda a viewport */
  box-sizing: border-box;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(93, 63, 211, 0.08) 0%, transparent 50%);
  border-radius: 20px;
  z-index: -1;
}

.tab-menu {
  display: flex;
  gap: 30px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  /* CORREÇÃO: Permite quebra de linha em telas pequenas */
  flex-wrap: wrap;
}

.tab-button {
  background: none;
  border: none;
  font-size: 16px;
  color: rgba(224, 224, 224, 0.7);
  cursor: pointer;
  padding: 12px 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  position: relative;
  /* CORREÇÃO: Permite quebra de linha se necessário */
  white-space: nowrap;
  flex: 1;
  min-width: 120px;
}

.tab-button:hover {
  color: var(--text-color);
}

.tab-button.active {
  color: #ffffff;
  border-bottom: 2px solid var(--accent-color);
  font-weight: 600;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.tab-content {
  display: none;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

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

.tab-content p {
  margin: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Carrossel Infinito - CORREÇÃO PRINCIPAL */
.carrossel-infinite {
  padding: 80px 0;
  /* CORREÇÃO: Previne overflow horizontal */
  overflow: hidden;
  background: rgba(26, 26, 54, 0.3);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  /* CORREÇÃO: Garante que o carrossel não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.carrossel-infinite::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(93, 63, 211, 0.03) 0%, transparent 50%);
  z-index: -1;
}

.slider-infinite {
  display: flex;
  /* CORREÇÃO: Ajusta a largura para ser mais responsiva */
  animation: scroll-infinite 30s linear infinite;
  width: calc(220px * 12); /* Ajustado para incluir margens */
  /* CORREÇÃO: Garante que o slider não cause overflow */
  will-change: transform;
}

.slide-infinite {
  min-width: 200px;
  height: 120px;
  margin: 0 10px; /* CORREÇÃO: Reduzida a margem */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  /* CORREÇÃO: Garante que as imagens não excedam o container */
  flex-shrink: 0;
}

.slide-infinite:hover {
  transform: scale(1.05);
}

.slide-infinite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CORREÇÃO: Animação ajustada para ser mais responsiva */
@keyframes scroll-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-220px * 6)); }
}

/* Seções principais */
section {
  padding: 100px 0;
  position: relative;
  /* CORREÇÃO: Garante que as seções não excedam a viewport */
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(93, 63, 211, 0.02) 0%, transparent 50%);
  z-index: -1;
}

h2 {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #ffffff, var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* CORREÇÃO: Permite quebra de linha em telas pequenas */
  word-wrap: break-word;
  hyphens: auto;
}

/* Serviços */
.servicos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
  /* CORREÇÃO: Garante que a seção não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  /* CORREÇÃO: Garante que o grid não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.card {
  background: rgba(26, 26, 54, 0.6);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* CORREÇÃO: Garante que os cards não excedam a viewport */
  width: 100%;
  box-sizing: border-box;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(93, 63, 211, 0.08) 0%, transparent 50%);
  border-radius: 20px;
  z-index: -1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
  border-color: var(--accent-color);
}

.card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
  /* CORREÇÃO: Permite quebra de linha */
  word-wrap: break-word;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  /* CORREÇÃO: Permite quebra de linha */
  word-wrap: break-word;
}

/* Seção Principais Soluções */
.principais-solucoes {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-color);
  /* CORREÇÃO: Garante que a seção não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.principais-solucoes h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--text-color);
  font-weight: 600;
}

.principais-solucoes h2 span {
  color: var(--primary-color);
}

.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  /* CORREÇÃO: Garante que o grid não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.solucao-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* CORREÇÃO: Garante que os cards não excedam a viewport */
  width: 100%;
  box-sizing: border-box;
}

.solucao-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.solucao-card:hover::before {
  transform: scaleX(1);
}

.solucao-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(93, 63, 211, 0.2);
}

.solucao-card i {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.solucao-card:hover i {
  color: var(--accent-color);
  transform: scale(1.1);
}

.solucao-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 600;
  /* CORREÇÃO: Permite quebra de linha */
  word-wrap: break-word;
}

.solucao-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b0b0b0;
  /* CORREÇÃO: Permite quebra de linha */
  word-wrap: break-word;
}

/* Depoimentos */
.depoimentos {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
  /* CORREÇÃO: Garante que a seção não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.carrossel {
  position: relative;
  height: 200px;
  margin-bottom: 40px;
  /* CORREÇÃO: Previne overflow */
  overflow: hidden;
  width: 100%;
}

.item-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  /* CORREÇÃO: Garante que os cards não excedam a viewport */
  box-sizing: border-box;
}

.item-card.ativo {
  opacity: 1;
  transform: translateX(0);
}

.item-card.saindo {
  opacity: 0;
  transform: translateX(-100px);
}

.card-depoimento {
  background: rgba(26, 26, 54, 0.6);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  /* CORREÇÃO: Garante que o card não exceda a viewport */
  width: 100%;
  box-sizing: border-box;
}

.card-depoimento::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(93, 63, 211, 0.06) 0%, transparent 50%);
  border-radius: 20px;
  z-index: -1;
}

.card-depoimento p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  /* CORREÇÃO: Permite quebra de linha */
  word-wrap: break-word;
}

.card-depoimento span {
  font-weight: 600;
  color: var(--accent-color);
  /* CORREÇÃO: Permite quebra de linha */
  word-wrap: break-word;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  /* CORREÇÃO: Permite quebra de linha se necessário */
  flex-wrap: wrap;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent-color);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* Contact Section - OTIMIZADO PARA MOBILE */
.contact-section {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.contact-info h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-color);
  word-wrap: break-word;
}

.contact-info p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
  word-wrap: break-word;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateX(5px);
  border-color: var(--accent-color);
}

.contact-method i {
  font-size: 20px;
  color: var(--accent-color);
  width: 24px;
  text-align: center;
}

.contact-method h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #ffffff;
}

.contact-method p {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(224, 224, 224, 0.5);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

/* Footer - OTIMIZADO PARA MOBILE */
.footer {
  background: var(--secondary-color);
  padding: 80px 0 40px;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.footer-section h3,
.footer-section h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  word-wrap: break-word;
}

.footer-section h3 {
  font-size: 24px;
}

.footer-section h4 {
  font-size: 18px;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.8;
  word-wrap: break-word;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* Media Queries for Responsiveness - MELHORADAS */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  
  .hero-title {
    font-size: 64px;
  }
  
  .content-grid {
    gap: 80px;
  }
}

@media (max-width: 992px) {
  .nav, .header-right {
    display: none; /* Hide desktop nav and right section */
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
  }

  .header .container {
    justify-content: space-between; /* Adjust spacing */
    padding: 15px 20px; /* CORREÇÃO: Reduz o padding */
  }

  .mobile-nav {
    display: flex; /* Show mobile nav when active */
  }

  .hero-title {
    font-size: 56px;
  }

  .content-grid {
    grid-template-columns: 1fr; /* Stack content on mobile */
    gap: 60px;
    text-align: center;
  }

  .info-section {
    justify-content: center;
  }

  .tab-menu {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    border: none;
    text-align: center;
  }
  
  .tab-button {
    font-size: 18px;
    padding: 16px 0;
    /* CORREÇÃO: Remove min-width em mobile */
    min-width: auto;
    flex: none;
  }
  
  .info-box {
    max-width: 100%;
    padding: 24px;
  }

  .servicos {
    padding: 80px 20px; /* CORREÇÃO: Reduz o padding */
  }

  .servicos .cards {
    grid-template-columns: 1fr;
    gap: 30px; /* CORREÇÃO: Reduz o gap */
  }

  .servicos .card {
    width: 100%; /* CORREÇÃO: Remove largura fixa */
    margin: 0;
  }

  .principais-solucoes {
    padding: 60px 20px; /* CORREÇÃO: Reduz o padding */
  }

  .principais-solucoes .solucao-card {
    width: 100%;
  }

  .depoimentos {
    padding: 80px 20px; /* CORREÇÃO: Reduz o padding */
  }

  .depoimentos .carrossel {
    width: 100%; /* CORREÇÃO: Remove largura fixa */
  }

  .contato {
    padding: 80px 20px; /* CORREÇÃO: Reduz o padding */
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 30px;
  }

  /* CORREÇÃO: Ajusta o carrossel infinito para tablets */
  .slider-infinite {
    width: calc(180px * 12);
  }

  .slide-infinite {
    min-width: 160px;
    margin: 0 10px;
  }

  @keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 6)); }
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .principais-solucoes {
    padding: 60px 20px;
  }
  
  .principais-solucoes h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .solucoes-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .solucao-card {
    padding: 25px 15px;
  }
  
  .solucao-card i {
    font-size: 2rem;
  }
  
  .solucao-card h3 {
    font-size: 1.1rem;
  }
  
  .solucao-card p {
    font-size: 0.9rem;
  }

  /* CORREÇÃO: Ajusta o carrossel infinito para mobile */
  .carrossel-infinite {
    padding: 60px 0;
  }

  .slider-infinite {
    width: calc(140px * 12);
  }

  .slide-infinite {
    min-width: 120px;
    height: 80px;
    margin: 0 10px;
  }

  @keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-140px * 6)); }
  }

  /* MELHORIAS ESPECÍFICAS PARA FORMULÁRIO E FOOTER */
  .contact-info h2 {
    font-size: 32px;
  }

  .contact-info p {
    font-size: 16px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-links {
    justify-content: center;
    gap: 20px;
  }

  .social-links {
    justify-content: center;
  }

  /* CORREÇÃO: Ajusta o WhatsApp float para mobile */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .tab-menu {
    flex-direction: column;
    gap: 15px;
  }

  .tab-button {
    width: 100%;
    text-align: center;
    font-size: 16px; /* CORREÇÃO: Reduz o tamanho da fonte */
  }

  .contact-btn {
    padding: 10px 20px;
  }

  .tab-content {
    font-size: 15px;
    text-align: center;
  }

  .main {
    padding-top: 80px;
  }
  
  .info-box {
    padding: 20px;
  }
  
  .tab-content {
    font-size: 14px;
    line-height: 1.6;
  }

  /* CORREÇÃO: Ajustes adicionais para telas muito pequenas */
  .container {
    padding: 0 15px;
  }

  .header .container {
    padding: 15px;
  }

  .logo {
    font-size: 20px;
  }

  .card {
    padding: 30px 20px;
  }

  .card h3 {
    font-size: 20px;
  }

  .card p {
    font-size: 14px;
  }

  /* MELHORIAS ESPECÍFICAS PARA FORMULÁRIO E FOOTER - MOBILE PEQUENO */
  .contact-info h2 {
    font-size: 28px;
  }

  .contact-info p {
    font-size: 14px;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px;
    font-size: 14px;
  }

  .btn-submit {
    padding: 14px 24px;
    font-size: 14px;
  }

  .footer {
    padding: 60px 0 30px;
  }

  .footer-content {
    gap: 25px;
  }

  .footer-section h3 {
    font-size: 20px;
  }

  .footer-section h4 {
    font-size: 16px;
  }

  .footer-section p {
    font-size: 14px;
  }

  .footer-links {
    gap: 15px;
  }

  .footer-links a {
    font-size: 13px;
  }

  /* CORREÇÃO: Carrossel ainda menor para telas muito pequenas */
  .slider-infinite {
    width: calc(120px * 12);
  }

  .slide-infinite {
    min-width: 100px;
    height: 70px;
    margin: 0 10px;
  }

  @keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-120px * 6)); }
  }
}

/* CORREÇÃO: Media query adicional para telas muito pequenas */
@media (max-width: 320px) {
  .hero-title {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .container {
    padding: 0 10px;
  }

  .header .container {
    padding: 10px;
  }

  .logo {
    font-size: 18px;
  }

  .info-box {
    padding: 15px;
  }

  .tab-button {
    font-size: 14px;
    padding: 10px 0;
  }

  /* MELHORIAS ESPECÍFICAS PARA FORMULÁRIO E FOOTER - MOBILE MUITO PEQUENO */
  .contact-info h2 {
    font-size: 24px;
  }

  .contact-form {
    padding: 20px 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 13px;
  }

  .btn-submit {
    padding: 12px 20px;
    font-size: 13px;
  }

  .footer {
    padding: 50px 0 25px;
  }

  .footer-section h3 {
    font-size: 18px;
  }

  .footer-section h4 {
    font-size: 15px;
  }

  .footer-section p {
    font-size: 13px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .whatsapp-float {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 10px;
    right: 10px;
  }
}