/* LUXURY AUTOS #057 - Premium Automotive Design System */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --carbon-black: #1a1a1a;
  --carbon-dark: #0d0d0d;
  --chrome-silver: #c0c0c0;
  --chrome-light: #e8e8e8;
  --racing-red: #dc2626;
  --racing-red-dark: #a31f1f;
  --pearl-white: #f5f5f5;
  --gold-accent: #d4af37;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--carbon-dark);
  color: var(--pearl-white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0) 100%);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192,192,192,0.1);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--pearl-white);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.logo span {
  color: var(--racing-red);
}

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

.nav-links a {
  color: var(--chrome-silver);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--pearl-white);
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--carbon-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 70%, rgba(192,192,192,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(220,38,38,0.08) 0%, transparent 40%);
  z-index: 2;
}

/* Motion blur car silhouette */
.car-silhouette {
  position: absolute;
  width: 120%;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(26,26,26,0.3) 5%,
    rgba(26,26,26,0.6) 15%,
    rgba(26,26,26,0.8) 30%,
    rgba(45,45,45,1) 45%,
    rgba(60,60,60,1) 50%,
    rgba(45,45,45,1) 55%,
    rgba(26,26,26,0.8) 70%,
    rgba(26,26,26,0.6) 85%,
    rgba(26,26,26,0.3) 95%,
    transparent 100%
  );
  filter: blur(2px);
  animation: carSlide 8s ease-in-out infinite;
}

@keyframes carSlide {
  0%, 100% { transform: translateY(-50%) translateX(-5%); }
  50% { transform: translateY(-50%) translateX(5%); }
}

/* Speed lines */
.speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3;
  opacity: 0.4;
}

.speed-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chrome-silver), transparent);
  animation: speedLine 2s linear infinite;
}

@keyframes speedLine {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(200%); opacity: 0; }
}

/* Chrome reflections */
.chrome-reflection {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(192,192,192,0.03) 30%,
    rgba(192,192,192,0.08) 50%,
    rgba(192,192,192,0.03) 70%,
    transparent 100%
  );
  animation: chromeShimmer 4s ease-in-out infinite;
}

@keyframes chromeShimmer {
  0%, 100% { opacity: 0.5; transform: translateX(-5%); }
  50% { opacity: 1; transform: translateX(5%); }
}

/* Light trails */
.light-trail {
  position: absolute;
  width: 4px;
  height: 80px;
  border-radius: 2px;
  filter: blur(1px);
}

.light-trail-left {
  background: linear-gradient(180deg, var(--racing-red), transparent);
  left: 15%;
  top: 30%;
  animation: trailPulse 3s ease-in-out infinite;
}

.light-trail-right {
  background: linear-gradient(180deg, var(--gold-accent), transparent);
  right: 15%;
  top: 30%;
  animation: trailPulse 3s ease-in-out infinite 1.5s;
}

@keyframes trailPulse {
  0%, 100% { opacity: 0.3; height: 60px; }
  50% { opacity: 1; height: 100px; }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 2rem;
}

.hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: var(--racing-red);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  color: var(--pearl-white);
  margin-bottom: 2rem;
  text-shadow: 0 0 60px rgba(220,38,38,0.3);
}

.hero-cta {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 1rem 2.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--racing-red);
  color: var(--pearl-white);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--racing-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220,38,38,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--pearl-white);
  border: 1px solid var(--chrome-silver);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-secondary:hover {
  background: rgba(192,192,192,0.1);
  border-color: var(--pearl-white);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--chrome-silver);
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--chrome-silver), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Section styles */
section {
  padding: 8rem 4rem;
  position: relative;
}

.section-dark {
  background: var(--carbon-dark);
}

.section-black {
  background: var(--carbon-black);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--racing-red);
}

.section-header p {
  color: var(--chrome-silver);
  font-size: 1.1rem;
  font-weight: 300;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, var(--carbon-black) 0%, #2a2a2a 100%);
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(192,192,192,0.1) 50%, transparent 70%);
  animation: chromeShimmer 3s ease-in-out infinite;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(192,192,192,0.2);
  background: rgba(26,26,26,0.5);
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--racing-red);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--chrome-silver);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(145deg, rgba(26,26,26,0.8), rgba(13,13,13,0.9));
  border: 1px solid rgba(192,192,192,0.1);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--racing-red), var(--gold-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(192,192,192,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  color: var(--racing-red);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--pearl-white);
}

.service-card p {
  color: var(--chrome-silver);
  font-weight: 300;
  line-height: 1.8;
}

/* Gallery section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--carbon-black);
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 50%,
    rgba(13,13,13,0.9) 100%
  );
  z-index: 2;
  transition: all 0.4s ease;
}

.gallery-item:hover::before {
  background: linear-gradient(
    180deg,
    rgba(220,38,38,0.2) 0%,
    rgba(13,13,13,0.7) 100%
  );
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
  z-index: 3;
}

.gallery-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 4;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
  opacity: 1;
}

.gallery-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.gallery-content p {
  color: var(--chrome-silver);
  font-size: 0.9rem;
}

/* Gallery car images with motion blur effect */
.gallery-car {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.8) contrast(1.1);
}

.gallery-item:hover .gallery-car {
  transform: scale(1.05);
  filter: saturate(1) contrast(1);
}

/* Contact section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: linear-gradient(145deg, rgba(26,26,26,0.6), rgba(13,13,13,0.8));
  padding: 3rem;
  border: 1px solid rgba(192,192,192,0.1);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--chrome-silver);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(26,26,26,0.8);
  border: 1px solid rgba(192,192,192,0.2);
  color: var(--pearl-white);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--racing-red);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 2rem;
  color: var(--pearl-white);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  color: var(--racing-red);
  flex-shrink: 0;
}

.contact-text h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-text p {
  color: var(--chrome-silver);
  font-weight: 300;
}

/* Docs section */
.docs-container {
  max-width: 900px;
  margin: 0 auto;
}

.docs-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.docs-nav a {
  padding: 0.75rem 1.5rem;
  background: rgba(26,26,26,0.6);
  border: 1px solid rgba(192,192,192,0.2);
  color: var(--chrome-silver);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.docs-nav a:hover,
.docs-nav a.active {
  background: var(--racing-red);
  border-color: var(--racing-red);
  color: var(--pearl-white);
}

.docs-content {
  background: linear-gradient(145deg, rgba(26,26,26,0.6), rgba(13,13,13,0.8));
  padding: 3rem;
  border: 1px solid rgba(192,192,192,0.1);
}

.docs-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--pearl-white);
  font-size: 2rem;
}

.docs-content h2:first-child {
  margin-top: 0;
}

.docs-content p {
  color: var(--chrome-silver);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.docs-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.docs-content li {
  color: var(--chrome-silver);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.docs-content pre {
  background: var(--carbon-dark);
  padding: 1.5rem;
  border-left: 3px solid var(--racing-red);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.docs-content code {
  font-family: 'Courier New', monospace;
  color: var(--chrome-light);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--carbon-dark);
  padding: 4rem;
  border-top: 1px solid rgba(192,192,192,0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand p {
  color: var(--chrome-silver);
  margin-top: 1rem;
  font-weight: 300;
  line-height: 1.8;
}

.footer-column h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--pearl-white);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--chrome-silver);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--racing-red);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(192,192,192,0.1);
  text-align: center;
  color: var(--chrome-silver);
  font-size: 0.85rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Cinematic reveal */
.cinematic-reveal {
  position: relative;
}

.cinematic-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--carbon-dark);
  z-index: 100;
  animation: cinematicWipe 1.5s ease-out forwards;
}

@keyframes cinematicWipe {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

/* Responsive */
@media (max-width: 1200px) {
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 2rem; }
  .nav-links { display: none; }
  section { padding: 5rem 2rem; }
  h1 { font-size: 3rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
