/* ROTA SaaS - Custom Enhancements & Interactivity Styles */

:root {
  --verde-neon: #d6f43a;
  --verde-glow: rgba(214, 244, 58, 0.45);
  --line-trans: rgba(255, 255, 255, 0.1);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #1e2630;
  border-radius: 9999px;
  border: 2px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
  background: #d6f43a;
}

/* Reveal on Scroll Transitions */
.reveal-init {
  opacity: 0.001;
  transform: perspective(1200px) translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-active {
  opacity: 1 !important;
  transform: perspective(1200px) translateY(0) !important;
}

/* Sticky Header Transition */
.fixed-nav-bar {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rotating Hero Text Keyframes */
@keyframes heroTextCycle {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.hero-text-animate {
  display: inline-block;
  animation: heroTextCycle 3.5s ease-in-out infinite;
}

/* Toast Notifications */
#rota-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.rota-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0c121b;
  border: 1px solid #d6f43a73;
  color: #f1f5f9;
  padding: 12px 20px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(214, 244, 58, 0.2);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rota-toast-hide {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s ease;
}

/* Kit Modal */
#rota-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#rota-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.rota-modal-card {
  background: #0c121b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(214, 244, 58, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#rota-modal-overlay.active .rota-modal-card {
  transform: scale(1);
}

/* Interactive Tabs Progress Animation */
.tp-progress-bar {
  height: 2px;
  background: #d6f43a;
  width: 0%;
  transition: width linear;
}

/* Smartphone simulator enhancements */
.phone-video-active {
  display: block !important;
  opacity: 1 !important;
}

.phone-video-hidden {
  display: none !important;
  opacity: 0 !important;
}


/* UAI MÍDIA Brand Logo Override */
.marca-rota {
  background-image: url('../assets/marca/uai_midia_web.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  -webkit-mask: none !important;
  mask: none !important;
  width: 105px !important;
  height: 32px !important;
  aspect-ratio: auto !important;
}

.marca-rota-tinta {
  background: none !important;
}

/* Partner Marquee Logos Styling */
[data-marquee="true"] img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-marquee="true"] .group:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 14px rgba(214, 244, 58, 0.35));
}
