/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Navbar styling */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #ffd000;
    position: fixed;
    width: 100%;
    z-index: 1000;
}



.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 18px;
    color: #000;
    transition: color 0.3s ease;
    padding: 10px;
}

.nav-links a:hover {
    color: #1db0d4;
    background-color: #f5f5f5;
  
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
}

.logo{
    height: 100px;
    width: 20%;
}

/* Styling for homepage section */

.homepage {
  
    display: flex;               
    align-items: center;         
    padding: 20px;               
    height: auto;               
    background-image: url(images/but.jfif);
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 100px;
}

.image-container {
    flex: 1;                 
    display: flex;               
    justify-content: start;     
    align-items: start;
    margin-top: 35px;
}        

.image-container img {
    max-width: 100%;             
    height: auto;                
}

.text-container {
    flex: 1;                     
    padding-left: 20px; 
    margin-top: 28px;         
}

.text-container h1, .text-container h2, .text-container p {
    margin: 0 0 10px 0;          
}

.text-container h1 {
    font-size: 36px;             
    color: #d10000;                
}

.text-container h2 {
    font-size: 28px;             
    color: #a50000;                 
}


.text-container p {
    font-size: 16px;             
    color: #333;                 
    line-height: 1.5;           
}

.about{             
    align-items: center;         
    padding: 20px;               
    height: auto; }
  
.about h2{
    text-align: center;
    font-size: 3.6ch;
    color: #ffae00;
    font-weight: bold;
}
.about h3 {
    text-align: center;
    color: #d10000;
    font-weight: bold;
    margin-top: 15px;
    font-size:2.3ch;
}

.vision{             
    align-items: center;         
    padding: 20px;               
    height: 400px; 
    background-image: url(images/clean.webp);
    background-repeat: no-repeat;
    background-size:cover;}
  

.about, .vision p {
    text-align: center;
    color: #000000;
    font-weight: bold;
    font-size:2.3ch;
}
.vision h2{
    text-align: center;
    font-size: 3.6ch;
    margin-top: 40px;
    color: #ff1100;
    font-weight: bold;}
.what .content-container {
        display: flex;
        align-items: center;
        gap: 10px; 
    }
.image-container img {
        width: 80%;
        height: 280px;
        margin-top: 10px;
        margin-left: 10px;
    }
    
.text-container {
        max-width: 60%;
       
    }
.what p{
    font-size: 18px;
    font-style: italic;
    padding-right: 15px;
}
.what h2{
 text-align: center;
 font-size: 28px;
 font-weight: bold;
 color: #a50000;
 margin-top: 20px;
 margin-bottom: 23px;
}
.what h3{
 color: #ffae00;
}
/* General layout for the build section */
.build .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    height: 250px;
    margin-top: 80px;
}

.build h2{
    text-align: center;
    font-weight: bold;
    font-size: 28px;
    color: #ffae00;
    margin-top: 20px;
}

.build .text-content {
    flex: 1;
    max-width: 50%;
    padding-top: 5px;
}

.build .text-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ff0505;
}

.build .slider {
    flex: 1;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
}

.slider .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider .slide {
    min-width: 100%;
    text-align: center;
    background: #f5f5f5;
    padding: 10px;
}

.slider .slide img {
    width: 100%;
    height: 250px;
    border-radius: 10px;
   }

.slider .slide h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}


/* General Styling for Strengths Section */
.strengths {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ca0000;
    margin-bottom: 40px;
    text-align: center;
    padding-top: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

.card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    color: #666666;
    margin: 0;
}


/* General responsiveness for smaller screens */
@media (max-width: 768px) {


    .logo{
        height: 100px;
        width: 50%;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }
    
    .hamburger .bar {
        height: 3px;
        width: 25px;
        background-color: rgb(255, 166, 0);
        margin: 3px 0;
    }
.nav-links{
    display: none;
}
.container .text-content{
    margin-top: 0px;
}
    .vision{
        margin-bottom: 40px;
    }
    
    .about{
        margin-bottom: 40px;
    }
    
    .what{
        margin-top: 130px;
    }
    .what .text-container{
        display: block;
        align-items: center;
        }
     .what .content-container img{
        display: flex;
     }
 .homepage .image-container img{
    display: none;
 }
 .homepage .text-container{
     text-align: center; 
     margin-right: 95px;

 }

    /* Build Section: Sliding images below the text */
    .build .container {
        flex-direction: column; /* Stack text and slider vertically */
        align-items: center;
    }

    .build .text-content {
        margin-bottom: 20px; /* Add spacing below the text */
        text-align: center;
    }

    .slider {
        width: 100%; /* Ensure the slider spans the full width */
    }

    .slider .slides img {
        width: 100%; /* Ensure the images span the slider */
        height: auto; /* Maintain image aspect ratio */
    }

    /* "Our Strengths" section positioning */
    .container {
        position: relative;
        margin-top: 20px; /* Add spacing above this section */
        padding: 15px;
        text-align: center;
    }
    .section-title {
        font-size: 2rem;
        margin-top: 380px;
    }

    .card h3 {
        font-size: 1.6rem;
        margin-top: 5px;
    }

    .card p {
        font-size: 0.95rem;
    }

}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .container {
        margin-top: 30px; /* Add extra spacing above for better separation */
        padding: 10px;
    }

    .container h2,
    .container p {
        font-size: 14px; /* Adjust text size for readability */
    }

    nav ul li {
        font-size: 14px; /* Reduce menu item font size */
    }

    .slider .slides img {
        margin-top: 10px; /* Add spacing above slider images */
    }
    .card {
        padding: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .card p {
        font-size: 0.9rem;
    }
}
