/* CSS Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primary Colors - AI/Data Professional Palette */
  --primary-color: #2563eb;           /* Electric Blue - Trust, technology */
  --primary-hover: #1d4ed8;           /* Deep Blue - Professional depth */
  --primary-light: #3b82f6;          /* Lighter Blue - Accents */
  
  /* Secondary Colors - Data Intelligence */
  --secondary-color: #7c3aed;        /* Purple - Innovation, AI */
  --secondary-hover: #6d28d9;        /* Deep Purple */
  --secondary-light: #8b5cf6;        /* Light Purple */
  
  /* Accent Colors - Success & Growth */
  --accent-color: #06b6d4;           /* Cyan - Data flow, analytics */
  --accent-hover: #0891b2;           /* Deep Cyan */
  --accent-light: #22d3ee;           /* Light Cyan */
  
  /* Success & Action Colors */
  --success-color: #10b981;          /* Emerald - Success, growth */
  --success-hover: #059669;          /* Deep Emerald */
  --warning-color: #f59e0b;         /* Amber - Attention, insights */
  --error-color: #ef4444;            /* Red - Errors, alerts */
  
  /* Vallabha Mohta-Inspired Dark Theme */
  --bg-primary: #0a0a0a;             /* Deep black background */
  --bg-secondary: #1a1a1a;           /* Dark gray sections */
  --bg-tertiary: #2a2a2a;            /* Darker cards */
  --bg-quaternary: #3a3a3a;          /* Subtle borders */
  
  --text-primary: #ffffff;           /* Pure white text */
  --text-secondary: #b0b0b0;         /* Light gray secondary */
  --text-tertiary: #808080;          /* Medium gray muted */
  --text-quaternary: #606060;        /* Dark gray placeholder */
  
  --border-color: #404040;           /* Dark borders */
  --border-light: #303030;           /* Subtle borders */
  --shadow-color: rgba(255, 255, 255, 0.05); /* Subtle white shadows */
  
  /* Vallabha Mohta Color Palette */
  --primary-color: #00ff88;          /* Bright green accent */
  --primary-hover: #00cc6a;          /* Darker green */
  --primary-light: #33ff99;          /* Light green */
  
  --secondary-color: #00bfff;         /* Cyan accent */
  --secondary-hover: #0099cc;        /* Darker cyan */
  --secondary-light: #33ccff;        /* Light cyan */
  
  --accent-color: #ff6b35;           /* Orange accent */
  --accent-hover: #e55a2b;           /* Darker orange */
  --accent-light: #ff8c69;          /* Light orange */
  
  /* Professional Gradients - Dark Theme */
  --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00bfff 100%);
  --gradient-secondary: linear-gradient(135deg, #00bfff 0%, #ff6b35 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #00ff88 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  
  /* Fonts */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  
  /* Font Sizes - Vallabha Mohta Style (Smaller, Refined) */
  --text-xs: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);      /* 10-12px */
  --text-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);    /* 12-14px */
  --text-base: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);      /* 14-16px */
  --text-lg: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);        /* 16-18px */
  --text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);      /* 18-20px */
  --text-2xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);     /* 20-24px */
  --text-3xl: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);   /* 24-30px */
  --text-4xl: clamp(1.875rem, 1.6rem + 1vw, 2.25rem);    /* 30-36px */
  --text-5xl: clamp(2.25rem, 1.9rem + 1.5vw, 3rem);       /* 36-48px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Spacing System */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Breakpoints */
  --mobile: 320px;
  --tablet: 768px;
  --desktop: 1024px;
  --large-desktop: 1440px;
}

/* Dark Mode (Optional but Impressive) */
[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --border-color: #374151;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

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

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-12);
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  border-radius: var(--radius-base);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: var(--font-medium);
  cursor: pointer;
  padding: 0;
}

.btn-text:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-live {
  background-color: #fef3c7;
  color: #92400e;
  animation: pulse 2s infinite;
}

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

.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

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

/* Tags */
.tag, .tech-tag, .highlight-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
}

.tech-tag {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background-color: var(--text-primary);
  color: white;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Highlight Text */
.highlight {
  color: var(--primary-color);
  font-weight: var(--font-semibold);
}

.metric {
  color: var(--accent-color);
  font-weight: var(--font-bold);
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Icon Styles */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.social-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Text Utilities */
.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Form Elements */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
