/* ====== General Theme Variables (unchanged from your root) ====== */
:root {
  /* 🎨 Dylan’s Detailing – Final Color Style Guide */
  --primary-color: #242424;
  --secondary-color: #2a2a2a;
  --secondary-color-light: #363535fd;

  --primary-text-color: #ffffff;
  --secondary-text-color: #cccccc;
  --important-glow: #ffffff;
  --disabled-text: #888888;

  --brand-color: #2c91c0;
  --primary-button-text: #ffffff;
  --primary-button-hover-bg: #b3d7e9;
  --secondary-button-bg: #2a2a2a;
  --secondary-button-hover-bg: #3a3a3a;

  --link-color: #2c91c0;
  --link-hover-color: #b3d7e9;
  --icon-color: #2c91c0;
  --icon-hover-color: #b3d7e9;

  --accent-line: #dddddd;
  --accent-line-alt: #cccccc;
  --glow-effect: 0 0 8px #ffffff;

  --card-bg: #2a2a2a;
  --border-color: #3c3c3c;
  --input-bg: #1e1e1e;
  --input-text: #ffffff;
  --input-border: #444444;
  --input-border-focus: #2c91c0;
  --font-family: 'Poppins', sans-serif;

  /* Icon Colors */
  --icon-home: #2c91c0;
  --icon-services: #ff6f61;
  --icon-about: #ffffff;
  --icon-gallery: #8e44ad;
  --icon-testimonials: #ffd700;
  --icon-faq: #00c853;
  --icon-contact: #ff9800;
  --icon-book: #ff1493;
}

/* ====== Reset & Base Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--secondary-color);
  color: var(--primary-text-color);
}

/* ====== Header & Nav ====== */
header {
  background: var(--primary-color);
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

header h1, header a {
  color: var(--primary-text-color);
  text-shadow: 0 0 5px var(--important-glow);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-text-color);
}

nav ul li i.fa-home       { color: var(--icon-home); }
nav ul li i.fa-car        { color: var(--icon-services); }
nav ul li i.fa-user       { color: var(--icon-about); }
nav ul li i.fa-images     { color: var(--icon-gallery); }
nav ul li i.fa-star       { color: var(--icon-testimonials); }
nav ul li i.fa-question-circle { color: var(--icon-faq); }
nav ul li i.fa-envelope   { color: var(--icon-contact); }
nav ul li i.fa-calendar-check { color: var(--icon-book); }

/* ====== Footer ====== */
footer {
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  text-align: center;
  padding: 1rem 0;
}

/* ====== Loading Screen ====== */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.road {
  position: relative;
  width: 320px;
  height: 50px;
  background: #333;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.road::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    #fff 0px,
    #fff 20px,
    transparent 20px,
    transparent 40px
  );
  transform: translateY(-50%);
  animation: roadMove 0.8s linear infinite;
}

@keyframes roadMove {
  from { background-position-x: 0; }
  to   { background-position-x: -40px; }
}

.car {
  position: absolute;
  left: -60px; 
  top: 5px;
  font-size: 2rem;
  animation: drive 2.5s linear infinite;
  will-change: left;
}

.car-inner {
  display: inline-block;
  transform: scaleX(-1); 
  animation: bounce 0.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes drive {
  0%   { left: -60px; }
  100% { left: 320px; }
}

@keyframes bounce {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50%      { transform: scaleX(-1) translateY(-3px); }
}

/* Loading text */
.loading-text {
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand-color);
  text-shadow: 0 0 10px rgba(44,145,192,0.8);
  animation: pulseText 1.2s ease-in-out infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

