/* ================================================================
   BASE STYLES - MOBILE FIRST
   Foundation styles for all devices
   ================================================================ */

/* CSS RESET & VARIABLES */
:root {
  /* Color Palette - Professional & Clean */
  --primary-color: #0066cc;
  --primary-dark: #004c99;
  --primary-light: #3385d6;
  --secondary-color: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --border-color: #2a2a2a;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Spacing System */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  
  /* Typography System */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, system-ui, sans-serif;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Layout */
  --container-mobile: 100%;
  --container-tablet: 720px;
  --container-desktop: 1140px;
  --container-wide: 1320px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* ===================================================================
     ENHANCED COLOR SYSTEM - Add after existing variables
     =================================================================== */
  /* NEW: Course Category Colors */
  --color-foundation: #10b981;
  --color-foundation-light: rgba(16, 185, 129, 0.1);
  --color-foundation-glow: rgba(16, 185, 129, 0.2);

  --color-ethical-hacking: #8b5cf6;
  --color-ethical-hacking-light: rgba(139, 92, 246, 0.1);
  --color-ethical-hacking-glow: rgba(139, 92, 246, 0.2);

  --color-forensics: #f59e0b;
  --color-forensics-light: rgba(245, 158, 11, 0.1);
  --color-forensics-glow: rgba(245, 158, 11, 0.2);

  --color-defense: #06b6d4;
  --color-defense-light: rgba(6, 182, 212, 0.1);
  --color-defense-glow: rgba(6, 182, 212, 0.2);

  --color-soc: #ec4899;
  --color-soc-light: rgba(236, 72, 153, 0.1);
  --color-soc-glow: rgba(236, 72, 153, 0.2);

  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  --gradient-hero: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* ===================================================================
   SMOOTH ANIMATIONS & TRANSITIONS
   =================================================================== */

/* Smooth scroll behavior */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Global smooth transitions */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

*::before,
*::after {
  box-sizing: border-box;
}

/* Disable transitions for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container System */
.container {
  width: 100%;
  max-width: var(--container-mobile);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Section Spacing */
section {
  padding: var(--space-2xl) 0;
  position: relative;
  transition: background 0.3s ease;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================================================================
   HOVER EFFECTS & MICRO-INTERACTIONS
   =================================================================== */

/* Smooth scale on hover */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Glow effect on hover */
.hover-glow {
  position: relative;
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px var(--primary-color);
}

/* Border animation */
.hover-border {
  position: relative;
  overflow: hidden;
}

.hover-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
}

.hover-border:hover::before {
  left: 0;
}

/* Shine effect */
@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.hover-shine:hover::after {
  left: 100%;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--text-primary);
}

@media (max-width: 767px) {
  section {
    background: var(--bg-dark) !important;
  }
}



