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

:root {
  --color-primary: #FFB800;
  --color-primary-rgb: 255, 184, 0;
  --color-bg-dark: #07070A;
  --color-bg-light: #111116;
  --color-white: #FFFFFF;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Lenis Smooth Scrolling */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overflow: clip;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(13, 13, 17, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-hover:hover {
  border-color: rgba(255, 184, 0, 0.25);
  background: rgba(20, 20, 26, 0.65);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 184, 0, 0.03);
  transform: translateY(-4px);
}

.glass-panel-amber {
  background: rgba(255, 184, 0, 0.03);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 184, 0, 0.15);
}

.glass-panel-amber-hover:hover {
  border-color: rgba(255, 184, 0, 0.45);
  background: rgba(255, 184, 0, 0.05);
  box-shadow: 0 15px 30px rgba(255, 184, 0, 0.05);
}

/* Typography Utilities */
.text-glow {
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, #A3A3A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.text-gradient-amber {
  background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Gradients */
.bg-radial-gradient {
  background: radial-gradient(circle at 50% 50%, rgba(255, 184, 0, 0.06) 0%, rgba(7, 7, 10, 0) 70%);
}

.bg-hero-shading {
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0) 50%, var(--color-bg-dark) 100%);
}

/* Three.js Canvas Container */
#hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

/* Interactive Storytelling Road */
.road-container {
  position: relative;
  overflow: hidden;
}

.road-path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(255, 184, 0, 0) 0%,
    rgba(255, 184, 0, 0.8) 15%,
    rgba(255, 184, 0, 0.8) 85%,
    rgba(255, 184, 0, 0) 100%
  );
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.8), 0 0 40px rgba(255, 184, 0, 0.4);
  z-index: 10;
}

.road-pulse {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 30px #FFFFFF, 0 0 60px var(--color-primary);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  top: 0;
}

/* Spotlight Effect for Fleet Cards */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.12) 0%, rgba(255, 184, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.spotlight-card:hover .spotlight-glow {
  opacity: 1;
}

/* Horizontal Slider */
.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

/* Custom Navigation Indicator */
.nav-line {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.nav-link:hover .nav-line {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Custom Interactive Cursor (Dynamic Pointer) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
}

.hover-active .custom-cursor {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
}

.hover-active .custom-cursor-follower {
  width: 60px;
  height: 60px;
  border-color: var(--color-primary);
  background: rgba(255, 184, 0, 0.05);
}

/* Hide cursor elements on touch devices */
@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}

/* Utility Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }

/* Custom Map Overlay */
.map-pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}
.map-pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--color-primary);
  border-radius: 50%;
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.33); opacity: 1; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

/* Timeline Route Indicator */
.timeline-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  border: 3px solid var(--color-primary);
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary), 0 0 30px rgba(255, 184, 0, 0.4);
  transform: scale(1.3);
}

.timeline-progress-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, rgba(255, 184, 0, 0.2) 100%);
  width: 100%;
  z-index: 5;
}

/* Form Styles */
input, select, textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--color-white) !important;
  outline: none !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.15) !important;
}

/* Magnetic Button Wrapper */
.magnetic-btn {
  display: inline-block;
  will-change: transform;
}
