﻿   :root{
    --mainclr:#239f85;
    --secclr:#03148b;
    --third:#DFE4E0;
    --mainafterclr:hsl(167, 81%, 79%);
}
*{
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    transition: .2s;
    text-transform: capitalize;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}
html{
    font-size: 62.5%;
    
}
.header{
    padding: 1rem 7%;
    background-color: var(--mainclr);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
}
.header #logo{
    width: 90px;
 }

 .heading-title{
    padding: 1.5rem 7%;
    text-align: Left;
    margin-left: 8.5rem;
    font-size: 4rem;
    text-transform: capitalize;
 }

.navbar a{
    color: white;
    font-size: 1.5rem;
    margin-left: 2rem;
    position: relative;
  
}
.navbar a:after{
    content: '';
    background: var(--secclr);
    width: 0;
    height: 3px;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    transition: .3s;
}
.navbar a:hover:after{
    content: '';
    background: var(--secclr);
    width: 100%;
    height: 3px;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
}
.icons div{
    font-size: 2rem;
    margin-right: 1rem;
    color: white;
    display: none;
}
.icons a{
    color: white;
    background: var(--secclr);
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    border-radius: 10px;
    transition: .5s;
}
.icons a:hover{
    background: transparent;
    border: 1px solid var(--secclr);
}
.navbar.active{
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.background-image{
    background: url('images/myback.gif');
    width: 100%;
    height: 65vh;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 6%;
    position: relative;

}

.company-name {
            font-size: 25px;
            margin-bottom: 7px;
            font-style:italic;
           
        }  
.background-content{
    position: absolute;
    top: 30%;
    left: 50%;
    width: 50%;
    transform: translate(-80%);
}
.background-content h1{
    color: black;
    font-size: 40px;
    margin-bottom: 20px;
}
.background-content p{
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.background-content a{
    background: var(--secclr);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    color: white;
    font-size: 1.5rem;
    transition: .5s;
}
.background-content a:hover{
    background: transparent;
    border: 1px solid var(--secclr);
    color: black;
}
.about{
    padding: 6rem 7%;
    background: var(--third);
}
.main-about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.inner-about{
    flex: 1 1 45rem;
}

.inner-about .inner-about-image img{
    width: 50rem;
    height: 50rem;
    background: transparent;
    border-bottom-right-radius: 40px;
}
.about-content{
    width: 80%;
}
.about-content h1{
    font-size: 40px;
    margin-bottom: 15px;
}
.about-content p{
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.about-content a{
    background: var(--secclr);
    padding: 1rem 3rem;
    font-size: 1.5rem;
    color: white;
    transition: .5s;
}
.about-content a:hover{
    background: transparent;
    border: 1px solid var(--secclr);
    color: black;
}


.services .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(33rem, 1fr));
    gap: 1.5rem;
}

.services .box-container .box {
    text-align: center;
    background: var(--mainclr);
    padding: 0.5rem;
    /* Add padding to create a 0.5rem border around each box */
    display: flex;
    /* Use flexbox to center content vertically and horizontally */
    flex-direction: column;
    /* Stack image and h3 tag vertically */
    align-items: center;
    /* Center content horizontally */
    justify-content: center;
    /* Center content vertically */
}

.services .box-container .box img {
    max-width: 100%;
    /* Ensure the image scales within its container */
    max-height: 100%;
    /* Ensure the image scales within its container */
    object-fit: contain;
    /* Maintain aspect ratio while fitting within the container */
}

.services .box-container .box h3 {
    color: var(--third);
    font-size: 1.7rem;
    padding-top: 0.5rem;
    /* Space between image and h3 tag */
    margin: 0;
    /* Remove default margins for the h3 tag */
    white-space: nowrap;
    /* Prevent text from wrapping */
    overflow: hidden;
    /* Hide any overflowed text */
    text-overflow: ellipsis;
    /* Add an ellipsis (...) for long text */
}
.services .box-container .box:hover{
    background: var(--secclr);
}

.our-services{
    padding: 4rem 7%;
}
.service-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}
.left-service-content{
    flex: 1 1 45rem;
}
.right-service-content{
    flex: 1 1 45rem;
    display: flex;
    justify-content: flex-end;
}
.left-service-content h1{
    font-size: 4rem;
    margin-bottom: 25px;
}
.left-service-content p{
    font-size: 1.5rem;
}
.right-service-content .right-btn a{
    padding: 1.5rem 3rem;
    font-size: 2rem;
    color: white;
    background: var(--secclr);
}
.right-service-content .right-btn a:hover{
    border: 1px solid var(--secclr);
    background: transparent;
    color: black;
}

/* Styles for the dropdown menu */
.hero ul.main-menu {
    list-style: none;
    padding: 0;
}

.hero ul.main-menu li {
    display: inline-block;
    position: relative;
    margin-right: 20px;
}

.hero ul.main-menu li a {
    text-decoration: none;
    color: var(--third);
}

/* Styles for submenus and dropdowns */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.has-submenu:hover .submenu {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    padding: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.main-services{
    width: 1000px;
    margin: 0px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.main-services .service-icon{
    height: 300px;
    width: 300px;
    padding: 15px;
    background-color: var(--secclr);
    overflow: hidden;
    transition: 0.3s ease;
    margin: 15px;
}

.main-services .service-icon i{
    color: var(--mainclr);
    margin-top: 15px;
    transition: inherit;
    transition-delay: 0s;
    font-size:2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    text-align: center;
    line-height: 3rem;
    background: var(--mainafterclr);
    cursor: pointer;
}
.service-icon i:hover{
    color: white;
    background: var(--mainclr);
}
.main-services h4{
    color: var(--mainafterclr);
    margin-top: 20px;
    margin-bottom: 15px;
    transition: inherit;
    transition-delay: 0.5s;
    font-weight: 400;
}

.main-services li{
    color: var(--third);
    transition: inherit;
    transition-delay: 0.1s;
} 

.read{
    color: #FFF;
    overflow: hidden;
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    padding-right: 2rem;
}

.read:before{
    background-repeat: var(--mainclr);
    bottom: 0;
    height: .125rem;
    margin: auto;
    left: 0;
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    transform: scaleX(.2);
    transform-origin: left center;
    z-index: 0;
    animation: link-out;
    animation-fill-mode: forwards;
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(.6,.01,0,1);
}

.read span{
    position: relative;
    transform: translateX(-200%);
    display: inline-block;
    transition: 0.6s cubic-bezier(.6,.01,0,1);
}

.service-icon:hover .read span{
    transform: translateX(0%);
}

.service-icon:hover .read:before{
    animation: link-in;
    animation-fill-mode: forwards;
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(.6,.01,0,1);
}

.service-icon:hover i,
.service-icon:hover h4,
.service-icon:hover li{
    transform: translateY(-0.625rem);
}

.why-choseus{
    padding: 4rem 7%;
}
.main-chose{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}
.inner-chose{
    flex: 1 1 45rem;
}
.inner-chose img{
    width: 100%;
}
.inner-chose h1{
    font-size: 40px;
    color: var(--mainclr);
    margin-bottom: 20px;
}
.main-inner-chose{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    
}
.chose-icon i{
    width: 5rem;
    height: 5rem;
    line-height: 5rem;
    background: white;
    color: var(--mainclr);
    font-size: 3rem;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.icon-content{
    padding: 0 4rem;
}
.icon-content p{
    font-size: 1.5rem;
    line-height: 1;
}

.container{
    width: 80%;
    margin: 50px auto;
}

.contact-box{
    background: var(--third);
    display: flex;
}
.contact-left {
    flex-basis: 60%;
    padding: 40px 60px;
}

.contact-right {
    flex-basis: 40%;
    padding: 40px;
    background: var(--secclr);
    color: var(--third);
}

.container h1{
    margin-bottom: 10px;
    font-size: 4rem;

}

.container p{
    margin-bottom: 10px;
}

.input-row{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;    
}

.input-row .input-group{
    flex-basis: 45%;
}

input{
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--secclr);
    text-transform: none;
    outline: none;
    padding-bottom: 5px;
}

textarea{
    width: 100%;
    border: 1px solid var(--secclr);
    outline: none;
    padding: 10px;
    box-sizing: border-box;
}

label{
    margin-bottom: 6px;
    display: block;
    color: var(--secclr);
}

button{
    background: var(--secclr);
    width: 100px;
    border: none;
    outline: none;
    color: var(--third);
    height: 35px;
    border-radius: 30px;
    margin-top: 20px;
    box-shadow: 0px 5px 15px 0px rgba(28,0,181,0.3);
}

.contact-left h3{
    color: var(--secclr);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-right h3 {
    color: var(--third);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 2rem;
}

tr td:first-child{
    padding-right: 20px;
}

tr td{
    padding-top: 20px;
}

.social i{
    color: var(--third);
    padding: 5%;    
}

.social i:hover{
    color: var(--mainclr);
}

.contact-right .social-main{
    margin-top: 50px;
}

.footer{
    padding: 6rem;
    background: var(--third);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 3rem;
}

.footer .box-container #logo{
    width: 200px;
    vertical-align: middle;
}

.footer .box-container .box h3{
    color: var(--mainclr);
    font-size: 2.5rem;
    padding-bottom: 2rem;
}

.footer .box-container .box a {
    color: var(--secclr);
    font-size: 1.5rem;
    padding-bottom: 1rem;
    display: flex;
    text-transform: none;
}

.footer .box-container .box a:hover{
    -webkit-transform:scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.footer .box-container .box a i{
    color: var(--mainclr);
}
/* width */
::-webkit-scrollbar {
    width: 20px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px var(--mainclr); 
    background: var(--mainclr);
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--secclr); 
    border-radius: 10px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: var(--third); 
  }


@keyframes link-out{
    0%{
        transform-origin: right center;
        transform: scaleX(.2);
    }
    70%{
        transform: right center;
    }
    71%{
        transform-origin: left center;
        transform: scaleX(1);
    }
    100% {
        transform-origin: left center;
        transform: scaleX(.2);
    }
}

@keyframes link-in {
    0% {
        transform-origin: left center;
        transform: scaleX(.2);
    }

    70% {
        transform: left center;
        transform: scaleX(1);
    }

    71% {
        transform-origin: right center;
    }

    100% {
        transform-origin: right center;
        transform: scaleX(.2);
    }
}




@media screen and (max-width:768px) {

    html{
        font-size: 55%;
    }
    .header{
        padding: 2rem;
    }
    .icons div{
        display: initial;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--secclr);
        display: flex;
        align-items: center;
        flex-direction: column;
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }

    .navbar a{
        display: block;
        font-size: 3rem;
        font-weight: bolder;
        margin: 1rem;
        padding: 1rem;
        color: black;
    }
    .background-content{        
        width: 100%;
       left: 50%;
       top: 50%;
       transform: translate(-50%, -50%);
       padding-left: 5rem;
    }
    .inner-about .inner-about-image img{
        margin-top: 20px;
    }

    .right-service-content{
       
        justify-content: flex-start;
    
    }

    .heading-title {
        text-align: center;
        margin-left: 0;
        font-size: 3rem;
    }

    .services .box-container {
        grid-template-columns: 1fr;
    }

    .services .box-container .box {
        padding: 2rem;
    }

    .services .box-container .box img {
        height: auto; /* Allow images to scale proportionally */
        max-width: 100%; /* Ensure images fit within their containers */
    }

    .services .box-container .box h3 {
        font-size: 1.5rem;
        padding-top: 0.5rem;
    }
    
    .main-services {
        width: 100%;
        padding: 15px;
    }

    .main-services .service-icon {
        height: auto;
        width: calc(50% - 30px);
        /* Two icons per row */
        margin: 15px 15px 0 0;
        /* Adjust spacing between icons */
    }

    .container {
        width: 90%;
        padding: 20px;
    }

    /* Make the contact-box stack vertically on smaller screens */
    .contact-box {
        flex-direction: column;
    }

    /* Adjust flex-basis for contact-left and contact-right on smaller screens */
    .contact-left,
    .contact-right {
        flex-basis: 100%;
        padding: 20px;
    }

    /* Modify input and label styles for smaller screens */
    input,
    textarea {
        width: 100%;
        padding: 10px;
    }

    .footer {
        padding: 3rem;
        /* Reduce padding for smaller screens */
    }

    .footer .box-container {
        grid-template-columns: 1fr;
        /* Display one column on smaller screens */
        text-align: center;
        /* Center align content */
    }

    .footer .box-container .box {
        margin-bottom: 2rem;
        /* Add margin between boxes */
    }

    .footer .box-container #logo {
        width: 150px;
        /* Decrease logo size */
    }


}

@media screen and (max-width: 480px) {
    /* Further adjustments for mobile devices */

    .container {
        width: 100%;
    }

    /* Increase padding for input elements on smaller screens */
    input,
    textarea {
        padding: 15px;
    }

    button {
        width: 100%;
    }

    .main-services .service-icon {
        width: 100%;
        /* One icon per row */
        margin: 15px 0;
    }
}