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

:root {
  --primary-color: #FF5C00;
  --secondary-color: #1E90FF;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --danger-color: #FF5252;
  --purple-color: #9C27B0;
  
  --bg-primary: #0c0c0c;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #0c0c0c8e;
  --bg-card: #161616;
  
  --text-primary: #f0f0f0;
  --text-secondary: #e8e8e8;
  --text-muted: #777;
  --text-dim: #666;
  --text-disabled: #555;
  
  --border-primary: #1e1e1e;
  --border-secondary: #2a2a2a;
  --border-hover: #2e2e2e;
  
  --font-sans: 'Inter', sans-serif;
}

body {
  background: var(--bg-primary);
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  touch-action: manipulation; /* Improve touch response */
}

/* Prevent text size adjustment on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html, body {
  scrollbar-width: thin;
  scrollbar-color: #333 var(--bg-primary);
  scroll-behavior: smooth;
  overscroll-behavior: none; /* Prevent bounce effects on mobile */
}

/* Smooth scrolling for iOS */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.site {
  background: var(--bg-primary);
  min-width: 320px; /* Mobile minimum width */
  overflow-x: hidden;
  width: 100%;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* Feature Card Entrance Animations */
@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.feat-card {
  animation: cardFadeInUp 0.6s ease backwards;
}

.feat-card:nth-child(1) { animation-delay: 0.1s; }
.feat-card:nth-child(2) { animation-delay: 0.2s; }
.feat-card:nth-child(3) { animation-delay: 0.3s; }
.feat-card:nth-child(4) { animation-delay: 0.4s; }

/* -- PERFORMANCE OPTIMIZATION FOR MOBILE / LOW SPEC -- */
@media (max-width: 768px) {
  * {
    /* Disable expensive blur filters */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Disable heavy SVG filters on mobile */
  svg * {
    filter: none !important;
  }
  
  /* Simplify shadows and borders to reduce composite workload */
  .ride-card, .modal, .rcard, .pr-panel, .feat-card, .wfd-card {
    box-shadow: none !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    /* Hardware accelerate frequently scrolled or animated elements */
    transform: translateZ(0); 
    will-change: transform;
  }
  
  /* Simplify or remove infinite pseudo-element animations that cause layout thrashing */
  .ride-tab.active::after,
  .hero::after,
  .hero::before,
  .map-pin::after,
  .section-title::after,
  .rcard::before,
  .rcard::after {
    animation: none !important;
    display: none !important;
  }
}

