/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(45deg, #1E90FF, #87CEFA);
    padding: 15px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 1.5rem;
}

header ul {
    display: flex;
    list-style: none;
}

header ul li {
    margin-left: 20px;
}

header ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
}

header ul li a:hover {
    color: #ADD8E6;
}

/* Hero Section */
.hero {
    color: white;
    text-align: center; /* Center text by default */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content */
    padding: 10px;
}


.hero button {
    padding: 12px 25px;
    background-color: #fff;
    color: #007BFF;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.hero button:hover {
    background-color: #ADD8E6;
    transform: scale(1.05)
}

/* Products Section */
#products {
    padding: 30px 20px;
    text-align: center;
}

#products h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.product-list {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
}

.product-item-1{
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 250px;
    text-align: center;
    margin-bottom: 20px;
}

.product-item-1 h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-item-1 p {
    font-size: 1rem;
}

.product-item-2{
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 250px;
    text-align: center;
    margin-bottom: 20px;
}

.product-item-2 h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-item-2 p {
    font-size: 1rem;
}

.product-item-3{
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 250px;
    text-align: center;
    margin-bottom: 20px;
}

.product-item-3 h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-item-3 p {
    font-size: 1rem;
}

/* About Section */
#about {
    background: linear-gradient(45deg, #1E90FF, #87CEFA);
    color: white;
    padding: 60px 10px;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
#contact {
    padding: 50px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 1.2rem;
}

input, textarea {
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
}

textarea {
    height: 150px;
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}
.product-item-1 button{
    padding: 12px 25px;
    background-color: #fff;
    color: black;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
}


button:hover {
    background-color: #1E90FF;
}

.product-item-1 :hover{
    background-color: #dde3e6 ;
}


.product-item-2 button{
    padding: 12px 25px;
    background-color: #fff;
    color: black;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
}
.product-item-2 :hover{
    background-color: #dde3e6 ;
}

.product-item-3 button{
    padding: 12px 25px;
    background-color: #fff;
    color: black;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
}
.product-item-3 :hover{
    background-color: #dde3e6 ;
}
/* Footer */
footer {
    padding: 20px;
    background-color: #007BFF;
    color: white;
    text-align: center;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    header nav {
        flex-direction: column; /* Stack elements */
        align-items: center;
    }

    header .logo {
        text-align: center;
        flex: none; /* Prevents it from stretching */
    }

    header ul {
        flex-direction: column; /* Stack links */
        align-items: center;
        gap: 10px;
    }
}

    header .logo h1 {
        font-size: 1.2rem;
    }

    #home h2 {
        font-size: 1.8rem;
    }

    #home p {
        font-size: 1rem;
    }

    #home button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #products h2 {
        font-size: 1.8rem;
    }

    .product-list {
        
        align-items: center;
    }

    .product-item {
        width: 90%;
        max-width: 350px;
    }

    #about h2 {
        font-size: 2.2rem;
    }

    #about p {
        font-size: 1rem;
    }

    #contact h2 {
        font-size: 2.2rem;
    }

    form {
        width: 90%;
    }

    input, textarea {
        font-size: 0.9rem;
    }

    footer {
        padding: 15px;
        font-size: 0.9rem;
    }

/* Media Queries for Small Mobile Devices (375 x 667) */
@media (max-width: 375px) {
    #home {
        padding: 40px 10px;
    }

    #home h2 {
        font-size: 1.6rem;
    }

    #home p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    #home button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    #products h2 {
        font-size: 1.6rem;
    }

    .product-item {
        width: 100%;
        max-width: 300px;
    }

    #about h2 {
        font-size: 2rem;
    }

    #about p {
        font-size: 0.9rem;
    }

    #contact h2 {
        font-size: 2rem;
    }

    form {
        width: 85%;
    }

    input, textarea {
        font-size: 0.85rem;
    }

    footer {
        padding: 12px;
        font-size: 0.8rem;
    }
}



    footer {
        padding: 12px;
        font-size: 0.8rem;
    }
    .logo img {
        width: 150px;
        height: auto; /* Maintains aspect ratio */
        border-radius: 15px;
        align-items: center;
    }
    

    /* html 2 css 

/* iOS-style CSS for Water Softener Page */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}

.ios-header {
    text-align: center;
    padding: 20px;
    background: #007aff;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 99%;
    max-width: 600px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    border-radius: 15px;
}

.card h2 {
    font-size: 18px;
    margin: 10px 0;
}

.card p {
    font-size: 14px;
    color: #555;
}



.card-2 {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}


.card-2:hover {
    transform: translateY(-5px);
}

.card-2 img {
    width: 100%;
    border-radius: 15px;
}

.card-1-install {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}


.card-1-install :hover {
    transform: translateY(-5px);
}

.card-1-install img {
    width: 100%;
    border-radius: 15px;
}



