/* Variáveis de cor */
:root {
  --primary: #06183f;
  --secondary: #1e40af;
  --accent: #3b82f6;
  --hover-green: #22c55e;
}

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

/* Logo */
.logoimg {
  width: 350px;
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
}

/* Adicione este estilo para o efeito Coverflow */
.swiper-slide {
  transition: opacity 0.3s ease-in-out;
  width: 80% !important;
  /* Adjust this value to control the slide width */
}

.swiper-slide:not(.swiper-slide-active) {
  opacity: 0.6;
  /* Deixa os slides inativos um pouco transparentes */
}

.rodape-logo {
  width: 180px;
}

/* Estilos base */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  line-height: 1.6;
  overflow-x: hidden;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

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

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.title-font {
  font-family: 'Poppins', sans-serif;
}

/* Chatbox (IA Agent) */
.chat-box {
  width: 100%;
  height: 500px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-header {
  background: #4a90e2;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f9fafc;
  display: flex;
  flex-direction: column;
}

.message {
  margin: 10px 0;
  line-height: 1.4;
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  align-self: flex-end;
  background: #dcf8c6;
}

.bot-message {
  align-self: flex-start;
  background: #e1e5ec;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  background: white;
}

.chat-input input {
  flex: 1;
  padding: 15px;
  border: none;
  outline: none;
  font-size: 1em;
}

.chat-input button {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input button:hover {
  background: #3b7cc4;
}

/* Navegação */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.nav-link {
  color: #194d96;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-link:hover,
.nav-link:active,
.nav-link:focus {
  color: var(--hover-green);
}

.mobile-menu {
  background-color: white;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.mobile-menu:not(.hidden) {
  max-height: 500px;
  opacity: 1;
  overflow: visible;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.5rem 0;
  color: #194d96;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Planos */
.plan-card {
  transition: all 0.3s ease;
  opacity: 1;
  transform: none;
}

/* Layout de Planos */
.plan-card {
  transition: all 0.3s ease;
}

.custom-plan-card {
  min-height: 300px !important;
}

.custom-plan-card .text-4xl {
  font-size: 1.2rem !important;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .plan-card {
    width: 100%;
    margin-bottom: 20px;
    height: auto !important;
    min-height: 350px !important;
  }

  .flex.flex-wrap.justify-center.gap-8 {
    flex-direction: column;
    align-items: center;
  }

  .plan-card .text-4xl {
    font-size: 1.5rem !important;
  }
}

/* Modal */
#purchaseModal {
  transition: opacity 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
  .mobile-menu.hidden {
    display: none;
  }

  .mobile-menu:not(.hidden) {
    display: block;
  }

  .hero {
    height: auto;
    padding: 60px 0;
    min-height: 70vh;
  }

  .hero .container {
    padding: 0 1rem;
  }

  .logoimg {
    width: 250px;
  }

  .chat-box {
    height: 400px;
    margin: 0 1rem;
  }

  .plan-card {
    transform: scale(1);
    margin: 0 1rem 1.5rem 1rem;
  }

  /* Fix navigation on mobile */
  .navbar .container {
    padding: 0.75rem 1rem;
  }

  /* Improve text readability on mobile */
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  /* Fix button layout on mobile */
  .hero .flex.flex-col.sm\\:flex-row {
    gap: 1rem;
  }

  .hero .flex.flex-col.sm\\:flex-row a {
    text-align: center;
    padding: 0.875rem 1.5rem;
  }

  /* Improve section spacing */
  section {
    padding: 3rem 0;
  }

  /* Fix iframe on mobile */
  iframe {
    height: 300px !important;
  }

  /* Improve contact form on mobile */
  .flex.flex-col.md\:flex-row {
    flex-direction: column;
  }

  .md\:w-1\/2 {
    width: 100%;
    margin-bottom: 2rem;
  }

  /* Fix mesh section layout */
  .md\:w-1\/2.grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero p {
    font-size: 1rem;
  }

  .logoimg {
    width: 200px;
  }

  .chat-box {
    height: 350px;
    margin: 0 0.5rem;
  }

  .plan-card {
    margin: 0 0.5rem 1rem 0.5rem;
    padding: 1.25rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Improve button text size */
  .btn-plan {
    font-size: 0.9rem;
  }

  /* Fix section titles */
  .title-font.text-3xl {
    font-size: 1.875rem;
  }

  /* Fix mesh section image */
  .mesh-section img {
    width: 100%;
    height: auto;
  }
}

/* Additional mobile improvements */
@media (max-width: 640px) {

  /* Fix video background on mobile */
  .video-background video {
    object-position: center center;
  }

  /* Improve mobile menu */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    border-top: 1px solid #e5e7eb;
  }

  /* Fix plan cards flex layout */
  .flex.flex-wrap.justify-center.gap-8 {
    gap: 1rem;
  }

  /* Improve chat input on mobile */
  .chat-input input {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  /* Fix modal on mobile */
  #purchaseModal .bg-white {
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }
}