/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f7f6;
    color: #4a4a4a;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50; /* Dark Grey */
    font-weight: 600;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

/* Underline effect for headings */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #3498db; /* Light Blue */
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Header & Navbar */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative; /* Added for positioning the mobile menu */
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db; /* Light Blue */
}

/* Hamburger Menu Icon */
.hamburger {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure it's above other nav elements */
}

.hamburger i {
    width: 28px;
    height: 28px;
    color: #2c3e50;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://placehold.co/1920x1080/2c3e50/ffffff?text=Water+Technology') no-repeat center center/cover;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #3498db; /* Light Blue */
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2980b9; /* Darker Light Blue */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
}

.btn-secondary:hover {
    background-color: #bdc3c7;
    color: #2c3e50;
}

/* General Section Styling */
section {
    padding: 80px 0;
}

/* About Section */
.about-section {
    background-color: #ffffff;
}
.about-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    background-color: #f4f7f6;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.service-card i {
    color: #3498db; /* Light Blue */
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Why Us Section */
.why-us-section {
    background-color: #ffffff;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.value-prop i {
    color: #3498db;
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.value-prop h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
    background-color: #2c3e50; /* Dark Grey */
    color: #ffffff;
    text-align: center;
}

.contact-section h2, .contact-section p {
    color: #ffffff;
}

.contact-section h2::after {
    background-color: #ffffff;
}

.contact-details {
    margin: 40px 0;
}

.contact-details p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-details a {
    color: #3498db; /* Light Blue */
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-details a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #233140;
    color: #bdc3c7;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger icon on mobile */
    }

    .nav-links {
        display: none; /* Hide nav links by default */
        position: absolute;
        top: calc(100% + 5px); /* Position below the navbar */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 0 0 8px 8px;

        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex; /* Show menu when active */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}
