* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}


header {
    position: relative;
    margin-top: 10px;
}

.main-header {
    top: -10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    padding: 10px 20px;
    box-shadow: 0 4px 2px -2px gray;
    position: relative;
    z-index: 1000; /* Ensure the header stays above other content */
}

.logo img {
    max-height: 70px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.nav-links li {
    margin: 0 15px;  /* Reduce margin to bring items closer */
}
.nav-links a {
    font-weight: bolder;
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: #0059ff;
    color: white;
    border-radius: 4px;
}

.search-icon a {
    color: #555;
    font-size: 20px;
    padding: 5px 10px;
    background-color: white;  /* Ensure background visibility */
    border-radius: 5px;
}

.search-icon a:hover {
    color: #000;
    background-color: #ddd;
}


/* For mobile navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.about-hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)),
                url('img/infratructure-bg.jpg') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    justify-content: flex-start; /* Aligns content to the left */
    align-items: flex-end; /* Aligns content to the bottom */
    padding: 20px; /* Adds spacing around the content */
    color: white;
    text-align: left;
}

.about-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: sans-serif;
    text-transform: uppercase;
    width: 100%;
    margin: 0;
}

.about-hero-content p {
    font-size: 1.2rem;
    margin-top: -5px;
    text-transform: uppercase;
}

.about-hero-content {
    max-width: 100%;
    position: relative;
    background-color: #00000098;
    padding: 10px 20px;
}

.about-hero-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px; /* Width of the red vertical line */
    background-color: red; /* Red line color */
}


.products-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: #f9f9f9;
}

.products-content {
    flex: 1;
    padding-right: 20px;
}

.products-content h2 {
    font-size: 2.5rem;
    color: #2a9d8f;
    margin-bottom: 20px;
}

.products-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.products-content ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.products-content ul li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.products-content ul li::before {
    content: "➤";
    color: #2a9d8f;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.products-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.products-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}


.certifications {
    text-align: center;
    padding: 50px 0;
}

.certification-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.certification-logo img {
    width: 120px; /* Adjust size as needed */
    height: auto;
}

.footer {
    background-color: #f9f9f9;
    padding: 40px 0;
    width: 100%;
}

.footer-container {
    /* margin-left: 90px;
    margin-right: -40px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 30px; /* Reduced padding for closer sections */
    max-width: 100%;
}

.footer-about img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    color: #666;
    max-width: 300px;
}

.footer-menu h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.footer-menu ul {
    list-style-type: disc; /* Add bullet points */
    padding-left: 20px; /* Space between bullets and text */
    margin: 0;
}

.footer-menu ul li {
    margin-bottom: 5px; /* Reduce vertical gap between links */
}

.footer-menu ul li a {
    color: #4CAF50;
    text-decoration: none;
}

.footer-menu ul li a:hover {
    text-decoration: underline;
}

.footer-contact p {
    font-size: 0.9rem;
    color: #666;
    max-width: 300px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Adjust spacing between footer sections */
.footer-about, .footer-menu, .footer-contact {
    flex: 1;
    margin-right: 10px; /* Reduce horizontal space between sections */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #f1f1f1e2;
        width: 100%;
        padding: 20px 0;
        transition: max-height 0.8s ease, opacity 0.4s ease;
    }

    .nav-links.active {
        display: block;
        opacity: 1;
        max-height: 300px; /* Adjust the height as needed */
    }

    .logo img {
        max-height: 35px;
    }
    

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .search-icon a {
        color: #555;
        font-size: 10px;
        padding: 5px 10px;
        background-color: white;
        border-radius: 5px;
        margin-left: 100px;
    }
}

@media (max-width: 768px){
    .about-hero-content{
    padding: 5px 10px;
    width: auto;
    }

    .about-hero-content h1 {
        font-size: 1rem;
        margin-bottom: 5px;
        font-family: sans-serif;
        text-transform: uppercase;
        width: 100%;
        margin: 10px;
    }
    
    .about-hero-content p {
        font-size: 0.6rem;
        margin-top: -5px;
        text-transform: uppercase;
    }

}

@media (max-width: 768px){
    
    .products-section {
        flex-direction: column;
        
    }

    .products-content {
        width: 100%;
        margin: 0 auto;
    }

    .products-content h2{
        font-size: 1.5rem;
    }

    
}


/* Footer adjustments for mobile */
@media (max-width: 768px) {

    .footer-container {
        flex-direction: column; /* Stack sections vertically */
        align-items: center; /* Center align items */
        padding: 20px; /* Add padding for better appearance */
        text-align: center; /* Center text */
    }

    .footer-menu{
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-menu ul li{
        align-items: center;
        text-align: left;
    }
}
