/* ==================================================================================
   BACKEND SATIRICAL SITE - COMPREHENSIVE STYLES
   ==================================================================================
   
   This stylesheet creates a dark, humorous theme for the satirical "behind the scenes" 
   site with dramatic effects, animations, and professional quality design.
   
   STRUCTURE:
   1. CSS Custom Properties (Dark Theme Variables)
   2. Global Reset & Base Styles  
   3. Navigation Components
   4. Hero Section with Matrix Effects
   5. Content Sections (Complexity, Algorithms, etc.)
   6. Satirical Components (Team Cards, Testimonials)
   7. Footer and Responsive Design
   
   EDITING GUIDE:
   - Colors: Modify CSS custom properties in :root
   - Satirical content: Update text in HTML, styles support any content
   - Animations: Adjust durations and effects in animation keyframes
   - Layout: Grid templates and spacing are in CSS variables
   
   ================================================================================== */

/* ==================================================================================
   CSS CUSTOM PROPERTIES - DARK SATIRICAL THEME
   ================================================================================== */
:root {
  /* PRIMARY COLOR PALETTE - Dramatic Dark Theme */
  --primary-color: #ff6b35;           /* Orange - Dramatic accent color */
  --primary-dark: #e55a2b;            /* Darker orange for hover states */
  --primary-light: #ff8c69;           /* Light orange for accents */
  --secondary-color: #6c5ce7;         /* Purple - Secondary dramatic color */
  --accent-color: #00b894;            /* Green - Success/operational color */
  --warning-color: #fdcb6e;           /* Yellow - Warning/attention color */
  --error-color: #e84393;             /* Pink - Error/critical color */
  
  /* DARK THEME COLORS */
  --background-primary: #0c0c0c;      /* Very dark background */
  --background-secondary: #1a1a1a;    /* Secondary dark background */
  --background-tertiary: #2d2d2d;     /* Card backgrounds */
  --surface-elevated: #404040;        /* Elevated surfaces */
  --text-primary: #ffffff;            /* Primary text - white */
  --text-secondary: #e0e0e0;          /* Secondary text - light gray */
  --text-muted: #a0a0a0;              /* Muted text - medium gray */
  --border-color: #404040;            /* Border color */
  --border-light: #606060;            /* Lighter borders */
  
  /* GRADIENT DEFINITIONS */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-hero-bg: linear-gradient(135deg, var(--background-primary), var(--background-secondary));
  --gradient-card: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(108, 92, 231, 0.1));
  
  /* SPACING SYSTEM */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  
  /* TYPOGRAPHY SYSTEM */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  
  /* ANIMATION SYSTEM */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* SHADOW SYSTEM */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
  
  /* LAYOUT SYSTEM */
  --container-max-width: 1200px;
  --navbar-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

/* ==================================================================================
   GLOBAL RESET & BASE STYLES
   ================================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--background-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 2px solid var(--background-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ==================================================================================
   NAVIGATION BAR
   ================================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand i {
  color: var(--primary-color);
  font-size: var(--font-size-2xl);
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-md);
  position: relative;
  padding: var(--space-sm) 0;
  transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ==================================================================================
   BUTTON SYSTEM
   ================================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: var(--background-tertiary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--background-primary);
}

.btn-small {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

/* ==================================================================================
   HERO SECTION
   ================================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--navbar-height);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero-bg);
  z-index: -1;
}

.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 98px,
      var(--primary-color) 100px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 98px,
      var(--secondary-color) 100px
    );
  animation: matrixRain 20s linear infinite;
}

@keyframes matrixRain {
  0% { transform: translateY(-100px) translateX(-100px); }
  100% { transform: translateY(100px) translateX(100px); }
}

.floating-equations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.equation {
  position: absolute;
  color: var(--primary-color);
  font-family: var(--font-mono);
  font-size: var(--font-size-lg);
  opacity: 0.3;
  animation: floatEquation 15s linear infinite;
}

.equation:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.equation:nth-child(2) { top: 20%; left: 80%; animation-delay: 2s; }
.equation:nth-child(3) { top: 60%; left: 15%; animation-delay: 4s; }
.equation:nth-child(4) { top: 80%; left: 70%; animation-delay: 6s; }
.equation:nth-child(5) { top: 30%; left: 50%; animation-delay: 8s; }
.equation:nth-child(6) { top: 70%; left: 30%; animation-delay: 10s; }

@keyframes floatEquation {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { transform: translateY(-20px) rotate(5deg); opacity: 0.3; }
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.classification-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 107, 53, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-xl);
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.7; }
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.gradient-text {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(20deg); }
}

.glitch-text {
  position: relative;
  animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitchTop 1s infinite;
  color: var(--error-color);
  z-index: -1;
}

.glitch-text::after {
  animation: glitchBottom 1.5s infinite;
  color: var(--accent-color);
  z-index: -2;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitchTop {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-2px, -2px); }
  20% { transform: translate(2px, 2px); }
}

@keyframes glitchBottom {
  0%, 100% { transform: translate(0); }  
  25% { transform: translate(2px, 2px); }
  50% { transform: translate(-2px, -2px); }
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
}

.stat-unit {
  font-size: var(--font-size-md);
  color: var(--text-muted);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Monitoring Dashboard */
.monitoring-dashboard {
  background: rgba(45, 45, 45, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.dashboard-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--error-color);
  font-weight: 600;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--error-color);
  border-radius: 50%;
  animation: statusPulse 1s infinite;
}

.status-dot.pulsing {
  animation: dangerPulse 0.5s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes dangerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.metrics-grid {
  display: grid;
  gap: var(--space-md);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(64, 64, 64, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.metric-card:hover {
  background: rgba(64, 64, 64, 0.8);
  transform: translateX(4px);
}

.metric-icon {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
}

.metric-info h4 {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.metric-value {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.value-number {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.trend {
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.trend.up {
  color: var(--error-color);
}

.trend.stable {
  color: var(--warning-color);
}

.metric-info p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ==================================================================================
   SECTION COMMON STYLES
   ================================================================================== */
section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-xl);
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================================================================================
   COMPLEXITY SECTION
   ================================================================================== */
.complexity-section {
  background: var(--background-secondary);
}

.complexity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.complexity-card {
  background: var(--background-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.complexity-card.featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.complexity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.complexity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-xl);
}

.complexity-rating {
  text-align: right;
}

.rating-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-xs);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  justify-content: flex-end;
  margin-bottom: var(--space-xs);
}

.rating-stars i {
  color: var(--primary-color);
  font-size: var(--font-size-sm);
}

.rating-text {
  font-size: var(--font-size-xs);
  color: var(--primary-color);
  font-weight: 700;
}

.complexity-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.complexity-details {
  margin-bottom: var(--space-lg);
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}

.detail-item i {
  color: var(--accent-color);
  font-size: var(--font-size-sm);
  margin-top: 2px;
  flex-shrink: 0;
}

.resource-usage h4 {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.resource-usage ul {
  list-style: none;
  padding-left: 0;
}

.resource-usage li {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
  position: relative;
  padding-left: var(--space-lg);
}

.resource-usage li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Continue with remaining sections... */
/* ==================================================================================
   RESPONSIVE DESIGN
   ================================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav-container {
    padding: 0 var(--space-md);
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .complexity-grid {
    grid-template-columns: 1fr;
  }
}

/* Additional sections styles would continue here... */