/* Reset completo para garantir largura total */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Prevenir scroll horizontal apenas quando necessário */
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* HEADER STYLES - FIXED SIZES */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .header-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .header-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1280px) {
  .header-container {
    padding: 0 3rem;
  }
}

@media (min-width: 1536px) {
  .header-container {
    padding: 0 4rem;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* LOGO STYLES - BETTER ALIGNMENT */
.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  color: white;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
}

.company-name {
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-top: 1px;
}

/* NAVIGATION STYLES */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1;
}

.nav-link:hover {
  color: #2563eb;
}

/* CTA BUTTON STYLES - BETTER ALIGNMENT */
.cta-button {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  height: 40px;
}

.cta-button:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .cta-button {
    display: inline-flex;
  }
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #4b5563;
  margin: 2px 0;
  transition: 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu.show {
  display: block;
}

.mobile-menu-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #2563eb;
}

/* HERO CAROUSEL STYLES - MODERNO E ELEGANTE */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.carousel-slide.next {
  opacity: 0;
  transform: translateX(100%) scale(1.1);
}

.carousel-slide.prev {
  opacity: 0;
  transform: translateX(-100%) scale(1.1);
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.carousel-slide.active .carousel-image {
  transform: scale(1.05);
}

/* Overlay com gradiente e texto */
.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active .carousel-overlay {
  transform: translateY(0);
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.2s;
}

.carousel-slide.active .carousel-title {
  opacity: 1;
  transform: translateY(0);
}

.carousel-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.4s;
}

.carousel-slide.active .carousel-subtitle {
  opacity: 0.9;
  transform: translateY(0);
}

/* Navigation dots */
.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

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

.dot.active {
  background: white;
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Navigation arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
}

.hero-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Progress bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%;
  transition: width 0.1s linear;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
  .carousel-overlay {
    padding: 1rem;
  }

  .carousel-title {
    font-size: 1.25rem;
  }

  .carousel-subtitle {
    font-size: 0.875rem;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }
}

/* WHATSAPP FLOATING BUTTON - UPDATED */
.whatsapp-float {
  position: fixed;
  bottom: 30px; /* Aumentado de 20px para 30px */
  right: 30px; /* Aumentado de 20px para 30px */
  z-index: 1000;
  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.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: white;
}

/* WhatsApp pulse animation */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 25px; /* Aumentado de 15px para 25px */
    right: 25px; /* Aumentado de 15px para 25px */
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Animation classes */
.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 1s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 1s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Custom scrollbar - PURPLE THEME - FIXED */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: 6px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #f1f5f9;
}

/* Remove any potential gray lines */
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #f8fafc;
}

/* Remove any purple/violet elements that might cause the stripe */
body {
  background: white;
}

html {
  background: white;
}

/* Ensure no purple backgrounds leak through */
* {
  box-sizing: border-box;
}

/* Remove any potential purple gradients from body */
body::before,
body::after {
  display: none;
}

/* Backdrop blur fallback */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
  transform: scale(1.02);
}

/* Button hover effects */
.group:hover .group-hover\:w-56 {
  width: 14rem;
}

.group:hover .group-hover\:h-56 {
  height: 14rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .text-4xl {
    font-size: 2rem;
  }

  .text-6xl {
    font-size: 3rem;
  }

  .lg\:text-4xl {
    font-size: 2.5rem;
  }

  .lg\:text-6xl {
    font-size: 3.5rem;
  }
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Hover effects for cards */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}

.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

.hover\:-translate-y-2:hover {
  transform: translateY(-0.5rem);
}

.hover\:translate-x-1:hover {
  transform: translateX(0.25rem);
}

.hover\:translate-x-2:hover {
  transform: translateX(0.5rem);
}

.hover\:rotate-12:hover {
  transform: rotate(12deg);
}

/* Gradient text animation */
.bg-gradient-to-r {
  background-size: 200% 200%;
}

/* Service cards animation delay */
.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Client logo animation delay */
.client-logo:nth-child(1) {
  animation-delay: 0.1s;
}
.client-logo:nth-child(2) {
  animation-delay: 0.2s;
}
.client-logo:nth-child(3) {
  animation-delay: 0.3s;
}
.client-logo:nth-child(4) {
  animation-delay: 0.4s;
}
.client-logo:nth-child(5) {
  animation-delay: 0.5s;
}
.client-logo:nth-child(6) {
  animation-delay: 0.6s;
}

/* Testimonial animation delay */
.testimonial:nth-child(1) {
  animation-delay: 0.1s;
}
.testimonial:nth-child(2) {
  animation-delay: 0.3s;
}
.testimonial:nth-child(3) {
  animation-delay: 0.5s;
}

/* Module animation delay */
.module:nth-child(1) {
  animation-delay: 0.1s;
}
.module:nth-child(2) {
  animation-delay: 0.2s;
}
.module:nth-child(3) {
  animation-delay: 0.3s;
}
.module:nth-child(4) {
  animation-delay: 0.4s;
}
.module:nth-child(5) {
  animation-delay: 0.5s;
}
.module:nth-child(6) {
  animation-delay: 0.6s;
}
.module:nth-child(7) {
  animation-delay: 0.7s;
}
.module:nth-child(8) {
  animation-delay: 0.8s;
}

/* Container responsivo - UPDATED */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Typewriter cursor styling - IMPROVED */
.typewriter-cursor {
  display: inline-block;
  font-weight: 100;
  font-family: "Courier New", monospace;
  animation: blink 1s infinite;
  color: #2563eb;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Remove gray lines and borders */
body,
html {
  border: none;
  outline: none;
  box-shadow: none;
}

/* Remove any potential border from containers */
.container,
.header-container,
.max-w-7xl {
  border: none;
  box-shadow: none;
}

/* Ensure no gray borders on sections */
section {
  border: none;
  box-shadow: none;
}

/* Animação do carrossel infinito - VELOCIDADE REDUZIDA EM 50% */
@keyframes scroll-right {
  0% {
    transform: translateX(-33.333%);
  }
  100% {
    transform: translateX(0);
  }
}

.animate-scroll-right {
  animation: scroll-right linear infinite;
}

/* Estilos para o carrossel com drag - COMPLETAMENTE CORRIGIDOS */
.carousel-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  cursor: grab; /* Cursor de grab em toda a área */
}

.carousel-container.dragging {
  cursor: grabbing; /* Cursor de grabbing durante o drag */
}

#client-carousel {
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  display: flex;
  pointer-events: none; /* Desabilitar eventos de pointer no carrossel para permitir drag no container */
}

/* Reabilitar pointer events apenas nos links */
#client-carousel .client-logo-link {
  pointer-events: auto;
}

/* Durante o drag, desabilitar todos os pointer events */
.carousel-container.dragging #client-carousel,
.carousel-container.dragging #client-carousel * {
  pointer-events: none;
}

/* ESTILOS MELHORADOS PARA OS LOGOS DOS CLIENTES */
.client-logo-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.client-logo-container:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.client-logo-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
  z-index: 1;
}

.client-logo-container:hover::before {
  left: 100%;
}

/* Garantir que as imagens não interfiram no drag */
.client-logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(100%) brightness(0.8);
  position: relative;
  z-index: 2;
  pointer-events: none; /* Impedir que a imagem interfira no drag */
}

.client-logo-container:hover .client-logo-image {
  filter: grayscale(0%) brightness(1) saturate(1.1);
  transform: scale(1.05);
}

/* Link styling para logos clicáveis */
.client-logo-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  position: relative;
}

.client-logo-link:hover {
  text-decoration: none;
}

/* Tooltip para mostrar nome da empresa */
.client-logo-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.client-logo-tooltip::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(0, 0, 0, 0.8);
}

.client-logo-container:hover .client-logo-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -40px;
}

/* Melhorar a transição do carrossel quando pausado */
#client-carousel img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Prevenir seleção de texto durante o drag */
#client-carousel * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Garantir que o carrossel seja arrastável */
.carousel-container * {
  touch-action: pan-y pinch-zoom;
}

#client-carousel {
  touch-action: pan-y;
}
