
/* Basic Reset and General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif; /* Changed font for a cleaner look */
    line-height: 1.6;
    color: #e8e7d3;
    background-color: #4a6154; /* Softer background color */
}

/*div tag container for button*/
.menu_section{
 background-color: #4a6154;   
}
.hmenu {
  position: relative;
  display: inline-block;
}
.hmenu1 {
    position: relative;
    display: inline-block;
    color: #e8e7d3;
    padding: 16px;
}
.hmenu1 a{
    color: #e8e7d3;
    text-decoration: none;
    padding: 16px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
}
.hmenu1 a:hover{
    background-color: #e8e7d3;
    color: #4a6154;
}
/*button tag*/
.hmenubutton {
  background-color: #4a6154;
  color: #e8e7d3;
  padding: 16px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
}

.hmenubutton a{
    color: #e8e7d3;
    text-decoration: none;
    border-radius: 5px;
}

/*list under button tag*/
.hmenulist {
  display: none;
  position: absolute;
  background-color: #e8e7d3;
  min-width: 160px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
}

/*The four links states are:
a:link - a normal, unvisited link
a:visited - a link the user has visited
a:hover - a link when the user mouses over it
a:active - a link the moment it is clicked*/

/*Selects all <a> elements inside <div> elements of class="hmenulist" */
.hmenulist a {
    padding: 12px 16px;
    color: #4a6154;
    text-decoration: none;
    
  display: block;
}

.hmenulist a:hover {
    background-color: #4a6154;
    color: #e8e7d3;
}

.hmenu:hover .hmenulist {display: block;}

.hmenu:hover .hmenubutton {
    background-color: #e8e7d3;
    color: #4a6154;
}


/* end of main_list css */


/* Header and Navigation */
header {
    background-color: #4a6154;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
/* pull-down mainmenu css */



/* end of mainmenu css */


.logo{
    font-weight: bold;
    font-size: 1.5em;
}

/* hero div*/

#hero {
     /*background-image: url("sd14.jpeg");  Add a background image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #e8e7d3;
    text-align: center;
    padding: 150px 0;
    position: relative;
    width: 100%;
    height: 100vh;  /*This sets the height to 100% of the viewport height */
    overflow: hidden; /* Prevents background image from overflowing */
}

.hero img {
    background-repeat: no-repeat;
    background-position: center;
    position: absolute; /* Position the image independently of other content */
    align-content: center;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%); /* Shifts the image back by half its own width and height */
    object-fit: cover;   /*This makes the image cover the container while preserving its aspect ratio */
    z-index: -1; /* Puts the image behind other elements in the stack */
}

.hero_overlay {
 position: relative; /* Ensures this content sits on top of the image */
  z-index: 1; /* Puts this content on top of the image, which has z-index -1 */
  color: white; /* Choose a text color that provides good contrast */
  text-align: center;
  padding: 50px;
}

/*#hero-content{
    position: relative;
    z-index: 2;
    padding: 20px;
}*/

#hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Main Content Styles */
main {
    padding: 40px;
    max-width: 960px;
    margin: 0 auto;
    min-height: calc(100vh - 170px);
}

section {
    margin-bottom: 40px;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}
.title1 {
    color: #666551;
}
.title1 a{
    color: #666551;
    text-decoration: none;
}
.title1 a:hover{
    background-color: #d3d1ab;
}
.services-container, .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
}

.service, .step {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #e8e7d3;
    color: #666551;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s; /* Add a transition for the hover effect */
}

.service:hover, .step:hover {
    transform: translateY(-5px); /* Move the box up slightly on hover */
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15); /* Increase shadow on hover */
}

.service-details {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Button Styles */
button {
    background-color: #4a6154;
    color: white;
    padding: 15px 30px; /* Increased padding for a larger button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s; /* Added transform transition */
}

button:hover {
    background-color: orchid;
    transform: scale(1.05); /* Slightly scale the button on hover */
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

li {
    margin-bottom: 5px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav li {
        margin: 10px 0;
    }

    main {
        padding: 20px;
    }

    #hero h1{
        font-size: 2em;
    }

    #hero p{
        font-size: 1em;
    }
}