/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');

/* Variáveis globais */
:root {
  --blue-dark: #0A3D62;
  --blue-medium: #1e5f8c;
  --blue-light: #0097e6;
  --blue-glow: rgba(0, 151, 230, 0.5);
  --dark: #000000;
  --dark-blue: #051a2d;
  --light: #ffffff;
  --gray-light: #f0f0f0;
  --gray-medium: #a0a0a0;
  
  --gradient-blue: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  --gradient-dark: linear-gradient(135deg, var(--dark-blue), var(--blue-dark));
  
  --font-primary: 'Montserrat', sans-serif;
  --font-tech: 'Orbitron', sans-serif;
  
  --shadow-sm: 0 2px 10px rgba(0, 151, 230, 0.2);
  --shadow-md: 0 5px 15px rgba(0, 151, 230, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 151, 230, 0.4);
  
  --glow-blue: 0 0 15px var(--blue-glow);
  --glow-strong: 0 0 25px var(--blue-light);
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-tech);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--light);
  text-shadow: var(--glow-blue);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Header e navegação */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(5, 26, 45, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  transition: all 0.3s ease;
}

header.scrolled .logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--light);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: width 0.3s ease;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.8s;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--blue-light);
  color: var(--light);
  border: none;
  border-radius: 4px;
  font-family: var(--font-tech);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.btn:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.btn:hover::before {
  left: 100%;
}

.hero-btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 1.1s;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Seção Sobre */
.about {
  background: var(--dark);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 151, 230, 0.05) 0%, transparent 70%);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--blue-light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  position: relative;
}

.neural-network {
  width: 100%;
  height: 400px;
  position: relative;
}

/* Seção Tecnologias */
.technologies {
  background: var(--dark-blue);
  position: relative;
}

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

.tech-card {
  background: rgba(10, 61, 98, 0.3);
  border: 1px solid rgba(0, 151, 230, 0.2);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-blue);
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.tech-icon {
  font-size: 2.5rem;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
}

.tech-card h3 {
  margin-bottom: 1rem;
}

/* Seção Casos de Uso */
.use-cases {
  background: var(--dark);
  position: relative;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.cta-container {
  margin-top: 3rem;
  text-align: center;
}

.case-card {
  min-width: 300px;
  scroll-snap-align: start;
  background: rgba(10, 61, 98, 0.3);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(0, 151, 230, 0.2);
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.case-icon {
  width: 60px;
  height: 60px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--light);
  box-shadow: var(--glow-blue);
}

/* Seção Diferenciais */
.features {
  background: var(--dark-blue);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--blue-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 2rem);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--blue-light);
  border-radius: 50%;
  box-shadow: var(--glow-blue);
}

.timeline-content {
  background: rgba(10, 61, 98, 0.3);
  border: 1px solid rgba(0, 151, 230, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  background: var(--dark-blue);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 151, 230, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--blue-light);
  transform: translateY(-5px);
  box-shadow: var(--glow-blue);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--gray-medium);
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 151, 230, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 151, 230, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 151, 230, 0);
  }
}

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

/* Efeitos de Glitch */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--blue-light);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 1px 0 var(--blue-light);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }
  5% {
    clip: rect(70px, 9999px, 71px, 0);
  }
  10% {
    clip: rect(29px, 9999px, 83px, 0);
  }
  15% {
    clip: rect(16px, 9999px, 91px, 0);
  }
  20% {
    clip: rect(2px, 9999px, 23px, 0);
  }
  25% {
    clip: rect(46px, 9999px, 33px, 0);
  }
  30% {
    clip: rect(94px, 9999px, 75px, 0);
  }
  35% {
    clip: rect(24px, 9999px, 45px, 0);
  }
  40% {
    clip: rect(80px, 9999px, 58px, 0);
  }
  45% {
    clip: rect(75px, 9999px, 61px, 0);
  }
  50% {
    clip: rect(57px, 9999px, 73px, 0);
  }
  55% {
    clip: rect(89px, 9999px, 38px, 0);
  }
  60% {
    clip: rect(26px, 9999px, 37px, 0);
  }
  65% {
    clip: rect(23px, 9999px, 30px, 0);
  }
  70% {
    clip: rect(39px, 9999px, 93px, 0);
  }
  75% {
    clip: rect(34px, 9999px, 93px, 0);
  }
  80% {
    clip: rect(63px, 9999px, 59px, 0);
  }
  85% {
    clip: rect(69px, 9999px, 66px, 0);
  }
  90% {
    clip: rect(6px, 9999px, 8px, 0);
  }
  95% {
    clip: rect(56px, 9999px, 14px, 0);
  }
  100% {
    clip: rect(39px, 9999px, 42px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }
  5% {
    clip: rect(52px, 9999px, 74px, 0);
  }
  10% {
    clip: rect(79px, 9999px, 85px, 0);
  }
  15% {
    clip: rect(75px, 9999px, 5px, 0);
  }
  20% {
    clip: rect(67px, 9999px, 61px, 0);
  }
  25% {
    clip: rect(14px, 9999px, 79px, 0);
  }
  30% {
    clip: rect(1px, 9999px, 66px, 0);
  }
  35% {
    clip: rect(86px, 9999px, 30px, 0);
  }
  40% {
    clip: rect(23px, 9999px, 98px, 0);
  }
  45% {
    clip: rect(85px, 9999px, 72px, 0);
  }
  50% {
    clip: rect(71px, 9999px, 75px, 0);
  }
  55% {
    clip: rect(2px, 9999px, 48px, 0);
  }
  60% {
    clip: rect(30px, 9999px, 16px, 0);
  }
  65% {
    clip: rect(59px, 9999px, 50px, 0);
  }
  70% {
    clip: rect(41px, 9999px, 62px, 0);
  }
  75% {
    clip: rect(2px, 9999px, 82px, 0);
  }
  80% {
    clip: rect(47px, 9999px, 73px, 0);
  }
  85% {
    clip: rect(3px, 9999px, 27px, 0);
  }
  90% {
    clip: rect(26px, 9999px, 55px, 0);
  }
  95% {
    clip: rect(42px, 9999px, 97px, 0);
  }
  100% {
    clip: rect(38px, 9999px, 49px, 0);
  }
}

/* Chat IA */
.chat-container {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(5, 26, 45, 0.8);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 151, 230, 0.3);
  box-shadow: var(--shadow-lg);
}

.chat-header {
  background: var(--blue-dark);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.chat-title {
  font-size: 1rem;
  margin-bottom: 0;
}

.chat-status {
  font-size: 0.8rem;
  opacity: 0.8;
}

.chat-messages {
  height: 300px;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.message-user {
  align-self: flex-end;
  background: var(--blue-light);
}

.message-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
}

.chat-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-family: var(--font-primary);
}

.chat-input input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--blue-light);
}

.chat-input button {
  background: var(--blue-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 0.5rem;
  color: var(--light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-input button:hover {
  background: var(--blue-medium);
  transform: scale(1.1);
}

/* Typing animation */
.typing {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.typing span {
  width: 8px;
  height: 8px;
  background: var(--gray-medium);
  border-radius: 50%;
  animation: typing 1.5s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* Responsividade */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .neural-network {
    height: 300px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--dark-blue);
    z-index: 1001;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .mobile-nav.active {
    right: 0;
  }
  
  .close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 80px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  section {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .neural-network {
    height: 250px;
  }
}

/* Adicionando estilo para o texto do logo */
.logo-text {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 1px;
  text-shadow: var(--glow-blue);
}

footer .logo-text {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.cta-btn {
  font-size: 1rem;
  padding: 1rem 2rem;
  background: var(--blue-light);
  color: var(--light);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.cta-btn-large {
  font-size: 1.2rem;
  padding: 1.2rem 2.5rem;
  background: var(--blue-light);
  color: var(--light);
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  margin: 2rem 0;
  letter-spacing: 1px;
}

.cta-btn-large:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
}

.main-cta {
  margin: 3rem 0 2rem;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.whatsapp-float i {
  margin-top: 0;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
  
  .cta-btn-large {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
}
