/* Reset some basic styles */
body,
h1,
h2,
h3,
p,
ul,
li,
a {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

header {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    letter-spacing: 2px;
    font-weight: bold;
}

nav ul {
    list-style-type: none;
    margin-top: 10px;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

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

#hero {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

#hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.cta-button {
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

#about,
#products,
#contact {
    padding: 60px 20px;
    text-align: center;
}

#products .background video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the entire element */
    transform: translate(-50%, -50%);
    z-index: -1;
    /* Place behind other content */
    filter: blur(10px);
    /* Apply blur effect here */
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 5px 5px;
    /* Adjust size for more or less dense grid */
    pointer-events: none;
    /* Allows interaction with elements beneath */
    z-index: 0;
    /* Sits just above the video */
}


#about h2,
#products h2,
#contact h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #000;
}

#products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

#products .product {
    flex: 1 1 calc(50% - 40px);
    /* 50% width minus margin */
    max-width: 400px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#products .product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

#products .product h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #000;
}

#products .product p {
    font-size: 1em;
    color: #555;
    text-align: justify;
}

#contact form {
    display: inline-block;
    text-align: left;
    max-width: 400px;
    width: 100%;
    margin-top: 20px;
}

#contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    #products .product {
        width: 90%;
        margin: 20px 5%;
    }
}