*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;;
}

body, html {
    font-family: poppins, sans-serif;
  }

header {
    background-color: #708090;
    color: black;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.navbar a{
    color: #ffffff;
    text-decoration: none;
}

.logo {
    font-size: 2.5rem;
}

.nav-link {
    list-style: none;
    display: flex;
}

.nav-link li {
    margin-left: 1.5rem;
}

.nav-link a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

.nav-link a:hover {
    color: #FFA500;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
}

.nav-link {
    display: flex;
}
/*-----responsive nav bar*/
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-link {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; 
        left: 0;
        background-color: #708090;
        padding: 1rem 0;
        text-align: center;
    }

    .nav-link li {
        margin: 1rem 0;
    }

    .nav-link.active {
        display: flex;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 24px;
    }

    .nav-link a {
        font-size: 18px;
    }
}
/*responsive navbar ends*/
.hero{
    background-image: url("joint.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;

    padding:64px 46px;
    height: 70vh;
    text-align:center;
}
.hero h1{
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 40px;
}
.hero p{
    color: black;
    font-size: 1.5rem;
}

.hero2{
    text-align: center;
    background-color: #708090;
    color: #ffffff;;
    padding: 20px;
}

.hero2 h2{
    font-size: 2rem;
    color: #ffffff;
}

.hero2 p{
    color: #ffffff;
}

.choose{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 20px;
}

.hero3{
    text-align: center;
    margin-top: 5%;

}
#service{
    text-align: center;
    margin-top: 5%;
}

.slider-container {
    max-width: 1200px;
    margin: 50px auto;
    overflow: hidden;
    position: relative;
     box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .slide {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .slide.active {
    opacity: 1;
    position: relative;
  }

  .service-content {
    flex: 1 1 50%;
    padding: 20px;
  }

  .service-content h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
  }

  .service-content p {
    color: #555;
    line-height: 1.6;
  }

  .slide img {
    flex: 1 1 50%;
    width: 350px;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
}


#service h4{
 color: #708090; 
 font-size: 1.5rem;  
}

  

h3 {
    color: #333;
}

p {
    color: #555;
    line-height: 1.6;
}



#contact{
    text-align: center;
    margin-top: 5%;
    background-color: #708090;
    padding: 30px;
    border-bottom: 2px #ffffff dashed;
}
#contact h2{
    font-size: 2rem;
    color: #ffffff;
}

#contact p{
    color: #000000;
    margin-bottom: 10px;
}
.contact-button{
    background-color: #dddddd;
    color: #333333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

#about{
    text-align: center;
}
#about h2{
    margin-top: 5%;
}

.about-container {
    display: flex;
    justify-content: center;;
    background-color: #708090;
    color: #ffffff;
    padding: 40px;
    flex-wrap: wrap; 
    margin-top: 3%;
}

.about-box {
    flex: 1;
    background-color: #708090;
    color: #ffffff;
    max-width: 50vw;
    margin-bottom: 10px;
}
.about-box p{
    color: #ffffff;
}

button{
    text-decoration: none;
    background-color: #ffffff;
    color: #000000;
    padding: 15px;
    border-color: #ffffff;
    border-radius: 10px;
    font-size: 1rem;
    margin-top: 20px;
}

 button:hover{
    color: #708090;
    transition: 0.3s;
}

.about-box img {
    width: 350px;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
}

#form-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
input::placeholder {
    padding-left: 10px; /* Not margin */
}


input[type="text"], input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
    margin-bottom: 10px;
}
textarea{
    width: 300px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 10px;
}
textarea::placeholder {
    padding-left: 10px; /* Not margin */
}

footer {
    background-color: #708090;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
footer p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 30px 20px;
        height: auto;
        background-attachment: scroll; /* fixed background is not good on mobile */
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .choose {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .slide {
        flex-direction: column;
        text-align: center;
      }

      .slide img, .service-content {
        flex: 1 1 100%;
        max-width: 100%;
      }

      .slide img {
        width: 90%;
        height: auto;
      }

    .about-container {
        flex-direction: column;
        padding: 20px;
    }
    .about-box {
        max-width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }
    .about-box img {
        width: 90%;
        height: auto;
    }
}
@media screen and (max-width: 480px){
    .hero2 h2{
        font-size: 1.5rem;
    }   
    .hero3 h2{
        font-size: 1.5rem;
    } 
    .choose h3{
        font-size: 1.2rem
    }
    #contact h2{
        font-size: 1.5rem;
    }
    #service h4{
        color: #708090; 
        font-size: 1rem;  
       }
}
