/* NEOKARTS - Core Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  --bg-color: #050505;
  --bg-secondary: #0c0c0c;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.06);
  --primary-color: #ffffff;
  --accent-color: #ff2d2d;
  --accent-glow: rgba(255, 45, 45, 0.6);
  --text-muted: #8a8a8a;
  --glass-blur: 20px;
  --font-display: 'Syne', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
  --font-base: 'Outfit', sans-serif;
  --header-height: 80px;
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-family: var(--font-base);
  font-size: 16px;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--bg-color);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Selection */
::selection {
  background: var(--accent-color);
  color: #fff;
}

/* Background Grain Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3D Canvas container */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  /* Let clicks pass through to UI */
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.1s, height 0.1s, background-color 0.1s;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 45, 45, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s, background-color 0.3s, width 0.2s, height 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-text {
  font-family: var(--font-tech);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

/* Clicking / Hover States */
body.cursor-hover .custom-cursor {
  width: 6px;
  height: 6px;
}

body.cursor-hover .custom-cursor-follower {
  width: 70px;
  height: 70px;
  border-color: var(--accent-color);
  background-color: rgba(255, 45, 45, 0.05);
  box-shadow: 0 0 20px var(--accent-glow);
}

body.cursor-hover .cursor-text {
  opacity: 1;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #030303;
  z-index: 10001;
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
}

/* Ignite Engine button: responsive, centered, touch-friendly */
#ignite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 44px;
  padding: clamp(10px, 2.2vw, 14px) clamp(18px, 4.2vw, 36px);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  border-radius: 6px;
  max-width: 360px;
  width: min(90%, auto);
  box-sizing: border-box;
}

/* Small adjustments for very small screens */
@media (max-width: 420px) {
  .nav-brand .site-logo { font-size: clamp(0.95rem, 4.5vw, 1.1rem); }
  #ignite-btn { max-width: 300px; padding-left: 16px; padding-right: 16px; }
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 8px;
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
}

.loader-logo span {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

.speedometer-box {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 1.5rem;
}

.speedometer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-135deg);
}

.speedometer-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
  stroke-linecap: round;
}

.speedometer-fill {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 408;
  /* Circumference for r=65 is 408.4 */
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 8px var(--accent-color));
}

.speed-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speed-number {
  font-family: var(--font-tech);
  font-size: 2.5rem;
  font-weight: 700;
}

.speed-unit {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.loader-status {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  height: 20px;
}

.loader-smoke-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Glassmorphism Common Styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-card);
  border-radius: 12px;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.glass-panel:hover {
  border-color: rgba(255, 45, 45, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.02);
}

/* Floating Navigation Bar */
.navbar {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 70px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: top 0.4s, height 0.4s, padding 0.4s;
  background: rgba(5, 5, 5, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
}

.navbar.scrolled {
  top: 15px;
  height: 60px;
  background: rgba(5, 5, 5, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  height: 38px;
  width: auto;
  display: block;
  transition: height 0.4s ease;
}

/* Text-based site logo (header). Keeps NEO white and KARTS red, single-line, responsive */
.nav-brand .site-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  letter-spacing: -0.5px;
}

.nav-brand .logo-neo {
  color: #fff;
}

.nav-brand .logo-karts {
  color: var(--accent-color);
  margin-left: 6px;
}

/* Image logo styles - use the uploaded image placed at logo.png */
.nav-brand .site-logo-img {
  display: block;
  width: auto;
  max-height: clamp(28px, 6.5vw, 60px);
  height: auto;
}

/* Accessible-only text for logo fallback */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ensure the nav-brand content is vertically centered without changing layout */
.nav-brand {
  display: inline-flex;
  align-items: center;
}

.navbar.scrolled .nav-brand img {
  height: 32px;
}

@media screen and (max-width: 768px) {
  .nav-brand img {
    height: 32px;
  }

  .nav-links {
    display: none !important;
  }

  .nav-menu-btn {
    display: block !important;
  }

  .menu-wrapper {
    max-width: 100%;
    padding: 70px 20px 40px;
    gap: 10px;
    align-items: center;
  }

  .menu-link {
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 1.2px;
    padding: 10px 0;
  }

  .menu-link span {
    display: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.3s;
  box-shadow: 0 0 5px var(--accent-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.nav-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* Fullscreen Menu Overlay */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 3, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.fullscreen-menu.open {
  opacity: 1;
  visibility: visible;
}

/* Fullscreen Mobile Menu */

.menu-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  overflow-y: auto;
}



/* Fullscreen Mobile Menu */

.menu-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  overflow-y: auto;
}

.menu-link {
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.2;
  transition: all .3s ease;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 10px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.menu-link:hover {
  color: #fff;
  transform: translateX(8px);
}

.menu-link span {
  display: inline-block;
  width: 34px;
  font-family: var(--font-tech);
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
  z-index: 2;
  overflow: visible;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 45, 45, 0.03) 0%, rgba(5, 5, 5, 0) 70%),
    linear-gradient(180deg, rgba(5, 5, 5, 0) 50%, rgba(5, 5, 5, 1) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  pointer-events: none;
}

.hero-title-box {
  margin-bottom: 2rem;
}

.hero-title-box h1 {
  font-family: var(--font-display);
  font-size: 6vw;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.hero-title-box .text-mask-reveal {
  margin: 0;
  padding: 0 0 0.05em 0;
}

.hero-title-box h1 span {
  color: var(--accent-color);
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero-subtitle {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  pointer-events: auto;
  /* Re-enable clicks for buttons */
}

/* Premium Buttons */
.btn {
  position: relative;
  padding: 18px 38px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 45, 45, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 45, 45, 0.5), 0 0 30px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
}

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

/* Sections Global Styling */
section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 120px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  overflow: visible;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--accent-color);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 3rem;
}

/* Prevent headings and large text from being clipped: allow wrapping */
.section-title,
.hero-title-box h1,
.loader-logo,
.modal-info h2,
.testimonial-quote,
.gallery-info h4 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.section-title span {
  color: var(--accent-color);
}

/* Section 1: The Story */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.story-text {
  font-size: 1.8rem;
  line-height: 1.5;
  font-weight: 500;
  color: #fff;
  font-family: var(--font-base);
}

.story-text p {
  margin-bottom: 2rem;
}

.story-text span {
  color: var(--accent-color);
  font-weight: 700;
}

.story-image-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-card);
}

.story-image-box img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.8s ease-out;
}

/* Section 2: Go-Kart Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.showcase-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.card-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: var(--accent-color);
  filter: blur(100px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.showcase-card:hover .card-bg-glow {
  opacity: 0.15;
}

.card-num {
  font-family: var(--font-tech);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.showcase-card:hover .card-num {
  color: rgba(255, 45, 45, 0.15);
}

.card-coming-soon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(255, 45, 45, 0.12);
  border: 1px solid rgba(255, 45, 45, 0.25);
  border-radius: 999px;
  padding: 7px 10px;
  box-shadow: 0 0 20px rgba(255, 45, 45, 0.12);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  transform: translateZ(20px);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: auto;
  transform: translateZ(10px);
}

.card-image-wrapper {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  transform: translateZ(30px);
}

.card-image-wrapper img {
  max-width: 95%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.showcase-card:hover .card-image-wrapper img {
  transform: scale(1.1) rotate(-5deg);
}

.card-specs {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--border-card);
  padding-top: 20px;
  transform: translateZ(15px);
}

.card-spec-item {
  display: flex;
  flex-direction: column;
}

.card-spec-val {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.card-spec-label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Fullscreen Product Preview Modal */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 3, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.preview-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close span {
  display: block;
  width: 20px;
  height: 1px;
  background: #fff;
  position: relative;
}

.modal-close span::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: rotate(90deg);
}

.modal-content {
  width: 90%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-media img {
  width: 100%;
  max-width: 600px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(255, 45, 45, 0.2));
}

.modal-info h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-tagline {
  font-family: var(--font-tech);
  font-size: 1rem;
  color: var(--accent-color);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.modal-specs-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  margin-bottom: 40px;
}

.modal-spec-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.modal-spec-row .label {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-spec-row .val {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-top: 5px;
}

/* Section 3: Performance Grid */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.perf-card {
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.perf-number {
  font-family: var(--font-tech);
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 15px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.perf-number span {
  color: var(--accent-color);
}

.perf-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.perf-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section 4: Manufacturing (Horizontal Scroll Timeline) */
.manufacturing-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 100px 0;
}

.timeline-outer {
  width: 100%;
  overflow: hidden;
  margin-top: 50px;
  position: relative;
  cursor: grab;
}

.timeline-outer:active {
  cursor: grabbing;
}

.timeline-track {
  display: flex;
  gap: 150px;
  width: max-content;
  padding: 40px;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 130px;
  left: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color) 0%, rgba(255, 45, 45, 0.1) 100%);
  width: calc(100% - 80px);
  z-index: 1;
}

.timeline-item {
  width: 320px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.timeline-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  margin-left: 20px;
  position: relative;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.timeline-node::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.4s, transform 0.4s;
}

.timeline-item.active .timeline-node {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-item.active .timeline-node::before {
  background: var(--accent-color);
  transform: scale(1.2);
}

.timeline-step {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--accent-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section 5: Interactive Features */
.features-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.features-canvas-box {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kart-outline-svg {
  width: 100%;
  max-width: 550px;
  height: auto;
  opacity: 0.15;
  stroke: #fff;
  fill: none;
}

/* Feature Hotspots */
.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 45, 45, 0.3);
  border: 1px solid var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.3s;
}

.hotspot::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transition: transform 0.3s;
}

.hotspot:hover {
  transform: scale(1.3);
}

.hotspot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  animation: pulse-ring 1.5s infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Line connections (drawn via absolute vectors or handled in scripts) */
.connection-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.connection-line {
  stroke: var(--accent-color);
  stroke-width: 1.5;
  stroke-dasharray: 6, 6;
  opacity: 0.3;
  transition: opacity 0.4s, stroke-width 0.4s;
}

.connection-line.active {
  opacity: 1;
  stroke-width: 2.5;
  stroke-dasharray: 0;
  filter: drop-shadow(0 0 5px var(--accent-color));
}

/* Feature Cards Stack */
.features-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item-card {
  padding: 25px 30px;
  cursor: pointer;
  transition: transform 0.4s, border-color 0.4s, background-color 0.4s;
}

.feature-item-card.active {
  border-color: var(--accent-color);
  background: rgba(255, 45, 45, 0.05);
  box-shadow: 0 10px 30px rgba(255, 45, 45, 0.1);
  transform: translateX(10px);
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-card-icon {
  color: var(--text-muted);
  transition: color 0.3s;
}

.feature-item-card.active .feature-card-icon {
  color: var(--accent-color);
}

.feature-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section 6: Gallery */
#gallery {
  overflow: visible;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 2vw, 20px);
  width: 100%;
  align-items: stretch;
  justify-items: stretch;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-card);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  min-height: 0;
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.gallery-item img,
.gallery-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform-origin: center center;
  transition: transform 0.7s ease, filter 0.7s ease;
  will-change: transform;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 30%, rgba(5, 5, 5, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 3vw, 30px);
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.08);
  filter: saturate(1.2) brightness(0.85);
}

.gallery-info h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.gallery-info p {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 1px;
}

/* Section 7: Testimonials */
.testimonials-slider {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll-testimonials 40s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  width: 400px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transform-style: preserve-3d;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e0e0e0;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.testimonial-stars .star {
  color: #ffb703;
  font-size: 1.1rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--accent-color);
}

.user-info h5 {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.user-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Section 8: Bento Grid (Why Choose Us) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}
 
.bento-tile {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 16px;
}

.bento-feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.bento-feature-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
}

.bento-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.25);
}

.bento-tile.row-2 {
  grid-row: span 2;
}

.bento-tile.col-2 {
  grid-column: span 2;
}

.bento-tile-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: auto;
  transition: transform 0.4s;
}

.bento-tile:hover .bento-tile-icon {
  transform: scale(1.1) rotate(10deg);
}

.bento-tile-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bento-tile-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section 9: Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  padding: 50px 40px;
  text-align: center;
  border-radius: 12px;
}

.stat-num {
  font-family: var(--font-tech);
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 15px;
  text-shadow: 0 0 30px rgba(255, 45, 45, 0.1);
}

.stat-num span {
  color: var(--accent-color);
}

.stat-label {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Section 10: Call To Action */
.cta-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #030303;
}

.cta-track-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.35;
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 1) 90%);
  z-index: 2;
}

.cta-container {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 900px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 0.9;
  margin-bottom: 2rem;
}

.cta-title span {
  color: var(--accent-color);
  text-shadow: 0 0 40px var(--accent-glow);
}

.cta-subtitle {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 25px;
}

/* Footer Section */
.footer {
  background: #030303;
  border-top: 1px solid var(--border-card);
  padding: 80px 0 40px;
  z-index: 2;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-info-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.footer-title {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-card);
  padding-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* WhatsApp & Instagram Floating Buttons */
.whatsapp-btn-float {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 60px;
  height: 60px;
  z-index: 10002;
  background: rgba(37, 211, 102, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  cursor: pointer;
}

.whatsapp-btn-float:hover {
  transform: scale(1.1) translateY(-5px);
  background: rgba(37, 211, 102, 0.25);
  border-color: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 15px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.instagram-btn-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  z-index: 10002;
  background: rgba(225, 48, 108, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(225, 48, 108, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e1306c;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(225, 48, 108, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  cursor: pointer;
}

.instagram-btn-float:hover {
  transform: scale(1.1) translateY(-5px);
  background: rgba(225, 48, 108, 0.25);
  border-color: #e1306c;
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.4), 0 0 15px rgba(225, 48, 108, 0.6);
  color: #fff;
}

/* Responsive helpers: ensure media scale and prevent horizontal overflow */
html, body {
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

img, picture, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent accidental horizontal scroll from fixed elements */
body {
  overflow-x: hidden;
}

/* Footer + general responsive tweaks */
@media (max-width: 1440px) {
  .footer-grid {
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .footer {
    padding: 60px 20px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-bottom {
    padding-top: 30px;
    gap: 18px;
  }

  .footer-bottom p {
    font-size: 0.82rem;
  }

  .whatsapp-btn-float {
    right: 18px;
    bottom: 120px;
  }

  .instagram-btn-float {
    right: 18px;
    bottom: 48px;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 40px 16px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .footer-info-col,
  .footer-links-col {
    align-items: flex-start;
  }

  .footer-brand img {
    height: 36px;
  }

  .footer-desc {
    font-size: 0.88rem;
  }

  .footer-title {
    font-size: 0.9rem;
  }

  .footer-links a {
    font-size: 0.92rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom p {
    order: 1;
    width: 100%;
  }

  .footer-bottom-links {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* Make footer links and any buttons touch-friendly */
  .footer-links a,
  .footer-bottom-links a {
    padding: 10px 6px;
    line-height: 1.4;
  }

  /* Floating buttons avoid covering page controls on small screens */
  .whatsapp-btn-float {
    bottom: 110px;
    right: 14px;
    width: 56px;
    height: 56px;
  }

  .instagram-btn-float {
    bottom: 36px;
    right: 14px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 18px;
    width: 96%;
  }

  .nav-links {
    gap: 14px;
  }

  .loader-logo {
    font-size: 2.25rem;
  }

  /* Ensure large buttons remain tap friendly */
  .btn {
    min-height: 44px;
    padding: 10px 14px;
  }

  /* Constrain huge images inside hero/sections without altering layout */
  .card-image-wrapper img,
  .modal-media img {
    max-width: 100%;
    height: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Fine-tune 3D viewport so it doesn't cause overflows on short devices */
@media (max-height: 600px) {
  #webgl-container {
    height: calc(100vh - 80px);
  }
}

.whatsapp-icon-wrapper,
.instagram-icon-wrapper {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-svg,
.instagram-svg {
  width: 100%;
  height: 100%;
}

.whatsapp-ping {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(37, 211, 102, 0.5);
  border-radius: 50%;
  animation: whatsapp-pulse 2s infinite;
  pointer-events: none;
}

.instagram-ping {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(225, 48, 108, 0.5);
  border-radius: 50%;
  animation: instagram-pulse 2s infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes instagram-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media screen and (max-width: 768px) {
  .whatsapp-btn-float {
    bottom: 85px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .instagram-btn-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-icon-wrapper,
  .instagram-icon-wrapper {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================
   360° Go-Kart Viewer & Spare Parts Styling
   ========================================== */

/* 360° Go-Kart Viewer Section */
.viewer-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  overflow: hidden;
  z-index: 5;
}

.viewer-360-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  background: radial-gradient(circle at 50% 50%, rgba(30, 30, 30, 0.5) 0%, rgba(5, 5, 5, 0.8) 100%);
  border: 1px solid var(--border-card);
  cursor: grab;
}

.viewer-360-container:active {
  cursor: grabbing;
}

/* HUD Overlay */
.hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(255, 45, 45, 0.4);
  border-style: solid;
}

.hud-tl {
  top: 20px;
  left: 20px;
  border-width: 2px 0 0 2px;
}

.hud-tr {
  top: 20px;
  right: 20px;
  border-width: 2px 2px 0 0;
}

.hud-bl {
  bottom: 20px;
  left: 20px;
  border-width: 0 0 2px 2px;
}

.hud-br {
  bottom: 20px;
  right: 20px;
  border-width: 0 2px 2px 0;
}

.hud-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 45, 45, 0.15);
  border-radius: 50%;
}

.hud-crosshair::before,
.hud-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 45, 45, 0.15);
}

.hud-crosshair::before {
  top: 50%;
  left: -10px;
  right: -10px;
  height: 1px;
}

.hud-crosshair::after {
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 1px;
}

.hud-specs-readout {
  position: absolute;
  top: 25px;
  left: 55px;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  line-height: 1.6;
}

.hud-placeholder-tag {
  position: absolute;
  top: 25px;
  right: 55px;
  background: rgba(255, 45, 45, 0.1);
  border: 1px solid rgba(255, 45, 45, 0.3);
  color: var(--accent-color);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.1);
}

/* Image Frames */
.viewer-360-frames {
  position: relative;
  width: 100%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.viewer-360-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.viewer-360-frame.active {
  opacity: 1;
}

.viewer-img {
  max-width: 85%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}

.viewer-img.flipped {
  transform: scaleX(-1);
}

/* Rotator Drag Helper & Controls */
.viewer-360-instructions {
  position: absolute;
  bottom: 25px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 11;
  pointer-events: auto;
}

.viewer-360-instructions span {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.viewer-arrow {
  color: var(--accent-color);
  animation: pulse-arrow 1.5s infinite alternate;
  display: inline-block;
}

@keyframes pulse-arrow {
  0% {
    transform: translateX(0) scale(1);
    opacity: 0.5;
  }

  100% {
    transform: translateX(3px) scale(1.2);
    opacity: 1;
  }
}

.viewer-360-drag-bar {
  position: relative;
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}

.viewer-360-drag-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.viewer-360-container:hover .viewer-360-drag-handle {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Loader Overlay */
.viewer-360-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  z-index: 20;
}

.viewer-360-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 45, 45, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: viewer-spin 1s linear infinite;
}

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

/* Spare Parts Tag Styles */
.placeholder-overlay-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 45, 45, 0.85);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.5);
  z-index: 2;
}

/* Responsive viewer adjustments */
@media screen and (max-width: 768px) {
  .viewer-360-container {
    height: 380px;
  }
}

.viewer-360-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
  /* Disable transition delay to ensure 60fps instant drag response */
  opacity: 0;
  pointer-events: none;
}

/* ==========================================
   Comprehensive Mobile & Tablet Responsiveness Overrides
   ========================================== */
@media screen and (max-width: 768px) {
  section {
    padding: 60px 0 !important;
  }

  .container {
    width: 90% !important;
    padding: 0 !important;
  }

  /* Headings & Section Titles */
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
    margin-bottom: 2rem !important;
    line-height: 1.2 !important;
  }

  /* Hero Section */
  .hero-section {
    padding-bottom: 50px !important;
  }

  .hero-title-box h1 {
    font-size: clamp(2rem, 7vw, 3.5rem) !important;
    letter-spacing: -1px !important;
    line-height: 1.1 !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-top: 15px !important;
  }

  /* Story Section */
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .story-text {
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
  }

  .story-image-box img {
    height: 300px !important;
  }

  /* Fleet Showcase Cards */
  .showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .showcase-card {
    padding: 24px !important;
    min-height: auto !important;
  }

  .card-title {
    font-size: 1.4rem !important;
  }

  .card-specs {
    gap: 15px !important;
    padding-top: 15px !important;
  }

  .card-spec-val {
    font-size: 0.95rem !important;
  }

  /* Performance stats */
  .performance-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .perf-card {
    padding: 25px 15px !important;
  }

  .perf-number {
    font-size: 2.8rem !important;
  }

  .perf-label {
    font-size: 0.75rem !important;
  }

  .perf-desc {
    font-size: 0.85rem !important;
  }

  /* Timeline */
  .timeline-track {
    gap: 80px !important;
  }

  .timeline-item {
    width: 280px !important;
  }

  /* Interactive Features Section */
  .features-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .features-canvas-box {
    height: 320px !important;
  }

  .kart-outline-svg {
    max-width: 420px !important;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 16px !important;
  }

  .bento-tile {
    padding: 24px !important;
    min-height: 180px !important;
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .bento-tile-title {
    font-size: 1.25rem !important;
  }

  .bento-tile-desc {
    font-size: 0.85rem !important;
  }

  /* Statistics Footprint */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .stat-item {
    padding: 24px !important;
  }

  .stat-num {
    font-size: 2.5rem !important;
  }

  .stat-label {
    font-size: 0.85rem !important;
  }

  /* Testimonials */
  .testimonial-card {
    width: 320px !important;
    padding: 24px !important;
    min-height: 220px !important;
  }

  .testimonial-quote {
    font-size: 0.95rem !important;
  }

  /* Product Preview Modal */
  .preview-modal {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 60px 0 !important;
  }

  .modal-content {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 20px 0 !important;
  }

  .modal-media img {
    max-width: 100% !important;
  }

  .modal-info h2 {
    font-size: 2rem !important;
    margin-top: 10px !important;
  }

  .modal-close {
    top: 20px !important;
    right: 20px !important;
    font-size: 0.8rem !important;
  }

  .modal-specs-table {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

/* Extra small mobile devices (Phones) */
@media screen and (max-width: 480px) {
  .hero-title-box h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem) !important;
  }

  .story-image-box img {
    height: 240px !important;
  }

  .performance-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .features-canvas-box {
    height: 260px !important;
  }

  .kart-outline-svg {
    max-width: 300px !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .testimonial-card {
    width: 280px !important;
  }
}