@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;
}

.header::after {
    content: "";
    position: absolute;
    filter: brightness(70%);
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}


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;
}

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);
  }

.prime-box{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.paragraph {
    padding-top: 10px;
    padding-left: 3%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;
    transition: all 0.5s ease;
    transform: translateX(-5%);
    opacity: 0;
}

.paragraph.show {
    opacity: 1;
    transform: translateX(0);
}


.box-container{
    width: 47%;
    padding-right: 5%;
    opacity: 0;
    transform: translateX(5%);
    transition: all 0.5s ease;
}

.box-container.showin{
    opacity: 1;
    transform: translateX(0);
}

.box{
   display: flex;
   justify-content: center;
   flex-direction: column;
   width: 500px;
   height: 600px;
   border: 1px solid rgba(0, 0, 0, 0.19);
   border-radius: 20px;
   margin: auto;
   margin-top: 100px;
   margin-bottom: 20px;
}

.headtitle {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 50%;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9, #f1f1f1);
    border-bottom: 2px solid #eee;
}

.headtitle h2 {
    padding-bottom: 50px;
    font-family: Arial, sans-serif;
    font-size: 28px;
    color: #333;
}


.subBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 50%;
    width: 100%;
    padding: 20px;
    background: #fff;
}


.box input,
.box textarea {
    outline: none;
    box-sizing: border-box;
    width: 250px;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}


.box input:hover,
.box textarea:hover {
    border-color: #ff4b4b;
}

.box input:focus,
.box textarea:focus {
    border-color: #ff4b4b;
    box-shadow: 0 0 8px rgba(255, 75, 75, 0.4);
    background: #fff;
}


.box textarea {
    min-height: 80px;
    resize: vertical;
}


.box button { 
    background-color: #ff4b4b;
    border: none;
    border-radius: 25px;
    width: 120px;
    height: 38px;
    font-size: 14px;
    color: #fff;
    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-color: #e43c3c;
    box-shadow: 0 6px 12px rgba(255, 75, 75, 0.4);
    transform: translateY(-2px);
}


@media (max-width: 500px) {
    .box input,
    .box textarea {
        width: 90%;
    }

    .box button {
        width: 100px;
    }
}



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;
}


.Map{
    width: 100%;
    display: flex;
    justify-content: center;
}

.patent{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    color: #333333a0;
}

@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{
        width: 100%;
        overflow-x: hidden;
    }
    
    html{
        scroll-behavior: smooth;
    }
    
    .header{
        position: relative;
        width: 100vw;
        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;
    }

    header{
        display: none;
    }
    
    .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;
    }

    
.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 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: 100;
      }
    
      .navbar.show {
        transform: translateX(0);
        opacity: 1;
        z-index: 100;
        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;
      }
    
    .prime-box{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 10%;
    }
    
    .paragraph {
        padding-top: 10px;
        display: flex;
        text-align: center;
        justify-content: center;
        align-items: center;
        width: 50%;
        transition: all 0.5s ease;
        transform: translateY(60%);
        opacity: 0;
    }
    
    .paragraph.show {
        opacity: 1;
        transform: translateY(0);
    }

    .paragraph h1{
        font-size: 30px;
        width: 240px;
    }
    
    
    .box-container{
        width: 100%;
        opacity: 0;
        transform: translateY(50%);
        display: flex;
        align-items: center;
        transition: all 0.5s ease;
    }
    
    .box-container.showin{
        opacity: 1;
        transform: translateY(0);
    }
    
    .box{
       display: flex;
       justify-content: center;
       flex-direction: column;
       width: 305px;
       height: 395px;
       border: 1px solid rgba(0, 0, 0, 0.19);
       border-radius: 20px;
       margin: auto;
       margin-top: 100px;
       margin-bottom: 20px;
    }
    
    .headtitle {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        height: 50%;
        padding: 15px;
        background: linear-gradient(135deg, #f9f9f9, #f1f1f1);
        border-bottom: 2px solid #eee;
    }
    
    .headtitle h2 {
        padding-bottom: 33px;
        font-family: Arial, sans-serif;
        font-size: 28px;
        color: #333;
    }
    
    
    .subBox {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 50%;
        width: 100%;
        padding: 20px;
        background: #fff;
    }
    
    
    .box input,
    .box textarea {
        outline: none;
        box-sizing: border-box;
        width: 220px;
        padding: 10px 12px;
        font-size: 14px;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        background: #fafafa;
        transition: all 0.3s ease;
        margin-bottom: 12px;
    }
    
    
    .box input:hover,
    .box textarea:hover {
        border-color: #ff4b4b;
    }
    
    .box input:focus,
    .box textarea:focus {
        border-color: #ff4b4b;
        box-shadow: 0 0 8px rgba(255, 75, 75, 0.4);
        background: #fff;
    }
    
    
    .box textarea {
        min-height: 80px;
        resize: vertical;
    }
    
    
    .box button { 
        background-color: #ff4b4b;
        border: none;
        border-radius: 25px;
        width: 120px;
        height: 38px;
        font-size: 12px;
        color: #fff;
        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-color: #e43c3c;
        box-shadow: 0 6px 12px rgba(255, 75, 75, 0.4);
        transform: translateY(-2px);
    }
    
    
    @media (max-width: 500px) {
        .box input,
        .box textarea {
            width: 90%;
        }
    
        .box button {
            width: 100px;
        }
    }
    
    
    
    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;
        font: 13px;
        margin-bottom: 10px;
        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;
    }
    
    
    .Map{
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .patent{
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
        color: #333333a0;
    }
    


}