/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures the page takes up the full viewport height */
}

/* Header Styling */
header {
    background: #000;
    color: #fff;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .logo img {
    height: 60px;
    margin-left: 1rem;
    position: fixed;
    top: 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin-right: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 1.1rem;
    font-weight: bold;
}

nav ul li a:hover {
    background: #575757;
}

/* Main Content Styling */
main {
    padding: 5rem 2rem;
    margin-top: 70px;
    flex-grow: 1;
    /* Allows the main content area to grow and push footer down */
}

.hero {
    background: url('/images/wallpaper.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
    color: black;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    color: black;
}

.cta-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    /* Adjusted padding for better sizing */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    /* Ensures the button takes up the appropriate size */
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.cta-button:hover {
    background-color: #ff3b3b;
}

/* Section Styling */
.about,
.products,
.contact,
.order {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    animation: fadeInUp 1.5s ease-out;
}

/* Product Cards Styling */
.p-cards,
.p-cards2 {
    width: 600px;
    height: 280px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 1px 1px 2px 2px rgb(199, 199, 199);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 220px;
    margin-left: 800px;
}

.p-cards2 {
    margin-top: -280px;
    margin-left: 80px;
}

.p-img,
.p-img2 {
    width: 10%;
    height: auto;
    object-fit: contain;
}

.product-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.product-img {
    width: 40%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 20px;
}

.text-container,
.text-container2 {
    width: 60%;
    text-align: left;
    padding-left: 10px;
    box-sizing: border-box;
}

.p-cards h1,
.p-cards2 h1 {
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    font-size: 24px;
}

.p-cards p,
.p-cards2 p {
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 10px;
    font-size: 14px;
}

/* Footer Styling */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    /* Changed from fixed to relative */
    bottom: 0;
    width: 100%;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
}

form label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

form input,
form textarea {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

form button {
    padding: 0.8rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #575757;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styling */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }
}
