/* AI Tools Video Styles for Website Landing Page */

/* Ajustar z-index do dropdown apenas na página ai-tools */
#navbarNav .dropdown-menu {
  z-index: 1050 !important;
}

/* Remover background image do hero-reading na página ai-tools */
.hero-section.hero-reading.ai-tools-page {
  background: #000000 !important;
  position: relative;
  overflow: hidden;
  height: 600px;
}

/* Remover text-shadow do parágrafo do hero apenas nesta página */
.hero-section.hero-reading.ai-tools-page p {
  text-shadow: none !important;
}

/* Bolas de blur em azul escuro nos cantos */
.hero-section.hero-reading.ai-tools-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at top left, rgba(25, 25, 112, 0.4) 0%, transparent 50%),
    radial-gradient(circle at top right, rgba(30, 144, 255, 0.4) 0%, transparent 50%),
    radial-gradient(circle at bottom left, rgba(0, 0, 139, 0.3) 0%, transparent 50%),
    radial-gradient(circle at bottom right, rgba(0, 191, 255, 0.3) 0%, transparent 50%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}


/* Video wrapper dentro do hero-section - posicionamento absoluto */
.hero-section.hero-reading.ai-tools-page .ai-tools-video-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
}

.hero-section.hero-reading.ai-tools-page .ai-header-video {
  position: absolute;
  top: 0;
  right: -200px;
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* Máscara com fade nas duas bordas (esquerda e direita) */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    rgba(0, 0, 0, 0.85) 18%,
    black 30%,
    black 70%,
    rgba(0, 0, 0, 0.85) 82%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    rgba(0, 0, 0, 0.85) 18%,
    black 30%,
    black 70%,
    rgba(0, 0, 0, 0.85) 82%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
}

/* Overlay escuro no topo do vídeo */
.hero-section.hero-reading.ai-tools-page .ai-tools-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Garantir que o conteúdo fique acima do vídeo */
.hero-section.hero-reading.ai-tools-page .container {
  position: relative;
  z-index: 0;
}

/* Em telas grandes, limitar o vídeo ao container (máx 1376px) */
@media (min-width: 1376px) {
  .hero-section.hero-reading.ai-tools-page .ai-header-video {
    right: calc((100vw - 1500px) / 2 - 200px);
  }
}

/* Em telas médias, manter dentro do container */
@media (min-width: 992px) and (max-width: 1375px) {
  .hero-section.hero-reading.ai-tools-page .ai-header-video {
    right: -200px;
  }
}

/* Mobile: esconder vídeo */
@media (max-width: 991px) {
  .hero-section.hero-reading.ai-tools-page .ai-tools-video-wrapper {
    display: none;
  }
}

/* Destaque sutil em palavras-chave */
.highlight-text {
  color: #1e90ff;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(30, 144, 255, 0.3), rgba(0, 191, 255, 0.3));
  border-radius: 2px;
  opacity: 0.6;
}

/* Destaque no botão (fundo azul) */
.btn-demo-video .highlight-text {
  color: #ffffff;
  font-weight: 700;
}

.btn-demo-video .highlight-text::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
  height: 2px;
  bottom: 1px;
}

/* Botão de Demo/Video */
.demo-button-wrapper {
  margin: 2rem 0;
}

.btn-demo-video {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-demo-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-demo-video:hover::before {
  left: 100%;
}

.btn-demo-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
  background: linear-gradient(135deg, #1c7ed6 0%, #0099cc 100%);
  color: #ffffff;
  text-decoration: none;
}

.btn-demo-video:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.demo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.btn-demo-video:hover .demo-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.demo-icon i,
.demo-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  color: #ffffff;
}

.demo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.demo-label {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

.demo-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.9;
  color: #ffffff;
}

.demo-arrow {
  margin-left: auto;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.btn-demo-video:hover .demo-arrow {
  transform: translateX(4px);
}

.demo-arrow i,
.demo-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  color: #ffffff;
}

/* Modal de vídeo - Design profissional e responsivo */
.modal-dialog-video {
  max-width: 1200px;
  margin: 1.75rem auto;
  width: 95%;
  border-radius: 0;
  overflow: visible;
}

.video-modal-content {
  border-radius: 0;
  border: none;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000000;
}

.video-modal-header {
  background: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
  color: #ffffff;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-modal-title-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  color: #ffffff;
}

.video-modal-header .modal-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.btn-close-video {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
}

.btn-close-video:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.btn-close-video i,
.btn-close-video svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  color: #ffffff;
}

.video-modal-body {
  padding: 0;
  background: #000000;
  position: relative;
  overflow: visible;
  border-radius: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 67.06%; /* Aspect ratio 1372:920 = 67.06% */
  background: #000000;
  overflow: visible;
  display: block;
  max-height: 80vh; /* Limita altura máxima para telas menores */
  height: 0; /* Necessário para padding-bottom funcionar */
  border-radius: 0;
}

@media (max-height: 900px) {
  .video-wrapper {
    padding-bottom: min(67.06%, 60vh);
    max-height: 60vh;
  }
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  border-radius: 0 !important;
}

/* Backdrop melhorado */
#demoVideoModal.modal.show .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

/* Animações suaves */
#demoVideoModal.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transform: scale(0.9) translateY(-50px);
  opacity: 0;
}

#demoVideoModal.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Responsivo */
@media (max-width: 991px) {
  .modal-dialog-video {
    max-width: 95%;
    margin: 1rem auto;
  }
  
  .video-modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .video-modal-header .modal-title {
    font-size: 1.125rem;
  }
  
  .video-modal-title-icon {
    width: 20px;
    height: 20px;
  }
  
  .btn-close-video {
    width: 32px;
    height: 32px;
  }
  
  .btn-close-video i,
  .btn-close-video svg {
    width: 18px;
    height: 18px;
  }
  
  .video-wrapper {
    max-height: 70vh;
    padding-bottom: min(67.06%, 70vh);
  }
}

@media (max-width: 767px) {
  .modal-dialog-video {
    max-width: 100%;
    margin: 0;
  }
  
  .video-modal-content {
    border-radius: 0;
  }
  
  .video-modal-header {
    padding: 0.875rem 1rem;
  }
  
  .video-modal-header .modal-title {
    font-size: 1rem;
  }
  
  .video-wrapper {
    max-height: 60vh;
    padding-bottom: min(67.06%, 60vh);
  }
}

@media (max-width: 575px) {
  .modal-dialog-video {
    max-width: 100%;
    margin: 0;
    height: 100vh;
  }
  
  .video-modal-content {
    border-radius: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .video-modal-header {
    flex-shrink: 0;
  }
  
  .video-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
  }
  
  .video-wrapper {
    padding-bottom: 0;
    height: 100%;
    width: 100%;
  }
  
  .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 767px) {
  .btn-demo-video {
    padding: 0.875rem 1.5rem;
    gap: 0.75rem;
  }
  
  .demo-icon {
    width: 40px;
    height: 40px;
  }
  
  .demo-icon i,
  .demo-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .demo-label {
    font-size: 1rem;
  }
  
  .demo-subtitle {
    font-size: 0.8125rem;
  }
  
  .demo-arrow i,
  .demo-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* Milestones Cards */
.ai-milestones {
  margin-top: 3rem;
}

.milestone-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.milestone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e90ff, #00bfff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.milestone-card:hover {
  border-color: #1e90ff;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 144, 255, 0.15);
}

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

.milestone-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(0, 191, 255, 0.1));
  border-radius: 16px;
  color: #1e90ff;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.milestone-card:hover .milestone-icon {
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  transform: scale(1.1);
}

.milestone-icon i,
.milestone-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
  color: #1e90ff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.milestone-card:hover .milestone-icon i,
.milestone-card:hover .milestone-icon svg {
  color: #ffffff;
}

.milestone-card h4 {
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.milestone-card p {
  color: #6b7280;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

@media (max-width: 767px) {
  .milestone-card {
    padding: 1.25rem;
  }
  
  .milestone-icon {
    width: 50px;
    height: 50px;
  }
  
  .milestone-icon i,
  .milestone-icon svg {
    width: 28px;
    height: 28px;
  }
}

