/* ========================================
   GAMINE AI - MODERN PROFESSIONAL STYLES
   ======================================== */

/* CSS Variables for Comfortable Reading Color Palette */
:root {
  /* Primary Colors - Soft Teal for Comfortable Reading */
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --primary-300: #5eead4;
  --primary-400: #2dd4bf;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-900: #134e4a;
  
  /* Secondary Colors - Soft Blue */
  --secondary-50: #f0f9ff;
  --secondary-100: #e0f2fe;
  --secondary-200: #bae6fd;
  --secondary-300: #7dd3fc;
  --secondary-400: #38bdf8;
  --secondary-500: #0ea5e9;
  --secondary-600: #0284c7;
  --secondary-700: #0369a1;
  --secondary-800: #075985;
  --secondary-900: #0c4a6e;
  
  /* Accent Colors - Warm Orange */
  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-200: #fed7aa;
  --accent-300: #fdba74;
  --accent-400: #fb923c;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --accent-700: #c2410c;
  --accent-800: #9a3412;
  --accent-900: #7c2d12;
  
  /* Neutral Colors - Soft and Eye-friendly */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Background and Text Colors for Comfortable Reading */
  --bg-primary: #fefefe;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f4;
  --text-primary: #1a1a1a;
  --text-secondary: #404040;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  /* Semantic Colors */
  --success-50: #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;
  
  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  
  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;
  
  --info-50: #f0f9ff;
  --info-500: #3b82f6;
  --info-600: #2563eb;
  --info-700: #1d4ed8;
  
  /* Typography - Modern and Readable */
  --font-family-sans: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
  --font-family-display: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing - Generous for comfortable reading */
  --spacing-xs: 0.375rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 2rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 3.5rem;
  --spacing-3xl: 5rem;
  
  /* Border Radius - More rounded for modern look */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-full: 9999px;
  
  /* Shadows - Subtle and soft */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Performance optimizations */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-sans);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Performance optimizations */
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  /* Prevent horizontal scroll */
  overflow-x: hidden;
  /* Enhanced readability */
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

h1 { 
  font-size: 2.75rem; 
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
}
h2 { 
  font-size: 2.25rem; 
  margin-bottom: var(--spacing-lg);
}
h3 { 
  font-size: 1.875rem; 
  margin-bottom: var(--spacing-md);
}
h4 { 
  font-size: 1.5rem; 
  margin-bottom: var(--spacing-md);
}
h5 { 
  font-size: 1.25rem; 
  margin-bottom: var(--spacing-sm);
}
h6 { 
  font-size: 1.125rem; 
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 65ch;
}

.lead {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 60ch;
}

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

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  backdrop-filter: blur(20px);
  background-color: rgba(254, 254, 254, 0.95) !important;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background-color: rgba(254, 254, 254, 0.98) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600) !important;
  text-decoration: none;
  font-family: var(--font-family-display);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-600) !important;
  background-color: var(--primary-50);
}

.navbar-nav .nav-link.active {
  color: var(--primary-600) !important;
  background-color: var(--primary-100);
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

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

.btn {
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

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

.btn-primary {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
  border-color: var(--secondary-600);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-700) 0%, var(--secondary-800) 100%);
  border-color: var(--secondary-700);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
  background: transparent;
  border-color: var(--gray-400);
  color: var(--gray-600);
}

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

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

/* ========================================
   CARDS
   ======================================== */

.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  background: var(--bg-primary);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.card-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-xl);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-family-display);
}

.card-body {
  padding: var(--spacing-2xl);
}

.card-footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--gray-200);
  padding: var(--spacing-xl);
}

/* ========================================
   FORMS
   ======================================== */

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  outline: none;
}

.form-control.is-valid {
  border-color: var(--success-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-control.is-invalid {
  border-color: var(--error-500);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-family-display);
}

.form-text {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ========================================
   FEATURES & SECTIONS
   ======================================== */

.feature-icon {
  transition: var(--transition-normal);
  color: #3b82f6;
}

.card:hover .feature-icon {
  transform: scale(1.1);
  color: #2563eb;
}

.step-number .badge {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #3b82f6;
  color: white;
  box-shadow: var(--shadow-lg);
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial-card {
  transition: var(--transition-normal);
  border-left: 4px solid #3b82f6;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

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

footer {
  background: var(--gray-800);
  color: var(--gray-300);
  margin-top: auto;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

footer h5, footer h6 {
  color: var(--bg-primary);
  font-weight: 600;
  font-family: var(--font-family-display);
  margin-bottom: var(--spacing-lg);
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-fast);
  line-height: 1.6;
}

footer a:hover {
  color: var(--primary-400);
  text-decoration: none;
}

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

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-700) 100%);
}

.text-primary { color: var(--primary-600) !important; }
.text-secondary { color: var(--secondary-600) !important; }
.text-success { color: var(--success-600) !important; }
.text-warning { color: var(--warning-600) !important; }
.text-error { color: var(--error-600) !important; }
.text-info { color: var(--secondary-500) !important; }

.bg-primary { background-color: var(--primary-600) !important; }
.bg-secondary { background-color: var(--secondary-600) !important; }
.bg-success { background-color: var(--success-600) !important; }
.bg-warning { background-color: var(--warning-600) !important; }
.bg-error { background-color: var(--error-600) !important; }
.bg-info { background-color: var(--secondary-500) !important; }

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
  40%, 43% { transform: translate3d(0, -30px, 0); }
  70% { transform: translate3d(0, -15px, 0); }
  90% { transform: translate3d(0, -4px, 0); }
}

.animate-fade-in { animation: fadeIn 1s ease-out; }
.animate-slide-up { animation: slideInUp 1s ease-out; }
.animate-slide-left { animation: slideInLeft 1s ease-out; }
.animate-slide-right { animation: slideInRight 1s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* ========================================
   LOADING STATES
   ======================================== */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

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

@media (max-width: 768px) {
  :root {
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: var(--spacing-xl) 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .display-3 { font-size: 2.5rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  
  .btn-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
  }
  
  .card-body {
    padding: var(--spacing-xl);
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Ensure cards have proper spacing on mobile */
  .card {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Improve button spacing on mobile */
  .btn {
    margin-bottom: var(--spacing-sm);
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 70vh;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  
  .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
}

/* ========================================
   ACCESSIBILITY & EYE-FRIENDLY DESIGN
   ======================================== */

/* Improved contrast and readability */
body {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7; /* Increased line height for better readability */
}

/* Better text contrast */
.text-muted {
  color: var(--text-muted) !important; /* Improved contrast for muted text */
}

/* Enhanced focus states for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Improved card shadows for better depth perception */
.card {
  box-shadow: var(--shadow-sm);
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-600: #0000ff;
    --secondary-600: #800080;
    --gray-800: #000000;
    --gray-600: #333333;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .navbar,
  .btn,
  .loading-overlay,
  .hero-section::before,
  .back-to-top {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
    min-height: auto !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  .no-print {
    display: none !important;
  }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for smooth animations */
.card,
.btn,
.navbar,
.hero-section {
  transform: translateZ(0);
  will-change: transform;
}

/* Optimize font loading */
@font-face {
  font-family: 'Inter';
  font-display: swap;
}

/* Reduce layout shifts */
img {
  height: auto;
  max-width: 100%;
}

/* Optimize critical rendering path */
.hero-section,
.navbar {
  contain: layout style paint;
}

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

/* Focus indicators */
*:focus {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

/* Skip links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-600);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only content */
.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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-600: #0000ff;
    --secondary-600: #800080;
    --gray-800: #000000;
    --gray-600: #333333;
    --text-primary: #000000;
    --bg-primary: #ffffff;
  }
}

/* Reduced motion support */
@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;
  }
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-200);
  border-top: 2px solid var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-sm {
  box-shadow: var(--shadow-sm);
}

.box-shadow-md {
  box-shadow: var(--shadow-md);
}

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

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-2xl {
  border-radius: var(--radius-2xl);
}

/* ========================================
   DARK MODE SUPPORT (Future Enhancement)
   ======================================== */

@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here in the future */
}

/* ========================================
   LINKS
   ======================================== */

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

a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
}

/* ========================================
   CONTENT SECTIONS & CONTAINERS
   ======================================== */

/* Main content containers */
.container, .container-fluid {
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

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

section:first-child {
  padding-top: var(--spacing-2xl);
}

/* Content readability improvements */
.content-area {
  max-width: 75ch;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.content-area p {
  margin-bottom: var(--spacing-lg);
}

.content-area h1, .content-area h2, .content-area h3 {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
}

.content-area h1:first-child,
.content-area h2:first-child,
.content-area h3:first-child {
  margin-top: 0;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

/* Article/Blog Cards */
article.card {
  transition: var(--transition-normal);
  border-left: 4px solid transparent;
}

article.card:hover {
  border-left-color: var(--primary-500);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Game Preview Cards */
.game-preview {
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.game-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.game-preview:hover::before {
  left: 100%;
}

/* Badge Styles */
.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Accordion Enhancements */
.accordion-button {
  font-weight: 600;
  border-radius: var(--radius-lg) !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
  color: var(--primary-700);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Contact Form Enhancements */
.form-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  outline: none;
}


/* Loading States */
.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-600);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-fixed);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--primary-600);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  display: none;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.back-to-top.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   TIMELINE STYLES (for About page)
   ======================================== */

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.timeline-content {
  width: 45%;
  padding: var(--spacing-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
}