/* Skills Solutions Australia - Global Styles */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Compensate for fixed header */
  padding-top: var(--header-height);
}

/* ===== CSS CUSTOM PROPERTIES - DARK MODE DEFAULT ===== */
:root {
  /* Base Colors - Dark Mode with Original Background */
  --color-bg: #0d0d10;
  --color-bg-secondary: #15161c;
  --color-surface: #1a1a1e;
  --color-border: #272a31;
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;
  
  /* Header-specific colors */
  --header-bg: rgba(13, 13, 16, 0.95);
  --header-bg-scrolled: #0d0d10;
  --header-border: #272a31;
  
  /* Neon Accent Colors */
  --neon-pink: #FF007F;
  --neon-purple: #9D4EDD;
  --neon-cyan: #00E5FF;
  --neon-blue: #3B82F6;
  --neon-yellow: #FFD700;
  
  /* Legacy compatibility */
  --accent-teal: var(--neon-cyan);
  --accent-purple: var(--neon-purple);
  --accent-blue: var(--neon-blue);
  --accent-silver: #c0c0c0;
  --primary-teal: var(--neon-cyan);
  --primary-purple: var(--neon-purple);
  --accent-neon: var(--neon-cyan);
  --charcoal: #1a1a1e;
  --light-grey: #a1a1aa;
  --light-blue: #374151;
  --white: #f4f4f5;
  
  /* Neon Gradients */
  --gradient-primary: linear-gradient(120deg, var(--neon-cyan) 0%, var(--neon-purple) 60%, var(--neon-blue) 100%);
  --gradient-accent: var(--gradient-primary);
  --gradient-neon-pink: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
  --gradient-cyber: linear-gradient(45deg, var(--neon-cyan) 0%, var(--neon-pink) 50%, var(--neon-yellow) 100%);
  
  /* Design System - Consolidated */
  --radius-pill: 999px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;
  
  --transition-fast: 140ms cubic-bezier(0.4, 0.2, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0.2, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0.2, 0.2, 1);
  
  /* Neon Effects & Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 20px var(--neon-cyan);
  --shadow-neon-teal: 0 0 20px var(--accent-teal);
  --shadow-neon-pink: 0 0 20px var(--neon-pink);
  --shadow-neon-purple: 0 0 20px var(--neon-purple);
  --shadow-neon-yellow: 0 0 20px var(--neon-yellow);
  --glow-soft: 0 0 40px rgba(0, 229, 255, 0.3);
  --glow-strong: 0 0 60px rgba(0, 229, 255, 0.5);
  --glow-pink: 0 0 30px rgba(255, 0, 127, 0.4);
  --glow-purple: 0 0 30px rgba(157, 78, 221, 0.4);
  --glow-yellow: 0 0 25px rgba(255, 215, 0, 0.3);
  
  /* Glassmorphism Effects */
  --glass-bg: rgba(26, 26, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: blur(10px);
  
  /* 3D & Metallic Effects */
  --metallic-gradient: linear-gradient(135deg, #c0c0c0 0%, #f0f0f0 25%, #d0d0d0 50%, #e0e0e0 75%, #b0b0b0 100%);
  --chrome-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  
  /* Elevation System */
  --elev-neon: 0 0 0 1px rgba(255,255,255,0.04), 0 2px 8px -2px rgba(0,0,0,0.5), 0 0 18px -4px var(--glow-soft), 0 0 22px -4px var(--glow-purple);
  --elev-glass: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--glass-border);
  
  /* Typography Scale */
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-md: 1.5rem;
  --font-size-lg: 2rem;
  --font-size-xl: 3rem;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Header Height (fixed header compensation) */
  --header-height: 72px;
  
  /* Responsive Breakpoints */
  --mobile: 320px;
  --tablet: 768px;
  --desktop: 1024px;
  --large: 1440px;
}

/* Light Theme Overrides */
/* Mobile header height adjustment */
@media (max-width: 768px) {
  :root {
    --header-height: 68px; /* Slightly smaller on mobile */
  }
}

/* ===== HEADER SPACING STANDARDIZATION ===== */
/* Ensure consistent spacing from header to first content across all pages */
main > .hero:first-child,
main > .section:first-child,
main > section:first-child {
  margin-top: 0;
  padding-top: var(--space-md); /* Add extra spacing from header */
}

/* Ensure all hero sections follow consistent pattern */
.hero {
  min-height: calc(100vh - var(--header-height)); /* Account for fixed header */
  padding-top: var(--space-lg); /* Additional top padding for better spacing */
}

/* ===== ENHANCED TYPOGRAPHY WITH NEON EFFECTS ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  position: relative;
}

h1 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: var(--font-weight-black);
}

/* 3D Metallic effect for main headlines */
h1.text-metallic-3d,
.hero-title {
  background: var(--metallic-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.4),
    0 2px 0 rgba(0,0,0,0.3),
    0 3px 5px rgba(0,0,0,0.2),
    0 0 15px rgba(0, 229, 255, 0.4),
    0 0 25px rgba(157, 78, 221, 0.3);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-bold);
}

/* Subtle glow for subheadings */
h2,
h3,
.hero-subtitle {
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.2));
}

h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-semibold);
}

h4, h5, h6 {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a:hover,
a:focus {
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}

/* Neon text utilities */
.gradient-text,
.gradient-text-bright {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

/* Hero Logo Styles */
.hero-logo {
  text-align: center;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-logo-img {
  max-width: 400px;
  height: auto;
  filter: 
    drop-shadow(0 0 20px rgba(0, 229, 255, 0.3))
    drop-shadow(0 0 40px rgba(157, 78, 221, 0.2));
  transition: all var(--transition-normal);
}

.hero-logo-img:hover {
  filter: 
    drop-shadow(0 0 30px rgba(0, 229, 255, 0.5))
    drop-shadow(0 0 60px rgba(157, 78, 221, 0.3));
  transform: scale(1.05);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive hero logo */
@media (max-width: 768px) {
  .hero-logo-img {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    max-width: 260px;
  }
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

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

.section-lg {
  padding: calc(var(--space-xxl) * 1.5) 0;
}

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

.text-left {
  text-align: left;
}

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

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Special grid for service cards that centers incomplete rows */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

/* Center the last row items when there are fewer than 3 items */
.grid-services > *:nth-child(5),
.grid-services > *:nth-child(6):last-child {
  grid-column: 2 / 3;
}

.grid-services > *:nth-child(5):nth-last-child(2) {
  grid-column: 2 / 3;
}

.grid-services > *:nth-child(6):nth-last-child(1) {
  grid-column: 3 / 4;
}

/* Tablet layout for service grid */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Reset positioning for 2-column layout */
  .grid-services > * {
    grid-column: auto !important;
  }
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== FLEXBOX UTILITIES ===== */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ===== VISIBILITY UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; /* Move further out of view */
  left: 6px;
  background: var(--neon-cyan);
  color: #000000;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  z-index: 2000;
  transition: top var(--transition-fast);
  box-shadow: 0 0 20px var(--neon-cyan);
  opacity: 0; /* Hide completely when not focused */
  visibility: hidden; /* Ensure it's not visible */
}

.skip-link:focus {
  top: 6px;
  opacity: 1; /* Make fully visible when focused */
  visibility: visible; /* Make accessible when focused */
}

.hidden {
  display: none;
}

/* ===== RETRO-FUTURISM BACKGROUND ELEMENTS ===== */
.retro-grid {
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

.retro-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(157, 78, 221, 0.1) 0%, 
    rgba(0, 229, 255, 0.1) 100%);
  pointer-events: none;
}

.geometric-pattern {
  position: relative;
  overflow: hidden;
}

.geometric-pattern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239D4EDD' fill-opacity='0.05'%3E%3Cpath d='M20 20v20L0 30z'/%3E%3Cpath d='M20 20l20 10L30 0z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: geometricMove 20s linear infinite;
  pointer-events: none;
}

@keyframes geometricMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* ===== NEON UTILITIES ===== */
.text-neon {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
}

.text-metallic-3d {
  background: var(--metallic-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.4),
    0 2px 0 rgba(0,0,0,0.3),
    0 3px 5px rgba(0,0,0,0.2),
    0 0 15px rgba(0, 229, 255, 0.3);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.glow-soft {
  box-shadow: var(--glow-soft);
}

.glow-pink {
  box-shadow: var(--glow-pink);
}

.glow-purple {
  box-shadow: var(--glow-purple);
}

.glow-yellow {
  box-shadow: var(--glow-yellow);
}

.border-neon {
  border: 1px solid var(--neon-cyan);
  box-shadow: 
    0 0 10px rgba(0, 229, 255, 0.3),
    inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.border-neon-pink {
  border: 1px solid var(--neon-pink);
  box-shadow: 
    0 0 10px rgba(255, 0, 127, 0.3),
    inset 0 0 10px rgba(255, 0, 127, 0.1);
}

/* ===== GLASSMORPHISM PANELS ===== */
.panel-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-glass);
  position: relative;
}

.overlay-hologram {
  position: relative;
}

.overlay-hologram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  animation: hologramShimmer 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes hologramShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ===== ENERGY DIVIDER ===== */
.energy-divider {
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  margin: var(--space-xl) 0;
  position: relative;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.energy-divider::before,
.energy-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.energy-divider::before {
  left: -4px;
}

.energy-divider::after {
  right: -4px;
}

/* ===== CIRCUIT PATTERNS ===== */
.circuit-bg {
  position: relative;
  overflow: hidden;
}

.circuit-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.1) 50%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(157, 78, 221, 0.1) 50%, transparent 100%);
  background-size: 40px 40px;
  animation: circuitFlow 8s linear infinite;
  pointer-events: none;
}

@keyframes circuitFlow {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 40px 40px, -40px -40px; }
}

/* ===== ACCESSIBILITY & REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .circuit-bg::before,
  .overlay-hologram::before {
    animation: none !important;
  }
  
  .energy-divider {
    box-shadow: none;
  }
}
@media (max-width: 768px) {
  :root {
    --font-size-xl: 2.5rem;
    --font-size-lg: 1.75rem;
    --font-size-md: 1.25rem;
    --space-xxl: 3rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-services {
    grid-template-columns: 1fr;
  }
  
  /* Reset service grid positioning on mobile */
  .grid-services > * {
    grid-column: auto !important;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-xl: 2rem;
    --font-size-lg: 1.5rem;
    --space-xxl: 2rem;
  }
  
  h1 {
    line-height: 1.1;
  }
}

/* ===== THEME UTILITIES ===== */

/* Gradient Text */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}

/* Bright Retro Gradient Text for Headings */
.gradient-text-bright {
  background: linear-gradient(135deg, 
    #00e5ff 0%, 
    #00bcd4 25%, 
    #e91e63 50%, 
    #9c27b0 75%, 
    #00e5ff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.5px;
  animation: gradientShift 4s ease-in-out infinite;
  font-weight: 600;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (background-clip: text) {
  .gradient-text-bright {
    color: #00e5ff;
    -webkit-text-fill-color: unset;
  }
}

/* ===== NEON CARDS & GLASSMORPHISM ===== */
.card-neon {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-glass);
  position: relative;
  overflow: hidden;
}

.card.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--elev-glass);
  position: relative;
}

/* Enhanced glassmorphism for dark theme */
.theme-dark .card-neon,
.theme-dark .card.glass {
  background: rgba(13, 13, 13, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 
    var(--elev-glass),
    0 0 20px rgba(0, 229, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Holographic overlay for cards */
.card-neon::before,
.card.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: 
    radial-gradient(circle at 25% 25%, rgba(0, 229, 255, 0.15), transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 0, 127, 0.12), transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(157, 78, 221, 0.1), transparent 40%);
  pointer-events: none;
  opacity: 0.8;
}

/* ===== ENHANCED NEON BUTTONS ===== */
.btn,
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.btn-primary,
.btn.btn-neon {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 20px rgba(0, 229, 255, 0.4),
    0 8px 30px rgba(157, 78, 221, 0.3);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.btn-primary:hover,
.btn.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 6px 25px rgba(0, 229, 255, 0.5),
    0 12px 40px rgba(157, 78, 221, 0.4);
  border-color: rgba(0, 229, 255, 0.5);
}

.btn-primary:active,
.btn.btn-neon:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: 
    0 0 15px rgba(0, 229, 255, 0.2),
    inset 0 0 15px rgba(0, 229, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 
    0 0 20px rgba(0, 229, 255, 0.4),
    inset 0 0 20px rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

/* Electric Pink Button */
.btn-pink-electric {
  background: transparent !important;
  color: var(--neon-pink) !important;
  border: 1px solid rgba(255, 0, 127, 0.6) !important;
  box-shadow: 
    0 0 15px rgba(255, 0, 127, 0.3),
    inset 0 0 15px rgba(255, 0, 127, 0.05) !important;
}

.btn-pink-electric:hover {
  background: rgba(255, 0, 127, 0.1) !important;
  box-shadow: 
    0 0 25px rgba(255, 0, 127, 0.5),
    inset 0 0 20px rgba(255, 0, 127, 0.1) !important;
  transform: translateY(-2px);
  border-color: rgba(255, 0, 127, 0.8) !important;
}

/* Ripple Effect */
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

.btn:active::after {
  width: 180%;
  height: 180%;
  opacity: 0;
  transition: 0s;
}

/* Dark Hero Variant */
.hero.dark-hero {
  background: radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.18), transparent 60%), radial-gradient(circle at 80% 70%, rgba(157, 78, 221, 0.22), transparent 65%), linear-gradient(140deg, #0d0d10 0%, #15161c 60%, #101014 100%);
  position: relative;
  overflow: hidden;
}

.hero.dark-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.4;
}

/* Particle Styling for Dark Mode */
.hero.dark-hero [data-particle] {
  background: radial-gradient(circle, var(--accent-teal), transparent 70%);
}

/* Typography Enhancements */
h1, h2, h3 {
  letter-spacing: 0.5px;
}

/* ===== UNIVERSAL SECTION THEME SUPPORT ===== */
/* Ensure all sections have proper dark mode backgrounds */
.theme-dark .section,
.theme-dark section {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
}

/* Auto dark mode support */
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) .section,
  :root:not(.theme-light) section {
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
  }
}

/* Maintain gradient sections in both themes */
.section-gradient,
.section[style*="linear-gradient"] {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-teal)) !important;
  color: var(--white) !important;
}

/* Force text color inheritance in sections */
.theme-dark section *,
.theme-dark .section * {
  color: inherit;
}

.theme-light section *,
.theme-light .section * {
  color: inherit;
}

/* Specific overrides for elements that commonly don't inherit */
.theme-dark section p,
.theme-dark .section p,
.theme-dark section div,
.theme-dark .section div,
.theme-dark section span,
.theme-dark .section span {
  color: var(--color-text-muted) !important;
}

/* ===== SECTION STYLES ===== */
.section-dark {
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-xxl) 0;
}

.section-gradient {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-teal));
  color: var(--white);
  padding: var(--space-xxl) 0;
}

.section-stats {
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-xxl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section content styling */
.section-content h2 {
  color: var(--color-text);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--space-lg);
}

.section-content p {
  font-size: var(--font-size-md);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

/* Testimonial styling */
.testimonial {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-light .testimonial {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--color-border);
}

.testimonial-text {
  font-size: var(--font-size-md);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: var(--space-xs);
}

.testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Override inline styles for theme compatibility */
/* This ensures proper text readability in both themes */
body p[style*="color: var(--charcoal)"],
body h1[style*="color: var(--charcoal)"],
body h2[style*="color: var(--charcoal)"],
body h3[style*="color: var(--charcoal)"],
body h4[style*="color: var(--charcoal)"],
body span[style*="color: var(--charcoal)"],
body div[style*="color: var(--charcoal)"] {
  color: var(--color-text) !important;
}

/* Fix for steps and icons with charcoal color */
body .step-number[style*="color: var(--charcoal)"],
body .step-icon[style*="color: var(--charcoal)"],
body .phase-number[style*="color: var(--charcoal)"] {
  color: #000000 !important;
}

/* Ensure all step numbers are black regardless of any other styling */
.step-number,
body .step-number,
html .step-number {
  color: #000000 !important;
}

/* Additional text color fixes for theme switching */
body p,
body div,
body span,
body li {
  color: inherit;
}

/* Ensure all headings use theme colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
}

/* Fix specific elements that might have hardcoded colors */
.section-title,
.card-title,
.hero-title {
  color: var(--color-text) !important;
}

/* Override any remaining white text in light mode */
.theme-light [style*="color: white"],
.theme-light [style*="color: #ffffff"],
.theme-light [style*="color: var(--white)"] {
  color: var(--color-text) !important;
}

/* Override any remaining dark text in dark mode */
.theme-dark [style*="color: black"],
.theme-dark [style*="color: #000000"],
.theme-dark [style*="color: #000"] {
  color: var(--color-text) !important;
}

/* Additional legacy color variable overrides */
.theme-dark [style*="color: var(--light-grey)"],
.theme-light [style*="color: var(--light-grey)"] {
  color: var(--color-text-muted) !important;
}

/* Fix footer and link colors */
footer,
footer *,
.footer,
.footer * {
  color: var(--color-text-muted) !important;
}

/* Ensure proper inheritance in all containers */
.container,
.container *,
main,
main * {
  color: inherit;
}

/* Force theme colors on common text elements */
p, div, span, li, td, th {
  color: inherit;
}

/* Make sure titles and headings always use the right colors */
.section-title,
.hero-title,
.card-title {
  color: var(--color-text) !important;
}

/* Override for accent colored elements that should stay colored */
[style*="color: var(--primary-teal)"],
[style*="color: var(--primary-purple)"],
[style*="color: var(--accent-teal)"] {
  /* Keep these colored elements as they are - they're accent colors */
  opacity: 1;
}

/* ===== FINAL COMPREHENSIVE TEXT COLOR FIXES ===== */
/* High specificity overrides to ensure proper theme text colors */

/* Dark theme text color enforcement */
.theme-dark,
.theme-dark *:not([class*="accent"]):not([class*="primary"]):not([class*="teal"]):not([class*="purple"]) {
  color: var(--color-text);
}

.theme-dark p,
.theme-dark div:not(.card-icon):not(.stat-number),
.theme-dark span:not(.stat-number),
.theme-dark li,
.theme-dark td,
.theme-dark th {
  color: var(--color-text-muted) !important;
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6 {
  color: var(--color-text) !important;
}

/* Light theme text color enforcement */
.theme-light,
.theme-light *:not([class*="accent"]):not([class*="primary"]):not([class*="teal"]):not([class*="purple"]) {
  color: var(--color-text);
}

.theme-light p,
.theme-light div:not(.card-icon):not(.stat-number),
.theme-light span:not(.stat-number),
.theme-light li,
.theme-light td,
.theme-light th {
  color: var(--color-text-muted) !important;
}

.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6 {
  color: var(--color-text) !important;
}

/* Auto dark mode support */
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) p,
  :root:not(.theme-light) div:not(.card-icon):not(.stat-number),
  :root:not(.theme-light) span:not(.stat-number),
  :root:not(.theme-light) li,
  :root:not(.theme-light) td,
  :root:not(.theme-light) th {
    color: var(--color-text-muted) !important;
  }
  
  :root:not(.theme-light) h1,
  :root:not(.theme-light) h2,
  :root:not(.theme-light) h3,
  :root:not(.theme-light) h4,
  :root:not(.theme-light) h5,
  :root:not(.theme-light) h6 {
    color: var(--color-text) !important;
  }
}

/* Accessibility - High Contrast Fallback */
.force-high-contrast .card-neon,
.force-high-contrast .card.glass {
  box-shadow: none;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
}

/* ===== PRINT STYLES ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}

/* ===== ENHANCED ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .circuit-bg::before,
  .overlay-hologram::before,
  .geometric-pattern::before {
    animation: none !important;
  }
  
  /* Disable all glow effects for reduced motion */
  .glow-soft,
  .glow-pink,
  .glow-purple,
  .glow-yellow,
  .border-neon,
  .border-neon-pink,
  .energy-divider {
    box-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --neon-cyan: #00B4CC;
    --neon-purple: #7B2CBF;
    --neon-pink: #E60074;
    --color-text: #FFFFFF;
    --color-text-muted: #CCCCCC;
  }
  
  .panel-glass {
    background: var(--color-surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ===== ENHANCED FOCUS INDICATORS ===== */
:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.2);
}

:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-teal: #00796B;
    --primary-purple: #512DA8;
    --charcoal: #000000;
    --light-grey: #757575;
  }
}

/* Light mode text color enforcement */
.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6,
.theme-light p,
.theme-light span,
.theme-light div,
.theme-light li,
.theme-light td,
.theme-light th,
.theme-light label,
.theme-light .card-title,
.theme-light .card-text,
.theme-light .section-title,
.theme-light .step-title,
.theme-light .feature-title,
.theme-light .phase-title {
  color: #000000 !important;
}

/* Preserve specific elements that should remain themed */
.theme-light .btn,
.theme-light .nav-link,
.theme-light .theme-toggle,
.theme-light .footer-link,
.theme-light .step-icon,
.theme-light .phase-number,
.theme-light .hero-subtitle,
.theme-light .hero-title {
  color: unset !important;
}

/* Ensure step numbers are always black */
.theme-light .step-number {
  color: black !important;
}

/* ===== AI CIRCUIT BACKGROUND (KEPT BY REQUEST) ===== */
/* AI Circuit Pattern Background */
.ai-circuit-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.1) 2%, transparent 4%),
    linear-gradient(0deg, transparent 0%, rgba(255, 0, 127, 0.08) 1px, transparent 2px);
  background-size: 100px 80px;
  animation: aiCircuitFlow 20s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes aiCircuitFlow {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 100px 80px, -80px -100px; }
}

/* ===== CARD SHIMMER LIGHT SWEEP EFFECT ===== */
.card-shimmer {
  position: relative;
  overflow: hidden;
}

.card-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 229, 255, 0.3), 
    rgba(255, 20, 147, 0.2),
    rgba(0, 229, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease-in-out;
  pointer-events: none;
  border-radius: inherit;
  z-index: 3;
}

.card-shimmer:hover::before {
  left: 100%;
}
