/* ==========================================================================
   Worx Group - Fortune 500 Executive Design System & Theme
   ========================================================================== */

:root {
  --worx-navy: #070f1e;
  --worx-navy-dark: #040913;
  --worx-deep: #0B192C;
  --worx-surface: #112240;
  --worx-surface-light: #1e293b;
  --worx-blue: #1d4ed8;
  --worx-blue-light: #3b82f6;
  --worx-cyan: #06b6d4;
  --worx-cyan-glow: rgba(6, 182, 212, 0.25);
  --worx-charcoal: #0f172a;
  --worx-slate: #334155;
  --worx-muted: #64748b;
  --worx-light: #f8fafc;
  --worx-light-surface: #ffffff;
  --worx-border-light: #e2e8f0;
  --worx-border-dark: rgba(255, 255, 255, 0.1);
  --worx-gold: #d97706;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(7, 15, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-dark {
  background: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

/* Gradients */
.gradient-worx-hero {
  background: linear-gradient(135deg, rgba(7, 15, 30, 0.92) 0%, rgba(11, 25, 44, 0.85) 60%, rgba(15, 31, 61, 0.78) 100%);
}

.gradient-accent {
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 80%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #0B192C 0%, #1e40af 70%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Executive Card Hover Effects */
.worx-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.worx-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(11, 25, 44, 0.12);
}

.worx-card-dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px -5px rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
}

/* Subtle tech grid background */
.tech-grid-bg {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.tech-grid-bg-light {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

/* Radar pulse animation */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-active {
  animation: pulse-ring 2.5s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070f1e;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Interactive Tabs */
.tab-btn.active {
  color: #ffffff;
  background: #0B192C;
  border-color: #2563eb;
}

.tab-btn-dark.active {
  color: #38bdf8;
  background: rgba(37, 99, 235, 0.15);
  border-color: #38bdf8;
}

/* Buttons */
.btn-worx-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-worx-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-worx-cyan {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-worx-cyan:hover {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-worx-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-worx-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-worx-outline-dark {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  transition: all 0.25s ease;
}

.btn-worx-outline-dark:hover {
  background: #f8fafc;
  border-color: #0f172a;
}

/* ==========================================================================
   Cyber Tech Feel & Dynamic Micro-Animations
   ========================================================================== */

/* 1. Floating Ambient Cyber Orbs */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-18px) scale(1.08); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(18px) scale(0.92); }
}

.animate-float-slow {
  animation: float-slow 7s ease-in-out infinite;
}

.animate-float-reverse {
  animation: float-reverse 9s ease-in-out infinite;
}

/* 2. Cyber Laser Scanline */
@keyframes scanline-pulse {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(800px); opacity: 0; }
}

.tech-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, #06b6d4 50%, #3b82f6 80%, transparent 95%);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
  pointer-events: none;
  animation: scanline-pulse 5s linear infinite;
}

/* 3. Tech Card Hover Glow & Border Shimmer */
.tech-card-glow {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px -2px rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.5) !important;
}

/* 4. Tech Shimmer Wave on Buttons & Cards */
.tech-shine {
  position: relative;
  overflow: hidden;
}

.tech-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(6, 182, 212, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.tech-shine:hover::before {
  transform: translateX(100%);
}

/* 5. Scroll Reveal Transitions */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 6. Live Telemetry Radar Pulse */
@keyframes radar-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.radar-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: rgba(6, 182, 212, 0.6);
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* 7. Interactive Cyber Mouse Spotlight */
.tech-spotlight-container {
  position: relative;
}

.tech-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(6, 182, 212, 0.08),
    transparent 45%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease;
}

/* 8. Rotating Laser Border Beam */
.tech-border-beam {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.tech-border-beam::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    transparent 280deg,
    rgba(6, 182, 212, 0.9) 330deg,
    rgba(59, 130, 246, 1) 360deg
  );
  animation: spin-beam 5s linear infinite;
  z-index: -2;
  pointer-events: none;
}

.tech-border-beam::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: #0B192C;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}

@keyframes spin-beam {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 9. Live Telemetry Infinite Ticker Marquee */
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-ticker-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.tech-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 30s linear infinite;
}

.tech-ticker-track:hover {
  animation-play-state: paused;
}

/* 10. Data Packet Traveling Along Lines */
@keyframes packet-flow {
  0% { transform: translateX(-100%); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateX(300%); opacity: 0; }
}

.packet-line {
  position: relative;
  overflow: hidden;
}

.packet-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
  box-shadow: 0 0 12px #06b6d4;
  animation: packet-flow 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 11. Cyber HUD Bracket Corners */
.hud-corner-tl {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #06b6d4;
  border-left: 2px solid #06b6d4;
  pointer-events: none;
}

.hud-corner-br {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #06b6d4;
  border-right: 2px solid #06b6d4;
  pointer-events: none;
}

/* 12. Interactive Click Cyber Ripple */
.cyber-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5), inset 0 0 10px rgba(6, 182, 212, 0.3);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand 0.75s ease-out forwards;
}

@keyframes ripple-expand {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* 13. High-Tech Orbital Radar Rings & Cyber Grid Pulse */
@keyframes spin-clockwise {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-counter-clockwise {
  0% { transform: translate(-50%, -50%) rotate(360deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

.tech-orbital-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.22);
  transform: translate(-50%, -50%);
  animation: spin-clockwise 45s linear infinite;
  pointer-events: none;
}

.tech-orbital-mid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px dotted rgba(59, 130, 246, 0.35);
  transform: translate(-50%, -50%);
  animation: spin-counter-clockwise 30s linear infinite;
  pointer-events: none;
}

.tech-orbital-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.3);
  transform: translate(-50%, -50%);
  animation: spin-clockwise 20s linear infinite;
  pointer-events: none;
}

.tech-radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(6, 182, 212, 0.15) 360deg);
  transform: translate(-50%, -50%);
  animation: spin-clockwise 8s linear infinite;
  pointer-events: none;
}

