/* ==========================================================================
   CORVUS STAFFING - CORE STYLESHEET
   A modern, high-contrast, energetic talent infrastructure design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color System */
  --color-base: #080B11;
  --color-surface: #0E131F;
  --color-surface-hover: #141B2D;
  --color-surface-glass: rgba(14, 19, 31, 0.75);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.2);
  
  /* Brand Accents */
  --color-cyan: #00F0FF;
  --color-cyan-light: #67F5FF;
  --color-cyan-dark: #00B8C4;
  --color-cyan-glow: rgba(0, 240, 255, 0.35);
  
  --color-blue: #3B82F6;
  --color-blue-dark: #1D4ED8;
  --color-emerald: #10B981;
  --color-purple: #A855F7;
  --color-amber: #F59E0B;

  /* Typography Colors */
  --text-white: #FFFFFF;
  --text-slate-100: #F1F5F9;
  --text-slate-300: #CBD5E1;
  --text-slate-400: #94A3B8;
  --text-slate-500: #64748B;
  --text-muted: #64748B;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Space Grotesk', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.25);
  --shadow-glow-cyan-lg: 0 0 50px rgba(0, 240, 255, 0.45);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--color-base);
  color: var(--text-slate-300);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--color-base);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
}

/* Screen reader utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* --------------------------------------------------------------------------
   3. Ambient Background & Orbs
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  animation: orbFloat 20s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #00F0FF, #3B82F6 70%, transparent);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #1D4ED8, #7C3AED 70%, transparent);
  top: 45%;
  left: -200px;
  animation-delay: -5s;
}

.glow-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00F0FF, #10B981 70%, transparent);
  bottom: -100px;
  right: 15%;
  animation-delay: -10s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  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);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn-primary {
  cursor: pointer;
  border: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.65);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   5. Hero Visual: Modern Talent Dispatch Console
   -------------------------------------------------------------------------- */
.talent-console-card {
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.talent-console-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.talent-dispatch-row {
  background: rgba(14, 19, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.95rem 1.15rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.talent-dispatch-row:hover,
.talent-dispatch-row.active {
  background: rgba(20, 28, 48, 0.95);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}

.avatar-ring {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.avatar-cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.avatar-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.avatar-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.model-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.badge-nearshore {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-onsite {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-offshore {
  background: rgba(192, 132, 252, 0.15);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.tech-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   6. Deployment Matrix Component (Section 2)
   -------------------------------------------------------------------------- */
.deployment-card {
  position: relative;
  background: rgba(14, 19, 31, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.deployment-card:hover {
  background: rgba(20, 27, 45, 0.9);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateX(4px);
}

.deployment-card.active {
  background: rgba(16, 26, 48, 0.95);
  border-color: var(--color-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

.path-icon-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Range input styling */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  box-shadow: 0 0 15px var(--color-cyan);
  border: 2px solid #FFFFFF;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  box-shadow: 0 0 15px var(--color-cyan);
  border: 2px solid #FFFFFF;
}

/* --------------------------------------------------------------------------
   7. Industries Section & Kinetic Typography (Section 3)
   -------------------------------------------------------------------------- */
.mask-gradient-x {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.industry-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 1rem 1.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  user-select: none;
}

.industry-chip:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--color-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15);
}

.industry-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.industry-roles {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-slate-400);
  margin-top: 0.2rem;
}

.industry-separator {
  color: var(--color-cyan);
  opacity: 0.4;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   8. Why Corvus Pillars (Section 4)
   -------------------------------------------------------------------------- */
.why-pillar {
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-pillar:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   9. Form Inputs & Modal
   -------------------------------------------------------------------------- */
.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(8, 11, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  background: rgba(14, 19, 31, 0.95);
}

.form-input option {
  background: #0E131F;
  color: #FFFFFF;
}

/* Modal Chip Selectors */
.modal-chip {
  display: block;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-slate-300);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.modal-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

input[type="radio"]:checked + .modal-chip {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-card {
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
