/* Custom Premium Styles for LapentON */

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Premium glassmorphic panel styling */
.glass-panel {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom transition for interactive states */
.transition-premium {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glowing text and modern badges */
.badge-glow {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Smooth custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Prevent layout shifting during dynamic mounts */
.layout-mount {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInMount 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInMount {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Globe Background Styles */
#vanta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Floating Label decoration (Matches reference image text overlays) */
.reference-badge-left {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(16, 42, 67, 0.40);
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  z-index: 10;
}

.reference-badge-right {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(16, 42, 67, 0.40);
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  z-index: 10;
}

/* Custom hide scrollbar class */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- PREMIUM CORPORATE MODERNIST DARK MODE OVERRIDES --- */
.dark body {
  background-color: #0b0f19 !important;
}

.dark .bg-background {
  background-color: #0b0f19 !important;
}

.dark .text-on-background {
  color: #f1f5f9 !important;
}

.dark .bg-surface {
  background-color: #111625 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark header.bg-surface {
  background-color: rgba(11, 15, 25, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark .text-primary {
  color: #ffffff !important;
}

.dark .text-secondary {
  color: #94a3b8 !important;
}

.dark .text-on-surface {
  color: #f8fafc !important;
}

.dark .text-on-surface-variant {
  color: #cbd5e1 !important;
}

.dark .bg-surface-container-lowest {
  background-color: #0b0f19 !important;
}

.dark .bg-surface-container {
  background-color: #111625 !important;
}

/* Overrides for opacity-modified Tailwind container classes to prevent light-theme fallbacks */
.dark .bg-surface-container\/60 {
  background-color: rgba(17, 22, 37, 0.6) !important;
}

.dark .bg-surface-container-high {
  background-color: #151e2e !important;
}

.dark .bg-surface-container-high\/60 {
  background-color: rgba(21, 30, 46, 0.6) !important;
}

.dark .bg-surface-container-highest {
  background-color: #111625 !important;
}

.dark .border-outline-variant\/10 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .border-outline-variant\/20 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.dark .border-outline-variant\/30 {
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.dark .glass-panel {
  background: rgba(17, 22, 37, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark .glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.dark .bg-primary {
  background-color: #ffffff !important;
}

.dark .bg-primary:hover {
  background-color: #cbd5e1 !important;
}

.dark .text-on-primary {
  color: #0b0f19 !important;
}

/* Force dark text/icons inside active white bg-primary button elements */
.dark .bg-primary,
.dark .bg-primary * {
  color: #0b0f19 !important;
}

.dark .bg-primary-container {
  background-color: #111625 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark .text-on-primary-container {
  color: #3b82f6 !important;
}

/* Force contact section header to remain white on its dark background container */
.dark .bg-primary-container .text-on-primary {
  color: #ffffff !important;
}

.dark .border-outline {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
}

.dark .border-outline:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.dark button.md\:hidden.text-primary {
  color: #ffffff !important;
}

.dark header nav {
  background-color: #111625 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}



/* --- MOBILE PHONE VISUAL OPTIMIZATIONS --- */
#vanta-background {
  opacity: 0.85;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
  /* Lower background globe canvas density/opacity on phones to maximize copy legibility */
  #vanta-background {
    opacity: 0.55 !important;
  }
  
  /* Ensure header theme toggles are beautifully centered and spaced on mobile views */
  #theme-toggle-mobile {
    margin-right: 0.25rem;
    padding: 0.5rem !important;
  }
}

