/* General styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #ffffff, #f0f0f5);
}

/* Header styling */
header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.logo {
    width: 80px;
    position: absolute;
    left: 20px; /* Aligns the logo to the top-left */
}

header h1 {
    margin: 0;
    font-size: 28px;
    text-align: center;
}

nav {
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #555;
}

/* Section styles */
section {
    padding: 30px;
    text-align: center;
}

section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #444;
    text-transform: uppercase;
}

.about-section {
    background: #e6e6ff;
    color: #333;
    border-radius: 10px;
    margin: 20px;
}

.products-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 20px;
}

.products img {
    width: 100%;
    max-width: 250px;
    margin: 10px;
    display: inline-block;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.products img:hover {
    transform: scale(1.05);
}

.contact-section {
    background: #f4f4f4;
    border-radius: 10px;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive Design */

/* For smaller screens (phones) */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        position: static;
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 22px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    nav a {
        font-size: 16px;
        margin: 5px;
    }

    .products img {
        max-width: 200%;
    }
}

/* For tablets (medium screens) */
@media (min-width: 601px) and (max-width: 1024px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        margin-right: 15px;
    }

    header h1 {
        font-size: 24px;
    }

    nav a {
        font-size: 18px;
    }
}

/* For larger screens (laptops/desktops) */
@media (min-width: 1025px) {
    .header-container {
        justify-content: center;
    }

    .logo {
        width: 100px;
    }

    header h1 {
        font-size: 30px;
    }

    nav a {
        font-size: 20px;
    }

    .products img {
        max-width: 250px;
    }
}
