/* Base styles for larger screens (default) */

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

.header_container {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    background-color: #1F2937;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.logo img {
    max-width: 150px;
    height: auto;
}

.links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.links li {
    list-style: none;
}

.links a {
    color: #E5E7EB;
    text-decoration: none;
    font-weight: 600;
}

.intro-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 20px;
    align-items: center;
}

.intro-box1, .intro-box2 {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.intro-box1 {
    max-width: 600px;
    width: 100%;
}

.intro-box2 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-box2 img {
    max-width: 100%;       /* Ensure the image scales within the container */
    height: auto;          /* Maintain aspect ratio */
    display: block;        /* Ensure no inline space around the image */
    border-radius: 10px;
}

.product-info {
    padding: 50px 20px;
}

.product-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.product-cards .item1, .product-cards .item2, .product-cards .item3 {
    flex: 1 1 calc(33.333% - 30px); /* Ensure they fit in one row with gaps */
    box-sizing: border-box;
    margin-bottom: 20px;
    max-width: 100%;
}

.product-cards img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.signup {
    background-color: #3882F6;
    color: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 600px;
}

.signup h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer {
    padding: 20px;
    text-align: center;
    background-color: #1F2937;
    color: #fff;
    margin-top: auto;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .header_container {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }

    .logo img {
        max-width: 120px;
        margin-bottom: 10px;
    }

    .links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .intro-container {
        flex-direction: column;   /* Stack the boxes vertically */
        padding: 20px;
    }

    .intro-box1, .intro-box2 {
        max-width: 100%;         /* Make sure boxes take full width on small screens */
        padding: 10px;
    }

    .intro-box2 img {
        max-width: 100%;         /* Ensure the image doesn't overflow */
        margin: 0 auto;          /* Center the image */
    }

    .product-cards {
        flex-direction: column;
        gap: 20px;
    }

    .product-cards .item1, .product-cards .item2, .product-cards .item3 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .signup {
        padding: 20px;
        max-width: 100%;
    }

    .signup h4 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header_container {
        padding: 10px;
        text-align: center;
    }

    .logo img {
        max-width: 100px;
    }

    .links {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .links a {
        font-size: 14px;
    }

    .intro-box1 h1 {
        font-size: 24px;
    }

    .intro-box2 img {
        max-width: 100%;         /* Ensure the image scales down correctly */
        height: auto;
    }

    .product-cards .item1, .product-cards .item2, .product-cards .item3 {
        padding: 10px;
        max-width: 100%;
    }

    .signup {
        padding: 15px;
    }

    .signup h4 {
        font-size: 18px;
    }
}
