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

:root {
  /* Cores principais da empresa - Azul e Bege */
  --primary-color: #4a90e2; /* Azul da imagem */
  --primary-dark: #357abd; /* Azul mais escuro */
  --secondary-color: #d4af37; /* Bege/dourado */
  --accent-color: #f5e6a3; /* Bege claro */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  --gradient-secondary: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  --gradient-animated: linear-gradient(45deg, #4a90e2, #357abd, #4a90e2, #357abd);

  /* Mobile-specific variables */
  --mobile-padding: 15px;
  --mobile-section-padding: 4rem 0;
  --mobile-header-height: 70px;
  --mobile-button-height: 44px;
  --animation-duration: 0.6s;
  --vh: 1vh;
}

/* Modo escuro */
.dark-mode {
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-dark: #020617;
  --border-color: #334155;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Loading Animation */
/* Removido para evitar flicker na tela ao recarregar */
/* Removed empty ruleset for body.loaded */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

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

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

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

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

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

/* Stagger Animation */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.3));
}

.company-logo:hover {
  transform: rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(74, 144, 226, 0.6));
}

.nav-logo h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
}

.nav-logo h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

.highlight {
  color: var(--primary-color);
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.nav-menu a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 25px;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.nav-menu a:hover::before {
  transform: scale(1);
}

.nav-menu a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

.theme-toggle {
  margin-left: 1rem;
}

.theme-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.theme-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
}

.theme-btn:hover::before {
  width: 100%;
  height: 100%;
}

.theme-btn:hover {
  color: white;
  transform: scale(1.1) rotate(180deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1a2332 100%);
  overflow: hidden;
}

/* Animated Background Particles */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Animações para o título hero */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  overflow: hidden;
}

.hero-title .line-1,
.hero-title .line-2 {
  display: block;
  opacity: 0;
  animation: slideInFromLeft 1s ease-out forwards;
}

.hero-title .line-1 {
  animation-delay: 0.5s;
  white-space: nowrap;
  min-height: 4rem;
}

.hero-title .line-2 {
  animation-delay: 1s;
}

.hero-title .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  animation: glowPulse 2s ease-in-out infinite alternate;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(74, 144, 226, 0.3) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-title .typewriter {
  display: inline-block;
  border-right: 3px solid var(--primary-color);
  animation: typewriter 2s steps(8) 1.5s forwards, blink 1s infinite 3.5s;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  min-width: 0;
  max-width: fit-content;
  vertical-align: top; /* Alinha com o topo da linha */
  line-height: 1.1; /* Mantém o mesmo line-height do título */
  position: relative;
  top: 0; /* Garante alinhamento perfeito */
}

/* Animações keyframes */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes typewriter {
  0% {
    width: 0;
  }
  100% {
    width: 9ch; /* Ajustado para "PAC LEAD" (8 chars + espaço) */
    border-right: none;
  }
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--primary-color);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.8), 0 0 30px rgba(74, 144, 226, 0.6);
    transform: scale(1.02);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Animação para o badge de lançamento */
.launch-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: bounceIn 1s ease-out, pulse 2s infinite 2s;
  transform-origin: center;
  position: relative;
  overflow: hidden;
}

.launch-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badgeShine 2s infinite;
}

@keyframes badgeShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animação para a descrição */
.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 1s ease-out 2s forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação para os botões */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease-out 2.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 135%;
  opacity: 0;
  animation: fadeInScale 1s ease-out 1.5s forwards;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.video-container-hero {
  position: relative;
  width: 90%;
  height: 550px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-secondary);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.video-container-hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-container-hero iframe {
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.btn-cta {
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: ctaShine 3s infinite;
}

@keyframes ctaShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #b8941f 0%, #9a7a1a 100%);
}

.btn-cta i {
  font-size: 1.2rem;
  animation: rocket 2s ease-in-out infinite;
}

@keyframes rocket {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Background Elements */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -150px;
  animation-delay: 0s;
}

.bg-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -100px;
  animation-delay: 2s;
}

.bg-circle-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 20%;
  animation-delay: 4s;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--bg-secondary);
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  animation: backgroundShift 15s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
}

.stat-number::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 1px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tech-item {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-item:hover::before {
  opacity: 0.1;
}

.tech-item:hover {
  transform: translate3d(0, -8px, 0) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.tech-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.tech-item:hover i {
  transform: scale(1.2) rotate(10deg);
  color: var(--secondary-color);
}

.tech-item span {
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card:hover {
  transform: translate3d(0, -10px, 0) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 144, 226, 0.2);
}

.service-card.featured {
  background: var(--gradient-primary);
  color: white;
  animation: featuredGlow 3s ease-in-out infinite;
}

@keyframes featuredGlow {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 20px rgba(74, 144, 226, 0.3);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(74, 144, 226, 0.5);
  }
}

.service-card.featured .service-icon i {
  color: white;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.2);
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
  transform: scale(1.2);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.9);
}

.service-card ul {
  list-style: none;
  position: relative;
  z-index: 2;
}

.service-card li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.service-card li:hover {
  transform: translateX(5px);
}

.service-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  transition: all 0.3s ease;
}

.service-card:hover li:before {
  transform: scale(1.2);
}

.service-card.featured li {
  color: white;
}

.service-card.featured li:before {
  color: white;
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: rgb(3, 25, 83);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* PAC LEAD Section */
.pac-lead {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.pac-lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(74, 144, 226, 0.03) 0%, transparent 50%),
    linear-gradient(-45deg, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  animation: pacLeadBg 20s ease-in-out infinite;
}

@keyframes pacLeadBg {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

.pac-lead-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.launch-tag {
  display: inline-block;
  background: var(--gradient-secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.launch-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: tagShine 2s infinite;
}

@keyframes tagShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.pac-lead-info h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
}

.pac-lead-info h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.pac-lead-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.pac-lead-info p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.features-list {
  margin-bottom: 2.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 10px;
}

.feature:hover {
  background: rgba(74, 144, 226, 0.05);
  transform: translateX(10px);
}

.feature i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.feature:hover i {
  transform: scale(1.2) rotate(10deg);
}

.feature span {
  color: var(--text-primary);
}

.pac-lead-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.features-showcase {
  display: grid;
  gap: 1.5rem;
}

.showcase-item {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.showcase-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-item:hover::before {
  opacity: 0.05;
}

.showcase-item:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.showcase-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.showcase-item:hover .showcase-icon {
  transform: scale(1.2) rotate(360deg);
}

.showcase-icon i {
  font-size: 1.5rem;
  color: white;
}

.showcase-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.showcase-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

/* Our AIs Section */
.our-ais {
  padding: 6rem 0;
  background: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.ais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.ai-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 1px solid transparent;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.ai-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.ai-card:hover::before {
  opacity: 0.03;
}

.ai-card:hover {
  transform: translate3d(0, -10px, 0) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 144, 226, 0.2);
}

.ai-image {
  position: relative;
  height: 450px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.ai-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.ai-card:hover .ai-photo {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.ai-logo {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 3;
}

.ai-card:hover .ai-logo {
  transform: scale(1.1) rotate(10deg);
}

.logo-small {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.ai-info {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.ai-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.ai-card:hover .ai-info h3 {
  color: var(--primary-color);
}

.ai-role {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.ai-card:hover .ai-role {
  transform: scale(1.05);
  background: var(--gradient-secondary);
}

.ai-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.ai-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(74, 144, 226, 0.2);
  transition: all 0.3s ease;
}

.ai-card:hover .feature-tag {
  background: rgba(74, 144, 226, 0.2);
  transform: translateY(-2px);
}

.ais-cta {
  text-align: center;
  background: var(--gradient-primary);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.ais-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: ctaFlow 3s infinite;
}

@keyframes ctaFlow {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.ais-cta h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.ais-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.ais-cta .btn {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.ais-cta .btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px) scale(1.05);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent;
}

.contact-method:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 30px;
  transition: all 0.3s ease;
}

.contact-method:hover i {
  transform: scale(1.2) rotate(10deg);
}

.method-title {
  font-weight: 600;
  display: block;
  color: var(--text-primary);
}

.method-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cta-card {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: cardFlow 4s infinite;
}

@keyframes cardFlow {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.cta-card h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.cta-card p {
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.footer-brand:hover h3 {
  color: var(--primary-color);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 1px;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-section a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-section a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-section a:hover {
  color: white;
  transform: translateX(10px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
}

/* Dark mode adjustments for AI cards */
.dark-mode .ai-image {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.dark-mode .feature-tag {
  background: rgba(74, 144, 226, 0.2);
  border-color: rgba(74, 144, 226, 0.3);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 30px;
  }
  
  .hero-container {
    max-width: 100%;
    padding: 0 30px;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    width: 100%;
  }

  .video-container-hero {
    height: 400px;
  }

  .about-content,
  .pac-lead-content,
  .contact-content {
    gap: 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .ais-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .nav-container {
    padding: 0 15px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .company-logo {
    width: 45px;
    height: 45px;
  }

  .nav-logo h2 {
    font-size: 1.5rem;
  }

  /* Hero Mobile */
  .hero {
    min-height: auto; /* Remove min-height fixo para se ajustar ao conteúdo */
    padding: 1.5rem 0; /* Mantém o padding */
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    padding: 0 12px;
  }

  .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-visual {
    width: 100%;
    order: 2;
  }

  .video-container-hero {
    width: 100%;
    aspect-ratio: 16/9; /* Garante que o vídeo mantenha a proporção */
    height: auto; /* Permite que a altura se ajuste com base no aspect-ratio */
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem); /* Tamanho responsivo baseado na largura da tela */
    line-height: 1.1;
    margin-bottom: 0.8rem;
    word-wrap: break-word; /* Permite quebra de palavras longas */
    hyphens: auto; /* Adiciona hifenização automática */
  }

  .hero-title .line-1 {
    min-height: auto; /* Remove altura fixa */
    white-space: normal; /* Permite quebra de linha natural */
  }

  .hero-title .line-2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem); /* Tamanho responsivo */
  }

  .hero-description {
    font-size: clamp(0.9rem, 3vw, 1rem); /* Tamanho responsivo */
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    line-height: 1.5; /* Melhor legibilidade */
    max-width: 100%; /* Garante que não ultrapasse a tela */
    word-wrap: break-word; /* Quebra palavras longas */
  }

  .hero-buttons {
    justify-content: center;
    gap: 0.8rem;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: clamp(240px, 80vw, 280px); /* Largura responsiva */
    justify-content: center;
    padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1.2rem, 3vw, 1.5rem); /* Padding responsivo */
    font-size: clamp(0.85rem, 2.5vw, 0.95rem); /* Tamanho de fonte responsivo */
    min-height: 44px; /* Altura mínima para touch */
  }

  .btn-cta {
    font-size: clamp(0.9rem, 2.8vw, 1rem); /* Tamanho responsivo */
    padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1.2rem, 3vw, 1.5rem); /* Padding responsivo */
    width: 100%;
    max-width: clamp(240px, 80vw, 280px); /* Largura responsiva */
    min-height: 44px; /* Altura mínima para touch */
  }

  .launch-badge {
    font-size: clamp(0.7rem, 2vw, 0.8rem); /* Tamanho responsivo */
    padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.6rem, 2vw, 0.8rem); /* Padding responsivo */
  }

  /* Sections Mobile */
  .container {
    padding: 0 clamp(10px, 3vw, 15px); /* Padding responsivo */
  }

  .section-header {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem); /* Margem responsiva */
    text-align: center;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 5vw, 2rem); /* Tamanho responsivo */
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem); /* Margem responsiva */
    line-height: 1.2; /* Melhor legibilidade */
  }

  .section-header p {
    font-size: clamp(0.9rem, 3vw, 1rem); /* Tamanho responsivo */
    padding: 0 clamp(0.3rem, 2vw, 0.8rem); /* Padding responsivo */
    line-height: 1.5; /* Melhor legibilidade */
    max-width: 100%; /* Garante que não ultrapasse a tela */
  }

  /* About Mobile */
  .about {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0; /* Padding responsivo */
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem); /* Gap responsivo */
    text-align: center;
  }

  .about-text h3 {
    font-size: clamp(1.3rem, 4vw, 1.6rem); /* Tamanho responsivo */
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem); /* Margem responsiva */
  }

  .about-text p {
    font-size: clamp(0.95rem, 3vw, 1.05rem); /* Tamanho responsivo */
    padding: 0 clamp(0.3rem, 2vw, 0.8rem); /* Padding responsivo */
    line-height: 1.6; /* Melhor legibilidade */
    margin-bottom: clamp(1.5rem, 3vw, 2rem); /* Margem responsiva */
  }

  .stats {
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .stat-item {
    min-width: 100px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .tech-stack {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .tech-item {
    padding: 1rem;
  }

  .tech-item i {
    font-size: 1.5rem;
  }

  .tech-item span {
    font-size: 0.9rem;
  }

  /* Services Mobile */
  .services {
    padding: 3rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .service-card {
    padding: 1.8rem 1.3rem;
    text-align: center;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .service-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 1rem;
  }

  .service-icon i {
    font-size: 1.4rem;
  }

  /* PAC LEAD Mobile */
  .pac-lead {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0; /* Padding responsivo */
  }

  .pac-lead-content {
    grid-template-columns: 1fr;
    gap: clamp(1.2rem, 3vw, 2rem); /* Gap responsivo */
    text-align: center;
  }

  .pac-lead-info {
    order: 1;
  }

  .pac-lead-visual {
    order: 2;
  }

  .pac-lead-info h2 {
    font-size: clamp(2rem, 6vw, 2.5rem); /* Tamanho responsivo */
    margin-bottom: clamp(0.3rem, 1vw, 0.5rem); /* Margem responsiva */
  }

  .pac-lead-info h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem); /* Tamanho responsivo */
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem); /* Margem responsiva */
  }

  .pac-lead-info p {
    font-size: clamp(0.9rem, 3vw, 1rem); /* Tamanho responsivo */
    padding: 0 clamp(0.2rem, 1.5vw, 0.5rem); /* Padding responsivo */
    line-height: 1.6; /* Melhor legibilidade */
    margin-bottom: clamp(1.5rem, 3vw, 2rem); /* Margem responsiva */
  }

  .features-list {
    text-align: left;
    max-width: 380px;
    margin: 0 auto 1.8rem;
  }

  .feature {
    padding: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .pac-lead-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .showcase-item {
    padding: 1.3rem;
  }

  .showcase-icon {
    width: 45px;
    height: 45px;
  }

  .showcase-icon i {
    font-size: 1.1rem;
  }

  .showcase-item h4 {
    font-size: 1.1rem;
  }

  /* Our AIs Mobile */
  .our-ais {
    padding: 3rem 0;
  }

  .ais-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ai-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .ai-image {
    height: 400px;
    position: relative;
    overflow: hidden;
  }

  .ai-info {
    padding: 1.3rem;
    text-align: center;
  }

  .ai-info h3 {
    font-size: 1.4rem;
  }

  .ai-info p {
    font-size: 0.9rem;
    text-align: left;
  }

  .ai-features {
    justify-content: center;
  }

  .ais-cta {
    padding: 1.8rem 1.3rem;
    margin-top: 1.5rem;
  }

  .ais-cta h3 {
    font-size: 1.4rem;
  }

  .ais-cta p {
    font-size: 0.95rem;
  }

  /* Contact Mobile */
  .contact {
    padding: 3rem 0;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h3 {
    font-size: 1.4rem;
  }

  .contact-info p {
    font-size: 0.95rem;
    padding: 0 0.3rem;
  }

  .contact-methods {
    gap: 0.8rem;
  }

  .contact-method {
    padding: 1rem;
    text-align: left;
  }

  .contact-method i {
    font-size: 1.2rem;
  }

  .cta-card {
    padding: 1.8rem 1.3rem;
  }

  .cta-card h4 {
    font-size: 1.4rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 1.8rem 0 0.8rem;
  }

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

  .footer-brand h3 {
    font-size: 1.4rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section a {
    padding-left: 0;
  }

  .footer-section a::before {
    display: none;
  }

  .footer-section a:hover {
    transform: none;
  }

  /* Disable some animations on mobile for performance */
  .hero::before,
  .about::before,
  .pac-lead::before {
    animation: none;
  }

  .hero-title .highlight::after {
    display: none;
  }
  
  /* Simplify hover effects on mobile */
  .service-card:hover,
  .ai-card:hover,
  .showcase-item:hover,
  .tech-item:hover {
    transform: translate3d(0, -5px, 0);
  }
  
  .btn:hover {
    transform: translate3d(0, -2px, 0) scale(1.02);
  }

  @keyframes typewriter {
    0% {
      width: 0;
    }
    100% {
      width: 8ch;
      border-right: none;
    }
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .container {
    padding: 0 10px;
  }

  .nav-container {
    padding: 0 10px;
  }

  .hero-container {
    padding: 0 10px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-title .line-1 {
    min-height: 2.2rem;
  }

  .hero-title .line-2 {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .pac-lead-info h2 {
    font-size: 2rem;
  }

  .about-text h3,
  .contact-info h3 {
    font-size: 1.3rem;
  }

  .ai-info {
    padding: 1.2rem;
  }

  .ai-info h3 {
    font-size: 1.3rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .showcase-item {
    padding: 1.2rem;
  }

  .ais-cta,
  .cta-card {
    padding: 1.5rem 1rem;
  }

  .stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .tech-stack {
    gap: 0.8rem;
  }

  .tech-item {
    padding: 0.8rem;
  }

  .video-container-hero {
    height: 200px;
  }

  .ai-image {
    height: 180px;
  }

  /* Simplify animations on very small screens */
  .hero-title .typewriter {
    white-space: normal; /* Permite quebra de linha */
    width: auto; /* Permite que a largura se ajuste ao conteúdo */
    border-right: none; /* Remove o cursor de digitação no mobile */
    animation: none; /* Desativa a animação de digitação no mobile */
  }

  .tech-item:hover,
  .service-card:hover,
  .showcase-item:hover,
  .ai-card:hover {
    transform: translateY(-3px);
  }

  .btn:hover {
    transform: translateY(-1px) scale(1.02);
  }

  /* WhatsApp button mobile */
  .whatsapp-float {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
    bottom: 15px !important;
    right: 15px !important;
  }
}

@media (max-width: 360px) {
  /* Very small screens */
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-title .line-2 {
    font-size: 1.3rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .pac-lead-info h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .service-card,
  .ai-info,
  .showcase-item {
    padding: 1rem;
  }

  .stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 1rem 0;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .video-container-hero {
    height: 200px;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .about,
  .services,
  .pac-lead,
  .our-ais,
  .contact {
    padding: 3rem 0;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .company-logo,
  .logo-small {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .contact-method,
  .nav-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
  }

  .service-card:hover,
  .ai-card:hover,
  .tech-item:hover,
  .showcase-item:hover {
    transform: none;
  }

  .nav-menu a:hover::before {
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .ais-grid {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .ai-card.carousel-active {
    margin: 0 auto !important;
    max-width: 450px;
    width: 100%;
    display: block !important;
    align-self: center;
  }
}


/* ===== CARROSSEL MOBILE - AGENTES DE IA ===== */
@media (max-width: 768px) {
  .our-ais {
    padding: 3rem 0;
  }
  
  .ais-grid {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
  }
  
  .ai-card {
    display: none !important;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  
  .ai-card.carousel-active {
    display: block !important;
  }
  
  .ai-image {
    height: 570px; /* Revertendo para a altura original */
    border-radius: 20px;
    overflow: hidden;
  }
  
  .ai-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Controles do carrossel */
  .carousel-controls {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
  }
  
  .carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  }
  
  .carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
  }
  
  .carousel-btn:active {
    transform: scale(0.95);
  }
  
  .carousel-indicators {
    display: flex;
    gap: 0.4rem;
  }
  
  .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
  }
}

/* Desktop - esconder controles do carrossel */
@media (min-width: 769px) {
  .carousel-controls {
    display: none !important;
  }
  
  .ai-card {
    display: block !important;
  }
  
  .ais-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2.5rem !important;
  }
}

/* CORREÇÃO FINAL - FORÇAR ESCONDER CARDS NO MOBILE */
@media (max-width: 768px) {
  .our-ais .ais-grid .ai-card {
    display: none !important;
  }
  
  .our-ais .ais-grid .ai-card.carousel-active {
    display: block !important;
  }
}
@media (max-width: 768px) {
  .header {
    height: 50px;
    min-height: 50px;
  }
  .nav-container {
    height: 50px;
    padding: 0 12px;
  }
  .company-logo {
    width: 36px;
    height: 36px;
  }
  .nav-logo h2 {
    font-size: 1.1rem;
    margin-bottom: 0;
  }
  .nav-menu {
    top: 50px;
    padding: 0.8rem 0;
  }
  .nav-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  .theme-btn {
    width: 30px;
    height: 30px;
    margin-left: 0.4rem;
  }
  .hero {
    padding-top: 50px;
    min-height: 85vh;
  }
}
