/* =================================
   GLOBAL STYLES - AION 2K26
   UI/UX Optimized Color Scheme
================================= */

* { 
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors - Blue Harmony */
  --primary-blue: #3B82F6;
  --primary-blue-dark: #2563EB;
  --primary-blue-darker: #1E40AF;
  --primary-blue-light: #60A5FA;
  --primary-blue-lightest: #DBEAFE;
  
  /* Secondary Colors - Purple Accent */
  --secondary-purple: #8B5CF6;
  --secondary-purple-dark: #7C3AED;
  --secondary-purple-light: #A78BFA;
  
  /* Success & Highlight */
  --success-green: #10B981;
  --warning-yellow: #F59E0B;
  --error-red: #EF4444;
  
  /* Neutrals - Modern Gray Scale */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Dark Mode Colors */
  --dark-bg: #0F172A;
  --dark-surface: #1E293B;
  --dark-border: rgba(255, 255, 255, 0.1);
  
  /* Spacing (8pt Grid System) */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 4rem;    /* 64px */
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body {
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =================================
   NAVBAR STYLES
================================= */

nav {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9375rem; /* 15px - optimal readability */
  transition: color 0.2s ease;
  position: relative;
  padding: var(--spacing-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Dark Mode Nav Links */
.dark-mode .nav-link {
  color: var(--gray-300);
}

.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
  color: var(--primary-blue-light);
}

/* =================================
   BUTTONS
================================= */

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  padding: 0.625rem 1.75rem; /* Golden ratio spacing */
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue-darker) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  padding: 0.625rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--primary-blue);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

/* =================================
   FOOTER STYLES
================================= */

footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--spacing-2xl) var(--spacing-lg);
}

footer a {
  color: var(--gray-400);
  transition: color 0.2s ease;
}

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

.footer-link {
  position: relative;
  padding-bottom: 2px;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-blue-light);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* =================================
   UTILITY CLASSES
================================= */

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

.section-spacing {
  padding: var(--spacing-2xl) 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-glass-effect {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =================================
   ACCESSIBILITY
================================= */

*:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed navbar */
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =================================
   RESPONSIVE DESIGN
================================= */

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

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }
}