/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
}
body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-base);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   VARIABLES (CSS Custom Properties)
   ========================================================================== */
:root {
  --color-bg: #111;                   
  --color-bg-dark: #222;              
  --color-white: #fff;
  --color-accent: #4287f5;            
  --font-base: 'Roboto', sans-serif;
  --font-thin: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-family: Montserrat, sans-serif;
}
h1 { font-size: 2.5rem; font-weight: var(--font-bold); }
h2 { font-size: 2rem;   font-weight: var(--font-medium); }
p, li, a, button { font-size: 1rem; font-weight: var(--font-regular); }

/* ————————————————————————————————————————————————
   TYPOGRAPHY OVERRIDES
   ———————————————————————————————————————————————— */
.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
}
.hero-content .highlight {
  font-size: 4.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease;
  font-family: Montserrat, sans-serif;
}
.header.scrolled {
  background: rgba(34, 34, 34, 0.95);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: var(--font-medium);
  color: var(--color-white);
}
.logo-bold {
  color: var(--color-accent);
  font-weight: var(--font-bold);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: var(--font-thin);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--color-accent);
}

/* Social icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(229,57,53,0.2);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.2rem;
  transition: background 0.3s, color 0.3s;
}
.header-icons a:hover {
  background: var(--color-accent);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* main background + vintage filter */
.hero-bg-main {
  position: absolute;
  top: 50%; left: 50%;
  width: 110%; height: 110%;
  background: url('../images/car2.jpeg') center/cover no-repeat;
  filter: sepia(0.1) contrast(1.1) brightness(0.8);
  transform: translate(-50%, -50%) scale(1);
  will-change: transform;
  z-index: 1;
}

/* angled overlay */
.hero-bg-angle {
  position: absolute;
  top: 70%; left: 80%;
  width: 800px;
  opacity: 0.5;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 2;
}
.hero-bg-angle img {
  display: block;
  width: 100%;
}

/* overlay tint */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(50, 50, 50, 0.6);
  z-index: 3;
}

/* wispy red lines */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 140%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent) 50%,
    transparent 100%
  );
  opacity: 0.4;
  z-index: 2;
  animation: moveLine 8s linear infinite;
}
.hero::after {
  top: 90%;
  animation-duration: 10s;
  animation-direction: reverse;
}
.hero::before {
  top: 15%;
}

/* content box */
.hero-content {
  position: absolute;
  top: 50%; left: 15%;
  transform: translateY(-50%);
  z-index: 4;
  text-align: left;
  max-width: 600px;
  padding: 0 1rem;
}
.hero-content h1 {
  line-height: 1;
}
.highlight {
  display: block;
  color: var(--color-accent);
  animation: highlightPulse 2s ease-in-out infinite;
}

/* text */
.hero-content p {
  margin-top: 1rem;
}

/* buttons */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  height: 45px;
}

/* bouncing scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 0.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 1.8rem;
  animation: bounce 1s infinite;
}

/* glowing orbs */
.orb {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
   rgba(0, 123, 255, 0.8) 0%,
    rgba(0, 123, 255, 0)    70%
  );
  animation: orbFade 6s ease-out infinite;
  z-index: 2;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50%      { transform: translate(-50%, 10px); opacity: 0.7; }
}

@keyframes highlightPulse {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

/* glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  /* brighter, stronger red */
  background: radial-gradient(
    circle,
   rgba(0, 123, 255, 0.8) 0%,
    rgba(0, 123, 255, 0)    70%
  );
  /* fade in → hold → fade out over 8s, then stop */
  animation: orbFade 8s ease-in-out forwards;
  z-index: 2;
}

@keyframes orbFade {
  /* start invisible & tiny */
  0%   { opacity: 0; transform: scale(0); }
  /* fade up & grow to full size */
  25%  { opacity: 1; transform: scale(1); }
  /* hold at full brightness */
  75%  { opacity: 1; transform: scale(2); }
  /* fade out at twice the size */
  100% { opacity: 0; transform: scale(2); }
}



/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */
.btn-primary {
  background: var(--color-accent);
  color: #000;
  padding: 0.5rem 0.5rem;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn-primary:hover {
  background-color: #BD2320;
}
.btn-outline {
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 0.5rem 0.5rem;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover {
  background-color: #fff;
  color: #000;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* show mobile toggle */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
}

/* collapse social icons */
@media (max-width: 991.98px) {
  .navbar-collapse .header-icons {
    margin-top: 1rem;
    justify-content: center;
  }
}

/* logo resizing */
@media (max-width: 991.98px) {
  .logo { font-size: 1.75rem; }
}
@media (max-width: 767.98px) {
  .logo { font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
  .logo { font-size: 1.25rem; }
}

/* navbar-collapse panel */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    padding: 1rem 0;
    background: rgba(34, 34, 34, 0.95);
    z-index: 1099;
  }
  .navbar-collapse .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .navbar-collapse .nav-link {
    text-align: center;
    padding: 0.5rem 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   TABLETS (768px – 991px): center hero content & stack buttons
   ───────────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
  }
  .hero-buttons a {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE HERO CLEANUP (<768px): hide angle & full-bleed cover
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }
  .hero-bg-angle {
    display: none !important;
  }
  .hero-bg-main {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
    /* explicit cover + center */
    background-image: url('../images/car2.jpeg') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
  .hero-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
    padding: 0 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .highlight {
    font-size: 2.25rem;
  }
  .hero-content p {
    font-size: 0.9rem;
    margin-top: 0.75rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 1rem;
  }
  .scroll-indicator {
    bottom: 1rem;
    font-size: 1.5rem;
  }
}

.scroll-indicator img {
  display: block;
  width: 160px;              /* adjust size as needed */
  height: auto;             /* subtle */
}
/* ─────────────────────────────────────────────────────────────────────────
   HERO WISPS (::before & ::after)
   ───────────────────────────────────────────────────────────────────────── */
.hero::before,
.hero::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 123, 255, 0.8) 50%,
    transparent 100%
  ) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   GLOWING ORBS
   ───────────────────────────────────────────────────────────────────────── */
.orb {
  background: radial-gradient(
    circle,
    rgba(0, 123, 255, 0.8) 0%,
    rgba(0, 123, 255, 0)    70%
  ) !important;
}


