/* NORTH AUTOMOTIVE - Ultra Premium Styling System (Refined Spacing) */
:root {
  --north-bg: #0B0D11;
  --north-surface: #171A20;
  --north-surface-2: #20242C;
  --north-accent: #00D2D3;
  --north-accent-glow: rgba(0, 210, 211, 0.4);
  --north-text: #F7F8FA;
  --north-muted: #A9B0BE;
  --north-border: #2A303C;
}

/* Custom Smooth Transitions */
html {
  background-color: var(--north-bg);
  color: var(--north-text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

/* Tech Heading Font Class */
.font-tech {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--north-bg);
}
::-webkit-scrollbar-thumb {
  background: #20242C;
  border-radius: 4px;
  border: 1px solid var(--north-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--north-accent);
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(23, 26, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(11, 13, 17, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Metallic Rim Accent */
.metal-border {
  position: relative;
}
.metal-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(0,210,211,0.35) 40%, rgba(255,255,255,0.03) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Technical Grid Pattern */
.bg-tech-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Magnetic Button Glow */
.btn-magnetic {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}
.btn-magnetic:hover {
  box-shadow: 0 10px 30px -8px var(--north-accent-glow);
}

/* 3D Tilt Card Base - Initial Visibility Guaranteed */
.tilt-card {
  opacity: 1;
  visibility: visible;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.brand-card {
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(0, 210, 211, 0.25);
  border-color: rgba(0, 210, 211, 0.5);
}

/* Product Category Card Hover */
.product-cat-card {
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 211, 0.6);
  box-shadow: 0 16px 36px -12px rgba(0, 210, 211, 0.3);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00D2D3, #48dbfb);
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Respect 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;
  }
}
