/* Global Dark Background Fix */
html,
body,
a,
button,
input,
textarea {
  cursor: none !important;
}

/* Classes Helper para Ocultar antes do GSAP animar */
.gsap-reveal {
  opacity: 0;
  visibility: hidden;
}

/* Failsafe para visibilidade dos cards de serviço */
.service-border-card {
  opacity: 1;
  transform: none;
}

/* Ajustes Smooth Scroll Lenis */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Page Transitions */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 10000;
  pointer-events: none;
  display: none;
}

.page-transition-overlay.active {
  display: block;
  pointer-events: all;
}

/* Brand Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
}

.preloader-outline {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(131, 56, 233, 0.3);
  border-radius: 50%;
  z-index: 1;
}

/* Glass Card refined glow */
.glass-card {
  transition: all 0.5s ease;
}

.glass-card:hover {
  border-color: rgba(131, 56, 233, 0.4) !important;
  box-shadow: 0 0 40px rgba(131, 56, 233, 0.1) !important;
}

/* Reveal Failsafe: Ensure visibility after 3s if JS fails */
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); visibility: visible; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: reveal-fallback 1s forwards;
  animation-delay: 2s; /* Give GSAP time to run */
}

/* When GSAP starts, it will clearProps and this will be handled by the .revealed class or GSAP inline styles */
.reveal.revealed, 
body.preloader-finished .reveal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  animation: none !important;
}