@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;
}

.overlay{
    display: none;
}

@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{
    height: 200vh;

}


html{
    scroll-behavior: smooth;
}

.header{
    position: relative;
    width: 100%;
    height: 100vh;
    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;
    filter: brightness(70%);
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 100;
}

.nav2{
    display: none;
}

.logo{
    width: 250px;
    cursor: pointer;
}

nav ul{
    display: flex;
    justify-content: end;
    flex: 1;
    text-align: center;
    padding-right: 100px;
}

nav ul li{
    display: inline-block;
    margin: 10px 20px;
}

nav ul li a{
    text-decoration: none;
    color: #fff;
    font-size: 30px;
    transition: color 0.5s ease; 
}

nav ul li a:hover{
    text-decoration: none;
    color: red;
    font-size: 30px;
    transition: color 0.5s ease; 
}

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;

}

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);
}
h1{
    margin-top: 150px;
    font-size: 30px;
}

.yiu{
    position: absolute;
    width: 500px;
    height: 320px;
}

.box{
    display: flex;
    justify-content: center;
}

.container{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.title h1{
    font-size: 100px;
    font-family: 'Tesla';
    z-index: 10;
}

.main{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(to bottom right, #a90101, #ffffff);
    border: 2px solid #c6c6c6;
    overflow: hidden;
    border-radius: 20px;
    width: 300px;
    height: 400px;
    padding-left: 190px;
}

.main img{
  object-fit: contain;  
  transform: translateY(9%);
  transition: 0.5s ease;
}

.main-car{
    display: flex;
    transform: translateY(-47%);
    transition: 0.5s ease;
}

.main-car:hover{
    transform: translateY(-50%);
}

.main-car img{
   width: 700px;
   height: 600px;
   object-fit: contain;
}


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: 30%;
}

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;
}

@media screen and (max-width: 767px) {
    @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;
    
    }
    
    @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{
        width: 100%;
        height: 50%;
        overflow-x: hidden;    
    }
    
    html{
        scroll-behavior: smooth;
    }
    
    .header{
        position: relative;
        width: 100%;
        height: 55vh;
        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;
    }
    
    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;
    }
    
    .nav2 .burger-bar {
        width: 140px;
        height: 140px;
        object-fit: contain;
        cursor: pointer;
        transition: transform 0.4s ease;
      }
    
      .nav2 .burger-bar.rotate {
        transform: rotate(180deg);
      }
    
    nav{
        display: none;
        visibility: none;
    }
    
    .logo{
        width: 200px;
        cursor: pointer;
    }
    
    nav ul{
        display: flex;
        justify-content: end;
        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;
    }
    
    
.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);
}


      .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: 100;
      }
    
      .navbar.show {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
      }
    
      ul {
        list-style: none;
      }
    
       
      .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;
      }

h1{
    margin-top: 150px;
    font-size: 30px;
}

.yiu{
    position: absolute;
    width: 500px;
    height: 320px;
}

.box{
    display: flex;
    justify-content: center;
}

.main{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(to bottom right, #a90101, #ffffff);
    border: 2px solid #c6c6c6;
    overflow: hidden;
    border-radius: 20px;
    width: 150px;
    height: 250px;
    padding-left: 190px;
}

.main img{
    object-fit: contain;  
    transform: translateY(18%) scale(0.7);
    transition: 0.5s ease;
  }
  
  .main-car{
      display: flex;
      transform: translateY(-45%);
      transition: 0.5s ease;
  }
  
  .main-car:hover{
      transform: translateY(-47%);
  }
  
  .main-car img{
     width: 410px;
     height: 310px;
     object-fit: contain;
  }

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: 30%;
}

.title h1{
    font-size: 67px;
    font-family: 'Tesla';
    z-index: 10;
}

footer div{
    display: flex;
    flex-direction: column;

}

footer div h4{
    color: black;
    margin-bottom: 10px;
    border-bottom: 1px solid black;
}

footer div a{
    font-size: 15px;
    text-decoration: none;
    color: #00000055;
    transition: 0.5s;
}

footer div a:hover{
    text-decoration: none;
    color: black;
}
}