/* ==========================================================================
   WAYA CORPORATE — CYBER-DARK DESIGN SYSTEM & GLASSMORPHISM PRIMITIVES
   High-performance, modern tech agency styling for Waya Corporate OS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --mouse-x: -1000px;
  --mouse-y: -1000px;
  --cyber-deep: #05070e;
  --cyber-dark: #080c18;
  --cyber-surface: #0d1326;
  --cyber-card: rgba(15, 23, 42, 0.65);
  --cyber-card-hover: rgba(22, 34, 62, 0.75);
  --neon-cyan: #00f0ff;
  --neon-blue: #3b82f6;
  --neon-violet: #8b5cf6;
  --neon-emerald: #10b981;
  --neon-amber: #f59e0b;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 240, 255, 0.4);
}

/* Base Canvas & Typography */
html {
  scroll-behavior: smooth;
  background-color: var(--cyber-deep);
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--cyber-deep);
  color: #f1f5f9;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, .font-display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

code, pre, .font-mono, .telemetry-metric {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Text Selection */
::selection {
  background-color: rgba(0, 240, 255, 0.25);
  color: #ffffff;
}

::-moz-selection {
  background-color: rgba(0, 240, 255, 0.25);
  color: #ffffff;
}

/* Dark Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #05070e;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  border: 2px solid #05070e;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Utility to hide scrollbars on horizontal carousel */
.style-scroll::-webkit-scrollbar {
  display: none;
}

.style-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   GLASSMORPHISM PRIMITIVES & BORDERS
   ========================================================================== */

.glass-nav {
  background: rgba(5, 7, 14, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--cyber-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--cyber-card-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.18);
  transform: translateY(-4px);
}

.glass-card-elevated {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 240, 255, 0.12);
}

.glass-card-elevated:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.28);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-input {
  background: rgba(8, 12, 24, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  transition: all 0.25s ease;
}

.glass-input:focus {
  background: rgba(13, 19, 38, 0.95);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), 0 0 20px rgba(0, 240, 255, 0.15);
  outline: none;
}

/* ==========================================================================
   DYNAMIC CURSOR SPOTLIGHT
   ========================================================================== */

.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -1000px);
  left: var(--mouse-x, -1000px);
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(59, 130, 246, 0.05) 45%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   CYBER GRID & ATMOSPHERIC GLOW
   ========================================================================== */

.cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 40%, transparent 100%);
}

.cyber-grid-dense {
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glowing Neon Borders & Badges */
.border-glow-cyan {
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.text-glow-cyan {
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.text-glow-blue {
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEALS
   ========================================================================== */

@keyframes text-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-shimmer {
  background-size: 200% auto;
  animation: text-shimmer 6s linear infinite;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.04); }
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

@keyframes beacon-ping {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.beacon-pulse {
  animation: beacon-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes status-live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.status-live-dot {
  animation: status-live-pulse 2s ease-in-out infinite;
}

/* Native Zero-Dependency Scroll Reveal */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Interactive ConTech Telemetry Terminal */
.cockpit-terminal {
  background: rgba(3, 5, 12, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 240, 255, 0.05);
  border-radius: 1rem;
}

/* Mobile Drawer Transitions */
#mobile-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#mobile-drawer.drawer-closed {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

#mobile-drawer.drawer-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Floating WhatsApp Beacon */
.whatsapp-beacon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-beacon:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.4);
}