/* ==========================================================================
   Vellicor Technologies Ltd — Corporate US Enterprise Theme
   Palette: Deep Obsidian Navy, Titanium Slate, Electric Indigo & Hyper Cyan
   ========================================================================== */

:root {
  --bg-deep: #060B14;
  --bg-surface: #0B132B;
  --bg-card: rgba(11, 19, 43, 0.75);
  --bg-card-hover: rgba(16, 28, 64, 0.92);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-indigo: rgba(99, 102, 241, 0.35);
  --border-indigo-bright: rgba(99, 102, 241, 0.75);
  --border-cyan: rgba(6, 182, 212, 0.35);

  --indigo-primary: #6366F1;
  --indigo-light: #818CF8;
  --indigo-glow: rgba(99, 102, 241, 0.28);

  --cyan-primary: #06B6D4;
  --cyan-light: #22D3EE;
  --cyan-glow: rgba(6, 182, 212, 0.28);

  --anshu-gold: #D4AF37;
  --anshu-teal: #14B8A6;

  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
}

html {
  scroll-behavior: smooth;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 15% 55%, rgba(79, 70, 229, 0.08) 0%, transparent 35%);
  background-attachment: fixed;
}

/* WebKit / Safari Blur Compatibility */
.backdrop-blur-xl,
.backdrop-blur-2xl,
.backdrop-blur-lg,
.backdrop-blur-md,
#navbar,
#mobileMenu {
  -webkit-backdrop-filter: blur(20px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060B14;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366F1;
}

/* Theme Cards */
.theme-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-indigo);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-indigo-bright);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(99, 102, 241, 0.3);
}

/* Subsidiary Spotlight Card (AnshuAI Showcase) */
.subsidiary-card {
  background: linear-gradient(145deg, rgba(7, 35, 40, 0.85) 0%, rgba(4, 22, 25, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(20, 184, 166, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.subsidiary-card:hover {
  border-color: #D4AF37;
  transform: translateY(-3px);
  box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.9), 0 0 40px -5px rgba(212, 175, 55, 0.35);
}

/* Buttons */
.btn-indigo-solid {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #4F46E5 100%);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  box-shadow: 0 4px 20px var(--indigo-glow);
  transition: all 0.25s ease;
}

.btn-indigo-solid:hover {
  background: linear-gradient(135deg, #A5B4FC 0%, #818CF8 50%, #6366F1 100%);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.55);
  transform: translateY(-1px);
}

.btn-indigo-pill {
  background: rgba(99, 102, 241, 0.12);
  border: 1.5px solid var(--indigo-primary);
  color: #E0E7FF;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  box-shadow: 0 4px 18px var(--indigo-glow);
  transition: all 0.25s ease;
}

.btn-indigo-pill:hover {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-cyan-pill {
  background: rgba(6, 182, 212, 0.12);
  border: 1.5px solid var(--cyan-primary);
  color: #E2E8F0;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-cyan-pill:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--cyan-light);
  color: #FFFFFF;
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* Glass Panels */
.glass-panel {
  background: rgba(11, 19, 43, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   PORTAL INTERACTIVE COMPONENTS & VELOCITY-CORE STYLES
   ========================================================================== */

/* Telemetry Screen / Terminal Console */
.telemetry-screen {
  background: radial-gradient(ellipse at top left, #0D1B2A 0%, #060B14 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 10px 40px rgba(0, 0, 0, 0.6);
  font-family: 'JetBrains Mono', monospace;
}

/* Velocity Kinetic Animation */
@keyframes velocityStream {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.velocity-bar {
  position: relative;
  overflow: hidden;
}

.velocity-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
  animation: velocityStream 2s infinite ease-in-out;
}

/* Waveform Audio Simulator */
.waveform-bar {
  width: 3.5px;
  background: linear-gradient(180deg, #22D3EE 0%, #6366F1 100%);
  border-radius: 9999px;
  animation: wavePulse 1.2s infinite ease-in-out;
}

@keyframes wavePulse {
  0%, 100% { height: 6px; }
  50% { height: 28px; }
}

.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.25s; }
.waveform-bar:nth-child(4) { animation-delay: 0.4s; }
.waveform-bar:nth-child(5) { animation-delay: 0.15s; }
.waveform-bar:nth-child(6) { animation-delay: 0.3s; }
.waveform-bar:nth-child(7) { animation-delay: 0.45s; }
.waveform-bar:nth-child(8) { animation-delay: 0.2s; }

/* Status Pulsing Dot */
.pulse-dot {
  display: inline-block;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: inherit;
  animation: pingDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingDot {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Tab Interactive States */
.operating-tab.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.anshu-tab.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: #D4AF37;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

/* Stage Flow Step */
.stage-step {
  transition: all 0.3s ease;
  cursor: pointer;
}

.stage-step.active {
  border-color: #6366F1;
  background: rgba(11, 19, 43, 0.95);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

.stage-step:hover:not(.active) {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(11, 19, 43, 0.6);
}

/* Dual Brand Core Gradient Ring */
.core-gradient-ring {
  background: conic-gradient(from 180deg at 50% 50%, #6366F1 0deg, #22D3EE 120deg, #D4AF37 240deg, #6366F1 360deg);
}
