/* === css/style.css === */
body {
    font-family: Arial, sans-serif;
    margin: 1%;
    padding: 1%;
    height: 100%;
}

header, 
footer {
    background-color: #5e75f8;
    color: #fff;
    padding: 1rem;
    text-align: center;
    border-radius: 1em;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    margin: 0.5%;
    padding: 2rem;
    text-align: center;
    flex: 1;
    background-image: url("../images/BG_tech.webp");
    background-repeat: no-repeat;
    background-position: center; 
    background-size: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 1em;
}

img {
    width: 300px;
    height: auto;
    display: block;
    border-radius: 2em;
}

.main-img {
    width: 400px;
    height: auto;
    margin: 1rem auto;
    display: block;
    border-radius: 2em;
}

#category {
    color: #ccc;
    background-color: rgb(83, 117, 212);
    border-radius: 1rem;
}

.product {
    border: 1px solid #ccc;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 300px;
    background-color: #f9f9f9;
    border-radius: 1em;
}

/* === Product List Grid === */
#product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 2rem; /* Space between grid items */
    justify-items: center;
    padding: 2rem 0;
}

form {
    max-width: 400px;
    width: 100%;
    margin: auto;
    padding: 20px;
    border: 1px solid rgb(226, 226, 226);
    text-align: left;
    border-radius: 1em;
    background-image: url("../images/bg_contact.webp");
}

/* === Center Form Wrapper === */
.form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    min-height: 50vh; /*Adjust based on layout */
}

input, 
textarea {
    display: inline-flex;
    margin: 10px;
    width: 300px;
    border-radius: 2rem;
}

label {
    color: #3b23c4;
    margin: 10px;
}

input, 
textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input:hover,
textarea:hover {
    border: 2px solid #4a90e2;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
    transition: all 0.2s ease-in-out;
}

input:focus,
textarea:focus {
    border: 2px solid #4a90e2;
    outline: none;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.7);
    transition: all 0.2s ease-in-out;
    transform: scale(1.001);
}

input[type="submit"] {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease-in-out;
}

input[type="submit"]:hover {
    background-color: #3b74c3;
}

@media (max-width: 768px) {
    #product-list {
      grid-template-columns: 1fr; /* Stack items on smaller screens */
    }
  }