/*=========================================
  iBot IITM - Phenomenal Design System
  Futuristic • Bold • Unforgettable
=========================================*/

/* Import Distinctive Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Space+Mono:wght@400;700&family=Exo+2:wght@300;400;600;800;900&display=swap');

/* CSS Variables for consistent theming */
:root {
  /* Brand Colors - Enhanced Tech Palette */
  --primary-red: #ff0844;
  --primary-red-dark: #d10039;
  --primary-red-light: #ff2f67;
  --neon-red: #ff1654;
  --electric-blue: #00f0ff;
  --cyber-purple: #bf00ff;
  --laser-green: #00ff88;
  
  /* Background Colors - Deep Space Theme */
  --bg-dark: #050510;
  --bg-darker: #020208;
  --bg-card: #0d0d1a;
  --bg-card-hover: #14142b;
  --bg-glass: rgba(13, 13, 26, 0.7);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-accent: var(--electric-blue);
  
  /* Accent Colors */
  --accent-blue: #00d9ff;
  --accent-purple: #bf00ff;
  --accent-green: #00ff88;
  --accent-orange: #ff6a00;
  
  /* Advanced Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--neon-red) 50%, #ff6600 100%);
  --gradient-cyber: linear-gradient(135deg, var(--electric-blue) 0%, var(--cyber-purple) 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
  --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-darker) 100%);
  --gradient-glow: radial-gradient(circle at center, var(--primary-red) 0%, transparent 70%);
  --gradient-mesh: linear-gradient(135deg, rgba(255, 8, 68, 0.1) 0%, rgba(0, 240, 255, 0.1) 50%, rgba(191, 0, 255, 0.1) 100%);
  
  /* Enhanced Shadows & Effects */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(255, 8, 68, 0.5);
  --shadow-glow-blue: 0 0 40px rgba(0, 240, 255, 0.4);
  --shadow-glow-purple: 0 0 35px rgba(191, 0, 255, 0.4);
  --shadow-neon: 0 0 20px rgba(255, 8, 68, 0.6), 0 0 40px rgba(255, 8, 68, 0.3);
  
  /* Advanced Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* Typography - Distinctive Futuristic Fonts */
  --font-display: 'Orbitron', 'Exo 2', monospace;
  --font-heading: 'Exo 2', 'Orbitron', sans-serif;
  --font-body: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  font-weight: 400;
}

/* Animated Background Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 8, 68, 0.02) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 8, 68, 0.02) 1.5px, transparent 1.5px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
  animation: gridScroll 20s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 8, 68, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(191, 0, 255, 0.05) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 15s ease-in-out infinite;
}

@keyframes gridScroll {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Typography - Bold & Futuristic */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 { 
  font-size: clamp(2.5rem, 7vw, 5rem); 
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 8, 68, 0.3));
}

h2 { 
  font-size: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

h3 { 
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-family: var(--font-heading);
}

h4 { 
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--font-heading);
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

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

a:hover {
  color: var(--primary-red-light);
  text-shadow: 0 0 10px rgba(255, 8, 68, 0.5);
}

/* Code and Mono Elements */
code, pre {
  font-family: var(--font-mono);
  background: rgba(255, 8, 68, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 8, 68, 0.2);
  font-size: 0.9em;
}

/* Page Wrapper */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

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

/* Section Spacing */
section {
  padding: var(--spacing-2xl) 0;
}

/* Modern Button Styles - Futuristic & Interactive */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::after {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-neon), var(--shadow-lg);
  border: 2px solid transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 40px rgba(255, 8, 68, 0.8), 
              0 0 60px rgba(255, 8, 68, 0.4),
              var(--shadow-xl);
}

.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  position: relative;
  box-shadow: inset 0 0 0 0 var(--primary-red);
  transition: box-shadow 0.5s, color 0.5s, transform 0.3s;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-outline:hover {
  color: white;
  box-shadow: inset 400px 0 0 0 var(--primary-red),
              0 0 30px rgba(255, 8, 68, 0.6);
  transform: translateY(-4px);
}

.btn-outline:active {
  transform: translateY(-2px);
}

.btn-cyber {
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--cyber-purple) 100%);
  color: white;
  border: 2px solid var(--electric-blue);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), var(--shadow-md);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-cyber:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.8),
              0 0 60px rgba(191, 0, 255, 0.4),
              var(--shadow-xl);
  border-color: var(--cyber-purple);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Advanced Card Styles - Glassmorphism & Holographic Effects */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 8, 68, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 8, 68, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.card:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(255, 8, 68, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 8, 68, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

/* Holographic Card Variant */
.card-holo {
  background: linear-gradient(
    135deg,
    rgba(13, 13, 26, 0.8) 0%,
    rgba(255, 8, 68, 0.05) 50%,
    rgba(0, 240, 255, 0.05) 100%
  );
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.card-holo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary-red), var(--electric-blue), var(--cyber-purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.card-holo:hover::before {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

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

/* Glass Card Variant */
.card-glass {
  background: rgba(13, 13, 26, 0.4);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-glass:hover {
  background: rgba(13, 13, 26, 0.6);
  border-color: rgba(255, 8, 68, 0.3);
}

/* Neon Card Variant */
.card-neon {
  background: var(--bg-card);
  border: 2px solid var(--primary-red);
  box-shadow: inset 0 0 20px rgba(255, 8, 68, 0.1),
              0 0 20px rgba(255, 8, 68, 0.3);
}

.card-neon:hover {
  box-shadow: inset 0 0 30px rgba(255, 8, 68, 0.2),
              0 0 40px rgba(255, 8, 68, 0.6),
              0 0 60px rgba(255, 8, 68, 0.3);
  border-color: var(--neon-red);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 23, 23, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 23, 23, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Enhanced Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  animation: titleReveal 1s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineExpand 0.8s ease-out 0.3s forwards;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-accent);
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: var(--spacing-md);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.section-divider {
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  margin: var(--spacing-md) auto;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lineExpand {
  to { transform: scaleX(1); }
}

/* Comprehensive Animation Library */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 8, 68, 0.3),
                0 0 40px rgba(255, 8, 68, 0.1); 
  }
  50% { 
    box-shadow: 0 0 40px rgba(255, 8, 68, 0.6),
                0 0 80px rgba(255, 8, 68, 0.3); 
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

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

/* Particle Effect */
@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}

/* Utility Animation Classes */
.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out; }
.animate-slide-in-left { animation: slideInLeft 0.8s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.8s ease-out; }
.animate-scale-in { animation: scaleIn 0.6s ease-out; }
.animate-rotate-in { animation: rotateIn 0.8s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 3s ease-in-out infinite; }

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Gradient Utilities */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 8, 68, 0.3));
}

.gradient-text-cyber {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Loading Animations */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 8, 68, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-red);
  animation: spin 0.8s linear infinite;
}

.loading-pulse {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-red);
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 8, 68, 0.6);
}

/* Utility Classes - Extended */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Z-Index Utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Opacity Utilities */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor Utilities */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Select Utilities */
.select-none { user-select: none; }
.select-text { user-select: text; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;
  }
  
  .container,
  .container-wide {
    padding: 0 var(--spacing-md);
  }
  
  section {
    padding: var(--spacing-xl) 0;
  }
  
  .grid {
    gap: var(--spacing-md);
  }

  h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
}

/* 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;
}

/* Focus States - Enhanced */
*:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 3px;
  border-radius: 2px;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(255, 8, 68, 0.2);
}

/* 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;
  }

  body::before,
  body::after {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .btn,
  nav,
  footer,
  .hero-background,
  .card::before,
  .card::after {
    display: none !important;
  }

  .card {
    border: 1px solid #ddd;
    background: white;
    box-shadow: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
  }

  .card {
    border: 2px solid white;
  }

  .btn {
    border: 2px solid currentColor;
  }
}
