*{
    padding: 0;
    margin: 0;
    font-family: 'Kanit', sans-serif;
    box-sizing: border-box;
    border: none;
}

:root{
    --dark-blue: #04021f;
    --skyblue: #00abf1;
    --slider-height: 50rem;
    --half-slider-height: calc(var(--slider-height)/2);
}
/*
font-family: 'Kanit', sans-serif;
font-family: 'Oswald', sans-serif;
font-family: 'Saira Extra Condensed', sans-serif;
*/

/*custom scroll bar*/

::-webkit-scrollbar{
    width: 6px;
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(transparent,#1f1f1f);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(transparent,#a8a8a8);
}

.navigation{        /* nav section */
    display: flex;
    height: 5em;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    transition: 0.6s;
    z-index: 100;
}



.logo img{
    width: 80px;
    height: 100px;
    padding-top: 1em;
    padding-bottom: .5em;
    transition: 0.6s;
}

.navigation nav{        /* nav container */
    height: 100px;
}

nav ul{
    list-style: none;
    display: flex;
}

nav ul li:before{
    position: absolute;
    content: '';
}

nav ul li{
    padding-top: 1em;
}

nav{
    display: flex;
    flex-direction: column;
}

.hamburger{
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    display: none;
    padding: .5em;
    background-color: transparent;
}

.hide{
    display: none;
}

.navigation nav a {     /* nav links */
    text-decoration: none;
    font-family: 'Saira Extra Condensed', sans-serif;
    color: #fff;
    font-size: 1.8em;
    padding-left: .5em;
    padding-right: .5em;
    margin: 0.7em;
    transition: background-color 0.3 ease-in-out;
    transition: .3s ease-in-out;
    text-transform: uppercase;
}

.navigation nav a:hover{
    transition: .3s ease-in-out;
    background-color: #fff;
    font-size: 1.9em;
    color: #000;
    border-radius: 5px;
}

.nav-color{
    background-color: #000;
    color: #fff;
    height: 5.5em;
    opacity: 98%;
}

.to-top{
    background-color: lightgrey;
    position: fixed;
    bottom: 16px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #1f1f1f;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
}

.to-top.active{
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}


.bgHome{ /* home screen section */
    width: 100%;
    height: 100%;
    animation: bgColor 20s linear infinite;
    overflow-x: hidden;
}

.homeContent{       /* home content styling */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    padding-top: 20em;
    transition: 0.5s;
}

.homeImg{
    width: 400px;
    height: 400px;
    background-image: url(images/cover-img-edit.png);
    background-size: cover;
    border-radius: 50%;
    z-index: 1;
}

.homeText{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.homeText h1{
    font-family: 'Kanit', sans-serif;
    font-size: 4em;
    color: #fff;
    transition: 0.5s;
}

.homeText h3{
    font-size: 2em;
    margin-bottom: 1em;
    margin-top: -.5em;
    font-family: 'Kanit', sans-serif;
    color: #fff;
}

.homeText a{
    font-family: 'Saira Extra Condensed', sans-serif;
    font-size: 2em;
    text-decoration: none;
    padding: .1em;
    border-radius: 10px;
    color: #fff;
    letter-spacing: 1px;
    background-color: transparent;
    border: 2px solid #fff;
    position: relative;
    z-index: 1;
    transition: .5s;
}

.homeText a::before{    /* controls the fill animation on the btn */
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .5s;
}

.homeText a:hover{
    color: #000;
    transition: .5s;
    border: none;
    font-weight: bold;
}

.homeText a:hover::before{
    width: 100%;
}

.bgPulse{   /* container holding all the spans */
    width: 100%;
    height: 100vh;
}

.bgPulse span{      /*creats all the squares */
    position: absolute;
    width: 80px;
    height: 80px;
    background: #fff;
}
/* home background spans, location of all the squares*/
.bgPulse span:nth-child(3n+1){
    background: transparent;
    border: 5px solid #fff;
    animation: animate 10s linear infinite;
}

.bgPulse span:nth-child(1) {
    top: 50%;
    left: 20%;
    animation: animate 12s linear infinite;
}
.bgPulse span:nth-child(2) {
    top: 80%;
    left: 40%;
    animation: animate 15s linear infinite;
}
.bgPulse span:nth-child(3) {
    top: 10%;
    left: 65%;
    animation: animate 6s linear infinite;
}
.bgPulse span:nth-child(4) {
    top: 50%;
    left: 70%;
    animation: animate 9s linear infinite;
}
.bgPulse span:nth-child(5) {
    top: 10%;
    left: 30%;
    animation: animate 8s linear infinite;
}
.bgPulse span:nth-child(6) {
    top: 85%;
    left: 85%;
    animation: animate 14s linear infinite;
}
.bgPulse span:nth-child(7) {
    top: 80%;
    left: 5%;
    animation: animate 10s linear infinite;
}
.bgPulse span:nth-child(9) {
    top: 35%;
    left: 50%;
    animation: animate 11s linear infinite;
}
.bgPulse span:nth-child(8) {
    top: 25%;
    left: 10%;
    animation: animate 7s linear infinite;
}
.bgPulse span:nth-child(10) {
    top: 25%;
    left: 85%;
    animation: animate 9s linear infinite;
}

.aboutContainer{
    width: 100%;
    height: 800px;
    background-position: center;
    background-size: cover;
    background-image: url("images/aboutBg2.jpg");
    background-attachment: fixed;
    display: flex;
}

.aboutContent{
    width: 50%;
    height: 100%;
    background-color: #0c0c0c;
    box-sizing: border-box;
    color: #fff;
}

.aboutContent h1{
    padding: 1em;
    font-family: 'Saira Extra Condensed', sans-serif;
    letter-spacing: 2px;
    font-size: 2em;
}

.aboutContent p{
    padding: 1em;
    font-size: 1.2em;
    color: #fff;
}

.about-btn-container button{
    margin: 1rem;
    font-size: 1.2rem;
    background: #fff;
    outline: none;
    padding: .5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 400;
    transition: .3s ease-in-out;
    text-decoration: none;
}

.about-btn-container button:hover{
    background: transparent;
    color: #fff;
    font-size: 1.3rem;
    transition: .3s ease-in-out;
    border: solid 1px #fff;
    text-decoration: none;
}

.about-btn-container button a{
    color: #000;
    text-decoration: none;
    
}

.about-btn-container button:hover a{
    color: #fff;
}



.img-box{
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    border-left: 100px solid #0c0c0c;
    border-bottom: 800px solid transparent;
}

/* projects page starts */



.project-container{
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(360deg, #ffffff, #0c0c0c);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
}


.card{
    width: 350px;
    height: 515px;
    padding: 1rem;
}

.card-inner{
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 1s;
    transform-style: preserve-3d;
}

.front, .back{
    width: 100%;
    height: 100%;
    border-radius: 15px;
    position: absolute;
    backface-visibility: hidden;
}

.front{
    background: url(/images/car-site.png);
    background-size: cover;
    background-position: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

#front-1 h2{
    color: #000;
}

#front-1 p{
    color: #000;
}

#front-1 button{
    color: #000;
    border: 1px solid #000;
    background: #fff;
}

#front-2{
    background: url(/images/filter.png);
    background-size: cover;
    background-position: 20%;
}

#front-2 h2, p{
    color: #000;
}

#front-2 p{
    color: #000;
}

#front-2 button{
    color: #000;
    border: 1px solid #000;
    background: #fff;
}

#front-3{
    background: url(/images/Screenshot\ 2023-12-20\ 171414.png);
    background-size: cover;
    background-position: center;
}

.front h2{
    font-weight: 500;
}

.front p{
    color: #ccc;
    font-size: 13px;
}

.front button{
    border: 1px solid #fff;
    background: transparent;
    border-radius: 50px;
    padding: 8px 20px;
    cursor: pointer;
    margin-top: 20px;
    color: #fff;
}

.back{
    background: #fff;
    color: #2c2c2c;
    padding: 20px 40px;
    transform: rotateY(180deg);
}

.back h1{
    font-size: 30px;
    line-height: 55px;
    margin-bottom: 10px;
}

.back p{
    font-size: 14px;
}

.row-container{
    margin-top: 30px;
}

.row{
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.col{
    flex: 1;
    text-align: center;
    color: #555;
    position: relative;
}

.col h2{
    font-size: 14px;
}

.col::after{
    content: '';
    width: 2px;
    height: 20px;
    background: #000000;
    position: absolute;
    top: 5px;
    right: 0;
}

.col:last-child::after{
    display: none;
}

.col p{
    margin-top: 5px;
}

.col a img{
    height: 25px;
    width: 25px;
}

.row-2{
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.back button{
    background: #000;
    border: 0;
    outline: 0;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
    cursor: pointer;
    transition: .3s ease;
}

.back button:hover{
    background: #555;
    transition: .3s ease;
    font-size: 16px;
}

.back a{
    color: #fff;
    text-decoration: none;
}

.card:hover .card-inner{
    transform: rotateY(180deg);
}

.designes{
    padding-bottom: 2rem;
}

.designeContent{
    display: flex;
    justify-content: center;
    align-items: center;
}

.designeContent h1{
    padding: 1em;
    font-family: 'Saira Extra Condensed', sans-serif;
    letter-spacing: 2px;
    font-size: 2em;
}

.slider{
    width: 1300px;
    max-width: 100%;
    height: 700px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.list{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: 1s;
}

.list img{
    width: 1300px;
    max-width: 100vw;
    height: 100%;
    object-fit: contain;
}

.buttons{
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.buttons button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #42414193;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
}

.dots{
    position: absolute;
    bottom: 10px;
    color: #fff;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    transition: 1s;
}

.dots li{
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 20px;
    border-radius: 20px;
    cursor: pointer;
    border: solid 1px #303030;
    transition: 1s;
}

.dots li.active{
    width: 30px;
}

.contact{                       /* contact section starts */
    min-height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("images/ContactBg3.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.contact form{
    width: 670px;
    height: 400px;
    display: flex;
    justify-content: center;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.contact form h1{
    color: #fff;
    font-weight: 500;
    margin-top: 20px;
    width: 500px;
    text-align: center;
}

.contact form input{
    width: 290px;
    height: 40px;
    padding-left: 10px;
    outline: none;
    border: none;
    font-size: 15px;
    margin-bottom: 10px;
    background: transparent;
    color: #fff;
    border-bottom: 2px solid #fff;
}

.contact form input::placeholder{
    color: #ddd;
}

.contact form #lastName,
.contact form #mobile{
    margin-left: 20px;
}

.contact form h4{
    color: #fff;
    font-weight: 300;
    width: 600px;
    margin-top: 20px;
}

.contact form textarea{
    background: none;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 15px;
    padding: 10px;
    outline: none;
    min-width: 600px;
    max-width: 600px;
    min-height: 80px;
    max-height: 80px;
}

textarea::-webkit-scrollbar{
    width: 1em;
}

textarea::-webkit-scrollbar-thumb{
    background-color: rgba(194, 194, 194, 0.7);
}

.contact form #button{
    border: 2px solid #fff;
    background: transparent;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 20px;
    color: #fff;
    width: 100px;
    padding: 0;
    margin-right: 500px;
    margin-bottom: 30px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.contact form #button:hover{
    background: #fff;
    color: black;
    transition: .3s;
}

.footer{
    width: 100%;
    min-height: 100px;
    background-color: #000;
}

.footer-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.area{
    padding: 1rem;
}

#area-2{
    margin-left: 5rem;
}

#area-3{
    margin-right: 5rem;
}

.area p{
    color: #fff;
}

.footer-nav{
    display: flex;
}

.area a{
    list-style: none;
    text-decoration: none;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
}

.area a:hover{
    color: #bdbdbd;
}

.area p{
    margin-bottom: 1rem;
}

@keyframes animate{  /* creats the spinning animation for the spans */
    0%{
        transform: scale(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100%{
        transform: scale(1) translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}
@keyframes bgColor{     /* creats color change animation */
    0%{
        background: #F44336;
    }
    25%{
        background: #03A9F4;
    }
    50%{
        background: #9C27B0;
    }
    75%{
        background: #00ff0a;
    }
    100%{
        background: #F44336;
    }
}

@media (max-width: 1118px) {
    .logo img{
        width: 80px;
        height: 100px;
    }
}

@media (max-width: 900px) {
    .homeContent{
        display: flex;
        flex-direction: column;
        transition: 0.5s;
        padding-top: 10em;
       }

       .homeText h1{
        font-size: 3em;
        transition: 0.5s;
   }

}

@media (max-width: 1200px) {
   
    .homeImg{
        width: 250px;
        height: 250px;
        background-image: url(images/cover-img-edit.png);
        background-size: cover;
        border-radius: 50%;
        z-index: 1;
    }
}

@media (max-width: 767px) {
   
    nav{
        display: flex;
        position: relative;
        transition: .5s;
    }

    nav button{
       position: absolute;
       top: 0;
       right: 25px;
       transition: .5s;
    }
    
    #nav-ul{
        display: none;
        flex-direction: column;
        max-width: 100%;
        transition: .5s;
        padding: 3rem;
    }

    nav ul li{
        padding-top: 10px;
        padding: 1rem;
    }

    nav ul li:first-child{
        padding-top: 1.2rem;
    }

    #nav-ul.show{
        display: flex;
        align-items: center;
        width: 400px;
        background: linear-gradient(225deg, #000, #00000057);
        margin: none;
        transition: .5s;
        padding-bottom: 20px;
        transition: .5s;
        z-index: 1;
        border-radius: 10px;
        padding-bottom: 8rem;
    }

    .navigation nav a:hover{
        color: rgb(167, 167, 167);
        background: transparent;
        text-decoration: underline;
    }

    .hamburger{
        display: block;
        width: 100%;
        transition: .5s;
    }

    .hide{
        display: block;
        font-size: 25px;
        border: none;
        background: transparent;
        color: #fff;
        font-weight: bold;
        cursor: pointer;
        padding: .5em;
        transition: ease .5s;
        z-index: 2;
    }

    .hide:hover{
        color: gray;
        transition: ease .5s;
    }

    .active{
        display: none;
        transition: .5s;
    }

    .homeImg{
        width: 200px;
        height: 200px;
        background-image: url(images/cover-img-edit.png);
        background-size: cover;
        border-radius: 50%;
        z-index: 1;
    }

   .bgPulse span:nth-child(6) {
    top: 85%;
    left: 70%;
    animation: animate 14s linear infinite;
}

   .bgPulse span:nth-child(10) {
    top: 25%;
    left: 70%;
    animation: animate 9s linear infinite;
}

    .aboutContent{      /* design slider */
        width: 60%;
    }

    .aboutContent p{
        font-size: 1rem;
    }

    .img-box{
        width: 40%;
        transition: .5s;
    }

    .slider{
        width: 300px;
        transition: .5s;
    }

    .list img{
        width: 300px;
        margin: 0;
        transition: .5s;
    }

    .buttons{
        width: 95%;
        transition: .5s;
    }
    
    .dots{
        margin: 5px;
        transition: .5s;
    }

    .contact form{      /* contact mobile sizing */
        width: 350px;
        height: 480px;
        box-shadow: none;
    }

    .contact form #lastName,
    .contact form #mobile{
        margin-left: 0px;
    }

    .contact form h4{
        width: 290px;
    }

    .contact form textarea{
        min-width: 300px;
        max-width: 300px;
        min-height: 90px;
        max-height: 90px;
    }

    .contact form #button{
        margin: 0;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .footer-container{
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .area{
        margin: 0;
        padding: 1rem;
    }

    #area-2{
        margin-left: 0;
    }
    
    #area-3{
        margin-right: 0;
    }
    
   
}

@media (max-width: 400px) {

    .logo img{
        width: 60px;
        height: 80px;
    }

    .nav button{
        right: 30px;
    }

    #hide {
        margin-top: 10px;
    }

    #nav-ul.show{
        width: 250px;
        padding-bottom: 6rem;
    }

    nav ul li{
        padding-top: 1rem;
        padding: 1rem;
    }

    nav ul li:first-child{
        padding-top: 4rem;
    }

    .homeContent{
        padding-top: 10em;
    }

    .homeImg{
        width: 120px;
        height: 120px;
    }

    .homeText h1{
        font-size: 2em;
        transition: 0.5s;
   }

   .homeText h3{
    font-size: 1.5em;
    transition: 0.5s;
    }

    .homeText a{
        font-size: 1.5em;
        transition: 0.5s;
    }

    .aboutContainer{
        height: 1000px;
    }

    .about-btn-container button{
        font-size: 1.1rem;
        padding: .4rem;

    }

    .card{
        width: 200px;
        height: 350px;
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
        margin-right: 25%;
    }

    .card:first-child {
        margin-top: 4rem;
    }

    .card:last-child{
        margin-bottom: 6rem;
    }

    .front, .back{
        width: 250px;
        height: 400px;
    }

    .card-inner{
        width: 250px;
        height: 400px;
        position: relative;
        transition: transform 1s;
        transform-style: preserve-3d;
    }

    .back{
        padding: 1rem;
    }

    .back h1{
        font-size: 26px;
    }

    .row-container{
        margin-top: 10px;
    }

    .back button{
        font-size: 15px;
        margin-bottom: 1rem;
    }

    .contact form{      /* contact mobile sizing */
        width: 300px;
        height: 500px;
        box-shadow: none;
    }

    .contact form #lastName,
    .contact form #mobile{
        margin-left: 10px;
        margin-right: 10px;
    }

    .contact form #firstName,
    .contact form #email{
        margin-left: 10px;
        margin-right: 10px;
    }

    .contact form input{
        border-bottom: solid #fff 1px;

    }

    .contact form h4{
        width: 250px;
    }

    .contact form textarea{
        min-width: 250px;
        max-width: 250px;
        min-height: 80px;
        max-height: 80px;
    }

    .contact form #button{
        margin: 0;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .to-top{
        display: none;
        font-size: 1px;
        width: 5px;
        height: 5px;
    }

    .to-top.active{
        bottom: 32px;
        pointer-events: auto;
        display: none;
    }
    
    .footer-nav{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .area a{
        font-size: 1rem;
        margin-top: 1rem;
    }

    #area-3 ul{
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    #area-3 ul li{
        padding: .1rem;
    }

    #area-2{
       text-align: center;
       margin-bottom: 1rem;
    }

    

 
}
