/* ==============================================================
   THE MECHATRONIX - BESPOKE AUTOMOTIVE WORKSHOP STYLES
   Designed with precision automotive aesthetics (Non-generic, handcrafted)
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-deep: #070A10;
  --bg-card: #0D1322;
  --bg-card-alt: #121A2D;
  --accent-red: #EF4444;
  --accent-red-bright: #F87171;
  --accent-crimson: #DC2626;
  --accent-glow: rgba(239, 68, 68, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(239, 68, 68, 0.5);
  --silver-glow: rgba(226, 232, 240, 0.15);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: #E2E8F0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Outfit', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #070A10;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #EF4444;
}

/* Custom Background Patterns */
.garage-grid {
  background-color: #070A10;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(220, 38, 38, 0.18), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Bespoke Automotive Tech Cards */
.tech-card {
  background: linear-gradient(165deg, rgba(16, 24, 40, 0.95) 0%, rgba(10, 15, 26, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 24px -5px var(--accent-glow);
}

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

/* High-Tech Spec Badge */
.spec-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dynamic Links with glowing red indicator */
.nav-link {
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #EF4444, transparent);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: #FFFFFF !important;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #EF4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #EF4444;
}

/* Custom Interactive Service Buttons */
.btn-primary {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #F1F5F9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Scroll Reveal States */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Filter buttons */
.filter-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.25s ease;
}

.filter-btn.active {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
}

/* Floating Action Stack & Scroll to Top */
#floatingActionStack {
  pointer-events: auto;
}

.floating-contact-pulse {
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: floatingPulse 2s infinite;
}

@keyframes floatingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

