/* carbodytype.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Tire track pattern background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.02) 50px, rgba(255,255,255,0.02) 52px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
header {
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #e60012;
  text-shadow: 0 0 20px rgba(230, 0, 18, 0.5);
}

.return-button {
  padding: 10px 25px;
  background: linear-gradient(135deg, rgba(230,0,18,0.1) 0%, rgba(180,0,14,0.1) 100%);
  border: 2px solid #e60012;
  color: #e60012;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.return-button::before {
  content: '←';
  margin-right: 8px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.return-button:hover {
  background: linear-gradient(135deg, rgba(230,0,18,0.2) 0%, rgba(180,0,14,0.2) 100%);
  box-shadow: 0 0 20px rgba(230,0,18,0.4);
  transform: translateY(-2px);
}

.return-button:hover::before {
  transform: translateX(-5px);
}

/* Main Content */
.container {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 60px;
  text-align: center;
  font-weight: 400;
}

/* Card Grid */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  padding: 0 20px;
}

.vehicle-card {
  position: relative;
  width: 320px;
  height: 450px;
  background: linear-gradient(135deg, rgba(50,50,50,0.9) 0%, rgba(30,30,30,0.9) 100%);
  border: 3px solid rgba(230, 0, 18, 0.3);
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}

.vehicle-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(230, 0, 18, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.vehicle-card:hover::before {
  left: 100%;
}

.vehicle-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(230, 0, 18, 0.8);
  box-shadow: 0 20px 60px rgba(230, 0, 18, 0.4);
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.card-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-card:hover .card-bg-image {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px 20px;
  background: linear-gradient(135deg, rgba(230, 0, 18, 0.15) 0%, rgba(139, 0, 0, 0.15) 100%);
  position: relative;
}

.card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e60012, transparent);
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
  color: #e60012;
  text-shadow: 0 0 20px rgba(230, 0, 18, 0.5);
  letter-spacing: 3px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.vehicle-card:hover .card-title {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(230, 0, 18, 0.8);
}

.card-description {
  font-size: 0.95rem;
  color: #ccc;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid {
    gap: 30px;
  }
  
  .vehicle-card {
    width: 280px;
    height: 400px;
  }
  
  .card-image-container {
    height: 280px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;
    padding: 0 20px;
  }

  .subtitle {
    font-size: 0.95rem;
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .card-grid {
    gap: 25px;
  }

  .vehicle-card {
    width: 260px;
    height: 380px;
  }
  
  .card-image-container {
    height: 260px;
  }

  .card-title {
    font-size: 1.7rem;
  }

  .card-description {
    font-size: 0.85rem;
  }

  .return-button {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }
  
  .card-grid {
    gap: 20px;
  }

  .vehicle-card {
    width: 240px;
    height: 360px;
  }
  
  .card-image-container {
    height: 240px;
  }
}