@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
  --color-bg: #f5f3ff;
  --color-primary: #6e56cf;
  --color-dark: #4b3f72;
  --color-secondary: #9a8cbd;
  --color-hover: #5b44b0;
  --color-shadow: rgba(110, 86, 207, 0.3);
  font-family: "Ubuntu", 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', sans-serif;
}

.navbar-toggler {
  border-color: white; 
}

.navbar-toggler-icon {
  background-image: 
  url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"%3E%3Cpath stroke="white" stroke-width="2" stroke-linecap="round" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}

/* ===== Hero com shape branco e imagens por trás ===== */
.hero {
  /* Container principal do hero, ocupa toda a altura da tela */
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: clip; /* Impede overflow das imagens/blobs */
  color: #0d0f12;
}

/* Camada das imagens e blob atrás */
.hero-images {
  /* Camada absoluta atrás do texto */
  position: absolute;
  inset: 0;
  z-index: 1; /* Imagens atrás do texto */
  color: #0c6b58; /* cor do blob SVG */
}

.blob-pattern {
  /* Blob SVG decorativo no fundo */
  position: absolute;
  right: -4rem;   /* Ajusta distância do texto */
  top: -8rem;     /* Ajusta posição vertical */
  width: 900px;
  height: auto;
  opacity: 0.2;
  filter: blur(1px) saturate(0.9);
}

.image-marquee {
  /* Marquee de imagens animadas atrás do texto */
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 80px 0 120px 25%;
  pointer-events: none; /* Imagens não interativas */

  /* Máscara SVG para efeito de ondas */
  -webkit-mask-image: url('/images/ondas.svg');
  mask-image: url('/images/ondas.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.image-marquee .col {
  /* Colunas de imagens animadas verticalmente */
  display: grid;
  gap: 10px; /* Reduzido para aproximar as imagens */
  animation: scroll-col 18s linear infinite;
}
.image-marquee .col:nth-child(2) {
  /* Segunda coluna anima reverso e mais lenta */
  animation: scroll-col 22s linear infinite reverse;
}
.image-marquee .col:nth-child(3) {
  /* Terceira coluna anima mais devagar */
  animation: scroll-col 26s linear infinite;
}

.image-marquee img {
  /* Imagens do marquee estilizadas */
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0.5;
}

@keyframes scroll-col {
  /* Animação para mover as colunas verticalmente */
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Fundo branco arredondado atrás do texto */
.white-pane {
  display: none !important;
}

/* Borda/halo arredondado para dar sensação do recorte suave */
.white-blob {
  display: none !important;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 50px 0;
  margin: 0;
  max-width: 1000px;
  padding-left: 0.5vw;
  margin-right: 0.5vw; /* Reduz o espaço à direita do texto */
}
.hero img[src$=".svg"] {
  /* Aplica tom #4b3f72 (var(--color-dark)) apenas em SVGs */
  filter: invert(18%) sepia(18%) saturate(1162%) hue-rotate(217deg) brightness(0.92) contrast(1.05);
}
.hero-content .row,
.hero-content .col-lg-8 {
  margin: 10px;
  
  padding: 10px;
}

.kicker {
  letter-spacing: .16em;
  font-weight: 700;
}

@media (max-width: 992px) {
  .image-marquee { padding-left: 20%; }
  .blob-pattern { right: -18rem; top: -12rem; width: 720px; }
  .white-blob { width: 70%; }
  .hero-content {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .image-marquee { display: none; }
  .white-pane { clip-path: ellipse(120% 100% at 30% 0); }
}

body {
  background: var(--color-bg);
  color: var(--color-dark);
}

/* Scrollbar customizado com a paleta roxa */
body::-webkit-scrollbar,
.cards::-webkit-scrollbar {
  width: 12px;
  background: var(--color-bg);
}

body::-webkit-scrollbar-thumb,
.cards::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
  border: 2px solid var(--color-bg);
}

body::-webkit-scrollbar-thumb:hover,
.cards::-webkit-scrollbar-thumb:hover {
  background: var(--color-hover);
}

/* Firefox */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg);
}


.btn-success, .btn-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--color-shadow);
}

.btn-success:hover, .btn-primary:hover {
  background-color: var(--color-hover) !important;
  border-color: var(--color-hover) !important;
}

.btn-outline-secondary {
  color: var(--color-primary) !important;
  border-color: var(--color-secondary) !important;
  background: transparent !important;
}

.btn-outline-secondary:hover {
  color: #fff !important;
  background: var(--color-hover) !important;
  border-color: var(--color-hover) !important;
}

.text-success, .text-info {
  color: var(--color-primary) !important;
}

.text-secondary, .text-muted {
  color: var(--color-secondary) !important;
}

.hero-content h1,
.kicker {
  color: var(--color-primary);
}


/* Navbar efeito glassmorphism + sombra */
.navbar {
  background: rgba(44, 20, 84, 0.92) !important; /* Roxo muito escuro com transparência */
  box-shadow: 0 8px 32px 0 var(--color-shadow);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-secondary);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar:hover,
.navbar:focus-within {
  background: rgba(44, 20, 84, 0.92) !important; /* var(--color-hover) com transparência */
  box-shadow: 0 12px 40px 0 var(--color-shadow);
}

/* Links do navbar com transição */
.navbar-nav .nav-link {
  color: var(--color-bg) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--color-secondary) !important;
}

footer {
  background: var(--color-bg);
  color: var(--color-secondary);
}

/* Paleta de cores aplicada nos cards */
.cards .card {
  background: var(--color-bg);
  color: var(--color-dark);
  box-shadow: 0 4px 24px var(--color-shadow);
  border: 1px solid var(--color-secondary);
}

.cards .card .card-title {
  color: var(--color-primary);
}

.cards .card .card-text {
  color: var(--color-secondary);
}

.cards .card .card-body {
  background: var(--color-bg);
}

/* Alterna a posição da imagem nos cards pares */
.cards .card:nth-child(even) .row {
  flex-direction: row-reverse;
}

/* Ajusta o arredondamento da imagem conforme a posição */
.cards .card:nth-child(even) .img-fluid {
  border-radius: 0 .5rem .5rem 0 !important; /* direita */
}
.cards .card:nth-child(odd) .img-fluid {
  border-radius: .5rem 0 0 .5rem !important; /* esquerda */
}

/* Cards ocupando toda a largura e altura da tela, mas sem causar scroll horizontal */
.cards .card {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 3rem;
  box-sizing: border-box;
}

/* Imagem do card ocupa toda a altura do card */
.cards .card .img-fluid {
  margin: 0; 
  border-radius: 0.5rem;
  width: 100%;
  width: 65%;
  height: auto;
  object-fit: cover;
}


/* ================================== */
/* RESPONSIVIDADE */
/* ================================== */

/* ===== Base até 991.98px ===== */
@media (max-width: 991.98px) {
  /* Ajusta cards empilhados */
  .cards .card .row,
  .cards .card:nth-child(even) .row,
  .cards .card:nth-child(odd) .row {
    flex-direction: column !important;
  }

  .cards .card .img-fluid {
    width: 100%;
    border-radius: 1.5rem 1.5rem 0 0 !important;
  }
}

/* ===== Hero Content — estilo glass compartilhado ===== */
@media (max-width: 767.98px),
       (min-width: 768px) and (max-width: 991.98px),
       (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content {
    background: linear-gradient(
      to bottom right,
      #f9f7ff 0%,    
      #e8dff9 50%,   
      #dacff2 100%  
    );
    border-radius: 2rem;
    padding: 2rem;
    box-shadow:
      -10px -10px 20px rgba(255, 255, 255, 0.6),
      10px 10px 20px rgba(110, 86, 207, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 90%;
    margin: 0 auto;
  }
}

/* ===== Extra pequenos (até 575.98px) ===== */
@media (max-width: 575.98px) {
  .hero {
    min-height: auto;
    padding: 60px 20px 40px;
    text-align: center;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

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

  .features-list-container {
    text-align: center;
    margin: 1rem 0;
  }
  
  .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
  }

  .features-list li {
    position: relative;
    padding-left: 1.25rem;
    margin: 0.35rem 0;
  }

  .features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
  }

  .btn-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn,
  .hero-content .btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    display: flex;              
    align-items: center;       
    justify-content: center;    
    line-height: 1.2;
  }

  .hero-images,
  .image-marquee,
  .blob-pattern {
    display: none !important;
  }

  .cards .card {
    height: auto;
    border-radius: 1rem;
    margin-bottom: 20px;
  }
  .cards .card .row {
    flex-direction: column !important;
  }

  .navbar-collapse {
    padding: 15px;
    background: rgba(44, 20, 84, 0.95);
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ===== Pequenos (576px–767.98px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    min-height: auto;
    padding: 80px 30px 60px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .image-marquee,
  .blob-pattern,
  .hero-images {
    display: none !important;
  }

  .btn-group {
    justify-content: center;
  }

  .cards .card {
    height: auto;
    border-radius: 1.5rem;
  }
}

/* ===== Médios (768px–991.98px) - Tablets ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 70vh;
    padding: 80px 30px 40rem; /* padding-bottom ajustado */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

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

  .image-marquee,
  .blob-pattern,
  .hero-images {
    display: none !important;
  }

  .btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2.5rem;
  }

.features-list-container {
    display: flex;
    justify-content: flex-start;
    width: calc(100% - 4rem);
    margin: 1rem 2rem;
    overflow: visible;
  }

  .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    position: relative;
    left: -1.5rem;
  }

  .features-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    white-space: nowrap;
  }

  .features-list li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
  }
}

/* ===== Grandes (992px–1199.98px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    min-height: 85vh;
    padding-bottom: 35rem;
  }
  .hero-images,
  .image-marquee,
  .blob-pattern {
    display: none !important;
  }
  .cards .card {
    height: auto;
  }
  .cards .card .img-fluid {
    width: 60%;
  }
}

/* ===== Extra grandes (1200px e acima) ===== */
@media (min-width: 1200px) {
  .hero {
    min-height: 94vh;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .image-marquee {
    padding-left: 25%;
    gap: 25px;
  }
  .image-marquee img {
    width: 300px;
  }

  .blob-pattern {
    right: -4rem;
    top: -8rem;
    width: 900px;
  }

  .cards .card {
    height: auto;
  }

  .cards .card .img-fluid {
    width: 65%;
  }
}

/* ===== Nest Hub e telas baixas ===== */
@media (min-width: 1024px) and (max-height: 600px) {
  .hero {
    padding-top: 20px;
    padding-bottom: 6rem;
    min-height: auto;
  }

  .hero-content {
    margin-top: 2rem;
  }
}

/* Estilo para o card About */
.about-card {
  max-width: 900px; /* aumentada a largura máxima */
  margin-left: auto;
  margin-right: auto;
  border-radius: 2.5rem; /* borda um pouco mais arredondada */
  background: var(--color-bg);
  box-shadow: 0 12px 40px 0 var(--color-shadow); /* sombra mais forte */
  padding: 3.5rem 2.5rem; /* mais espaço interno */
  min-height: 0;
  height: auto;
}

.about-img {
  width: 180px;
  height: 180px;
  transition: transform 0.2s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.about-card a{
  color: var(--color-secondary);
  text-decoration: none;
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  
}



@media (max-width: 575.98px) {
  .about-card {
    padding: 1.2rem 0.5rem;
  }
  .about-img {
    width: 120px;
    height: 120px;
  }
}

/* =========================
   MEDIA QUERIES CENTRALIZADAS
========================= */

/* Celulares (antigo) */
@media (max-width: 320px) {
  .hero-content {
    padding: 0.5rem 0.2rem;
    max-width: 100vw;
  }
  .hero-content h1 {
    font-size: 1.1rem;
  }
  .about-card {
    padding: 0.5rem 0.2rem;
    max-width: 100vw;
  }
  .about-img {
    width: 80px;
    height: 80px;
  }
  .cards .card {
    border-radius: 0.7rem;
    max-width: 100vw;
  }
  .cards .card .img-fluid {
    width: 100% !important;
    max-width: 100vw;
  }
}

/* Celulares pequenos  */
@media (max-width: 375px) {
  .hero-content {
    padding: 0.7rem 0.3rem;
    max-width: 100vw;
  }
  .hero-content h1 {
    font-size: 1.2rem;
  }
  .about-card {
    padding: 0.7rem 0.3rem;
    max-width: 100vw;
  }
  .about-img {
    width: 90px;
    height: 90px;
  }
  .cards .card {
    border-radius: 0.9rem;
    max-width: 100vw;
  }
  .cards .card .img-fluid {
    width: 100% !important;
    max-width: 100vw;
  }
}

/* Celulares grandes */
@media (max-width: 428px) {
  .hero-content {
    padding: 0.9rem 0.4rem;
    max-width: 100vw;
  }
  .hero-content h1 {
    font-size: 1.3rem;
  }
  .about-card {
    padding: 0.9rem 0.4rem;
    max-width: 100vw;
  }
  .about-img {
    width: 100px;
    height: 100px;
  }
  .cards .card {
    border-radius: 1rem;
    max-width: 100vw;
  }
  .cards .card .img-fluid {
    width: 100% !important;
    max-width: 100vw;
  }
}

/* Tablets e acima (caso queira) */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 60px 20px 30px;
    display: block;
  }
  .hero-content {
    padding: 1.5rem 1rem;
    max-width: 98vw;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .image-marquee,
  .blob-pattern,
  .hero-images {
    display: none !important;
  }
  .cards .card {
    border-radius: 1.5rem;
    width: 100%;
    max-width: 98vw;
  }
  .cards .card .row,
  .cards .card:nth-child(even) .row,
  .cards .card:nth-child(odd) .row {
    flex-direction: column !important;
    flex-wrap: wrap;
  }
  .cards .card .img-fluid {
    width: 100% !important;
    border-radius: 1.5rem 1.5rem 0 0 !important;
    min-width: 0;
    max-width: 98vw;
  }
  .about-card {
    padding: 1.2rem 0.8rem;
    max-width: 98vw;
  }
  .about-img {
    width: 120px;
    height: 120px;
  }
}




