/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: Arial, sans-serif;
  background-color: #030712;
  color: white;
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  width: 100%;
}

/* NAVBAR TESLA */
.tesla-navbar {
  height: 70px;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(3, 7, 18, 0.45);
  backdrop-filter: blur(10px);
}

.tesla-logo {
  color: white;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 8px;
}

.tesla-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.tesla-nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.tesla-nav a:hover {
  color: #d1d5db;
}

/* HERO */
.tesla-hero {
  min-height: 100vh;
  padding: 120px 20px 60px;
  text-align: center;
  color: white;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65)),
    url("tesla-bg.avif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tesla-hero h1 {
  font-size: 70px;
  margin-bottom: 15px;
  letter-spacing: 3px;
}

.tesla-hero p {
  font-size: 20px;
  color: #f3f4f6;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* BOUTONS */
.tesla-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.tesla-btn {
  background-color: rgba(255, 255, 255, 0.9);
  color: #111827;
  padding: 13px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.tesla-btn:hover {
  transform: translateY(-3px);
  background-color: white;
}

.tesla-btn.secondary {
  background-color: rgba(17, 24, 39, 0.85);
  color: white;
}

.tesla-btn.secondary:hover {
  background-color: rgba(17, 24, 39, 1);
}

/* MESSAGE JS */
#teslaMessage {
  margin-top: 25px;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

/* SECTIONS */
.tesla-section {
  width: 100%;
  padding: 110px 40px;
  text-align: center;
  background-color: #111827;
  color: white;
}

.tesla-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.tesla-section p {
  max-width: 750px;
  margin: 0 auto;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.7;
}

/* STATS */
.tesla-stats {
  width: 100%;
  padding: 90px 40px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  background-color: #030712;
}

.stat-card {
  background: rgba(31, 41, 55, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 270px;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.stat-card h3 {
  font-size: 44px;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-card p {
  color: #d1d5db;
  font-size: 16px;
}

/* CONTACT FINAL */
.tesla-contact {
  width: 100%;
  padding: 110px 40px;
  text-align: center;
  background: linear-gradient(135deg, #111827, #030712);
  color: white;
}

.tesla-contact h2 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.tesla-contact p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .tesla-navbar {
    height: auto;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }

  .tesla-logo {
    font-size: 20px;
    letter-spacing: 6px;
  }

  .tesla-nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tesla-nav a {
    font-size: 14px;
  }

  .tesla-hero {
    padding: 140px 20px 60px;
    min-height: 100vh;
  }

  .tesla-hero h1 {
    font-size: 46px;
  }

  .tesla-hero p {
    font-size: 16px;
  }

  .tesla-buttons {
    flex-direction: column;
    align-items: center;
  }

  .tesla-btn {
    width: 220px;
    text-align: center;
  }

  .tesla-section,
  .tesla-contact {
    padding: 80px 20px;
  }

  .tesla-section h2,
  .tesla-contact h2 {
    font-size: 32px;
  }

  .tesla-section p,
  .tesla-contact p {
    font-size: 16px;
  }

  .tesla-stats {
    padding: 70px 20px;
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 360px;
  }

  .tesla-tech {
  padding: 70px 20px;
}

.tesla-tech h2 {
  font-size: 32px;
}

.tech-card {
  width: 100%;
  max-width: 360px;
}
}

/* TECHNOLOGIES */
.tesla-tech {
  width: 100%;
  padding: 100px 40px;
  text-align: center;
  background-color: #0b1120;
  color: white;
}

.tesla-tech h2 {
  font-size: 42px;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.tech-card {
  background: rgba(31, 41, 55, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 280px;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.tech-card h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.tech-card p {
  color: #d1d5db;
  line-height: 1.6;
}