/* CloakIP/CodeVitals Master CSS File */
/* This file imports all component styles in the correct order */

/* ===== BASE STYLES ===== */
/* Load foundational styles first */
@import url('./base/variables.css');
@import url('./base/reset.css');

/* ===== LAYOUT SYSTEM ===== */
/* Grid, flexbox, and layout utilities */
@import url('./layout/grid.css');

/* ===== COMPONENTS ===== */
/* Reusable UI components */
@import url('./components/buttons.css');
@import url('./components/cards.css');
@import url('./components/navigation.css');
@import url('./components/hero.css');
@import url('./components/company.css');
@import url('./components/mathematical-section.css');
@import url('./components/process-flow.css');
@import url('./components/svg-icons.css');

/* ===== UTILITIES ===== */
/* Utility classes for quick styling */
@import url('./utilities/utilities.css');

/* ===== GLOBAL ENHANCEMENTS ===== */
/* Additional global styles and animations */

/* Custom cursor for interactive elements */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 9999;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-glow);
  opacity: 0;
}

.custom-cursor.active {
  opacity: 1;
}

.custom-cursor.hover {
  transform: scale(1.5);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scroll-animate-fade.active {
  opacity: 1;
}

/* Pain point styling for content */
.pain-highlight {
  color: var(--pain-color);
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 136, 0, 0.1) 100%);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 68, 68, 0.3);
  font-weight: var(--font-weight-semibold);
  display: inline-block;
  margin: 2px;
}

/* Success metrics styling */
.success-metric {
  color: var(--success-color);
  font-weight: var(--font-weight-extrabold);
  font-size: 1.2em;
  display: inline-block;
}

/* Energy/speed emphasis */
.speed-emphasis {
  background: linear-gradient(45deg, var(--energy-color), var(--urgency-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-extrabold);
  font-size: 1.3em;
  text-shadow: 0 0 20px rgba(255, 136, 0, 0.6);
  animation: energyPulse 2s ease-in-out infinite;
}

@keyframes energyPulse {
  0%, 100% { 
    transform: scale(1); 
    filter: brightness(1); 
  }
  50% { 
    transform: scale(1.05); 
    filter: brightness(1.2); 
  }
}

/* Section title styling */
.section-title {
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: var(--line-height-tight);
}

/* Value proposition and special sections */
.value-prop .section-title,
#technology .section-title {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: var(--primary-text);
}

/* Statistics/metrics display */
.stat-number {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: var(--font-weight-black);
  background: linear-gradient(45deg, #00d4ff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.stat-label {
  color: var(--secondary-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xs);
}

.stat-description {
  color: var(--secondary-text);
  line-height: var(--line-height-relaxed);
}

/* Service features list styling */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
  text-align: left;
}

.service-features li {
  color: var(--accent-text);
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
  font-size: var(--font-size-sm);
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-weight: var(--font-weight-bold);
}

/* Process/step indicators */
.step-indicator {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--spacing-sm) auto;
  font-size: var(--font-size-xl);
  color: white;
  box-shadow: var(--shadow-glow);
}

/* Progress connectors */
.progress-connector {
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  position: relative;
}

.progress-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--primary-blue);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Technology feature lists */
.tech-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-features li {
  color: var(--accent-text);
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
}

.tech-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
}

/* Desktop vs mobile layouts */
.desktop-layout {
  display: grid;
}

.mobile-layout {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-layout { 
    display: grid !important; 
  }
  .mobile-layout { 
    display: none !important; 
  }
}

@media (max-width: 1023px) {
  .desktop-layout { 
    display: none !important; 
  }
  .mobile-layout { 
    display: grid !important; 
  }
}

/* Loading states */
.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-blue);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

/* Error states */
.error {
  color: var(--pain-color);
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
}

/* Success states */
.success {
  color: var(--success-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
}

/* Warning states */
.warning {
  color: var(--energy-orange);
  background: rgba(255, 136, 0, 0.1);
  border: 1px solid rgba(255, 136, 0, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
}

/* Info states */
.info {
  color: var(--primary-blue);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
  }
  
  .stat-number {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .step-indicator {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--font-size-lg);
  }
  
  .progress-connector {
    width: 20px;
    height: 1px;
  }
  
  .progress-connector::after {
    border-left: 6px solid var(--primary-blue);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    right: -4px;
    top: -3px;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .custom-cursor,
  .scroll-animate,
  .scroll-animate-fade {
    transition: none;
    animation: none;
  }
  
  .speed-emphasis {
    animation: none;
  }
  
  .loading::after {
    animation: none;
  }
  
  .custom-cursor.hover {
    transform: none;
  }
}

/* High contrast mode enhancements */
@media (prefers-contrast: high) {
  .section-title {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: var(--primary-text);
  }
  
  .stat-number {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: var(--primary-text);
  }
  
  .pain-highlight,
  .error {
    background: var(--pain-color);
    color: var(--primary-bg);
  }
  
  .success {
    background: var(--success-green);
    color: var(--primary-bg);
  }
  
  .warning {
    background: var(--energy-orange);
    color: var(--primary-bg);
  }
  
  .info {
    background: var(--primary-blue);
    color: var(--primary-bg);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .custom-cursor,
  .scroll-animate,
  .scroll-animate-fade,
  .loading,
  .step-indicator {
    display: none;
  }
  
  .section-title,
  .stat-number {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: black !important;
  }
  
  .pain-highlight,
  .success,
  .warning,
  .info,
  .error {
    background: transparent !important;
    border: 1px solid black !important;
    color: black !important;
  }
}