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

:root {
  --primary: #1B1A39;
  --secondary: #EC6918;
  --third: #93C0E9;
  --bg-color: #ffffff;
  --text-color: #333333;
  --heading-font: 'DIN Next LT Pro', 'Oswald', sans-serif;
  --body-font: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary);
  text-transform: uppercase;
}

p {
  font-size: 1.1rem;
  color: #555555;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Utility Classes */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
  border-radius: 0; /* Strict angular edges */
}

.btn-primary {
  background-color: var(--secondary);
  color: #ffffff;
  box-shadow: 6px 6px 0px var(--primary);
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px var(--primary);
  background-color: #f77626; /* Slightly lighter orange */
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: #ffffff;
}

.btn-outline:hover::before {
  left: 0;
}



/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 26, 57, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 5%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nav-brand {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.nav-brand span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

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

.nav-extra {
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-color: var(--bg-color);
  overflow: hidden;
}

/* Angular decorative elements */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background-color: #f8f9fa; /* Very light gray to pop the car */
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}



.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  padding-right: 2rem;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--secondary);
  display: block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 500px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-image {
  width: 120%; /* Bleed outside container slightly */
  max-width: none;
  margin-left: -10%;
  height: auto;
  display: block;
  /* Pro trick for pure white backgrounds on models */
  mix-blend-mode: multiply;
  filter: contrast(1.05) brightness(1.02);
}

.hero-image-vintage {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  mix-blend-mode: normal !important;
  box-shadow: 15px 15px 0px var(--secondary);
  border: 5px solid var(--primary);
  position: relative;
}

/* Features Section */
.features {
  padding: 8rem 0;
  background-color: var(--primary);
  color: white;
  position: relative;
}

/* Top checker stripe */
.features::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: 
    linear-gradient(45deg, var(--primary) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--primary) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, var(--primary) 75%), 
    linear-gradient(-45deg, transparent 75%, var(--primary) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-subtitle {
  Color: var(--secondary);
  font-family: var(--heading-font);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  color: white;
  font-size: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 10px 10px 0px rgba(0,0,0,0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(236, 105, 24, 0.1); /* Secondary alpha */
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.feature-card h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #adb5bd;
  font-size: 1rem;
}

/* Fleet teaser */
.fleet-teaser {
  padding: 8rem 0;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.fleet-grid {
  margin-top: 4rem;
  position: relative;
  padding: 0 80px; /* More space for arrows */
}

.fleet-window {
  overflow: hidden;
  width: 100%;
}

.fleet-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  /* Item width will be controlled by JS or fixed calc */
}

.fleet-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 20;
  padding: 0 10px;
}

.nav-arrow {
  width: 55px;
  height: 55px;
  background: white;
  border: 3px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 6px 6px 0px var(--primary);
  border-radius: 0;
}

.nav-arrow:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--primary);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--primary);
}

.car-card {
  flex: 0 0 calc((100% - 4rem) / 3); /* 100% of the window / 3 minus gaps */
  min-width: 300px;
  background: white;
  padding: 2rem;
  border: 1px solid #eee;
  box-shadow: 10px 10px 0px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .car-card {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}

@media (max-width: 768px) {
  .car-card {
    flex: 0 0 100%;
  }
  .fleet-grid {
    padding: 0 40px;
  }
}

.car-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 20px 20px 0px rgba(236, 105, 24, 0.8); /* Secondary solid shadow on hover */
}

.car-img-box {
  background-color: #f1f1f1;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
}

.car-img-box img {
  max-width: 100%;
  max-height: 100%;
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
}

.car-card:hover .car-img-box img {
  transform: scale(1.05);
}

.car-tag {
  background-color: var(--third);
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 700;
  padding: 0.3rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.car-name {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.car-specs {
  display: flex;
  gap: 1.5rem;
  color: #666;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.car-specs span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.car-price {
  font-size: 1.8rem;
  font-family: var(--heading-font);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.car-price small {
  font-size: 1rem;
  color: #888;
  font-family: var(--body-font);
  font-weight: 500;
}

/* Pixel Transition Section */
.pixel-section {
  position: relative;
  background-color: #f8f9fa;
  padding-bottom: 0;
  overflow: hidden;
}

.pixel-canvas {
  height: 300px;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(10, 1fr);
}

.pixel {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease;
}

.pixel.active {
  opacity: var(--target-opacity, 1);
  transform: scale(1);
}

.pixel-blue { background-color: var(--third); }
.pixel-orange { background-color: var(--secondary); }
.pixel-dark { background-color: var(--primary); }

.pixel-bar {
  background-color: var(--secondary);
  padding: 1rem 5%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 4px solid var(--primary);
}

.pixel-bar-text {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 0;
}

.pixel-bar-text .dot {
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--primary);
  padding: 6rem 0 2rem;
  color: white;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Custom Icons Setup (Using basic SVG for now in HTML) */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { padding-right: 0; }
  .hero-buttons { justify-content: center; }
  .hero::before { display: none; }
  .hero-image { width: 100%; margin-left: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Mobile menu needed in future */
  .hero-title { font-size: 2.5rem; }
  .features-grid, .fleet-grid, .footer-grid { grid-template-columns: 1fr; }
}

/* Reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
