/* ==========================================================================
   ESTILOS PERSONALIZADOS — THIAGO ANTONIO ADVOGADOS
   ========================================================================== */

body {
  background-color: #050505;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Padrão de Estrelas de Fundo */
.stars {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 75px 120px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 140px 60px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 200px 180px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 280px 240px, rgba(182, 140, 90, 0.3), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 350px 80px, #ffffff, rgba(0,0,0,0));
  background-size: 400px 400px;
  opacity: 0.12;
}

/* Padrão de Grade com Degradê de Máscara (Canvas) */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Efeito de Card Elétrico Neon */
.electric-card {
  box-shadow: 0 0 40px rgba(182, 140, 90, 0.15), inset 0 0 20px rgba(182, 140, 90, 0.05);
  border: 1px solid rgba(182, 140, 90, 0.2);
}

/* Feixes de Luz verticais e horizontais (Canvas) */
.beam-border-v {
  position: absolute; 
  top: 0; 
  bottom: 0; 
  left: 20%; 
  width: 1px;
  background: rgba(255,255,255,0.02); 
  overflow: hidden; 
  z-index: 5;
}
.beam-border-v::after {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  bottom: 0; 
  right: 0;
  background: linear-gradient(to bottom, transparent, #B68C5A, transparent);
  transform: translateY(-100%);
  animation: beam-drop 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.7;
}

.beam-border-h {
  position: absolute; 
  bottom: 25%; 
  left: 0; 
  right: 0; 
  height: 1px;
  background: rgba(255,255,255,0.02); 
  overflow: hidden; 
  z-index: 5;
}
.beam-border-h::after {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  bottom: 0; 
  right: 0;
  background: linear-gradient(to right, transparent, #F1D4AF, transparent);
  transform: translateX(-100%);
  animation: beam-slide 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 2s;
  opacity: 0.6;
}

@keyframes beam-drop {
  0% { transform: translateY(-100%); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes beam-slide {
  0% { transform: translateX(-100%); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Shiny CTA Button (Creative Agency) */
@property --gradient-angle { 
  syntax: "<angle>"; 
  initial-value: 0deg; 
  inherits: false; 
}
@property --gradient-shine { 
  syntax: "<color>"; 
  initial-value: #F1D4AF; 
  inherits: false; 
}

.shiny-cta {
  --gradient-angle: 0deg;
  --gradient-shine: #B68C5A;
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
              conic-gradient(from var(--gradient-angle), transparent 0%, #B68C5A 10%, var(--gradient-shine) 20%, #B68C5A 30%, transparent 50%, transparent 100%) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 20px rgba(182, 140, 90, 0.15);
  transition: transform 0.25s, box-shadow 0.3s;
  animation: border-spin 4s linear infinite;
}

@keyframes border-spin {
  to { --gradient-angle: 360deg; }
}

.shiny-cta:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 0 30px rgba(182, 140, 90, 0.35);
}

.shiny-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(182, 140, 90, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Lenis Scroll Smooth */
html.lenis {
  height: auto;
}
.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis-stopped {
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #1c1c1c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B68C5A;
}

/* Indicador de Scroll na Hero */
.scroll-dot {
  animation: scroll-dot-move 2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes scroll-dot-move {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  61% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Movimento Reduzido: pausa animações CSS contínuas (beams, borda do CTA, badge pulsante) */
@media (prefers-reduced-motion: reduce) {
  .beam-border-v::after,
  .beam-border-h::after,
  .shiny-cta,
  .animate-pulse-slow,
  .animate-ping,
  .scroll-dot {
    animation: none !important;
  }
}

/* NOISE Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
