/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ====== Universe Hero (full-viewport) ====== */
.universe-hero{
  position:relative;
  isolation:isolate;
  min-height:100svh;
  overflow:clip;
  background: radial-gradient(120% 80% at 50% 10%, #05050a 15%, #010107 55%, #000 100%);
}

/* camadas base */
.universe-hero .u-layer{position:absolute; inset:0; will-change:transform;}

/* Estrelas – 3 planos com densidades/tamanhos diferentes (sem imagens) */
.u-stars{
  background-repeat: repeat;
  animation: star-drift linear infinite;
  opacity:.9;
}
.u-stars.far{
  /* pontos maiores, menos densos */
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 80%, transparent 81%),
    radial-gradient(1px 1px at 40% 70%, #d6d6ff 80%, transparent 81%),
    radial-gradient(1px 1px at 80% 30%, #fff 80%, transparent 81%);
  background-size: 420px 420px, 520px 520px, 600px 600px;
  animation-duration: 200s;
  opacity:.35;
}
.u-stars.mid{
  background-image:
    radial-gradient(1px 1px at 15% 30%, #fff 80%, transparent 81%),
    radial-gradient(1px 1px at 50% 60%, #f9f9ff 80%, transparent 81%),
    radial-gradient(1px 1px at 85% 40%, #fff 80%, transparent 81%),
    radial-gradient(1px 1px at 25% 85%, #fff 80%, transparent 81%);
  background-size: 260px 260px, 320px 320px, 380px 380px, 420px 420px;
  animation-duration: 150s;
  opacity:.55;
}
.u-stars.near{
  background-image:
    radial-gradient(1px 1px at 12% 25%, #fff 80%, transparent 81%),
    radial-gradient(1px 1px at 45% 55%, #fff 80%, transparent 81%),
    radial-gradient(1px 1px at 78% 22%, #e9e9ff 80%, transparent 81%),
    radial-gradient(1px 1px at 33% 73%, #fff 80%, transparent 81%),
    radial-gradient(1px 1px at 70% 88%, #fff 80%, transparent 81%);
  background-size: 160px 160px, 200px 200px, 220px 220px, 260px 260px, 300px 300px;
  animation-duration: 100s;
  opacity:.8;
}

/* leve “respirar” horizontal nas estrelas */
@keyframes star-drift { from {background-position: 0 0, 0 0, 0 0, 0 0, 0 0;} to {background-position: -60px 0, -80px 0, -100px 0, -120px 0, -140px 0;} }

/* Universo escuro “avançando” (nuvens escuras abstratas) */
.u-nebula{
  /* duas massas escuras com bordas suaves */
  background:
    radial-gradient(70% 55% at 65% 15%, rgba(0,0,0,.94) 0%, rgba(0,0,0,.77) 45%, rgba(0,0,0,0) 78%),
    radial-gradient(75% 60% at 25% 45%, rgba(0,0,0,.85) 0%, rgba(0,0,0,.66) 42%, rgba(0,0,0,0) 76%);
  filter: blur(22px) saturate(1.05);
  mix-blend-mode: normal;
  opacity:.97;
}

/* vinheta suave para foco central */
.u-vignette{
  pointer-events:none;
  background: radial-gradient(120% 85% at 50% 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}

/* Conteúdo por cima das camadas */
.universe-hero .u-content{
  position:relative; z-index:5; min-height:100svh;
  display:flex; align-items:center; justify-content:center;
  padding: clamp(16px, 4vw, 48px);
}

/* Ajustes Flatsome quando sem header/footer na Home */
.home .header-wrapper, .home .footer-wrapper { display:none !important; }
.home .site-content { padding-top:0 !important; }

/* Acessibilidade / economia de bateria */
@media (prefers-reduced-motion: reduce){
  .u-layer{ animation: none !important; transform: none !important; }
}

/* ===== Warp (estrelas vindo na direção da câmera) ===== */
.u-warp{
  position:absolute; inset:0; pointer-events:none;
  perspective: 900px;          /* dá profundidade */
  transform-style: preserve-3d;
  overflow:hidden;
  z-index: 3;                   /* fica acima das stars, abaixo da nebula */
}
.u-warp .star{
  position:absolute; top:50%; left:50%;
  width:2px; height:2px; background:#fff; border-radius:50%;
  opacity:.85;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.9));
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce){
  .u-warp{ display:none; }
}

/* Canvas ocupa toda a camada */
.u-warp { position:absolute; inset:0; perspective: 900px; z-index:3; overflow:hidden; }
.u-warp-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }

/* Se quiser só o canvas (sem as estrelas CSS), desligue aqui: */
/* .u-stars { display:none !important; } */

/* Nebulosa um pouco mais suave e lenta (tira “efeito gif”) */
.u-nebula { transition: transform 12s ease, opacity 12s ease; }

/* Acessibilidade */
@media (prefers-reduced-motion: reduce){
  .u-warp, .u-warp-canvas { display:none !important; }
}

/* ===== HOME HERO (cópia independente, não conflita com o wrapper) ===== */
.home-hero-copy{
  width:100%;
  max-width:min(1200px, 92vw);
  margin-inline:auto;
  text-align:center;
  display:grid;
  gap: clamp(16px, 3.5vh, 28px);
  padding-block: clamp(24px, 8vh, 96px);
  z-index: 6; /* acima das camadas do fundo */
}

.home-hero-title{
  /* tipografia responsiva e compacta para título grande */
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: .98;
  margin: 0;
  /* tamanho fluido: mobile → desktop grande */
  font-size: clamp(32px, 7.2vw, 92px);
  /* cor base ligeiramente azulada para combinar com o tema */
  color: rgba(234,239,255,0.96);
  text-shadow:
    0 0 10px rgba(17, 24, 39, 0.35),
    0 2px 30px rgba(0, 0, 0, 0.55); /* contraste real sobre o espaço */
}

/* Gradiente global reutilizável (fallback se já existir .mt_gradient) */
.mt_gradient{
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color) 55%, #9fd6ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-pan 14s ease-in-out infinite alternate;
}
/* Glow/contorno sutil para legibilidade em fundos detalhados */
.mt_glow{
  text-shadow:
    0 0 18px rgba(42,200,211,.45),
    0 0 36px rgba(139,91,250,.28),
    0 1px 0 rgba(0,0,0,.35);
  /* contorno muito leve sem matar o gradiente */
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
}

/* CTA — botão neomórfico/tech */
.btn-neo{
  --_bg: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(12px, 1.6vh, 16px) clamp(22px, 3.2vw, 30px);
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--_bg);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 10px 30px rgba(42,200,211,.35),
    0 0 24px rgba(136,130,238,.25),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .2s ease, box-shadow .25s ease, opacity .2s ease, background-position .4s ease;
  background-size: 180% 180%;
}
.btn-neo:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 18px 42px rgba(42,200,211,.40),
    0 0 36px rgba(139,91,250,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
  background-position: 30% 70%;
}
.btn-neo:active{ transform: translateY(0) scale(.99); }
.btn-neo:focus{ outline: none; }
.btn-neo:focus-visible{
  box-shadow:
    0 0 0 3px rgba(255,255,255,.55),
    0 0 0 6px rgba(42,200,211,.45),
    0 10px 30px rgba(42,200,211,.35);
}

/* ícone do botão acompanha o texto */
.btn-neo-ico{ display:block; }

/* animação do gradiente do span */
@keyframes gradient-pan{
  0%   { background-position: 0% 40%; }
  100% { background-position: 100% 60%; }
}

/* Ajustes finos — telas pequenas */
@media (max-width: 680px){
  .home-hero-title{
    line-height: 1.02;
    letter-spacing: -0.01em;
  }
  .btn-neo{ width: auto; min-width: 56vw; }
}

/* Respeito a acessibilidade */
@media (prefers-reduced-motion: reduce){
  .mt_gradient{ animation: none; }
  .btn-neo{ transition: none; }
}
