html, body {
    touch-action: manipulation;
    overflow-x: hidden;
}
body{
    margin: 0;
    padding: 0;
    overflow-y: hidden;
}
html{
    scroll-behavior: smooth;
}

/*top container styling*/
.top-div {
    font-family: helvetica;
    width: 100%;
    padding: 0.5em;
    display: flex;
    justify-content: space-around;
    box-sizing: border-box; /* Ensure padding is included in the width */
    background-color: hsl(0, 0%, 90%);

}.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 2em;
    background-color: hsl(0, 0%, 100%);
    height: 5em;
}
.main-logo{
  position:absolute;

}
.logo-img{
    width: 15em;
    height: 8em;
    transform: translate(-1em, -3.5em);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    padding: 0.5em;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    font-size: 1.1em;
}

.nav-list a:hover {
    background-color: hsl(193, 100%, 50%);
    color: black;
    cursor: pointer;
}
.main-nav-btn {
    color: rgb(0, 0, 0);
    cursor: pointer;
    background-color:lightgray;
    transition: all 0.4s ease-in-out;
    width:7.6em;
    padding: 5px;
    height: 2em;
    text-align: center;
    align-content: center;
    text-decoration: none;
    border-radius: 10px;
    font-family: helvetica;
}
.main-nav-btn:hover {
    background-color: hsl(193, 100%, 50%);
    color: black;
    cursor: pointer;
}
.hamburger {
  display: none; /* Ensure it is hidden by default */
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color:rgb(0, 0, 0);
}

/*end of headersection*/


/*hero section styling*/
/*totop styling*/
.totop {
    position: fixed;
    bottom: 1em;
    right: 1em;
    background-color: hsl(193, 100%, 50%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3em;
    height: 3em;
    cursor: pointer;
    z-index: 1000;
    align-items: center;
    align-content: center;
    text-align: center;
}
.totop a{
    text-decoration: none;
    color: white;
    text-align: center;
    font-family: helvetica;
}
/* Hero Section Styling */
.heroimg {
    position: relative;
    background-image: url('images/Newhomelogo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Ensure it covers the full section */
    height: 100vh; /* Full viewport height */
    
}


/* Dark Overlay */
.heroimg::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Dark overlay (adjust opacity as needed) */
    z-index: 1;
}
.maindivh1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -10%);
    color: white;
    font-size: 1.5em;
    text-align: center;
    z-index: 2;
    text-shadow: 2px 2px 4px black;
    font-family: helvetica;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* spacing between heading and buttons */
}

.herobtn {
    color: black;
    text-decoration: none;
    background-color: lightgray;
    border-radius: 10px;
    padding: 0.3em 0.5em;
    text-shadow: none;
    transition: transform 0.5s, background-color 0.5s;
}
.herobtn:hover{
    background-color:hsl(193, 100%, 50%) ;
}

.herobtn-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1em;
    
    
}



/* under hero text section styling*/
.underherotext {
    align-items: center;
    align-content: center;
    text-align: center;
    margin-bottom: 2em;
}
.home-span {
    font-size: 1.7em;
    text-align: center;
    align-items: center;
    align-content: center;
}


.home-h2 {
    font-size: 3em;
    text-align: center;
    align-items: center;
    align-content: center;
}

/*img slider styling*/
.img-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-top: 1em;
    gap: 1em;
}

.slider-img {
    width: 25em;
    height: 18em;
}

/*about section styling*/
.home-span2{
    font-size: 1.5em;
    text-align: center;
    align-items: center;
    align-content: center;

}
.underherotext2{
    align-items: center;
    align-content: center;
    text-align: center;
    margin-bottom: 2em;
    margin-top: 2em;
    font-size: 1.3em;
    font-family: helvetica;
}
.about-h22 {
    font-size: 3.2em;
    text-align: center;
    align-items: center;
    align-content: center;
}
/* About Section Styling */


.about-h2 {
    font-size: 3.2em;
    text-align: center;
    align-items: center;
    align-content: center;
    width: 10em;
    color: hsl(0, 0%, 100%);
    text-shadow: 2px 2px 4px hsl(193, 100%, 50%); /* Add text shadow for readability */
    left: 50%;
    top: 50%;
    transform: translate(-50%,-70%);
    position: absolute;
    padding: 0.5em;
    border-radius: 10px;
    z-index: 2; /* Ensure the text is above the pseudo-element */
}

.about-button-contact2{
    text-align: center;
    align-items: center;
    align-content: center;
    width: 6.5em;
    height: 3em;
    color: hsl(0, 0%, 100%);
    background-color:hsl(193, 100%, 50%) ;
    left: 50%;
    top: 50%;
    transform: translate(-50%,150%);
    position: absolute;
    border-radius: 10px;
    z-index: 2; /* Ensure the text is above the pseudo-element */
    text-decoration: none;
    color: white;
    font-size: 1.3em;
    font-family: helvetica;
}
.about-button-contact2:hover{
    background-color: hsl(193, 100%, 30%);
    cursor: pointer;
}
.about-h2-span{
    font-size: 1em !important;
}
.about-h2-h2{
    font-size: 1.5em !important;
}
.about-hr {
    margin-top: 2em;
}
.about-img-div {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: -0.5em;
    overflow: hidden; /* Ensure the pseudo-element doesn't overflow */
    background-attachment: fixed;
}

.about-img-div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/IMG_1455.PNG');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Ensure the image covers the entire element */
    filter: brightness(0.8); /* Apply the brightness filter */
    z-index: 1; /* Ensure the pseudo-element is behind the text */
}
.about-span {
    color: hsl(0, 0%, 0%);
    font-size: 1.5em;
    text-align: center;
    z-index: 2; /* Ensure text stays on top of overlay */
    border-radius: 10px;
}
.about-us-section1{
    border: 1px solid hsl(0, 0%, 0%);
    display: inline-block;
    align-items: center;
    align-content: center;
    text-align: center;
    gap: 1em;
    display: flex;
    justify-content: space-around;
    padding-bottom: 0.2em;
}
.about-us-section2{
    border: 1px solid hsl(0, 0%, 0%);
    display: inline-block;
    width:600px;
    height: 235px;
    align-items: center;
    align-content: center;
    text-align: center;
    gap: 1em;
    padding: 0.2em;
    background-color: hsl(0, 0%, 95%);
    transform: translateY(1em);
}
.about-us-section3{
    border: 1px solid hsl(0, 0%, 0%);
    display: inline-block;
    width:600px;
    height: 235px;
    align-items: center;
    align-content: center;
    text-align: center;
    gap: 1em;
    transform: translateY(-1.1em);
    padding: 0.2em;
    background-color: hsl(0, 0%, 95%);
}
.about-us-section4{
    border: 1px solid hsl(0, 0%, 0%);
    display: inline-block;
    width:600px;
    height: 235px;
    align-items: center;
    align-content: center;
    text-align: center;
    gap: 1em;
    transform: translateY(0.1em);
    padding: 0.2em;
    background-color: hsl(0, 0%, 95%);
}
.about-img{
    width: 25em;
    height: 18em;
    border-radius: 5px;
}
.about-contact{
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    text-align: center;
    gap: 1em;
    padding: 1em;
    flex-direction: column;
}
.about-button-contact{
    background-color: hsl(193, 100%, 50%);
    color: white;
    border: none;
    border-radius: 5px;
    width: 7em;
    height: 3em;
    cursor: pointer;
    text-align: center;
    align-items: center;
    align-content: center;
    text-decoration: none;
    font-size: 1.3em;
}


/* Ensure the container hides overflow */
.suppliers-div {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

/* Flexbox list with duplicated content for smooth scrolling */
.suppliers-ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 5em; /* Adjust spacing between items */
    width: 200%; /* Double width for seamless looping */
    animation: slide 40s linear infinite;
    list-style: none; /* Remove bullet points */
    padding: 0;
}

/* Smooth text appearance */
.suppliers-ul li {
    flex: 0 0 auto;
    font-size: 1.4em; /* Adjust font size as needed */
    text-transform: uppercase; /* Optional for styling */
    padding: 0 1em;
    font-family: helvetica;
}

/* Keyframes for continuous scrolling */
@keyframes slide {
    0% {
        transform: translateX(5%);
    }
    100% {
        transform: translateX(-105%);
    }
}


/*services section styling*/
.service-img {
    width: 25em;
    height: 18em;
    transform: translate(5em, 0em);
    border-radius: 5px;
}

.service-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.service-ul {
    transform: translate(-6em, 0em);
}

.service-ul li {
    font-size: 1.2em;
    padding: 1em;
    font-family: helvetica;
}
.service-duplicate{
    display: none;
}

/*contact section styling*/
.contact {
    display: flex;
    align-items: center;
    align-content: center;
    text-align: center;
}

.contact-img {
    position: relative;
    width: 25em;
    height: 18em;
    border-radius: 5px;
    right: 5em;
}

.contact-input {
    width: 20em;
    height: 2em;
    margin: 1em;
    border: solid 1px;
    resize: none;
}

.contact-btn {
    position: relative;
    width: 13em;
    height: 3em;
    margin: 1em;
    background-color: hsl(193, 100%, 50%);
    color: white;
    border: none;
    border-radius: 5px;
    transform: translate(-30em, 5em);
    cursor: pointer;
}

.contact-btn:hover {
    background-color: hsl(193, 100%, 30%);
}

#phone {
    transform: translate(-0em, -1.8em);
}

.bottom-hr {
    margin: 1em;
}
.contact-span{
    display: flex;

}
.contact-span2{
    display: none;
}

/*blog section styling*/
.blog {
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    text-align: center;
}

.blog-img {
    width: 25em;
    height: 18em;
    border-radius: 5px;
}
.terms-container {
    height: 100vh;
    width: 50em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%);
    font-size: 1.3em;
}
.terms-h1{
    font-size: 2em;
    text-align: center;
    align-items: center;
    align-content: center;
}
#terms-link{
    display: none;
}



/*ourwork section styling*/
.img-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1em;
    padding: 1em;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    overflow: auto; /* Add scrollbars if content overflows */
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
}
.img-grid-img{
    width: 300px;
    height: 300px;
    border-radius: 5px;
    object-fit: cover;
}
.img-grid-img:hover{
    transform: scale(1.1);
    cursor: pointer;
}
/*footer styling*/
.footer-nav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    text-align: center;

}
.footer-links a{
    color: black;
}
.footer-links a:hover{
    color: hsl(193, 100%, 50%);
}


/*animate on scroll*/
/* Initial state for elements to be animated */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* State when elements are visible */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}