/* ==========================================================================
   CHRISTECH INFRASTRUCTURE SERVICES // BESPOKE FLAGSHIP DESIGN SYSTEM
   Standard: €100,000 Architectural Enterprise Grade (Pentagram / Linear / Stripe Inspired)
   ========================================================================== */

:root {
  /* Surface System - Deep Obsidian & Void Black */
  --bg-primary: #060709;
  --bg-secondary: #0A0C12;
  --bg-card: #0F121B;
  --bg-card-hover: #141724;
  --bg-card-subtle: #0B0E16;
  --bg-glass: rgba(10, 12, 18, 0.78);
  --bg-glass-elevated: rgba(15, 18, 27, 0.92);

  /* Hairline Precision Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(255, 255, 255, 0.22);
  --border-gold: rgba(198, 168, 124, 0.35);

  /* Typography Colors */
  --text-primary: #F4F5F7;
  --text-secondary: #9BA3AF;
  --text-tertiary: #5E6676;
  --text-highlight: #FFFFFF;

  /* Executive Accents */
  --accent-gold: #C6A87C;
  --accent-gold-glow: rgba(198, 168, 124, 0.28);
  --accent-gold-hover: #D9BD95;
  --accent-cobalt: #3B82F6;
  --accent-cobalt-glow: rgba(59, 130, 246, 0.25);
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #F59E0B;

  /* Specular Shadows & Elevations */
  --shadow-elevation: 0 30px 70px -15px rgba(0, 0, 0, 0.85);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 24px 50px -10px rgba(0, 0, 0, 0.85);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Physics Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-spring);
  --transition-smooth: 0.38s var(--ease-spring);
  --transition-deliberate: 0.65s var(--ease-spring);
}

/* Light Mode Override (Architectural Paper & Warm Alabaster) */
html.light-mode {
  --bg-primary: #F8F9FA;
  --bg-secondary: #F1F3F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-card-subtle: #F3F4F6;
  --bg-glass: rgba(248, 249, 250, 0.85);
  --bg-glass-elevated: rgba(255, 255, 255, 0.96);

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-highlight: rgba(0, 0, 0, 0.2);
  --border-gold: rgba(158, 125, 70, 0.4);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-highlight: #000000;

  --accent-gold: #9E7D46;
  --accent-gold-glow: rgba(158, 125, 70, 0.2);
  --accent-gold-hover: #866734;

  --shadow-elevation: 0 25px 60px -12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 6px 24px -4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 16px 36px -6px rgba(0, 0, 0, 0.08);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Base Setup */
html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  line-height: 1.6;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Fine-mesh Architectural Grid */
.architectural-grid {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 60%, transparent 100%);
}

.light-mode .architectural-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.028) 1px, transparent 1px);
}

/* Editorial Serif & Grotesque Pairings */
.font-serif-accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.035em;
}

.font-mono-tag {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Glass Floating Navbar */
.glass-navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), var(--shadow-inset);
  transition: all var(--transition-smooth);
}

/* Luxury Glass Cards with Specular Highlight & Spotlight */
.glass-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-card), var(--shadow-inset);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card-hover), var(--shadow-inset);
  background: var(--bg-card-hover);
}

/* Spotlight Follow Effect on Cards */
.spotlight-card {
  position: relative;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(198, 168, 124, 0.12), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

/* Top Hairline Shimmer on Cards */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.light-mode .glass-card::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Executive Titanium Gold Action Button */
.btn-gold {
  position: relative;
  background: linear-gradient(180deg, #E2CAAA 0%, #C6A87C 100%);
  color: #07080B;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px var(--accent-gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #EAD7BE 0%, #D8B98D 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 30px var(--accent-gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-inset);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  background: rgba(198, 168, 124, 0.08);
  color: var(--accent-gold);
}

/* Eyebrow Badge */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(198, 168, 124, 0.08);
  border: 1px solid rgba(198, 168, 124, 0.25);
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(198, 168, 124, 0.08);
}

/* Pulsing Status Beacon */
.status-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  position: relative;
  display: inline-block;
}

.status-beacon::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  opacity: 0.8;
  animation: beacon-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Cockpit Chassis & Infrastructure Visualizer */
.cockpit-container {
  position: relative;
  border-radius: 20px;
  background: #090B12;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-elevation), var(--shadow-inset);
  overflow: hidden;
}

.light-mode .cockpit-container {
  background: #FFFFFF;
}

.cockpit-tab-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cockpit-tab-btn:hover {
  color: var(--text-highlight);
  border-color: var(--border-medium);
}

.cockpit-tab-btn.active {
  background: rgba(198, 168, 124, 0.12);
  color: var(--accent-gold);
  border-color: rgba(198, 168, 124, 0.35);
}

/* 42U Server Rack Unit Visualizer Styles */
.rack-chassis {
  background: #06080D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

.rack-unit {
  height: 32px;
  border-radius: 4px;
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.rack-unit:hover {
  border-color: var(--accent-gold);
  background: #161A2A;
  box-shadow: 0 0 15px rgba(198, 168, 124, 0.15);
}

.port-grid {
  display: flex;
  gap: 3px;
  align-items: center;
}

.port-led {
  width: 5px;
  height: 5px;
  border-radius: 1px;
}

/* Filter Buttons */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-highlight);
}

.filter-btn.active {
  background: var(--bg-secondary);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), var(--shadow-inset);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease-spring);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.executive-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.executive-input:focus {
  border-color: var(--accent-gold);
  background: var(--bg-card);
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ==========================================================================
   HIGH-FIDELITY VISUAL ASSETS & BESPOKE SVG ANIMATIONS
   ========================================================================== */

/* 1. Laser Fiber Photon Pulse */
@keyframes photon-flow {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.anim-fiber-line {
  stroke-dasharray: 8, 12;
  animation: photon-flow 2.5s linear infinite;
}

.anim-fiber-fast {
  stroke-dasharray: 6, 8;
  animation: photon-flow 1.2s linear infinite;
}

/* 2. RFID & Security Scanner Laser Beam */
@keyframes laser-scan {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(58px); opacity: 0.95; }
}

.scanner-beam {
  animation: laser-scan 2.8s ease-in-out infinite;
}

/* 3. Data Center Airflow Dynamics */
@keyframes airflow-cold {
  0% { transform: translateY(15px); opacity: 0; }
  50% { opacity: 0.7; }
  100% { transform: translateY(-15px); opacity: 0; }
}

@keyframes airflow-hot {
  0% { transform: translateY(15px); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-20px); opacity: 0; }
}

.air-stream-cold {
  animation: airflow-cold 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.air-stream-hot {
  animation: airflow-hot 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 4. Realistic Server Rack & Switch Port LED Flickering */
@keyframes led-blink-fast {
  0%, 100% { opacity: 0.9; }
  25% { opacity: 0.2; }
  50% { opacity: 1; }
  75% { opacity: 0.4; }
}

@keyframes led-blink-random {
  0%, 100% { opacity: 1; }
  33% { opacity: 0.3; }
  66% { opacity: 0.8; }
}

.led-blink-1 { animation: led-blink-fast 0.8s infinite; }
.led-blink-2 { animation: led-blink-random 1.4s infinite; }
.led-blink-3 { animation: led-blink-fast 1.1s infinite 0.2s; }
.led-blink-4 { animation: led-blink-random 0.6s infinite 0.4s; }

/* 5. Audio / VoIP Telephony Waveform */
@keyframes soundwave {
  0%, 100% { height: 6px; }
  50% { height: 24px; }
}

.wave-bar-1 { animation: soundwave 1.1s ease-in-out infinite; }
.wave-bar-2 { animation: soundwave 0.7s ease-in-out infinite 0.15s; }
.wave-bar-3 { animation: soundwave 1.4s ease-in-out infinite 0.3s; }
.wave-bar-4 { animation: soundwave 0.9s ease-in-out infinite 0.45s; }
.wave-bar-5 { animation: soundwave 1.2s ease-in-out infinite 0.2s; }

/* 6. Visual Component Container Cards */
.visual-module {
  background: rgba(8, 10, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.light-mode .visual-module {
  background: rgba(240, 243, 246, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}
