* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Universal Sans', sans-serif;
  color: #393C41;}
a{
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.navbar a:hover{
  text-decoration: none;
  cursor: pointer;
  transition: 0.5s;
  padding: 5px; }  
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background-color: #ffffff;
  color: #1e2027;
  position: fixed;
  top: 0;
  width: 100%;
}
.Tesla{
    height: 60px;
    width: 100px;
    margin-left: 30px;
    }
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-right: 20px;
  font-family: 'Universal Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}
  .nav-links a{
    text-decoration: none;   
    color: #393C41;
    line-height: 20px;
  }
  .nav-links a:hover{
    color: #393C41;
    text-decoration: underline;
  }
  .navbar-icon img{
    height: 20px;
    width: 20px;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
.hero{
  text-align: center;
  background-image: url('Model3.avif');
  background-size: cover;
  background-position: center;
  height: 500px;
  margin-top: 50px;
  border: 0;
  padding: 0;
  }
.hero h1{
  font-size: 60px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  margin-top: 0;
  padding-top: 30px;}
.hero a{
  font-size: 20px;
  color: #ffffff;
  padding-bottom: 20px;
  font-weight: 200;}
.hero a:hover{
  text-decoration: underline;
  cursor: pointer;
  transition: 0.5s;
  }
.hero-buttons{
  margin-top: 10px;}
 
.btn1{
  font-size: 14px;
  background: #3E6AE1;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 40px;
  border: none;
  border-radius: 5px;
  margin: 10px;}
.btn2{
  font-size: 14px;
  background: #ffffff;
  color: #393C41;
  font-weight: 600;
  padding: 10px 40px;
  border: none;
  border-radius: 5px;
  margin: 10px;
}
.btn1:hover{
  background: #2D4BB5;
  cursor: pointer;
  transition: 0.5s;}
.btn2:hover{
  background: #E4E4E4;
  cursor: pointer;
  transition: 0.5s;}

.model-container{
  display: flex;
  overflow-x: auto;
  width:100%;
  border: 0;
  padding: 20px;
  scroll-behavior: smooth;
  }

  .cybertruck{
  background-image: url('Cybertruck.jpg');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
   margin: 20px;
   flex-shrink: 0;
}
  
.cybertruck h2{
  font-size: 25px;
  color: #ffffff;
  font-weight: 500;
  padding-top: 20px;
  margin-left: 40px;
  
}
.crop-cont{
  width: 230px;
  height: 95px;
  overflow: hidden;
  margin-left: 40px;
  margin-top: 240px;

}
.cybertruck img{
  height: 112px;
  width: 230px;
  filter: invert(100%);
   margin-bottom: 0;
  padding-bottom: 0;
}
.cybertruck p{
  font-size: 20px;
  color: #ffffff;
  font-weight: 200;
  margin-left: 40px;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  padding-top: 0;
}
sup{
  font-size: 10px;
  vertical-align: super;
  color: #ffffff;
}
.btn3{
  font-size: 14px;
  background: #3E6AE1;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 40px;
  border: none;
  border-radius: 5px;
  margin: 10px;
  margin-left: 40px;
}
.btn4{
  font-size: 14px;
  background: #ffffff;
  color: #393C41;
  font-weight: 600;
  padding: 10px 40px;
  border: none;
  border-radius: 5px;
  margin: 10px;
}
.btn3:hover{
  background: #2D4BB5;
  cursor: pointer;
  transition: 0.5s;}
.btn4:hover{
  background: #E4E4E4;
  cursor: pointer;
  transition: 0.5s;}
.modelx{
  background-image: url('ModelX.jpg');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
  flex-shrink: 0;
  margin: 20px;
  }
.modelx h2{
  font-size: 25px;
  color: #ffffff;
  font-weight: 500;
  padding-top: 20px;
  margin-left: 40px;}
.modelx h1{
  font-size: 80px;
  color: #ffffff;
  font-weight: 300;
  margin-left: 40px;
  margin-top: 250px;
  margin-bottom: 0;
  padding-bottom: 0;
}
.modelx p{
  font-size: 20px;
  color: #ffffff;
  font-weight: 200;
  margin-left: 40px;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  padding-top: 0;
}
.models{
  background-image: url('ModelS.jpg');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
  flex-shrink: 0;
  margin: 20px;
}
.models h2{
  font-size: 25px;
  color: #ffffff;
  font-weight: 500;
  padding-top: 20px;
  margin-left: 40px;}
.models h1{
  font-size: 80px;
  color: #ffffff;
  font-weight: 300;
  margin-left: 40px;
  margin-top: 250px;}
.models p{
  font-size: 20px;
  color: #ffffff;
  font-weight: 200;
  margin-left: 40px;
  margin-top: 0;}
.model3b{
  background-image: url('Model3b.jpg');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
  margin: 20px;
  flex-shrink: 0;}
.model3b h2{
  font-size: 25px;
  color: #ffffff;
  font-weight: 500;
  padding-top: 20px;
  margin-left: 40px;
}
.model3b h1{
  font-size: 80px;
  color: #ffffff;
  font-weight: 300;
  margin-left: 40px;
  margin-top: 250px;}
.model3b a{
  font-size: 20px;
  color: #ffffff;
  padding-bottom: 20px;
  font-weight: 200;
  margin-left: 40px;
  }
.modely{
  background-image: url('ModelY.jpg');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
  margin: 20px;
  flex-shrink: 0;}
.modely h2{
  font-size: 25px;
  color: #ffffff;
  font-weight: 500;
  padding-top: 20px;
  margin-left: 40px;}
.modely h1{
  font-size: 80px;
  color: #ffffff;
  font-weight: 300;
  margin-left: 40px;
  margin-top: 250px;}
.modely a{
  font-size: 20px;
  color: #ffffff;
  padding-bottom: 20px;
  font-weight: 200;
  margin-left: 40px;}
.info{
  display: flex;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap:nowrap;
}
.current-offer{
  background: #F4F4F4;
  padding: 20px;
  padding-right: 0;
  margin: 20px;
  margin-left: 40px;
  display: flex;
  border-radius: 20px;
  gap: 20px;
  width: fit-content;
}
.info img{
  max-width: 200px;
  height: auto;
  margin-left: 40px;
  }
.offer-text{
  margin-left: 20px;
  margin-top: 20px;
  }
.offer-text h1{
  font-size: 30px;
  font-weight: 600; }
.offer-text p{  
  font-size: 20px;
  font-weight: 200;
  margin: 10px 0;
  max-width: 280px;}
.btn5{
  font-size: 14px;
  background: #ffffff;
  color: #393C41;
  font-weight: 600;
  padding: 10px 70px;
  border: none;
  border-radius: 5px;
  margin: 10px;}
.btn5:hover{
  background: #E4E4E4;
  cursor: pointer;
  transition: 0.5s;}
.powerwalls{
  background: #F4F4F4;
  padding: 20px;
  padding-right: 0;
  margin: 20px;
  margin-left: 40px;
  display: flex;
  border-radius: 20px;
    width: fit-content;
}
.powerwalls img{
  max-width: 200px;
  height: auto;
  margin-left: 40px;
  }
.powerwall-text{
  margin-left: 20px;
  margin-top: 20px;
  }
.powerwall-text h1{
  font-size: 30px;
  font-weight: 600;
  max-width: 300px; }
.powerwall-text p{  
  font-size: 20px;
  font-weight: 200;
  margin: 10px 0;
  max-width: 280px;}
.features{
  display: flex;
  margin-top: 10px;
  margin-bottom: 20px;
  flex-wrap:nowrap;}
.fsd{
  position: relative;
  width: 60%;
  height: 80vh;
  overflow: hidden;
  margin-left: 40px;
}
.fsd video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.fsd-cont{
   color: #ffffff;
  padding: 20px;
  margin-top: 350px;
  
}
.fsd-cont h1{
  font-size: 50px;
  font-weight: 600; }
.fcs{
  background:url(Discover.avif);
  height: 80vh;
  background-size: cover;
  margin-left: 20px;
  color: #ffffff;
  border-radius: 20px;
  max-width: 425px;
}
.fcs h1{
  font-size: 50px;
  font-weight: 600; 
  padding-top: 300px;
  margin-left: 20px;}
.map{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 40px;
}
.map iframe{
  width: 95%;
  height: 80vh;
  margin: 40px;
  border-radius: 20px;
  }
.charger{
  display: flex;
  gap: 40px;
}
.find h1{
  font-size: 30px;
  font-weight: 600; 
  margin-left: 40px;}
.find p{
  font-size: 20px;
  font-weight: 200;
  margin-left: 40px;
  max-width: 600px;}
.btn6{
  font-size: 14px;
  background:#1e2027;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 40px;
  border: none;
  border-radius: 5px;
  margin: 10px;
  margin-left: 40px;
}
.supercharger{
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  gap: 10px;
  width: fit-content;
  margin-left: 60px;
}
.supercharger h1{
  font-size: 50px;
  font-weight: 600; }
.supercharger img{
  height: 50px;
  width: 50px;
  padding-top: 5px
  ;}
.scd{
  display: flex;
}
.supercharger p{
  font-size: 20px;
  font-weight: 500;
}
.destination-charger{
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  gap: 10px;
  width: fit-content;
  margin-left: 60px;
}
.destination-charger h1{
  font-size: 50px;
  font-weight: 600; }
.destination-charger img{
  height: 50px;
  width: 50px;
  padding-top: 5px;}
.dcg{
  display: flex;
}
.destination-charger p{
  font-size: 20px;
  font-weight: 500;
  max-width: 100px;
}
.product-container{
 display: flex;
  overflow-x: auto;
  width:100%;
  border: 0;
  padding: 20px;
  scroll-behavior: smooth; 
}
.solar-panels{
  background: url('solarpanel.avif');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
  margin: 20px;
  flex-shrink: 0;}
.solar-panels h1{
  font-size: 50px;
  color: #ffffff;
  font-weight: 600;
  margin-left: 40px;
  margin-top: 350px;}
.solar-panels p{
  font-size: 20px;
  color: #ffffff;
  font-weight: 200;
  margin-left: 40px;
  margin-top: 0;}
.powerwall{
  background: url('powerwall2.avif');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
  margin: 20px;
  flex-shrink: 0;}
.powerwall h1{
  font-size: 50px;
  color: #ffffff;
  font-weight: 600;
  margin-left: 40px;
  margin-top: 350px;}
.powerwall p{
  font-size: 20px;
  color: #ffffff;
  font-weight: 200;
  margin-left: 40px;
  margin-top: 0;}
.solar-roof{
  background: url('solarroof.avif');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
  margin: 20px;
  flex-shrink: 0;}
.solar-roof h1{
  font-size: 50px;
  color: #ffffff;
  font-weight: 600;
  margin-left: 40px;
  margin-top: 350px;}
.solar-roof p{
  font-size: 20px;
  color: #ffffff;
  font-weight: 200;
  margin-left: 40px;
  margin-top: 0;}
.megapack{
  background: url('megapack.avif');
  width: 80%;
  height: 80vh;
  background-size: cover;
  border-radius: 20px;
  margin: 20px;
  flex-shrink: 0;}
.megapack h1{
  font-size: 50px;
  color: #ffffff;
  font-weight: 600;
  margin-left: 40px;
  margin-top: 350px;}
.megapack p{
  font-size: 20px;
  color: #ffffff;
  font-weight: 200;
  margin-left: 40px;
  margin-top: 0;}
.prefooter{
  text-align:left;
  background: #ffffff;
  padding: 150px;
  padding-bottom: 5px;
  font-size: 12px;
  color: #393C41;
  line-height: 20px;
  font-weight: 200;
  margin-left: 40px;
  margin-right: 40px;
}
.prefooter2{
  text-align:left;
  background: #ffffff;
  padding: 150px;
  padding-top: 5px;
  padding-bottom: 40px;
  font-size: 12px;
  color: #393C41;
  line-height: 20px;
  font-weight: 200;
  margin-left: 40px;
  margin-right: 40px;
  }
.prefooter2 a{
        color: #393C41;
  }
.prefooter2 a:hover{
text-decoration:underline;
}
.footer1{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background-color: #ffffff;
  color: #1e2027;
  width: 100%
  ;

}
.footer-links{
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 20px;
  font-family: 'Universal Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-bottom: 60px;
  
}
.footer-links a:hover{
   text-decoration:underline;
    color: #393C41;
}

/* Mobile First Media Queries for Tesla Website */

/* Base styles are already mobile-first in your existing CSS */

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .navbar {
    padding: 0 10px;
  }
  
  .Tesla {
    height: 40px;
    width: 80px;
    margin-left: 15px;
  }
  
  .nav-links {
    display: none; /* Hide navigation links on very small screens */
  }
  
  .navbar-icon img {
    height: 16px;
    width: 16px;
    margin-right: 10px;
  }
  
  .hero {
    height: 400px;
    margin-top: 40px;
  }
  
  .hero h1 {
    font-size: 40px;
    padding-top: 20px;
  }
  
  .hero a {
    font-size: 16px;
  }
  
  .btn1, .btn2, .btn3, .btn4, .btn5, .btn6 {
    padding: 8px 20px;
    font-size: 12px;
    margin: 5px;
    margin-left: 40px;
  }
  
  .model-container {
    padding: 10px;
  }
  
  .cybertruck, .modelx, .models, .model3b, .modely {
    width: 95%;
    height: 60vh;
    margin: 10px;
  }
  .crop-cont{
  margin-top: 140px;}
  
  .cybertruck h2, .modelx h2, .models h2, .model3b h2, .modely h2 {
    font-size: 18px;
    margin-left: 40px;
  }
  
  .modelx h1, .models h1, .model3b h1, .modely h1 {
    font-size: 50px;
    margin-left: 40px;
    margin-top: 180px;
  }
  .model3b a, .modely a{
    font-size: 18px;
  color: #ffffff;
  
  }
  
  .info {
    flex-direction: column;
    margin: 20px 0;
  }
  
  .current-offer, .powerwalls {
    margin: 10px;
    margin-left: 20px;
    width: calc(100% - 40px);
  }
  
  .solar-panels h1, .powerwall h1, .solar-roof h1{
    margin-top: 200px;
    font-size: 45px;
    margin-left: 20px;
  }
  .megapack h1{
    margin-left: 20px;
  }
  .solar-panels p, .powerwall p, .solar-roof p{
    margin-left: 20px;}
    
  .info img {
    max-width: 120px;
    margin-left: 20px;
  }
  
  .features {
    flex-direction: column;
  }
  
  .fsd {
    width: 90%;
    height: 60vh;
    margin: 10px auto;
  }
  
  .fsd-cont {
    margin-top: 200px;
  }
  
  .fsd-cont h1 {
    font-size: 30px;
  }
  
  .fcs {
    width: 90%;
    height: 60vh;
    margin: 10px auto;
  }
  
  .fcs h1 {
    font-size: 30px;
    padding-top: 200px;
    margin-left: 15px;
  }
  
  .map iframe {
    width: 95%;
    height: 50vh;
    margin: 20px;
  }
  
  .charger {
    flex-direction: column;
    gap: 20px;
  }
  
  .supercharger, .destination-charger {
    margin-left: 40px;
  }
  
  .prefooter, .prefooter2 {
    padding: 40px 20px;
    margin: 0 20px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 15px;
    font-size: 10px;
  }
}

/* Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .nav-links {
    gap: 15px;
    font-size: 12px;
  }
  
  .hero h1 {
    font-size: 50px;
  }
  
  .cybertruck, .modelx, .models, .model3b, .modely {
    width: 90%;
    height: 65vh;
  }
  
  .modelx h1, .models h1, .model3b h1, .modely h1 {
    font-size: 60px;
    margin-top: 200px;
  }
  
  .info {
    flex-direction: column;
  }
  
  .features {
    flex-direction: column;
  }
  
  .fsd {
    width: 95%;
    margin: 10px auto;
  }
  
  .fcs {
    width: 95%;
    margin: 10px auto;
  }
  
  .fsd-cont h1, .fcs h1 {
    font-size: 35px;
  }
  
  .charger {
    flex-wrap: wrap;
    gap: 30px;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links {
    gap: 18px;
    font-size: 13px;
  }
  
  .hero {
    height: 600px;
  }
  
  .hero h1 {
    font-size: 55px;
  }
  
  .cybertruck, .modelx, .models, .model3b, .modely {
    width: 85%;
    height: 75vh;
  }
  
  .info {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .current-offer, .powerwalls {
    width: 45%;
    margin: 10px;
  }
  
  .features {
    flex-wrap: wrap;
  }
  
  .fsd {
    width: 65%;
  }
  
  .fcs {
    width: 30%;
  }
  
  .fsd-cont h1 {
    font-size: 40px;
  }
  
  .fcs h1 {
    font-size: 35px;
    padding-top: 250px;
  }
  
  .charger {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .map iframe {
    height: 70vh;
  }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .navbar {
    padding: 0 20px;
  }
  
  .hero {
    height: 700px;
  }
  
  .info {
    flex-wrap: nowrap;
  }
  
  .features {
    flex-wrap: nowrap;
  }
  
  .charger {
    flex-wrap: nowrap;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .hero {
    height: 800px;
  }
  
  .hero h1 {
    font-size: 70px;
  }
  
  .cybertruck, .modelx, .models, .model3b, .modely {
    width: 75%;
  }
  
  .current-offer, .powerwalls {
    max-width: 600px;
  }
  
  .fsd-cont h1 {
    font-size: 60px;
  }
  
  .fcs h1 {
    font-size: 55px;
  }
  
  .map iframe {
    height: 90vh;
  }
}

/* Landscape orientation for mobile devices */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 35px;
    padding-top: 15px;
  }
  
  .cybertruck, .modelx, .models, .model3b, .modely {
    height: 50vh;
  }
  
  .modelx h1, .models h1, .model3b h1, .modely h1 {
    margin-top: 100px;
    font-size: 40px;
  }
  
  .fsd, .fcs {
    height: 50vh;
  }
  
  .fsd-cont {
    margin-top: 150px;
  }
  
  .fsd-cont h1 {
    font-size: 25px;
  }
  
  .fcs h1 {
    font-size: 25px;
    padding-top: 150px;
  }
}