/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600&display=swap");

*{
    box-sizing: border-box;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

body{
    background-color: #f3f3f3;
    color: #0A0908;
    overflow-x: hidden;
}
h1{
    text-align: center;
}

.navMenu{
    overflow: hidden;
    position: fixed;
    width: 100%;
    text-align: center;
    z-index: 1000;
    background-color: #f3f3f3;
}
.navMenu a{
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 12px;
    color: #0A0908;
}


.navMenu a:hover{
    color: #8A1002;
}
.navMenu .icon {
    display: none;
    max-width: 100%; 
}

h1{
    color: #8A1002;
}
.grid-container{
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    justify-content: center;
    padding: 10px;
}
.aboutTab, .servicesTab, .clientsTab, .contactTab {
    padding: 20px; /* Reduces the chance of overflow on narrow screens */
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

@media screen and (max-width: 600px) {
    .navMenu{
        width: 90%;
        margin-bottom: 5%;
        margin-left: 5%;
        border-radius: 15px;
        position: fixed;
        overflow-x: hidden;
        bottom: 0; 
    }
    .grid-container{
        display: block;
        justify-content: center;
        margin-left: 20px;
    }
    .grid-item{
        margin-bottom: 10px;
    }
    .last-item{
        display: block;
        justify-content: center;
    }
    header{
        width: 100%;
    }
    body{
        width: 100vw;
    }
    .navMenu a:not(:first-child) {display: none;}
    .navMenu a.icon {
        float: left;
        display: block;
        padding: 10px 12px;
        right: 0;
        top: 0;
        
    }
    .navMenu.responsive {
        position: fixed;
        overflow: hidden;
        width: 100%;
    }
    .navMenu.responsive .icon {
        position: fixed;
    }
    .navMenu img {
        width: 20px; 
        height: 20px;
    }
    .grid-container i{
        font-size: 10px;
    }
    .clientsTab, .servicesTab, .aboutTab, .contactTab {
        padding-top: 0; /* Remove excessive padding */
        margin: 0;
        width: 100vw; /* Ensures each section takes full viewport width */
    }
    .homeTab{
        width: 100vw;
    }
    .homeTab img{
        margin-bottom: 60px;
    }
    .homeTab p{
        position: absolute;
        margin-top: 30px;
    }
    .homeTab img{
        width: 100%;
        height: auto;
    }
    .aboutTab{
        margin-top: 50px;
        width: 100vw;
        height: 100vw;
        margin-bottom: 30px;
    }
    .card{
        width: auto;
    }
    .wrapper{
        max-width: 100%;
    }
    .servicesTab{
        padding-top: 200px;
    }
    .clientsTab{
        padding-top: 1300px;
        width: 100%;
        margin-left: 0;
    }
    .contactTab{
        text-align: center;
        width: 100vw;
    }
    .wrapper .carousel{
        max-width: 100%;
    }
     
}


/* Clear floats after the floating elements in the top navigation */
.navMenu::after {
    content: "";
    clear: both;
    display: table;
}

.homeTab{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
}

.homeTab img{
    mix-blend-mode: multiply;
}
.homeTab h1{
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.homeTab p{
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.aboutTab{
    max-width: 100%;
    text-align: center;
}
.aboutTab .about-p{
    background-color: #0A0908;
    color: #f3f3f3;
    border-radius: 20px;
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
}

.aboutTab p{
    margin-top: 15px;
    margin-left: 20%;
    margin-right: 20%;
    justify-content: center;
    display: flex;
}

.servicesTab{
    width: 100%;
    height: 100vh;
    text-align: center;
    padding-left: 10%;
    padding-right: 10%;
    margin-top: 10px;
    margin-bottom: 170px;
}

.servicesTab p{
    margin-bottom: 10px;
}
.servicesTab h1{
    margin-bottom: 20px;
}
.grid-container i{
    font-size: 40px;
}

.grid-item{
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background-color: #FAFAFA;
    height: 110px;
    width: 250px;
    text-align: center;
    justify-content: center;
    padding: 5%;
    transition: transform 0.3s;
}

.grid-item:hover{
    color: #f3f3f3;
    background-color: #8A1002;
    transform: scale(1.05);
}


/*=============== CARD ===============*/


.wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    max-width: 1100px;
    margin-left: 10%;
    margin-right: 5%;
    max-width: 100%;
    padding: 0 10%;
    position: relative;
}
.wrapper i{
    height: 50px;
    width: 50px;
    background: #FAFAFA;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 0.6rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px #0A0908;
}
.wrapper i:first-child{
    left: -2px;
}
.wrapper i:last-child{
    right: -2px;
}
.wrapper .carousel{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    justify-content: center;
}
.carousel::-webkit-scrollbar{
    display: none;
}
.carousel :where(.card, .img){
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel .card{
    scroll-snap-align: start;
    height: 340px;
    list-style: none;
    background: #FAFAFA;
    border-radius: 8px;
    cursor: pointer;
    padding-bottom: 15px;
    flex-direction: column;
}

.carousel.no-transition{
    scroll-behavior: auto;
}
.carousel .dragging{
    scroll-snap-type:none;
    scroll-behavior: auto;
}
.carousel .dragging .card{
    cursor: grab;
    user-select: none;
}

.card .img img{
    width: 140px;
    height: 140px;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.card h2{
    font-weight: 500;
    font-size: 1.5rem;
    margin: 30px 0 5px;
    text-align: center;
    color: #8A1002;
}

.card span{
    color: #0A0908;
    font-size: 0.8rem;
    text-align: center;
}


@media screen and (max-width: 900px) {
    .wrapper .carousel{
        grid-auto-columns: calc((100% / 2) - 9px);
        max-width: 100%;
    }
    .clientsTab{
        text-align: center;
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel{
        grid-auto-columns: 100% ;
        max-width: 100%;
    }
    .clientsTab{
        text-align: center;
        max-width: 100%;
    }
}
.contactTab{
    margin-top: 10px;
}

.contact-container{
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #0A0908;
    margin-left: 20%;
    margin-right: 20%;
    border-radius: 8px;
    padding-top: 15px;
    padding-left: 15px;
    padding-bottom: 25px;
    text-align: center;
}

label{
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #FAFAFA;
}

input, textarea {
    width: 50%;
    padding: 10px;
    border: none;
    box-sizing: border-box;
    border-radius: 8px;
}

#message{
    height: 100px;
}

input[type=submit] {
    background-color: #8A1002;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 10%;
    display: block;
    margin-left: 45%;
    justify-content: center;
}

.footerTab{
    background-color: #0A0908;
    color: #f3f3f3;
    text-align: center;
    font-size: smaller;
}

input[type=submit]:hover {
    background-color: #ad1301;
  }

  @media screen and (max-width: 900px) {
    .contact-container{
        max-width: 100%;
        text-align: center;
        margin: 5px;
    }
    input[type=submit] {
        display: block;
        justify-content: center;
    }
    .clientsTab i{
        margin-left: 5px;
    }
}  

@media screen and (max-width: 600px) {
    .contact-container{
        max-width: 100%;
        text-align: center;
        margin: 5px;
    }
    input[type=submit] {
        display: block;
        justify-content: center;
        margin-left: 38%;
        width: 100px;
    }
}

.mobile-menu-items{
    text-align: center;
    margin-top: 50%;
    left: 50%;
    text-decoration: none;
}
.mobile-menu-items a{
    text-decoration: none;
    color: #FAFAFA;
    padding-bottom: 5px;
}

