@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

}
.navbar{
    display: none;
}

:root {
  --card-width: 200px;
  --card-margin: 15px;
  --total-cards: 3;
  --animation-speed: 20s;
}

@keyframes load{
    0%{opacity: 100%;}
    50%{opacity: 50%;}
    100%{opacity: 0%;}
}

@keyframes main{
    0%{opacity: 0%;}
    100%{opacity: 100%;}
}

@keyframes change{
    0%{background-color: black;}
    100%{background-color: #fff;}
}
@keyframes on{
    100%{display: none;}
}

.popBox{
    position: fixed;
    background-color: black;
    height: 100%;
    width: 100%;
    animation: 0.9s on forwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pop{
    position: fixed;
    object-fit: cover;
    animation: 3s load forwards;
}

.navbar ul{
    z-index: 10;
  }

.GiantBox{
    animation: 5s main forwards;
}

body{
    height: 200vh;
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}

.header{
    position: relative;
    width: 100%;
    height: 95vh;
    background-size: cover;
    background-position: center;
    background-image: url('Tesla-Fleet-Group-Cars-S3XY.jpg');
    transition: background-image 0.5s ease;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.text_for_home .text_home{
    color: white;
   position: absolute;
   top: 44%;
   left:17%;
   font-size: 34px;
}

.text_for_home .text_home_second{
    color: red;
    position: absolute;
    top: 53%;
    left: 23%;
    font-size: 32px;
 }

 .HomeButton{
    background-color: red;
    color: white;
    border-radius: 10px;
    border: none;
    position: absolute;
    width: 110px;
    height: 35px;
    top: 76%;
    left: 45.5%;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 9;
 }

.HomeButton:hover{
    background-color: white;
    color: red;
    transform: translateY(-5px);
}

 #scroll-arrow {
    color: red;
    position: absolute;
    font-size: 32px;
    animation: bounce 1.5s infinite;
    opacity: 0.8;
    top: 65%;
    left: 49%;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
  }

html{
    scroll-behavior: smooth;
}

.overlay{
   display: none;
}

header{
    position: fixed;
    top: 0;
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-around;
    transition: all 0.3s ease;
    animation: startup 1s ease-in-out;
    z-index: 10;
}

@keyframes startup{
    0% {transform: translateY(-105px);}
    100% {transform: translateY(0);}

}

.nav2{
    display: none;
}

.logo{
    width: 200px;
    cursor: pointer;
}

nav ul{
    display: flex;
    justify-content: end;
    flex: 1;
    text-align: center;
    padding-right: 10px;
}

nav ul li{
    display: inline-block;
    margin: 10px 20px;
    margin-top: 4%;
}

nav a {
    color: white;
    text-decoration: none;
    position: relative;
    display: inline-block; 
    cursor: pointer;
    transition: all 0.3s ease;
  }

  nav a.scrolled{
    color: rgb(255, 45, 45);
  }
  
 nav a:hover{
    color: rgb(255, 45, 45);
  }
  
 nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  
  nav a:hover::after {
    color: rgb(255, 45, 45);
    transform: scaleX(1);
  }

.offers{
    display: flex;
    height: 415px;  
    width: 100%;
    flex-direction: row;
    padding-bottom: 10%;
}

.sub-offer{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.current {
    opacity: 0;                     
    display: flex;
    flex-wrap: wrap;
    width: 83%;
    height: 250px;
    transform: translateX(-100px);   
    background-color: #F4F4F4;
    transition: all 1s ease;
}

.current.showin {
    opacity: 1;                      
    transform: translateX(0);        
}

.services{
    opacity: 0; 
    display: flex;
    flex-wrap: wrap;
    width: 83%;
    height: 250px;
    background-color: #F4F4F4;
    transform: translateX(100px);  
    transition: all 1s ease;
}

.services.showin{
    opacity: 1;
    transform: translateX(0);
}

.Text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 100%;
}

.Text h2 , h3{
    text-align: center;
    margin-bottom: 15px;
}

.Text button{
    outline: none;
    background-color: #fff;
    border: none;
    border-radius: 2px;
    width: 150px;
    height: 50px;
    transition: 0.5s;
}

.Text button:hover{
    color: #fff;
    outline: none;
    background-color: red;
    border: none;
    border-radius: 2px;
    width: 150px;
    height: 50px;
    transition: 0.5s;
}

.Img{
    display: flex;
    justify-content: center;
    height: 100%;
    width: 50%;
}

.serviceImg{
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    margin-top: 7px;
    width: 200px;
    height: 90%;
    object-fit: cover;
}

.centerer{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color:black;
    transform: translateY(30%);
    height: 600px;
    opacity: 0;
    transition: all 0.5s ease;
}

.carousel {
    position: relative;
    width: 95%;
    max-height: 575px;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.5s ease;
  }

  .centerer.show{
    opacity: 1;
    transform: translateY(0);
  }

  .slides {
    display: flex;
    width: 100%;
    transition: transform 1s ease;
  }

  .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit:contain;
    display: block;
    box-shadow: 3px 3px 3px 3px rgb(0, 0, 0);
  }

  .pilot{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 10%;
    margin-bottom: 10%;
  }

  .pilot_text{
    text-align: center;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.5s;
  }

  .pilot_text.showin{
    transform: translateX(0);
    opacity: 1;
  }

  .pilot_text p{
    width: 300px;
    margin-top: 10px;
    opacity: 0.6;
  }

  .pilot_text button{
    cursor: pointer;
    color: white;
    background-color: #ff1a1a;
    border: none;
    border-radius: 12px;
    width: 210px;
    height: 35px;
    box-sizing: border-box;
    margin-top: 20px;
    transition: all 0.5s;
  }

  .pilot_text button:hover{
    cursor: pointer;
    color: red;
    background-color: white;
    border: 0.2px solid red;
    box-sizing: border-box;
    border-radius: 12px;
    width: 210px;
    height: 35px;
    margin-top: 20px;
  }

  .pilot_video{
    width: 50%;
    transform: translateX(50%);
    opacity: 0;
    transition: all 0.5s;
  }

  .pilot_video.showin{
    transform: translateX(0);
    opacity: 1;
  }
 
  .pilot_video video{
    width: 90%;
  }


  /* .box-container {
    width: 100%;
    display: flex;
    height: 290px;
    justify-content: space-around;
    margin-top: 10%;
    opacity: 0;
    transform: translateY(200px);  
    transition: all 1s ease;      
    margin-bottom: 20%;
} */

.box-container {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  background: white;
  padding-top: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  transform: translateY(200px); 
  transition: all 0.5s;
  position: relative;
}

.box-container.showing{
  transform: translateY(0px); 
}


.box-container::before,
.box-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}
.box-container::before { left: 0; background: linear-gradient(to right, white, transparent); }
.box-container::after { right: 0; background: linear-gradient(to left, white, transparent); }


.box-contains {
  display: flex;
  width: max-content; 
  animation: scroll var(--animation-speed) linear infinite;
}


.box-contains:hover {
  animation-play-state: paused;
}

.box-container.showing {
    opacity: 1;
    transform: translateY(0);
}

 .box{
    width: 350px;
    height: 350px; 
    margin-right: 10px;
    transition: all 0.5s;
 }

 .box:hover{
  width: 350px;
  height: 350px; 
  margin-right: 10px;
  transform: translateY(-5px);
}

 .box-container:hover > .box:not(:hover){
  filter: blur(10px);
  transform: scale(1.05)
 }

     @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                /* Moves exactly by the width of the original set of cards */
                transform: translateX(calc(-1 * (var(--card-width) + (var(--card-margin) * 2)) * var(--total-cards)));
            }}

 .box .explain{
    width: 100%;
    height: 25%;
    display: flex;
    background-color: red;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
 }

 .box .photo{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40%;
    width: 100%;
    background: linear-gradient(to bottom, #330000, #0a0a0a);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
 }

 .box .mg{
    width: 50%;
    margin: 0;
    border-radius: 10px;
 }

 .box .mg.move{
    animation: leftRight 1.5s ease-out forwards;
 }
 @keyframes leftRight {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-25px); }  
    75%  { transform: translateX(25px); }  
    100% { transform: translateX(0); }      
  }

 .box h3{
    color: #fff;
 }

 .box button {  
    border: none;
    border-radius: 25px;
    width: 120px;
    height: 38px;
    font-size: 14px;
    background: white;
    color: #cc0000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 75, 75, 0.3);
}

.box button:hover {
    background: #f2f2f2;
    color: #ff1a1a;      
    box-shadow: 0 6px 12px rgba(95, 95, 95, 0.4);
    transform: translateY(-2px);
}

footer{
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid rgba(0, 0, 0, 0.053);
    background: url(Red\ energy\ and\ motion.png);
    background-size: contain;
    background-repeat: no-repeat;
    height: 300px; 
    margin-top: 5%;
}


footer div{
    display: flex;
    flex-direction: column;
}

footer div h4{
    color: black;
    margin-bottom: 10px;
    border-bottom: 1px solid black;
}

footer div a{
    text-decoration: none;
    color: #00000055;
    transition: 0.5s;
}

footer div a:hover{
    text-decoration: none;
    color: black;
}

i{
    color: #999999;
    transition: 0.5s;
}

i:hover{
    color:#0a0a0a;
}

@media screen and (max-width: 767px) {

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

}

@keyframes load{
    0%{opacity: 100%;}
    50%{opacity: 50%;}
    100%{opacity: 0%;}
}

@keyframes main{
    0%{opacity: 0%;}
    100%{opacity: 100%;}
}

@keyframes change{
    0%{background-color: black;}
    100%{background-color: #fff;}
}
@keyframes on{
    100%{display: none;}
}

.popBox{
    position: fixed;
    background-color: black;
    height: 100%;
    width: 100%;
    animation: 0.5s on forwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pop{
    position: fixed;
    object-fit: cover;
    animation: 3s load forwards;
}

.GiantBox{
    animation: 3s main forwards;
}

body{
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}

.header{
    position: relative;
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-image: url('Tesla-Fleet-Group-Cars-S3XY.jpg');
    transition: background-image 0.5s ease;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}


header{
 display: none;
}

html{
    scroll-behavior: smooth;
}

.nav2{
    display:block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    height: 160px;
    z-index: 999;
    transition: opacity 1s ease-in-out;
}

.overlay{
    display: block;
    position: fixed;
    width: 40%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 1000;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.6s ease-in-out, opacity 0.4s ease-in-out;
}

.overlay.show{
    opacity: 0.4;
    transform: translateX(0);
}

.nav2 .burger-bar {
    width: 100px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.4s ease;
  }

  .nav2 .burger-bar.rotate {
    transform: rotate(180deg);
  }

nav{
    display: none;
    visibility: none;
}

.logo{
    width: 170px;
    cursor: pointer;
}

nav ul{
    display: flex;
    justify-content: end;
    align-items: center;
    flex: 1;
    text-align: center;
}

.nav2 ul{
    padding-right: 0px;
    height: 160px;
}

nav ul li{
    display: inline-block;
    margin: 10px 20px;
}

nav ul li a{
    text-decoration: none;
    color: #fff;
    transition: color 0.5s ease;
    font-size: 30px;
}

nav .btn{
    color: #fff;
    text-decoration: none;
    border: 3px solid #fff;
    padding: 10px 30px;
    border-radius: 30px;
    margin-right: 7%;
    font-size: 20px;
    transition: 0.5s;
    transition: color 0.5s ease;
}

nav .btn:hover{
    color: #fff;
    text-decoration: none;
    border: 3px solid #fff;
    padding: 10px 30px;
    border-radius: 30px;
    margin-right: 7%;
    font-size: 20px;
    transform: scale(1.1);
    transition: color 0.5s ease;
}


  .navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    background-color: red;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease-in-out, opacity 0.4s ease-in-out;
    transform: translateX(100%);
    opacity: 1;
    z-index: 10;
  }

  .navbar ul{
    z-index: 10;
  }

  .navbar.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  ul {
    list-style: none;
  }


  .text_for_home .text_home{
    color: white;
   position: absolute;
   top: 46%;
   left:7%;
   width: 340px;
   font-size: 13.5px;
   text-align: center;
}

.text_for_home .text_home_second{
    color: red;
    position: absolute;
    top: 55%;
    left: 13.5%;
    width: 340px;
    font-size: 13px;
 }

 .HomeButton{
    background-color: red;
    color: white;
    border-radius: 10px;
    border: none;
    position: absolute;
    width: 110px;
    height: 35px;
    top: 76%;
    left: 37%;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 9;
 }

.HomeButton:hover{
    background-color: white;
    color: red;
    transform: translateY(-5px);
}

 #scroll-arrow {
    color: red;
    position: absolute;
    font-size: 14px;
    animation: bounce 1.5s infinite;
    opacity: 0.8;
    top: 65%;
    left: 49%;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
  }

   
  .navbar li{
    margin: 30px 0;
    transition: all 0.3s ease 0.2s;
  }

  .navbar li:hover {
    transform: skew(-15deg, 0deg);
  }
  a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
  }

.offers{
    display: flex;
    height: 450px;  
    width: 100%;
    flex-direction: column;
    align-items: center;

}

.sub-offer{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.current{
    display: flex;
    flex-direction: column-reverse;
    width: 250px;
    height: 95%;
    background-color: #F4F4F4;
    margin-top: 75px;
}

.services{
    display: flex;
    flex-direction: column-reverse;
    width: 250px;
    height: 95%;
    background-color: #F4F4F4;
    margin-top: 100px;
}

.Text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
}

.Text h2 , h3{
    text-align: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.Text button{
    outline: none;
    background-color: #fff;
    border: none;
    border-radius: 2px;
    width: 150px;
    height: 50px;
    transition: 0.5s;
}

.Text button:hover{
    color: #fff;
    outline: none;
    background-color: red;
    border: none;
    border-radius: 2px;
    width: 150px;
    height: 50px;
    transition: 0.5s;
}

.Img{
    display: flex;
    justify-content: center;
    height: 50%;
    width: 100%;
}

.serviceImg{
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    margin-top: 7px;
    width: 250px;
    height: 80%;
    object-fit: cover;
}

.centerer{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;       
    width: 100%; 
    background-color: rgb(0, 0, 0);
    transform: translateY(85%); 
    height: 225px;
    opacity: 0;
    transition: all 0.5s ease;
    top: 380px;
}

.centerer.show{
    opacity: 1;
    transform: translateY(70%); 
    max-width: 100vw; 
  }

.carousel {
    position: relative;
    width: 97%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.5s ease;
  }
  
  .slides {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .slide {
    min-width: 100%;
    transform: translateX(5.5%);
    user-select: none;
  }
  
  .slide img {
    width: 90%;
    border-radius: 2%;
    display: block;
  }

  .pilot{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 195%;
  }

  .pilot_text{
    text-align: center;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s;
  }

  .pilot_text.showin{
    transform: translateY(0);
    opacity: 1;
  }

  .pilot_text p{
    width: 200px;
    font-size: 9px;
    margin-top: 10px;
    opacity: 0.6;
  }

  .pilot_text h1{
    font-size: 15px;
  }

  .pilot_text button{
    cursor: pointer;
    color: white;
    background-color: #ff1a1a;
    border: none;
    border-radius: 12px;
    width: 140px;
    height: 30px;
    box-sizing: border-box;
    margin-top: 20px;
    transition: all 0.5s;
  }

  .pilot_text button:hover{
    cursor: pointer;
    color: red;
    background-color: white;
    border: 0.2px solid red;
    box-sizing: border-box;
    border-radius: 12px;
    width: 190px;
    height: 35px;
    margin-top: 20px;
  }

  .pilot_video{
    height: 100%;
    width: 46%;
    transform: translateY(70%);
    opacity: 0;
    transition: all 0.5s;
  }

  .pilot_video.showin{
    transform: translateY(0);
    opacity: 1;   
  }
 
  .pilot_video video{
    width: 100%;
  }
  
 .box-container{
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    margin-top: 60%;
 }

 .box{
    width: 280px;
    height: 280px;
 }

 .box .explain{
    width: 100%;
    height: 25%;
    display: flex;
    background-color: red;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
 }

 .box .photo{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40%;
    width: 100%;
    background: linear-gradient(to bottom, #330000, #0a0a0a);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
 }

 .box .mg{
    width: 50%;
    margin: 0;
    border-radius: 10px;
 }

 .box h3{
    color: #fff;
    font-size: 14px;
    margin: 2px;
 }

 .box button {  
    border: none;
    border-radius: 25px;
    width: 110px;
    height: 30px;
    font-size: 12px;
    background: white;
    color: #cc0000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 75, 75, 0.3);
}

.box button:hover {
    background: #f2f2f2;
    color: #ff1a1a;      
    box-shadow: 0 6px 12px rgba(95, 95, 95, 0.4);
    transform: translateY(-2px);
}

footer{
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid rgba(0, 0, 0, 0.053);
    background-color: #fff;
    height: 300px; 
    margin-top: 5%;
    width: 100%;
}


footer div{
    display: flex;
    flex-direction: column;
}

footer div h4{
    color: black;
    margin-bottom: 10px;
    font-size: 13px;
    border-bottom: 1px solid black;
}

footer div a{
    font-size: 11px;
    text-decoration: none;
    color: #00000055;
    transition: 0.5s;
}

footer div a:hover{
    text-decoration: none;
    color: black;
}

i{
    color: #999999;
    transition: 0.5s;
}

i:hover{
    color:#0a0a0a;
}
}