@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;

}

.overlay{
    display: none;
}

.navbar{
    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;
    z-index: 1;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

html{
    scroll-behavior: smooth;
}

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: 250px;
    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: 2%;
}

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);
  }

.reserve{
    display: flex;
    justify-content: center;
    margin-top: 5%;
    margin-bottom: 10%;
}

.i{
    margin-top: 10px;
}

form{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 50%;
}

.divider{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(10%);
    transition: all 0.5s ease;
}

.divider.show{
    opacity: 1;
    transform: translateY(0);
}

.box1{
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 10px;
}

.guys{
    width: 50%;  display: flex;
    justify-content: center;
    align-items: center;
}


.box1 input{
    border: none;
    outline: none;
    border-bottom: 1px solid black;
    width: 250px;
    transition: 0.5s;
    margin-top: 10px;
}

.box1 input:hover{
    border: none;
    outline: none;
    border-bottom: 1px solid red;
    width: 250px;
    transition: 0.5s;
}

.box2{
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.box2 input{
    margin-top: 10px;
    border: none;
    opacity: 0.9;
    transition: 0.5s;
}

.box2 .submit{
    width: 510px;
}

.box2 input:hover{
    margin-top: 10px;
    border: none;
    background-color: red;
    color: #fff;
    transition: 0.5s;
}

.box2 select{
    border: none;
    outline: none;
    box-sizing: border-box;
    margin-top: 20px;
}

.box2 select:hover{
    outline: none;
    border-bottom: 1px solid red;
    transition: 1s;
    box-sizing: border-box;
    margin-top: 20px;
}


.box3 {
    display: grid;
    grid-template-columns: auto auto;
}

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: 12%;
}

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;
}


.patent{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    color: #333333a0;
}

.half-circle { 
    position: relative;
    width: 200px; 
    height: 125px; 
    background: #3498db;
     border-top-left-radius: 100px; 
     border-top-right-radius: 100px; 
     left: 5%;
     top: 13.8%;
     z-index: 5;
     transform-origin: bottom;
     transition: all 0.5s ease;
    }

.square {
position: relative;
width: 150px;
height: 200px;
background-color: red;
transition: all 0.5s ease;
}

.eye {
position: absolute;
width: 35px;
height: 35px;
background: #fff;
border-radius: 50%;
top: 20px;
overflow: hidden;
transition: transform 0.05s ease-out;
}

.eye.left {
 left: 35px; 
 transition: transform 0.05s ease-out;
}
.eye.right {
 right: 35px; 
 transition: transform 0.05s ease-out;
}

 .pupil {
position: absolute;
width: 15px;
height: 15px;
background: #000;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: transform 0.05s linear;

}

.half-circle .pupil {
  width: 25px;
  height: 25px;
  top: auto;
  left: auto;
  transition: transform 0.1s ease-out;
}

.half-circle .pupil.left {
  position: absolute;
  left: 60px;

}

.half-circle .pupil.right {
  position: absolute;
  right: 60px;

}

.mouth{
    position: absolute;
    transition: all 0.5s ease;
    left: 43%;
    width: 35px;
    height: 15px;
    top: 45%;
    background-color: #000;
    border-bottom-left-radius: 100px; 
    border-bottom-right-radius: 100px;
}

.eye.left_black {
left: 40px;
top: 20px;
transition: transform 0.05s ease-out;
}


.eye.right_black {
right: 40px;
top: 20px;
transition: transform 0.05s ease-out;
}

.pupil_black {
position: absolute;
width: 5px;
height: 5px;
background: #000;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.line{
top: 17%;
left: 41.5%;
position: absolute;
width: 25px;
height: 5px;
border-radius: 10px;
background-color: #fff;
transition: transform 0.3s ease;
}

@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{
        height: 50%;
        width: 100%;
        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;
    }

    
.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);
}
    
    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: 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;
    }

    header{
        display: none;
    }
    
.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);
}
    
    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: 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;
      }

.reserve{
    display: flex;
    justify-content: center;
    margin-top: 5%;
    margin-bottom: 10%;
}

.reserve h1{
    width: 150px;
    font-size: 24px;
}

.i{
    margin-top: 10px;
}

form{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.divider{
    width: 100%;
    display: flex;
    align-items: center;
    transform: translateY(10%);
    transition: all 0.5s ease;
}

.divider.show{
    opacity: 1;
    transform: translateY(0);
}

.box1{
    display: grid;
    width: 300px;
    grid-template-columns: 50% 50%;
    gap: 10px;
}

.box1 input{
    border: none;
    outline: none;
    border-bottom: 1px solid black;
    width: 150px;
    transition: 0.5s;
    margin-top: 10px;
}

.box1 input:hover{
    border: none;
    outline: none;
    border-bottom: 1px solid red;
    width: 150px;
    transition: 0.5s;
}

.box2{
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.box2 input{
    margin-top: 10px;
    border: none;
    opacity: 0.9;
    transition: 0.5s;
}

.box2 .submit{
    width: 300px;
}

.box2 input:hover{
    margin-top: 10px;
    border: none;
    background-color: red;
    color: #fff;
    transition: 0.5s;
}

.box2 select{
    border: none;
    outline: none;
    box-sizing: border-box;
    margin-top: 20px;
}

.box2 select:hover{
    width: 300px;
    outline: none;
    border-bottom: 1px solid red;
    transition: 1s;
    box-sizing: border-box;
    margin-top: 20px;
}


.box3 {
    width: 300px;
    display: grid;
    grid-template-columns: auto auto;
}

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: 15%;
}

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;
}


.patent{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    color: #333333a0;
}

.half-circle { 
   display: none;
    }

.square {
display: none;
}

.eye {
position: absolute;
width: 35px;
height: 35px;
background: #fff;
border-radius: 50%;
top: 20px;
overflow: hidden;
transition: transform 0.05s ease-out;
}

.eye.left {
 left: 35px; 
 transition: transform 0.05s ease-out;
}
.eye.right {
 right: 35px; 
 transition: transform 0.05s ease-out;
}

.guys{
   display: none;
}


.form{
    width: 100%;
}

 .pupil {
position: absolute;
width: 15px;
height: 15px;
background: #000;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: transform 0.05s linear;
}

.half-circle .pupil {
  width: 25px;
  height: 25px;
  top: auto;
  left: auto;
  transition: transform 0.1s ease-out;
}

.half-circle .pupil.left {
  position: absolute;
  left: 60px;

}

.half-circle .pupil.right {
  position: absolute;
  right: 60px;

}

.mouth{
    position: absolute;
    transition: all 0.5s ease;
    left: 43%;
    width: 35px;
    height: 15px;
    top: 45%;
    background-color: #000;
    border-bottom-left-radius: 100px; 
    border-bottom-right-radius: 100px;
}

.eye.left_black {
left: 40px;
top: 20px;
transition: transform 0.05s ease-out;
}


.eye.right_black {
right: 40px;
top: 20px;
transition: transform 0.05s ease-out;
}

.pupil_black {
position: absolute;
width: 5px;
height: 5px;
background: #000;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.line{
top: 17%;
left: 41.5%;
position: absolute;
width: 25px;
height: 5px;
border-radius: 10px;
background-color: #fff;
transition: transform 0.3s ease;
}


}