/* Modern Apple-style CSS */
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0071e3;
  --primary-hover: #0077ed;
  --dark-bg: #1d1d1f;
  --light-bg: #f5f5f7;
  --text-dark: #1d1d1f;
  --text-light: #f5f5f7;
  --secondary-text: #86868b;
  --transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
}

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

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  background-color: rgba(29, 29, 31, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 40px;
}

.logo img {
  width: 120px;
  height: auto;
  transition: var(--transition);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Hero section */
.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.intro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 8s ease;
}

.intro:hover .intro-image {
  transform: scale(1.05);
}

.hero-content {
  position: absolute;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.btn-main {
  padding: 12px 30px;
  font-size: 17px;
  background-color: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 30px;
  transition: var(--transition);
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-main:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Vehicle gallery */
.vehicle-gallery {
  text-align: center;
  padding: 120px 0;
  background-color: white;
}

.vehicle-gallery h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.carousel-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  height: 500px;
  overflow: hidden;
}

.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

.carousel-item {
  min-width: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.carousel-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-dark);
  font-size: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  z-index: 10;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.left {
  left: 20px;
}

.right {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--secondary-text);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--primary-color);
  width: 20px;
  border-radius: 5px;
}

.btn-buy {
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  font-size: 17px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 40px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-buy:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Car classes */
.advertisement {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 100px 0;
  background-color: var(--light-bg);
}

.advertisement-item {
  flex: 1;
  min-width: 300px;
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.advertisement-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.advertisement-img-container {
  height: 250px;
  overflow: hidden;
}

.advertisement-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.advertisement-item:hover .advertisement-img {
  transform: scale(1.05);
}

.advertisement-text {
  padding: 30px;
  text-align: center;
}

.advertisement-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: -0.01em;
}

.advertisement-text p {
  color: var(--secondary-text);
  line-height: 1.6;
}

/* Call to action section */
.cta-section {
  background-color: var(--dark-bg);
  color: var(--text-light);
  text-align: center;
  padding: 100px 20px;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 21px;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--secondary-text);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--secondary-text);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 18px;
}

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

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--secondary-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--text-light);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .header-container {
    padding: 0 20px;
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
  
  .advertisement {
    padding: 80px 20px;
    justify-content: center;
  }
  
  .advertisement-item {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }
  
  nav a {
    font-size: 14px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .advertisement-item {
    flex: 0 0 100%;
  }
  
  .vehicle-gallery h2,
  .cta-section h2 {
    font-size: 36px;
  }
  
  .cta-section p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}